/* ===== Modern Portfolio Design ===== */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --bg-light: #f9f9f9;
    --bg-dark: #0f172a;
    --accent-blue: #3b82f6;
    --highlight-pink: #ec4899;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --card-bg: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s ease-in-out;
}

/* General */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    scroll-behavior: smooth;
    line-height: 1.7;
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--accent-blue);
}

p {
    color: var(--text-light);
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 15px 40px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    gap: 25px;
}

.navbar ul li a {
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 12px;
    transition: var(--transition);
}

.navbar ul li a:hover, 
.navbar ul li a.active {
    background: var(--accent-blue);
    color: #fff;
}

/* Sections */
.section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Home Section */
.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.image-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--accent-blue);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* About */
.about-section {
    background: var(--card-bg);
    padding: 60px 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

.about-section p {
    font-size: 1.15rem;
    color: var(--text-light);
}

/* Skills 
.skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
    margin-top: 30px;
}

.skills-list li {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.skills-list li:hover {
    transform: translateY(-5px);
    background: var(--accent-blue);
    color: #fff;
}
*/ 
.skills-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 500px; /* keeps it neat */
    text-align: left;
}

.skills-list li {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    margin-bottom: 15px; /* spacing between items */
}

.skills-list li:hover {
    transform: translateX(8px);
    background: var(--accent-blue);
    color: #fff;
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.project-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: left;
    transition: var(--transition);
    cursor: pointer;
}

.project-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Contact */
#contact {
    background: #f1f5f9;
    padding: 100px 20px;
    border-radius: var(--border-radius);
}

#contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
}

.contact-list li {
    margin: 15px 0;
}

#contact a {
    color: var(--accent-blue);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

#contact a:hover {
    color: var(--highlight-pink);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: #fff;
    text-align: center;
    padding: 25px 0;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}


.experience-container {
    max-width: 800px;
    margin: 40px auto;
    text-align: left;
}

.experience-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.experience-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.experience-box h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--accent-blue);
}


.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.skill-box {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  min-height: 80px;          /* Ensures equal height */
  display: flex;             /* Centers text inside */
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}


.navbar ul li a {
  text-decoration: none;   /* ✅ removes underline */
  color: #000;             /* adjust based on your theme */
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s, background 0.3s;
}

.navbar ul li a.active {
  color: #fff;
  background: #3b82f6;     /* highlight color (blue) */
  border-radius: 6px;
}
/* Apply modern fonts */
body {
  font-family: 'Inter', sans-serif;
}

/* Navbar font */
.navbar ul li a {
  text-decoration: none;
  font-family: 'Poppins', sans-serif; /* modern look */
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937; /* dark gray for clean look */
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover effect */
.navbar ul li a:hover {
  background: rgba(59, 130, 246, 0.1); /* soft blue background */
  color: #2563eb; /* modern blue */
}

/* Active link */
.navbar ul li a.active {
  background: #2563eb;
  color: #fff;
}


.skill-box i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--accent-blue);
    vertical-align: middle;
    transition: transform 0.3s;
}

.skill-box:hover i {
    transform: scale(1.2);
}

/* Navbar Container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
  }
  
  /* Logo */
  .logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-dark);
  }
  
  /* Default desktop navbar */
  .nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
  }
  
  .hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
  }
  
  /* Responsive Mobile Navbar */
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
  
    .nav-links {
      position: absolute;
      top: 70px; /* below navbar */
      right: -100%;
      background: #fff;
      flex-direction: column;
      width: 200px;
      text-align: center;
      padding: 20px 0;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      border-radius: 8px;
      transition: right 0.3s ease-in-out;
    }
  
    .nav-links.active {
      right: 20px;
    }
  
    .nav-links li {
      margin: 15px 0;
    }
  }
  

  /* Navbar Container */
.nav-container {
  display: flex;
  justify-content: space-between; /* space between logo and nav */
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px; /* little breathing space */
}

/* Logo (Your name) */
.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-right: 40px; /* shift logo slightly left */
}

