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

:root {
    --bg-dark: #0a0e27;
    --bg-card: #151932;
    --bg-elevated: #1a1f3a;
    --text-primary: #e8eaed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --border: rgba(255, 255, 255, 0.1);
    --glow: rgba(99, 102, 241, 0.3);

    /* Layout Widths (Customizable) */
    --card-width-research: 950px;
    --card-width-experience: 650px;
    --card-width-info-grid: 750px;
    --card-width-projects-grid: 1100px;
}

[data-theme="light"] {
    --bg-dark: #ffffff;
    --bg-card: #f8f9fa;
    --bg-elevated: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --border: rgba(0, 0, 0, 0.1);
    --glow: rgba(99, 102, 241, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Layout: Sidebar + Main */
.layout {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-right: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.25rem 1rem;
}

[data-theme="light"] .sidebar {
    background: rgba(255, 255, 255, 0.85);
}

.main {
    width: 100%;
    margin-left: 320px;
    position: relative;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.sidebar-toggle {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.55rem 0.8rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
}

.sidebar-profile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.25rem;
}

.sidebar-avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 0.9rem;
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-title {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.sidebar-meta {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.sidebar-meta a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-meta .dot {
    opacity: 0.6;
}

.sidebar-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    justify-content: center;
}

.sidebar-nav {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.25rem;
    overflow: auto;
}

.sidebar-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
}

.sidebar-link.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(139, 92, 246, 0.14));
    border-color: rgba(99, 102, 241, 0.25);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.sidebar-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sidebar-footnote {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-tertiary), transparent);
    top: 50%;
    right: 20%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    75% {
        transform: translate(30px, 50px) scale(1.05);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.8);
}

nav.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

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

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

.theme-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: rotate(180deg);
    border-color: var(--accent-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 1.5rem 2rem;
    /* Reduced from 6rem 2rem 4rem */
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    /* Reduced from 4rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-title {
    font-size: 1.8rem;
    /* Reduced from 2.2rem */
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    /* Reduced from 1.5rem */
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-content .bio {
    font-size: 1rem;
    /* Reduced from 1.1rem */
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}



.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Admissions info cards */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    max-width: var(--card-width-info-grid);
    /* Customizable width */
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem;
}

.info-label {
    color: var(--text-muted);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}

.info-body {
    color: var(--text-secondary);
    font-weight: 600;
    line-height: 1.6;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    margin-top: -40px;
    /* Shift up slightly */
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Static circle */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    /* animation: morph 8s ease-in-out infinite; */
}

/* Removed keyframes morph */

.profile-ring {
    position: absolute;
    inset: -20px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    /* animation: pulse 3s ease-in-out infinite; */
}

/* Removed keyframes pulse */

/* Section Styles */
/* Section Styles */
section {
    padding: 2.5rem 1.5rem;
    /* Reduced padding from 4rem 2rem */
    position: relative;
}

/* ... existing styles ... */

.section-label {
    display: block;
    /* Changed to block to force new line */
    width: fit-content;
    margin: 0 auto 1.5rem auto;
    /* Centered with margin */
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-title {
    font-size: 2.2rem;
    /* Reduced from 3rem */
    font-weight: 800;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ... existing styles ... */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Use auto-fill to prevent stretching */
    gap: 2rem;
    /* justify-content: center; Removed centering */
}

.experience-card {
    /* ... existing styles ... */
    max-width: var(--card-width-experience);
    /* Customizable width */
    /* Enforce max width */
    width: 100%;
    /* margin: 0 auto; Removed centering */
}



.section-description {
    font-size: 1rem;
    /* Reduced from 1.2rem */
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

#education {
    padding: 2rem 2rem;
    /* Reduced padding for compact look */
}

#education .education-card {
    padding: 1rem 0;
    /* Further reduced */
}

/* Education Grid - Simple List */
.education-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.education-card {
    background: transparent;
    padding: 1.5rem 0;
    /* Vertical padding only */
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    transition: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.education-card:last-child {
    border-bottom: none;
}

.education-card:hover {
    transform: none;
    box-shadow: none;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    /* Reduced header margin */
}

.education-info h3 {
    font-size: 1.2rem;
    /* Smaller title */
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.education-info .institution {
    font-size: 0.95rem;
    /* Smaller custom font size */
    font-weight: 600;
    color: var(--text-primary);
}

.education-card .duration {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.education-card .edu-details {
    color: var(--text-secondary);
    line-height: 1.7;
}

.gpa-badge {
    padding: 0.4rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.2);
    white-space: nowrap;
}

/* Updated Experience Card */
.experience-card {
    background: var(--bg-card);
    background: var(--bg-card);
    padding: 0.8rem;
    /* Aggressively reduced from 1.5rem */
    /* Reduced from 2.5rem */
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.experience-card.current {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--glow);
}

.current-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    /* Reduced from 1.5rem */
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title h3 {
    font-size: 1.3rem;
    /* Reduced from 1.6rem */
    color: var(--accent-primary);
    margin-bottom: 0.3rem;
}

.experience-org {
    font-size: 1.1rem;
    font-weight: 600;
}

.experience-period {
    color: var(--text-muted);
    font-weight: 500;
}

/* Research & Publications */
.research-grid {
    display: grid;
    gap: 2rem;
}

.research-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    border-radius: 20px;
    padding: 0.8rem;
    /* Aggressively reduced from 1.25rem */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    max-width: var(--card-width-research);
    /* Customizable width */
    /* margin: 0 auto; Removed centering */
}

.research-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.research-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(10px);
}

