.cv-section {
        margin-bottom: 1.5rem;
    }

    .cv-button {
        padding: 7px 18px;
        font-size: 0.9rem;
    }* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a365d;
    --secondary-color: #2b77ad;
    --accent-color: #c53030;
    --text-color: #2d3748;
    --light-gray: #f7fafc;
    --medium-gray: #718096;
    --dark-gray: #4a5568;
    --gradient: linear-gradient(135deg, #1a365d 0%, #2b77ad 100%);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.98);
    --card-bg: white;
    --hero-bg: white;
    --footer-bg: var(--primary-color);
}

[data-theme="dark"] {
    --primary-color: #63b3ed;
    --secondary-color: #4299e1;
    --accent-color: #f56565;
    --text-color: #e2e8f0;
    --light-gray: #1a202c;
    --medium-gray: #a0aec0;
    --dark-gray: #cbd5e0;
    --gradient: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    --nav-bg: rgba(26, 32, 44, 0.95);
    --nav-bg-scrolled: rgba(26, 32, 44, 0.98);
    --card-bg: #2d3748;
    --hero-bg: #1a202c;
    --footer-bg: #1a202c;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-gray);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transitions for theme switching */
*, *::before, *::after {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.5rem 0;
    background: var(--nav-bg-scrolled);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
}

.nav-links li {
    margin: 0;
}

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

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a.active {
    color: var(--secondary-color);
}

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

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

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.nav-links li:has(.theme-toggle) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle svg {
    transition: all 0.3s ease;
    width: 18px;
    height: 18px;
}

.theme-toggle i {
    transition: all 0.3s ease;
    font-size: 18px;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block !important;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Hide mobile controls on desktop */
.mobile-controls {
    display: none;
}

/* Main Content */
main {
    margin-top: 80px;
}

.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

/* Home Page */
.hero {
    background: var(--hero-bg);
    color: var(--text-color);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-right {
    padding-left: 2rem;
}

.hero-right h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    line-height: 1.1;
}

.hero-right .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    font-weight: 400;
    line-height: 1.5;
}

.profile-image {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    margin-bottom: 2rem;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(26, 54, 93, 0.15);
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.hero-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    color: var(--medium-gray);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #0077b5;
    border-color: #0077b5;
}

.social-icon:focus {
    outline: none;
}

.social-icon:active {
    transform: translateY(-1px);
}

/* Disable hover effects on touch devices */
@media (hover: none) {
    .social-icon:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        color: var(--medium-gray);
        border-color: #e2e8f0;
    }
    
    [data-theme="dark"] .social-icon:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }
}


.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon i {
    font-size: 20px;
}

[data-theme="dark"] .social-icon {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cv-section {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-start;
}

.cv-button {
    display: inline-block;
    padding: 8px 20px;
    background: #6a7d8f;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #6a7d8f;
    min-width: 60px;
    text-align: center;
}

.cv-button:hover {
    background: #5a6d7f;
    border-color: #5a6d7f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 125, 143, 0.3);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--primary-color);
    line-height: 1.1;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    font-weight: 400;
    line-height: 1.5;
}

.hero-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-bio p {
    margin-bottom: 1.5rem;
}

.hero-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.contact-icon {
    color: var(--secondary-color);
    flex-shrink: 0;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.email-hidden {
    display: none;
}

.hero-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.skill-tag {
    background: var(--card-bg);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary-color);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    font-size: 1rem;
    margin-top: 1rem;
    align-self: flex-start;
}

.cta-button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

/* Remove the separate about section since it's now in the hero */
.about {
    display: none;
}

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

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--dark-gray);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Research Page */
.research-hero {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.research-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.research-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.research-content {
    padding: 100px 0;
    background: var(--hero-bg);
}

.project-grid {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .project-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.project-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-status {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-status.completed {
    background: #27ae60;
}

.project-status.in-progress {
    background: #f39c12;
}

.project-card p {
    color: var(--medium-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.project-link {
    padding: 8px 16px;
    background: var(--light-gray);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

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

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

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    /* Show mobile controls */
    .mobile-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Hide desktop theme toggle */
    .desktop-theme-toggle {
        display: none;
    }

    /* Style mobile theme toggle */
    .mobile-theme-toggle {
        width: 32px;
        height: 32px;
        border: 2px solid var(--medium-gray);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        color: var(--text-color);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .mobile-theme-toggle svg {
        transition: all 0.3s ease;
    }
    
    .mobile-theme-toggle i {
        font-size: 16px;
        transition: all 0.3s ease;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--hero-bg);
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        transform: translateY(-1%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.mobile-active {
        transform: translateY(6%);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        margin: 0;
        width: 100%;
    }

    .nav-links li:not(:has(.theme-toggle)) {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    [data-theme="dark"] .nav-links li:not(:has(.theme-toggle)) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem 0;
        width: 100%;
        position: relative;
    }

    /* Remove underlines on mobile */
    .nav-links a::after {
        display: none;
    }

    .nav-links li:has(.theme-toggle) {
        display: none; /* Hide desktop theme toggle in mobile menu */
    }

    /* Mobile menu toggle button */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        width: 32px;
        height: 32px;
        color: var(--text-color);
    }

    .mobile-menu-toggle i {
        font-size: 18px;
        transition: all 0.3s ease;
    }

    .mobile-menu-toggle.active .menu-icon {
        display: none;
    }

    .mobile-menu-toggle.active .close-icon {
        display: block !important;
    }

    .close-icon {
        display: none;
    }

    .hero-skills {
        margin-bottom: 2rem;
        justify-content: center;
    }

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

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
        padding-left: 0;
        text-align: center;
    }

    .profile-image {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .hero-social {
        margin-bottom: 1.5rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-bio {
        font-size: 1rem;
    }

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

    .project-card {
        padding: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Smooth animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}