/* =======================================================
   PROFESSIONAL CV WEBSITE - ARTISTIC MASTERPIECE
   Andrei Hodorog, Ph. D - Academic & Research Portfolio
======================================================= */

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

:root {
    /* Primary Colors */
    --primary-color: #1a2332;
    --secondary-color: #DD9933;
    --accent-color: #A52F38;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --purple-color: #A52F38;

    /* Text Colors */
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Background Colors */
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --card-bg: #ffffff;

    /* Shadow System */
    --shadow-sm: 0 0.0625rem 0.125rem 0 rgb(0 0 0 / 0.05);
    --shadow: 0 0.0625rem 0.1875rem 0 rgb(0 0 0 / 0.1), 0 0.0625rem 0.125rem -0.0625rem rgb(0 0 0 / 0.1);
    --shadow-md: 0 0.25rem 0.375rem -0.0625rem rgb(0 0 0 / 0.1), 0 0.125rem 0.25rem -0.125rem rgb(0 0 0 / 0.1);
    --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgb(0 0 0 / 0.1), 0 0.25rem 0.375rem -0.25rem rgb(0 0 0 / 0.1);
    --shadow-xl: 0 1.25rem 1.5625rem -0.3125rem rgb(0 0 0 / 0.1), 0 0.5rem 0.625rem -0.375rem rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 1.5625rem 3.125rem -0.75rem rgb(0 0 0 / 0.25);

    /* Gradient System */
    --gradient-primary: linear-gradient(135deg, #DD9933 0%, #A52F38 100%);
    --gradient-secondary: linear-gradient(135deg, #DD9933 0%, #A52F38 100%);
    --gradient-success: linear-gradient(135deg, #DD9933 0%, #A52F38 100%);
    --gradient-warning: linear-gradient(135deg, #DD9933 0%, #A52F38 100%);
    --gradient-purple: linear-gradient(135deg, #DD9933 0%, #A52F38 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing & Layout */
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #e2e8f0;
    --secondary-color: #E5A855;
    --accent-color: #D85A65;
    --text-color: #f1f5f9;
    --text-light: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --card-bg: #1e293b;
    --shadow-sm: 0 0.0625rem 0.125rem 0 rgb(0 0 0 / 0.2);
    --shadow: 0 0.0625rem 0.1875rem 0 rgb(0 0 0 / 0.3), 0 0.0625rem 0.125rem -0.0625rem rgb(0 0 0 / 0.3);
    --shadow-md: 0 0.25rem 0.375rem -0.0625rem rgb(0 0 0 / 0.3), 0 0.125rem 0.25rem -0.125rem rgb(0 0 0 / 0.3);
    --shadow-lg: 0 0.625rem 0.9375rem -0.1875rem rgb(0 0 0 / 0.3), 0 0.25rem 0.375rem -0.25rem rgb(0 0 0 / 0.3);
    --shadow-xl: 0 1.25rem 1.5625rem -0.3125rem rgb(0 0 0 / 0.3), 0 0.5rem 0.625rem -0.375rem rgb(0 0 0 / 0.3);
    --shadow-2xl: 0 1.5625rem 3.125rem -0.75rem rgb(0 0 0 / 0.4);
}

/* =====================================================
   BASE STYLES
===================================================== */

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.25rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

/* =====================================================
   LOADING SCREEN
===================================================== */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader {
    width: 3.75rem;
    height: 3.75rem;
    border: 0.1875rem solid var(--bg-tertiary);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

/* =====================================================
   PROGRESS BAR
===================================================== */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0.1875rem;
    background: var(--gradient-primary);
    z-index: var(--z-fixed);
    transition: width 0.3s ease;
}

/* =====================================================
   HEADER STYLES
===================================================== */

header {
    background: linear-gradient(135deg, #8B5A2B 0%, #DD9933 50%, #A52F38 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-3.75rem, -3.75rem); }
}

.header-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.profile-section {
    position: relative;
    z-index: 1;
}

.profile-img-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.875rem;
}

.profile-img {
    width: 12.5rem;
    height: 12.5rem;
    border-radius: 50%;
    border: 0.3125rem solid white;
    box-shadow: 0 0 2.5rem rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.profile-img-wrapper::before {
    content: '';
    position: absolute;
    top: -0.625rem;
    left: -0.625rem;
    right: -0.625rem;
    bottom: -0.625rem;
    background: linear-gradient(45deg, #DD9933, #A52F38, #DD9933, #A52F38);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s ease;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-img-wrapper:hover::before {
    opacity: 0.7;
}

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

h1 {
    margin-bottom: 0.9375rem;
    text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.2);
    font-weight: 900;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.25rem;
    font-weight: 300;
}

.quote {
    font-style: italic;
    text-align: center;
    padding: 1.25rem;
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin: 1.875rem 0;
    position: relative;
}

.quote::before,
.quote::after {
    content: '"';
    font-size: 3rem;
    opacity: 0.3;
    position: absolute;
}

.quote::before {
    top: -0.625rem;
    left: -1.25rem;
}

.quote::after {
    bottom: -1.875rem;
    right: -1.25rem;
}

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

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 1.875rem;
    transition: var(--transition);
    backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid rgba(255,255,255,0.2);
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 2.75rem;
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-0.1875rem);
    box-shadow: 0 0.625rem 1.25rem rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

.social-link i {
    font-size: 1.2rem;
}

/* =====================================================
   BUTTON STYLES - PRIMARY & SECONDARY
===================================================== */

.btn,
button,
a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: var(--transition-slow);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 3.25rem;
    letter-spacing: 0.5px;
}

/* PRIMARY BUTTON */
.btn-primary,
.btn-primary-modern,
button.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 16px rgba(221, 153, 51, 0.25),
        0 4px 8px rgba(221, 153, 51, 0.15);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
    min-width: 220px;
    animation: pulse-brand 3s ease-in-out infinite;
}

.btn-primary:hover,
.btn-primary-modern:hover,
button.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 12px 24px rgba(221, 153, 51, 0.35),
        0 6px 12px rgba(221, 153, 51, 0.25);
    animation: none;
}

.btn-primary:active,
.btn-primary-modern:active,
button.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* SECONDARY BUTTON - OUTLINE */
.btn-secondary,
.btn-outline-modern,
button.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(0.625rem);
    transition: var(--transition-slow);
    font-size: 1.05rem;
    padding: 1.125rem 2.5rem;
}

.btn-secondary:hover,
.btn-outline-modern:hover,
button.btn-secondary:hover {
    background: rgba(221, 153, 51, 0.15);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(221, 153, 51, 0.2);
}

/* KEYFRAMES FOR BUTTON ANIMATIONS */
@keyframes pulse-brand {
    0%, 100% {
        box-shadow:
            0 8px 16px rgba(221, 153, 51, 0.25),
            0 4px 8px rgba(221, 153, 51, 0.15);
    }
    50% {
        box-shadow:
            0 10px 20px rgba(221, 153, 51, 0.35),
            0 6px 12px rgba(221, 153, 51, 0.25);
    }
}

/* RESPONSIVE BUTTON SIZES */
@media (min-width: 768px) {
    .btn-primary,
    .btn-primary-modern {
        padding: 1.4rem 3.5rem;
        font-size: 1.15rem;
        min-width: 250px;
    }

    .btn-secondary,
    .btn-outline-modern {
        padding: 1.25rem 3rem;
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    .btn-primary,
    .btn-primary-modern {
        padding: 1.5rem 4rem;
        font-size: 1.2rem;
        min-width: 280px;
    }

    .btn-secondary,
    .btn-outline-modern {
        padding: 1.3rem 3.5rem;
        font-size: 1.15rem;
    }
}

/* DARK MODE BUTTON ADJUSTMENTS */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-primary-modern {
    box-shadow:
        0 8px 16px rgba(229, 168, 85, 0.25),
        0 4px 8px rgba(229, 168, 85, 0.15);
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-primary-modern:hover {
    box-shadow:
        0 12px 24px rgba(229, 168, 85, 0.35),
        0 6px 12px rgba(229, 168, 85, 0.25);
}

/* BUTTON GROUP STYLING */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-group .btn {
    flex: 0 1 auto;
}

@media (max-width: 576px) {
    .btn,
    button,
    a.btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
        min-height: 3rem;
    }

    .btn-primary,
    .btn-primary-modern {
        padding: 1rem 2.25rem;
        min-width: auto;
    }

    .btn-group {
        gap: 0.75rem;
    }

    .btn-group .btn {
        flex: 1 1 calc(50% - 0.375rem);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.875rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    padding: 0.75rem;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255,255,255,0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-0.625rem); }
    60% { transform: translateX(-50%) translateY(-0.3125rem); }
}

/* =====================================================
   NAVIGATION
===================================================== */

nav {
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: var(--transition);
}

nav.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(0.625rem);
}

