
        :root {
            --primary: #00695c;
            --primary-light: #439889;
            --secondary: #ff8f00;
            --dark: #263238;
            --light: #f5f5f5;
            --gray: #eceff1;
            --accent: #00acc1;
            --success: #4caf50;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            padding: 40px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
                position: relative;

            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 L0,100 Z" /></svg>');
            opacity: 0.1;
        }
        
        .header-content {
            position: relative;
            z-index: 2;
            max-width: 800px;
            margin: 0 auto;
        }
        
        h1 {
            font-family: 'Montserrat', sans-serif;
            font-size: 2.8rem;
            font-weight: 700;
            margin-bottom: 15px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .tagline {
            font-size: 1.3rem;
            margin-bottom: 20px;
            font-weight: 300;
        }
        
        .specialization {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .specialization span {
            background-color: rgba(255, 255, 255, 0.15);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .contact-info {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 25px;
        }
        
        .contact-info a {
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .contact-info a:hover {
            color: var(--secondary);
            transform: translateY(-2px);
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .social-links a {
            color: white;
            font-size: 1.3rem;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            color: var(--secondary);
            transform: translateY(-3px) scale(1.1);
        }
        
        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background-color: var(--secondary);
            color: white;
            padding: 12px 25px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        .download-btn:hover {
            background-color: #e65100;
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
        }
        
        /* Navigation */
        nav {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        
        .nav-container {
            display: flex;
            justify-content: center;
            overflow-x: auto;
            padding: 15px 0;
            scrollbar-width: none;
            
        }
        

        
        .nav-link {
            color: var(--dark);
            text-decoration: none;
            padding: 8px 15px;
            font-weight: 500;
            white-space: nowrap;
            transition: all 0.3s ease;
            border-radius: 20px;
            margin: 0 5px;
        }
        
        .nav-link:hover, .nav-link.active {
            background-color: var(--primary);
            color: white;
        }
        
        /* Main Content */
        main {
            padding: 40px 0;
        }
        
        .section {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .section:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .section-title {
            font-family: 'Montserrat', sans-serif;
            color: var(--primary);
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--gray);
            font-size: 1.8rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-title i {
            color: var(--secondary);
        }
        
        /* Skills Section */
        .skills-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .skill-category {
            background-color: var(--gray);
            padding: 20px;
            border-radius: 8px;
        }
        
        .skill-category h3 {
            color: var(--primary);
            margin-bottom: 15px;
            font-size: 1.2rem;
        }
        
        .skill-list {
            list-style: none;
        }
        
        .skill-list li {
            margin-bottom: 10px;
            position: relative;
            padding-left: 25px;
        }
        
        .skill-list li::before {
            content: "•";
            color: var(--secondary);
            font-size: 1.5rem;
            position: absolute;
            left: 0;
            top: -5px;
        }
        
        /* Experience Section */
        .timeline {
            position: relative;
            padding-left: 30px;
        }
        
        .timeline::before {
            content: "";
            position: absolute;
            left: 10px;
            top: 0;
            bottom: 0;
            width: 2px;
            background-color: var(--primary-light);
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px dashed var(--gray);
        }
        
        .timeline-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .timeline-item::before {
            content: "";
            position: absolute;
            left: -30px;
            top: 5px;
            width: 15px;
            height: 15px;
            border-radius: 50%;
            background-color: var(--secondary);
            border: 3px solid white;
            box-shadow: 0 0 0 2px var(--secondary);
        }
        
        .timeline-header {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        
        .timeline-position {
            font-weight: 600;
            font-size: 1.2rem;
            color: var(--dark);
        }
        
        .timeline-company {
            color: var(--primary);
            font-weight: 600;
        }
        
        .timeline-date {
            color: var(--primary-light);
            font-size: 0.9rem;
        }
        
        .timeline-content {
            margin-top: 10px;
        }
        
        .timeline-content ul {
            list-style-position: inside;
            padding-left: 5px;
        }
        
        .timeline-content li {
            margin-bottom: 8px;
        }
        
        /* Education Section */
        .education-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .education-card {
            background-color: var(--gray);
            padding: 20px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .education-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .education-degree {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 5px;
            color: var(--primary);
        }
        
        .education-institution {
            font-weight: 500;
            margin-bottom: 10px;
        }
        
        .education-duration {
            color: var(--primary-light);
            font-size: 0.9rem;
            margin-bottom: 10px;
        }
        
        .education-thesis {
            font-style: italic;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px dashed #ccc;
        }
        
        .grade-badge {
            display: inline-block;
            background-color: var(--success);
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
            margin-top: 5px;
        }
        
        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 20px;
        }
        
        .project-card {
            border: 1px solid var(--gray);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }
        
        .project-header {
            padding: 15px;
            background-color: var(--primary);
            color: white;
        }
        
        .project-title {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }
        
        .project-org {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .project-body {
            padding: 15px;
        }
        
        .project-links {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            flex-wrap: wrap;
        }
        
        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 5px 12px;
            background-color: var(--primary);
            color: white;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        
        .project-link:hover {
            background-color: var(--primary-light);
            transform: translateY(-2px);
        }
        
        /* Publications Section */
        .publication-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--gray);
        }
        
        .publication-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .publication-title {
            font-weight: 600;
            margin-bottom: 5px;
        }
        
        .publication-link {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .publication-link:hover {
            color: var(--primary-light);
            transform: translateX(5px);
        }
        
        /* Certifications Section */
        .certifications-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .certification-card {
            border: 1px solid var(--gray);
            border-radius: 8px;
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .certification-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .certification-image {
            height: 180px;
            background-color: #f9f9f9;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        .certification-image img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
        
        .certification-body {
            padding: 15px;
        }
        
        .certification-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 1rem;
        }
        
        .certification-issuer {
            color: var(--primary-light);
            font-size: 0.9rem;
        }
        
        /* Volunteer Section */
        .volunteer-item {
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px dashed var(--gray);
        }
        
        .volunteer-item:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .volunteer-header {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }
        
        .volunteer-position {
            font-weight: 600;
            color: var(--dark);
        }
        
        .volunteer-org {
            color: var(--primary);
        }
        
        .volunteer-duration {
            color: var(--primary-light);
            font-size: 0.9rem;
        }
        
        /* Languages Section */
        .languages-container {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .language-item {
            background-color: var(--primary);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-weight: 500;
        }
        
        /* Interests Section */
        .interests-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
        }
        
        .interest-item {
            display: flex;
            align-items: center;
            gap: 10px;
            background-color: var(--gray);
            padding: 15px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .interest-item:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-3px);
        }
        
        .interest-icon {
            font-size: 1.5rem;
            color: var(--secondary);
        }
        
        .interest-item:hover .interest-icon {
            color: white;
        }
        
        /* Footer */
        footer {
            background-color: var(--dark);
            color: white;
            padding: 30px 0;
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .footer-link {
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .footer-link:hover {
            color: var(--secondary);
        }
        
        .copyright {
            opacity: 0.8;
            font-size: 0.9rem;
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-content {
            max-width: 90%;
            max-height: 90%;
        }
        
        .modal-content img {
            max-width: 100%;
            max-height: 90vh;
            display: block;
            margin: 0 auto;
        }
        
        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            color: white;
            font-size: 2rem;
            cursor: pointer;
        }
.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;   /* fix: was -20% */
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
}

.language-toggle .lang-btn {
    color: white;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.3s;
}

.language-toggle .lang-btn:hover,
.language-toggle .lang-btn.active {
    background: var(--secondary);
    color: white;
}

/* --- Mobile view --- */
@media (max-width: 768px) {
    .language-toggle {
        position: relative;     /* no absolute on mobile */
        top: auto;
        right: auto;
        text-align: center;
        margin: 8px auto 0 auto; /* center above name */
        display: block;
        font-size: 12px;        /* smaller font */
    }

    .language-toggle .lang-btn {
        padding: 2px 6px;       /* smaller buttons */
        font-size: 12px;
    }
}


        /* Responsive Design */
        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }
            
            .tagline {
                font-size: 1.1rem;
            }
            
            .section-title {
                font-size: 1.5rem;
            }
            
            .timeline-header {
                flex-direction: column;
                gap: 5px;
            }
            
            .education-grid, .projects-grid, .certifications-grid {
                grid-template-columns: 1fr;
            }
            
            .nav-container {
                justify-content: flex-start;
            }
        }
        
        @media (max-width: 480px) {
            h1 {
                font-size: 1.8rem;
            }
            
            .tagline {
                font-size: 1rem;
            }
            
            .contact-info {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .section {
                padding: 20px;
            }
        }
/* ✅ Mobile-only horizontal scroll */
/* Mobile nav: layout + color any horizontal scrollbar */
@media (max-width: 1024px) {
  /* keep the nav scrolling correctly and starting at the first item */
  nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-container { flex-wrap: nowrap; width: max-content; }

  /* WebKit/Chromium (Chrome/Edge/Safari on desktop) */
  .nav-container::-webkit-scrollbar,
  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    height: 8px;                 /* horizontal bar thickness */
  }

  .nav-container::-webkit-scrollbar-track,
  html::-webkit-scrollbar-track,
  body::-webkit-scrollbar-track {
    background: transparent;
  }

  .nav-container::-webkit-scrollbar-thumb,
  html::-webkit-scrollbar-thumb,
  body::-webkit-scrollbar-thumb {
    background-color: var(--secondary); /* ORANGE */
    border-radius: 10px;
  }

  /* Firefox */
  html, body, .nav-container {
    scrollbar-color: var(--secondary) transparent; /* thumb | track */
    scrollbar-width: thin;
  }
}


/* ✅ Desktop behavior (no scrolling, evenly spread) */
@media (min-width: 1025px) {
  .nav-container {
    flex-wrap: wrap;    /* go back to normal */
    width: 100%;        /* fill the space */
    justify-content: center;
  }
}
