:root {
  --primary-color: #6c63ff;
  --primary-dark: #564fcc;
  --secondary-color: #2d3748;
  --dark-color: #1a202c;
  --light-color: #f7fafc;
  --gray-color: #a0aec0;
  --success-color: #48bb78;
  --error-color: #f56565;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--light-color);
  background-color: var(--dark-color);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

span.highlight {
  color: var(--primary-color);
}

/* Header */
header {
  background-color: rgba(26, 32, 44, 0.9);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo span {
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light-color);
  font-size: 1.5rem;
  cursor: pointer;
}
.menu-toggle i {
  z-index: 1000000;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content .subtitle {
  font-size: 1.5rem;
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}
.hero-content-p{
    font-size: 1rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.image-border {
  height: auto;
  width: 300px;
}
.hero-image img {
  max-height: 300px;

  border-radius: 20px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.about-image img {
  width: 250px;
  height: auto;
  max-height: 300px;
  border-radius: 20px;
  border: 3px solid var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image {
  animation: float 6s ease-in-out infinite;
}


.hero .container .hero-content .btn{
   
    border: 1px solid  var(--primary-dark);
    padding: 10px;
    background: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    border-radius: .4rem;
    font-size: 1.3rem;
   

}


@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Update project image styles */
.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

/* About Section */
.about {
  padding: 6rem 0;
  background: var(--secondary-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 3rem;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-image .image-placeholder {
  width: 300px;
  height: 300px;
}

.skills {
  margin-top: 2rem;
}

.skills ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
}

.skills ul li {
  position: relative;
  padding-left: 1.5rem;
}

.skills ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* Projects Section */
.projects {
  padding: 6rem 0;
  background-color: var(--dark-color);
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  text-align: center;
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: var(--dark-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image {
  height: 200px;
  background-color: #4a5568;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--light-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: background-color 0.3s;
}

.project-links a:hover {
  background-color: var(--primary-dark);
}

.project-links a:last-child {
  background-color: transparent;
  border: 1px solid var(--primary-color);
}

.project-links a:last-child:hover {
  background-color: rgba(108, 99, 255, 0.1);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--secondary-color);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-card {
  background-color: var(--dark-color);
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-details h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact-details a,
.contact-details p {
  color: var(--light-color);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: var(--primary-color);
}

.social-media {
  text-align: center;
  margin-top: 4rem;
}

.social-media h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--light-color);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  background-color: var(--dark-color);
  border-radius: 50px;
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.social-links a i {
  font-size: 1.2rem;
}

/* Footer */
footer {
  background-color: var(--dar-color);
  padding: 2rem 0;
  text-align: center;
}

/* responsive.css - Mobile-First Adjustments */

/* General Mobile Styles (applies to screens < 768px) */
@media (max-width: 768px) {
  /* Header/Navigation */
  header .container {
    padding: 0 15px;
  }

  .menu-toggle {
    display: block;
  }
  .menu-toggle i {
    z-index: 1000000;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: var(--dark-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.3s ease;
    z-index: 999;
    padding-top: 80px;
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 15px 0;
  }

  /* Hero Section */
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 60px;
  }

  .hero-content {
    margin-top: 30px;
  }

  .hero-image img {
    max-width: 250px;
  }

  /* About Section */
  .about-content {
    flex-direction: column;
  }

  .about-image {
    margin-bottom: 30px;
  }

  /* Skills Section */
  .skills ul {
    grid-template-columns: 1fr !important; /* Force single column */
    gap: 10px;
  }

  .skills li {
    padding-left: 20px;
  }

  /* Projects Grid */
  .projects-grid {
    grid-template-columns: 1fr !important;
  }

  .project-card {
    margin-bottom: 20px;
  }

  /* Contact Section */
  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-icon {
    margin-bottom: 15px;
  }

  .social-links {
    flex-direction: column;
    align-items: center;
  }

  .social-links a {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
  }
}

/* Tablet Adjustments (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .skills ul {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Mobile Devices (< 480px) */
@media (max-width: 480px) {
  .hero-content h2 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

/* Fix for iOS viewport */
@supports (-webkit-touch-callout: none) {
  body {
    height: -webkit-fill-available;
  }

  .hero {
    min-height: -webkit-fill-available;
  }
}
