        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }


/* Logo section */
.logo {
  display: flex;
  align-items: center;
  gap: 10px; 
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: #000; 
}

.logo-img {
  width: 40px;         
  height: 40px;
  border-radius: 50%;  
  object-fit: cover;   
  border: 2px solid #fff; 
  box-shadow: 0 0 5px rgba(0,0,0,0.15); 
}

.logo span {
  font-weight: 600;
  letter-spacing: 0.5px;
}

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #fafafa;
            overflow-x: hidden;
        }

        /* Navigation - Fixed positioning */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            z-index: 1000;
            padding: 1rem 0;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: #2563eb;
            text-decoration: none;
        }

        .nav-links {
            display: flex;
            list-style: none;
            gap: 2rem;
        }

        .nav-links a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            position: relative;
            transition: color 0.3s ease;
        }

        .nav-links a:hover {
            color: #2563eb;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background-color: #2563eb;
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .mobile-menu {
            display: none;
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }
/* for social media logos */
/* --- Navbar Icons --- */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: 20px;
}

.nav-icons a img {
  width: 26px;
  height: 26px;
  filter: grayscale(100%);
  transition: transform 0.3s ease, filter 0.3s ease;
  opacity: 0.85;
}

.nav-icons a:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
  opacity: 1;
}

/* Responsive - Stack icons below menu on mobile */
@media (max-width: 768px) {
  .nav-icons {
    display: none;
  }
}

        /* Main Content - Fixed margin */
        .main-content {
            margin-top: 80px;
            position: relative;
        }

        .section {
            padding: 4rem 0;
            position: relative;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        /* Home Section - Stable layout */
        .hero {
            display: grid;
            grid-template-columns: 1fr 300px;
            align-items: center;
            gap: 4rem;
            min-height: 80vh;
            padding: 2rem 0;
        }

        .hero-content {
            max-width: 600px;
        }

        .hero h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1.2;
        }

        .hero .subtitle {
            font-size: clamp(1rem, 3vw, 1.5rem);
            color: #666;
            margin-bottom: 2rem;
        }

        .hero p {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 2rem;
            line-height: 1.7;
        }

        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            color: white;
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
        }

        .hero-image {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .profile-picture {
            width: 280px;
            height: 280px;
            border-radius: 50%;
            object-fit: cover;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
            border: 4px solid #fff;
        }

        .profile-picture:hover {
            transform: scale(1.05);
        }

        /* Projects Section - Stable grid */
        .projects-container {
            margin-top: 3rem;
        }

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .project-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
            position: relative;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .project-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
            position: relative;
            overflow: hidden;
        }

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

        .project-content {
            padding: 2rem;
        }

        .project-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            color: #2563eb;
        }

        .project-card p {
            color: #666;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
        }

        .tech-tag {
            background: #e5f2ff;
            color: #2563eb;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .project-links {
            display: flex;
            gap: 1rem;
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: #2563eb;
            text-decoration: none;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .project-link:hover {
            color: #7c3aed;
        }

        .loading {
            text-align: center;
            padding: 2rem;
            color: #666;
        }

        .error {
            text-align: center;
            padding: 2rem;
            color: #e53e3e;
            background: #fed7d7;
            border-radius: 10px;
            margin: 1rem 0;
        }

        /* Achievements Section */
        .achievements-content {
            max-width: 1000px;
            margin: 0 auto;
        }

        .achievements-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .achievement-card {
            background: white;
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            border: 1px solid #f0f0f0;
            position: relative;
            overflow: hidden;
        }

        .achievement-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .achievement-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(135deg, #2563eb, #7c3aed);
        }

        .achievement-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            display: block;
        }

        .achievement-card h4 {
            color: #2563eb;
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
        }

        .achievement-date {
            color: #999;
            font-size: 0.9rem;
            margin-bottom: 1rem;
        }

        .achievement-card p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .achievement-organization {
            color: #2563eb;
            font-weight: 600;
            font-size: 0.95rem;
        }

/* Enhanced achievement section with popup glimpse */

    .project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 999px; /* pill shape */
  cursor: pointer;

  /* Gradient background */
  background: linear-gradient(45deg, #4facfe, #a64fff);
  color: #fff;

  /* Subtle glow */
  box-shadow: 0 4px 12px rgba(166, 79, 255, 0.35);
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(166, 79, 255, 0.5);
}