[data-theme="dark"] nav.scrolled {
    background: rgba(30,41,59,0.95);
}

/* Navigation styles */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

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

#navMenu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

#navMenu li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(221, 153, 51, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--secondary-color);
    background: rgba(221, 153, 51, 0.15);
}

.nav-link i {
    font-size: 1rem;
    flex-shrink: 0;
}

.nav-text {
    font-size: 0.85rem;
    font-weight: 500;
}

.theme-toggle-item {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--secondary-color);
    background: rgba(221, 153, 51, 0.1);
    transform: scale(1.1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
    padding: 0.5rem;
}

/* Responsive navigation */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    #navMenu {
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .nav-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 1024px) {
    .nav-text {
        display: none;
    }
    
    .nav-link {
        padding: 0.75rem;
        min-width: 3rem;
        justify-content: center;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    #navMenu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100vh);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    #navMenu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    #navMenu li {
        width: 100%;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        justify-content: flex-start;
        gap: 1rem;
        min-width: auto;
        width: 100%;
        border-radius: 0;
    }
    
    .nav-text {
        display: block;
        font-size: 0.9rem;
    }
    
    .theme-toggle-item {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 1rem;
        margin-top: 1rem;
        display: flex;
        justify-content: center;
    }
}

/* =====================================================
   SECTION STYLES
===================================================== */