/* Desktop Navbar */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  flex: 1;
  justify-content: center;   /* ✅ center links */
}

/* Navbar links */
.nav-links li a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

/* Active / hover */
.nav-links li a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.nav-links li a.active {
  background: #2563eb;
  color: #fff;
}

/* Mobile View */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    background: #fff;
    flex-direction: column;
    width: 200px;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: right 0.3s ease-in-out;
  }

  .nav-links.active {
    right: 20px;
  }

  .nav-links li {
    margin: 15px 0;
  }
}
/* Navbar Wrapper */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

/* Logo */
.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
  white-space: nowrap; /* prevents breaking */
}

/* Nav Links */
.nav-links {
  list-style: none;
  display: flex;
  flex: 1;
  justify-content: center;  /* center links dynamically */
  gap: clamp(15px, 3vw, 40px); /* ✅ auto spacing */
  flex-wrap: wrap; /* allow wrapping if needed */
}

.nav-links li a {
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap; /* prevent breaking words */
}

/* Hover + Active */
.nav-links li a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
}
.nav-links li a.active {
  background: #2563eb;
  color: #fff;
}

/* ------------------- RESPONSIVENESS ------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .nav-links {
    gap: clamp(10px, 2vw, 25px); /* shrink spacing */
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    background: #fff;
    flex-direction: column;
    width: 220px;
    text-align: center;
    padding: 25px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: right 0.3s ease-in-out;
  }

  .nav-links.active {
    right: 20px;
  }

  .nav-links li {
    margin: 12px 0;
  }
}


/* Navbar Wrapper */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 50px;
  }
  
  /* Logo */
  .logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
    white-space: nowrap; /* prevents breaking */
  }
  
  /* Nav Links */
  .nav-links {
    list-style: none;
    display: flex;
    flex: 1;
    justify-content: center;  /* center links dynamically */
    gap: clamp(15px, 3vw, 40px); /* ✅ auto spacing */
    flex-wrap: wrap; /* allow wrapping if needed */
  }
  
  .nav-links li a {
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap; /* prevent breaking words */
  }
  
  /* Hover + Active */
  .nav-links li a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
  }
  .nav-links li a.active {
    background: #2563eb;
    color: #fff;
  }
  
  /* ------------------- RESPONSIVENESS ------------------- */
  
  /* Tablet */
  @media (max-width: 1024px) {
    .nav-links {
      gap: clamp(10px, 2vw, 25px); /* shrink spacing */
    }
  }
  
  /* Mobile */
  @media (max-width: 768px) {
    .nav-links {
      position: absolute;
      top: 70px;
      right: -100%;
      background: #fff;
      flex-direction: column;
      width: 220px;
      text-align: center;
      padding: 25px 0;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      border-radius: 8px;
      transition: right 0.3s ease-in-out;
    }
  
    .nav-links.active {
      right: 20px;
    }
  
    .nav-links li {
      margin: 12px 0;
    }
  }
  


  /* Navbar container */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;  /* equal left & right spacing */
    height: 50px;
    position: relative;
    z-index: 1000;
  }
  
  /* Logo */
  .logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-dark);
  }
  
  /* Hamburger Icon */
  .hamburger {
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    color: var(--text-dark);
  }
  
  /* Mobile specific */
  @media (max-width: 768px) {
    .hamburger {
      display: block;
    }
  
    .nav-links {
      position: absolute;
      top: 70px;
      right: 15px;   /* ✅ keep dropdown away from edge */
      background: #fff;
      flex-direction: column;
      width: 220px;
      text-align: left;  /* ✅ left align items instead of center */
      padding: 20px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
      border-radius: 8px;
      transition: transform 0.3s ease-in-out;
      transform: translateX(120%); /* hidden by default */
    }
  
    .nav-links.active {
      transform: translateX(0);  /* slide-in effect */
    }
  
    .nav-links li {
      margin: 12px 0;
    }
  
    .nav-links li a {
      display: block;
      width: 100%;
    }
  }
  