.project-link:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(166, 79, 255, 0.4);
}

    #achievements .lightbox {
      position: fixed; 
      inset: 0;
      display: none;
      align-items: center; 
      justify-content: center;
      background: rgba(0,0,0,.65);
      z-index: 9999;
    }
    #achievements .lightbox[aria-hidden="false"] { display: flex; }
    #achievements .lightbox-content {
      position: relative;
      max-width: min(92vw, 1100px);
      max-height: 88vh;
      background: #000;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(0,0,0,.4);
    }
    #achievements .lightbox-img {
      display: block;
      max-width: 92vw;
      max-height: 80vh;
      width: 100%;
      height: auto;
      object-fit: contain;
      background: #111;
    }
    #achievements .lb-controls {
      position: absolute; inset-inline: 0; bottom: 0;
      display: flex; align-items: center; justify-content: space-between;
      gap: .5rem; padding: .4rem .6rem;
      background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 35%, rgba(0,0,0,.75) 100%);
      color: #fff;
      font-size: .95rem;
    }
    #achievements .lb-btn {
      appearance: none; border: 0; background: rgba(255,255,255,.12);
      color: #fff; padding: .45rem .7rem; border-radius: 999px;
      cursor: pointer; font-weight: 600;
    }
    #achievements .lb-btn:hover { background: rgba(255,255,255,.2); }
    #achievements .lb-close {
      position: absolute; top: .5rem; right: .5rem;
      width: 36px; height: 36px; border-radius: 50%;
      display: grid; place-items: center;
      background: rgba(255,255,255,.15);
    }
    #achievements .lb-counter { opacity: .9; }
    @media (prefers-color-scheme: light) {
      #achievements .lightbox-content { background: #111; }
    }
    

        /* About Section */
        .about-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .about-content h2 {
            font-size: 2.5rem;
            margin-bottom: 2rem;
            color: #2563eb;
        }

        .about-content p {
            font-size: 1.1rem;
            color: #555;
            margin-bottom: 1.5rem;
            text-align: left;
            line-height: 1.7;
        }

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

        .skill-category {
            background: white;
            padding: 1.5rem;
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .skill-category h4 {
            color: #2563eb;
            margin-bottom: 1rem;
        }

        .skill-category ul {
            list-style: none;
        }

        .skill-category li {
            color: #666;
            margin-bottom: 0.5rem;
        }

        /* Contact Section */
        .contact-content {
            max-width: 600px;
            margin: 0 auto;
        }

        .contact-form {
            background: white;
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 3rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
            font-weight: 600;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #f0f0f0;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #2563eb;
        }

        .submit-btn {
            background: linear-gradient(135deg, #2563eb, #7c3aed);
            color: white;
            padding: 1rem 2rem;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }

        .social-link {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #2563eb;
            text-decoration: none;
            font-weight: 600;
            padding: 1rem 1.5rem;
            background: white;
            border-radius: 50px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }

        .social-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            color: #2563eb;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .nav-links {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: white;
                box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                flex-direction: column;
                padding: 1rem 0;
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-menu {
                display: block;
            }

            .hero {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 2rem;
            }

            .hero-image {
                order: -1;
            }

            .profile-picture {
                width: 200px;
                height: 200px;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

            .social-links {
                flex-direction: column;
                align-items: center;
            }

            .container {
                padding: 0 1rem;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }

            .hero .subtitle {
                font-size: 1.2rem;
            }

            .section-title {
                font-size: 2rem;
            }
        }

        /* Animation classes */
        .fade-in {
            animation: fadeIn 0.6s ease forwards;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .project-skeleton {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid #f0f0f0;
        }

        .skeleton-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
        }

        .skeleton-content {
            padding: 2rem;
        }

        .skeleton-title {
            height: 24px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 1rem;
        }

        .skeleton-text {
            height: 16px;
            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: shimmer 1.5s infinite;
            border-radius: 4px;
            margin-bottom: 0.5rem;
        }

        @keyframes shimmer {
            0% {
                background-position: -200% 0;
            }
            100% {
                background-position: 200% 0;
            }
        }