section {
    padding: 6.25rem 5%;
    position: relative;
}

section:nth-child(even) {
    background: var(--bg-secondary);
}

.container {
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

main {
    width: 100%;
}

main > section {
    padding: 6.25rem 5%;
}

h2 {
    margin-bottom: 3.125rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    left: 0;
    width: 3.75rem;
    height: 0.25rem;
    background: var(--gradient-primary);
    border-radius: 0.125rem;
}

/* =====================================================
   CARD SYSTEM
===================================================== */

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 1.875rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 0.0625rem solid var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(221,153,51,0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-color);
}

/* Premium Cards */
.premium-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
    border: 0.125rem solid var(--secondary-color);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background: var(--gradient-primary);
}

.premium-header {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.premium-header h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.gold-trophy {
    color: #ffd700;
    text-shadow: 0 0 0.625rem rgba(255, 215, 0, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 0.625rem rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 0 1.25rem rgba(255, 215, 0, 0.8); }
}

.achievement-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* =====================================================
   ENHANCED CONTACT & LINKEDIN SECTION
===================================================== */

.contact-linkedin-wrapper {
    margin-top: 3.125rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg-secondary) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 0.0625rem solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-linkedin-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background: var(--gradient-primary);
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-subtitle i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.contact-section,
.linkedin-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.875rem;
    box-shadow: var(--shadow);
    border: 0.0625rem solid var(--bg-tertiary);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 0.0625rem solid var(--bg-tertiary);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0.25rem;
    height: 100%;
    background: var(--secondary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-0.1875rem);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.contact-item:hover::before {
    transform: scaleY(1);
}

.contact-icon {
    width: 3.125rem;
    height: 3.125rem;
    background: var(--gradient-primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.3rem;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
}

.contact-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-link::after {
    content: '';
    position: absolute;
    bottom: -0.125rem;
    left: 0;
    width: 0;
    height: 0.125rem;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.contact-link:hover::after {
    width: 100%;
}

/* LinkedIn Section */
.linkedin-embed-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 17.5rem;
    position: relative;
}

.linkedin-embed-container .LI-profile-badge {
    transform: scale(1);
    transition: var(--transition);
    z-index: 2;
    position: relative;
}

.linkedin-embed-container:hover .LI-profile-badge {
    transform: scale(1.02);
}

.linkedin-embed-container::before {
    content: 'Loading LinkedIn Profile...';
    position: absolute;
    width: 18.75rem;
    height: 17.5rem;
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.75rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================================
   ENHANCED ADHD SECTION
===================================================== */

.adhd-section {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE9D1 100%);
    padding: 3.125rem;
    border-radius: var(--border-radius-lg);
    margin: 2.5rem 0;
    border: 0.125rem solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .adhd-section {
    background: linear-gradient(135deg, rgba(221,153,51,0.1) 0%, rgba(165,47,56,0.1) 100%);
}

.adhd-section::before {
    content: '🧠';
    position: absolute;
    top: -1.875rem;
    right: -1.875rem;
    font-size: 12.5rem;
    opacity: 0.05;
    transform: rotate(-15deg);
}

.adhd-section-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.adhd-section-title i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.adhd-component-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 0.0625rem solid var(--bg-tertiary);
    height: 100%;
}

.adhd-component-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-2xl);
}

