:root {
    /* OS-NATIVE FONT STACK 
       Ensures crisp rendering on Windows (Segoe), macOS (Apple System), and Linux (Ubuntu).
    */
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-serif: 'Merriweather', 'Charter', 'Georgia', serif;
    --font-mono: 'ui-monospace', 'Cascadia Code', 'Source Code Pro', Menlo, Monaco, Consolas, monospace;

    /* ACCESSIBILITY-FIRST DARK PALETTE (Eye-Strain Optimized) */
    --primary-bg: #0f172a;          
    --secondary-bg: #1e293b;        
    --text-primary: #f8fafc;        
    --text-secondary: #cbd5e1;        
    
    /* COLORBLIND-UNIVERSAL ACCENTS (The "Blue/Amber" Spectrum) 
    Blue and Orange/Amber are the most distinguishable colors across all vision types.
    */
    /* COLORBLIND-UNIVERSAL ACCENTS */
    --accent-blue: #38bdf8;         
    --accent-teal: #2dd4bf;         
    --accent-amber: #fbbf24;        
    --accent-red: #fb7185; /* Slightly softer red for dark mode */
    
    /* transitions */
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

[data-theme="light"] {
    /* WARM STONE LIGHT THEME - Reduces "Paper White" Glare */
    --primary-bg: #fdfdfc;          /* Slightly warm to soothe eyes */
    --secondary-bg: #f1f5f9;        
    --accent-bg: #e2e8f0;           
    --card-bg: #ffffff;             
    
    --text-primary: #0f172a;        
    --text-secondary: #334155;      
    --text-muted: #64748b;          
    --text-accent: #0284c7;         
    
    --accent-blue: #0284c7;
    --accent-teal: #0d9488;
    --accent-amber: #9a3412;        /* Darker amber for light mode legibility */
    --accent-purple: #7e22ce;
    --accent-red: #b91c1c;
}


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

html {
    scroll-behavior: smooth;
    /* Base font size - allows user browser overrides to work */
    font-size: 16px; 
}

body {
    font-family: var(--font-sans);
    font-size: 1.05rem; /* Slightly larger for readability */
    background: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.75; /* Increased for better tracking across lines */
    letter-spacing: 0.015em;
    overflow-x: hidden;
    /* OS-specific font smoothing */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

p {
    max-width: 70ch; /* The optimal 50-75 characters per line */
}

/* Global Link Styling */
a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-blue);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Enhanced focus indicators - highly visible */
*:focus {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* FOCUS STATES - Essential for Keyboard Users
   Using a high-contrast double-ring for maximum visibility.
*/
*:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid var(--accent-blue);
    outline-offset: 3px;
    box-shadow: var(--shadow-focus);
}

/* Visual feedback for interactive elements */
button, a, [role="button"] {
    position: relative;
}

button::before,
a::before,
[role="button"]::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid transparent;
    border-radius: inherit;
    pointer-events: none;
    transition: border-color var(--transition-fast);
}

button:hover::before,
a:hover::before,
[role="button"]:hover::before {
    border-color: var(--glass-border);
}

/* Reduced motion support */
/* ACCESSIBILITY: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
}

/* Layout container with fluid padding */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

:root {
    --network-node-color: rgba(255, 193, 7, .8);
    --network-line-color: rgba(255, 193, 7, .4);
}

[data-theme="light"] {
    --network-node-color: rgba(59, 16, 134, .8);
    --network-line-color: rgba(59, 16, 134, .35);
}


/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --glass-border: rgba(255, 255, 255, 0.5);
        --glass-bg: rgba(0, 0, 0, 0.95);
    }

    body {
        line-height: 1.8;
        letter-spacing: 0.03em;
    }

    [data-theme="light"] {
        --text-primary: #000000;
        --text-secondary: #000000;
        --glass-border: rgba(0, 0, 0, 0.5);
        --glass-bg: rgba(255, 255, 255, 0.95);
    }

    *:focus-visible {
        outline: 4px solid yellow;
        outline-offset: 4px;
    }
}

/* Layout & Structure */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

/* Animated Network Background - Positioned behind hero content */
#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
    pointer-events: none;
    will-change: transform;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

[data-theme="light"] #networkCanvas {
    opacity: 0.9;
}

@media (max-width: 768px) {
    #networkCanvas {
        opacity: 0.5;
    }
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1.2rem 0;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 3rem);
}

.logo {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 800;
    font-family: var(--font-serif);
    font-size-adjust: 0.5;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all var(--transition-smooth);
}

.logo:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
    transition: all var(--transition-smooth);
    font-size: 0.95rem;
    padding: 0.7rem 1.2rem;
    border-radius: var(--radius-lg);
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-blue);
    background: var(--glass-bg-light);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.7rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-size: 1.3rem;
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.7rem;
    border: none;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    min-width: 48px;
    min-height: 48px;
}

.hamburger {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-smooth);
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-bg);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--accent-blue);
}