.research-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    flex-wrap: wrap;
}

.research-badge {
    padding: 0.4rem 1rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Fixed syntax error */
.research-badge.published {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

/* Side-by-side layout for card with image */
.research-card.has-image {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
}

.research-card.has-image .research-content {
    flex: 1;
}

.research-preview-image {
    width: 300px;
    /* Fixed width for side layout */
    height: 190px;
    /* Reduced height from 180px */
    /* Reduced height from 200px */
    /* Fixed height for consistency */
    /* Contain to show full diagram */
    background: white;
    /* White bg for diagram */
    border-radius: 12px;
    margin: 0;
    /* Remove margin */
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    /* Prevent shrinking */
    padding: 0.5rem;
    /* Small padding inside white box */
    cursor: pointer;
}

a .research-preview-image {
    cursor: pointer;
}

@media (max-width: 768px) {
    .research-card.has-image {
        flex-direction: column-reverse;
        /* Image on bottom */
        align-items: stretch;
    }

    .research-preview-image {
        width: 100%;
        height: auto;
        margin-top: 1.5rem;
    }
}

.research-card:hover .research-preview-image {
    transform: scale(1.02);
}

.research-card h3 {
    font-size: 1.35rem;
    /* Slightly smaller */
    /* Reduced from 1.8rem */
    margin-bottom: 0.2rem;
    /* Tighter margin */
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.research-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.research-card h3 a:hover {
    color: var(--accent-primary);
}

.research-authors {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
    /* Tighter margin */
    position: relative;
    z-index: 1;
}

.research-description {
    color: var(--text-secondary);
    line-height: 1.5;
    /* Reduced from 1.8 */
    position: relative;
    z-index: 1;
}

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

.research-description a:hover {
    color: var(--accent-primary);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Reduced minmax width */
    gap: 2rem;
    max-width: var(--card-width-projects-grid);
    /* Customizable width */
    /* margin: 0 auto; Removed centering */
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-header {
    padding: 0.8rem;
    /* Aggressively reduced from 1.5rem */
    /* Reduced from 2rem */
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.project-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-body {
    padding: 0.8rem;
    /* Aggressively reduced from 1.5rem */
    /* Reduced from 2rem */
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

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

.project-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 0.6rem;
    color: var(--accent-secondary);
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.award-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '🏆';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.05;
}

.award-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-tertiary);
}

.award-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.award-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.award-event {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.award-year {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0.8rem;
    /* Aggressively reduced from 1.5rem */
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

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

.skill-list li {
    color: var(--text-secondary);
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.skill-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Experience Section */
/* Main Sections - Card Effect */
#experience,
#education,
#research,
#projects,
#awards,
#skills,
#contact {
    background: var(--bg-dark);
    z-index: 2;
    /* Higher than hero */
    position: relative;
    margin-top: -2px;
    /* Prevent sub-pixel gap */
}

/* ... existing styles ... */

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

.experience-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-secondary);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title h3 {
    font-size: 1.6rem;
    color: var(--accent-primary);
    margin-bottom: 0.3rem;
}

.experience-org {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-period {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: right;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.contact-card a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    z-index: 1;
    word-break: break-word;
}

/* Footer */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-content .bio {
        margin-left: auto;
        margin-right: auto;
    }

    .stats-grid {
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .info-grid {
        margin-left: auto;
        margin-right: auto;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 3rem;
    }

    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
    }

    .timeline-dot {
        left: 0;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .main {
        margin-left: 0;
    }

    .sidebar {
        width: 320px;
        transform: translateX(-110%);
        transition: transform 0.25s ease;
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 999;
    }

    .sidebar-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: block;
    }

    /* Enhanced Mobile Responsiveness */
    section {
        padding: 2rem 1rem;
    }

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

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

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

    .awards-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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

    /* Override custom widths for mobile */
    .experience-card,
    .research-card,
    .project-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {

    /* Hero Section */
    .hero {
        padding: 1.5rem 1rem;
    }

    .profile-wrapper {
        width: 250px;
        height: 250px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .profile-title {
        font-size: 1.4rem;
    }

    .hero-content .subtitle {
        font-size: 1rem;
    }

    .hero-content .bio {
        font-size: 0.95rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.8rem;
    }

    .section-label {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Cards */
    .experience-card,
    .research-card,
    .project-card,
    .award-card,
    .skill-card {
        padding: 0.6rem;
    }

    .project-header,
    .project-body {
        padding: 0.6rem;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Research Images */
    .research-preview-image {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    /* Awards Grid */
    .awards-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Cards */
    .contact-card {
        padding: 1.5rem;
    }
}

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

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