.adhd-component-card .card-header {
    padding: 1.5rem 1.5rem 0;
    background: none;
    border: none;
}

.adhd-component-card .card-header h4 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.adhd-component-card .card-header h4 i {
    font-size: 1.5rem;
}

.awareness-card .card-header h4 i { color: #DD9933; }
.diagnosis-card .card-header h4 i { color: #DD9933; }
.medication-card .card-header h4 i { color: #A52F38; }
.education-card .card-header h4 i { color: #DD9933; }

.adhd-component-card .card-body {
    padding: 1.5rem;
}

/* Enhanced Link Previews */
.enhanced-link-preview {
    margin-bottom: 1rem;
}

.enhanced-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    border: 0.0625rem solid var(--bg-tertiary);
    position: relative;
    overflow: hidden;
}

.enhanced-link:hover {
    transform: translateX(0.3125rem);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
    text-decoration: none;
    color: var(--text-color);
}

.enhanced-link.small {
    padding: 0.75rem;
    gap: 0.5rem;
}

.link-favicon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 0.25rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
}

.enhanced-link.small .link-favicon {
    width: 1.5rem;
    height: 1.5rem;
}

.link-favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content strong {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.link-content p,
.link-content small {
    margin: 0;
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
}

.link-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: var(--transition);
}

.enhanced-link:hover .link-icon {
    color: var(--secondary-color);
    transform: translateX(0.125rem);
}

/* Additional Features */
.additional-features {
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    border-left: 0.25rem solid var(--secondary-color);
}

.feature-item i {
    color: var(--secondary-color);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.feature-item span {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Partnership Cards */
.partnership-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 0.0625rem solid var(--bg-tertiary);
    height: 100%;
}

.partnership-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-2xl);
}

.autism-card {
    border-top: 0.25rem solid #DD9933;
}

.medical-card {
    border-top: 0.25rem solid #A52F38;
}

.partnership-header {
    padding: 1.5rem 1.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.partnership-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.autism-card .partnership-icon {
    background: linear-gradient(135deg, #FFF4E6 0%, #FFE9D1 100%);
    color: #DD9933;
}

.medical-card .partnership-icon {
    background: linear-gradient(135deg, #F4E8EB 0%, #EED1D8 100%);
    color: #A52F38;
}

.partnership-header h4 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.partnership-body {
    padding: 0 1.5rem 1.5rem;
}

.partnership-description {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.partnership-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* =====================================================
   AWARDS SECTION
===================================================== */

.awards-section {
    background: linear-gradient(135deg, #fefbf4 0%, #fff7ed 100%);
}

[data-theme="dark"] .awards-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.award-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition-slow);
    border: 0.0625rem solid var(--bg-tertiary);
    position: relative;
    height: 100%;
    min-height: 18.75rem;
}

.award-card:hover {
    transform: translateY(-0.5rem) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.award-ribbon {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 2.5rem;
    transform: rotate(15deg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.featured-award .award-ribbon {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #1a202c;
    animation: shimmer 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    from { box-shadow: 0 0 0.625rem rgba(255, 215, 0, 0.5); }
    to { box-shadow: 0 0 1.25rem rgba(255, 215, 0, 0.8); }
}

.academic-award .award-ribbon { background: var(--gradient-secondary); }
.university-award .award-ribbon { background: var(--gradient-success); }
.nomination-award .award-ribbon { background: var(--gradient-warning); }
.competition-award .award-ribbon { background: var(--gradient-purple); }
.international-award .award-ribbon { background: linear-gradient(135deg, #DD9933 0%, #A52F38 100%); }

.award-content {
    padding: 2rem 1.5rem 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.award-year {
    display: inline-block;
    background: var(--bg-secondary);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.award-content h4 {
    color: var(--primary-color);
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.award-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: auto;
    flex: 1;
}

.award-category {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 0.0625rem solid var(--bg-tertiary);
}

/* =====================================================
   TIMELINE STYLES
===================================================== */

.timeline {
    position: relative;
    padding-left: 3.125rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    top: 0;
    bottom: 0;
    width: 0.125rem;
    background: var(--gradient-primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.125rem;
    opacity: 0;
    transform: translateX(-1.25rem);
    animation: fadeInLeft 0.6s ease forwards;
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.875rem;
    top: 0.5rem;
    width: 0.75rem;
    height: 0.75rem;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0.25rem var(--bg-color), 0 0 0 0.375rem var(--secondary-color);
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover::before {
    transform: scale(1.5);
    background: var(--accent-color);
}

.date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.date i {
    font-size: 0.9rem;
}

.position {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.company {
    color: var(--text-light);
    margin-bottom: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.company::before {
    content: '🏢';
    font-size: 1.2rem;
}

/* =====================================================
   SKILLS & PUBLICATIONS
===================================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr));
    gap: 1.875rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 1.875rem;
    border-radius: var(--border-radius);
    border: 0.125rem solid var(--bg-tertiary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.25rem;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover::before {
    transform: translateX(0);
}

.skill-category:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.skill-category h3 i {
    color: var(--secondary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 0.9375rem;
}

.skill-tag {
    padding: 0.3125rem 0.9375rem;
    background: var(--bg-tertiary);
    border-radius: 1.25rem;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 500;
}

.skill-tag:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-0.125rem);
}

/* Publications */
.publication {
    margin-bottom: 1.875rem;
    padding: 1.875rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border-left: 0.25rem solid var(--secondary-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.publication::before {
    content: '📄';
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 2rem;
    opacity: 0.1;
}

.publication:hover {
    transform: translateX(0.625rem);
    box-shadow: var(--shadow-lg);
    border-left-width: 0.5rem;
}

.publication-title {
    font-weight: 600;
    margin-bottom: 0.625rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    line-height: 1.4;
}

.publication-details {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.9375rem;
    font-style: italic;
}

.publication-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    transition: var(--transition);
    padding: 0.3125rem 0.9375rem;
    background: var(--bg-tertiary);
    border-radius: 1.25rem;
    font-size: 0.9rem;
}

.publication-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(0.3125rem);
    text-decoration: none;
}

.publication-link i {
    font-size: 0.9rem;
}

/* =====================================================
   MEDIA GALLERY
===================================================== */

.media-filters {
    display: flex;
    justify-content: center;
    gap: 0.9375rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5625rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 1.5625rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9rem;
    min-height: 2.75rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-0.125rem);
    box-shadow: var(--shadow-md);
}

/* Media placeholder styles */
.media-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.media-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.media-placeholder:hover::before {
    left: 100%;
}

.placeholder-content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.9;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: block;
}

/* Specific placeholder themes */
.tv-placeholder {
    background: linear-gradient(135deg, #8B5A2B 0%, #DD9933 100%);
}

.medical-placeholder {
    background: linear-gradient(135deg, #DD9933 0%, #A52F38 100%);
}

.podcast-placeholder {
    background: linear-gradient(135deg, #A52F38 0%, #DD9933 100%);
}

.discussion-placeholder {
    background: linear-gradient(135deg, #DD9933 0%, #A52F38 100%);
}

.article-placeholder {
    background: linear-gradient(135deg, #8B5A2B 0%, #DD9933 100%);
}

.vice-placeholder {
    background: linear-gradient(135deg, #A52F38 0%, #DD9933 100%);
}

/* Enhanced media gallery */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.media-item {
    background: var(--bg-secondary);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.media-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-item:hover .media-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.media-item:hover .play-button {
    background: var(--primary-color);
    color: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-content {
    padding: 1.5rem;
}

.media-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.media-source {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-source i {
    color: var(--primary-color);
}

/* =====================================================
   MODAL SYSTEM
===================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: var(--z-modal);
    padding: 1.25rem;
    overflow-y: auto;
    backdrop-filter: blur(0.625rem);
}

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

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

.modal-content {
    max-width: 56.25rem;
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(3.125rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 1.875rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1;
    background: var(--card-bg);
    width: 2.8125rem;
    height: 2.8125rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   FOOTER
===================================================== */

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3.75rem 5%;
    margin-top: 6.25rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.0625rem;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

footer a {
    color: #93bbfc;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* =====================================================
   UTILITY COMPONENTS
===================================================== */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 1.875rem;
    right: 1.875rem;
    width: 3.125rem;
    height: 3.125rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 1.5625rem;
    font-size: 0.85rem;
    margin: 0.3125rem 0.3125rem 0.3125rem 0;
    font-weight: 600;
    transition: var(--transition);
}

.badge:hover {
    transform: translateY(-0.125rem) scale(1.05);
    box-shadow: var(--shadow-md);
}

.badge i {
    font-size: 0.9rem;
}

/* Skip to Content */
.skip-to-content {
    position: absolute;
    top: -2.5rem;
    left: 0;
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    gap: 1.875rem;
    margin: 2.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.875rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.625rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

/* =====================================================
   ANIMATIONS
===================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(1.875rem);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-1.875rem);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(1.875rem);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

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

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 87.5rem;
    }
}

/* Medium screens */
@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card-bg);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    nav ul.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-0.625rem);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    nav a {
        padding: 0.9375rem 1.25rem;
        border-bottom: 0.0625rem solid var(--bg-tertiary);
        width: 100%;
    }
    
    nav a::after {
        display: none;
    }
    
    .theme-toggle {
        position: absolute;
        right: 3.75rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .media-gallery {
        grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    }
}

/* Small screens */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    section {
        padding: 3.75rem 0;
    }
    
    .card {
        padding: 1.875rem;
    }
    
    .timeline {
        padding-left: 1.875rem;
    }
    
    .timeline::before {
        left: 0.625rem;
    }
    
    .timeline-item::before {
        left: -1.25rem;
    }
    
    .adhd-section {
        padding: 1.875rem;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-link {
        padding: 0.625rem 1.125rem;
        font-size: 0.9rem;
    }
    
    .contact-linkedin-wrapper {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1rem;
    }
    
    .contact-icon {
        width: 2.8125rem;
        height: 2.8125rem;
        margin-right: 0.9375rem;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .linkedin-embed-container {
        min-height: 15.625rem;
    }
    
    .linkedin-embed-container::before {
        width: 15.625rem;
        height: 15.625rem;
    }
    
    .media-gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .award-card {
        min-height: auto;
    }
    
    .award-ribbon {
        right: -1.5rem;
        padding: 0.375rem 2rem;
        font-size: 0.75rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    header {
        padding: 3.75rem 0;
    }
    
    .profile-img {
        width: 10rem;
        height: 10rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .contact-linkedin-wrapper {
        padding: 1.25rem;
    }
    
    .partnership-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .partnership-icon {
        align-self: center;
    }
}

/* =====================================================
   ACCESSIBILITY & FOCUS STYLES
===================================================== */

*:focus {
    outline: 0.125rem solid var(--secondary-color);
    outline-offset: 0.125rem;
}

.contact-link:focus,
.linkedin-embed-container:focus,
.enhanced-link:focus {
    outline: 0.125rem solid var(--secondary-color);
    outline-offset: 0.125rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 0.625rem;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 0.3125rem;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* =====================================================
   PRINT STYLES
===================================================== */

@media print {
    body { 
        background: white !important; 
        color: black !important;
        font-size: 12pt;
    }
    
    nav, .modal, .back-to-top, .theme-toggle, .scroll-indicator { 
        display: none !important; 
    }
    
    header { 
        background: none !important; 
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .social-link { 
        background: none !important;
        border: 1px solid #ddd !important; 
        color: black !important;
    }
    
    section { 
        page-break-inside: avoid; 
        padding: 1rem 0;
    }
    
    .card { 
        box-shadow: none; 
        border: 1px solid #ddd; 
        break-inside: avoid;
    }
    
    .award-card,
    .adhd-component-card,
    .partnership-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* =====================================================
   HIGH CONTRAST MODE
===================================================== */

@media (prefers-contrast: high) {
    :root {
        --bg-tertiary: #e5e5e5;
        --text-muted: #4a4a4a;
        --shadow: 0 2px 4px rgba(0,0,0,0.3);
    }
    
    .card,
    .award-card,
    .contact-item {
        border: 2px solid var(--text-color);
    }
}

/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .particle {
        animation: none;
    }
}

/* Ripple effect for interactive elements */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Error placeholder styling */
.error-placeholder {
    background: linear-gradient(135deg, #ff7675 0%, #fd79a8 100%) !important;
}

/* Enhanced modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-primary);
    margin: 2% auto;
    padding: 0;
    border-radius: 1rem;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
}

.modal-body h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    border-radius: 0.5rem;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Enhanced back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(221, 153, 51, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    transform: translateY(0);
    opacity: 1;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(221, 153, 51, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
}



/* Enhanced media item animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.media-item {
    animation: fadeInUp 0.6s ease forwards;
}

/* Media filter animations */
.media-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2rem;
    height: 2rem;
    margin: -1rem 0 0 -1rem;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility improvements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 6px;
}

/* Focus indicators */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .nav-container,
    .back-to-top,
    .modal,
    .theme-toggle {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    .card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}