/* Hero Section */
main {
    margin-top: 90px;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(3rem, 8vw, 6rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    font-family: var(--font-serif);
    font-size-adjust: 0.5;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: normal;
    color: var(--text-primary);
}

.hero-text .subtitle {
    font-size: clamp(1.2rem, 3.5vw, 1.8rem);
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.hero-text .description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.profile-container {
    position: relative;
    width: clamp(280px, 40vw, 450px);
    height: clamp(280px, 40vw, 450px);
    cursor: pointer;
    perspective: 1500px;
    margin: 0 auto;
}

.profile-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.profile-container.flipped .profile-flip {
    transform: rotateY(180deg);
}

.profile-front, .profile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.profile-back {
    transform: rotateY(180deg);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

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

.cv-preview {
    text-align: center;
    color: var(--text-primary);
}

.cv-preview h3 {
    color: var(--accent-blue);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cv-preview-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-height: 150px;
    overflow-y: auto;
}

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

.contact-link {
    padding: 0.9rem 1.6rem;
    background: var(--glass-bg);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 2px solid var(--glass-border);
    transition: all var(--transition-smooth);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    box-shadow: var(--shadow-sm);
}

.contact-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    color: white;
}

.contact-link i {
    font-size: 1.1em;
}

/* Sections */
.section {
    padding: clamp(4rem, 10vw, 8rem) 0;
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

@media (max-width: 768px) {
    header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    font-family: var(--font-serif);
    font-size-adjust: 0.5;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: normal;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

.academic-services {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.2rem 2rem;
    background: var(--glass-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--glass-border);
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.academic-services strong {
    color: var(--accent-teal);
    font-weight: 700;
}

.academic-services a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-smooth);
}

.academic-services a:hover {
    border-bottom-color: var(--accent-blue);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 2px solid var(--glass-border-subtle);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    will-change: transform;
    contain: layout style paint;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent-blue);
}

.card.research-card::before {
    background: var(--accent-blue);
}

.card.publication-card::before {
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.card.project-card::before {
    background: repeating-linear-gradient(90deg, var(--accent-amber), var(--accent-amber) 15px, var(--accent-teal) 15px, var(--accent-teal) 30px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-blue);
}

.card h3 {
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-serif);
    line-height: 1.3;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.card-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-meta i {
    color: var(--accent-blue);
}

/* Tags & Badges */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.tag {
    background: var(--glass-bg-light);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    border: 2px solid var(--glass-border-subtle);
    transition: all var(--transition-smooth);
}

.tag:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.publication-metrics {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.metric {
    background: var(--glass-bg-light);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--glass-border-subtle);
}

.metric i {
    color: var(--accent-teal);
    font-size: 1.1em;
}

/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-blue);
    background: transparent;
    color: var(--accent-blue);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn i {
    font-size: 1em;
}

.cv-download-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-size: 1rem;
    min-height: 44px;
    box-shadow: var(--shadow-sm);
}

.cv-download-btn:hover {
    background: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.citation-tools {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--glass-border-subtle);
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.citation-btn {
    background: var(--glass-bg-light);
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 40px;
}

.citation-btn:hover {
    background: var(--accent-purple);
    color: white;
    transform: translateY(-2px);
}

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

.skill-item {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--glass-border-subtle);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.skill-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-blue);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--accent-blue);
    transition: all var(--transition-smooth);
}

.skill-item:hover .skill-icon {
    transform: scale(1.15);
    color: var(--accent-teal);
}

.skill-name {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.skill-level {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background: var(--accent-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    position: relative;
}

/* CV Modal */
.cv-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.cv-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cv-content {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 3rem;
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border: 2px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    margin: 1rem;
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-blue);
    flex-wrap: wrap;
    gap: 1rem;
}

.cv-title {
    font-size: 2.2rem;
    font-weight: 800;
    font-family: var(--font-serif);
    font-size-adjust: 0.5;
    color: var(--text-primary);
    letter-spacing: normal;
}

.cv-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cv-close {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    font-size: 1.8rem;
    color: var(--text-primary);
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-smooth);
}

.cv-close:hover {
    color: var(--accent-red);
    border-color: var(--accent-red);
    transform: scale(1.1);
}

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

.cv-section h3 {
    color: var(--accent-blue);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 0.8rem;
    font-weight: 700;
}

.cv-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-blue);
    transition: transform var(--transition-smooth);
}

.cv-item:hover {
    transform: translateX(5px);
}

.cv-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.cv-item .date {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.cv-item .location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.cv-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--secondary-bg);
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 2px solid var(--glass-border);
    margin-top: 4rem;
}

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

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

.social-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    border: 2px solid var(--glass-border);
    transition: all var(--transition-smooth);
    font-size: 1.4rem;
}

.social-link:hover {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

footer p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-image {
        order: -1;
    }
    .hero-text .description {
        max-width: none;
    }
    .contact-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-smooth);
        border-top: 1px solid var(--glass-border);
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
    }
    .nav-links.mobile-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a {
        width: 100%;
        padding: 1.2rem;
        border-radius: 0;
        justify-content: flex-start;
        padding-left: 2rem;
    }
    .cv-content {
        padding: 2rem;
    }
    .academic-services {
        display: block;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 1.5rem;
    }
    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    header, footer, .theme-toggle, .mobile-menu-toggle, #networkCanvas, .scroll-progress {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
    .card {
        page-break-inside: avoid;
        border: 1px solid #000;
    }
}