:root {
    --navy-deep: #0a1628;
    --navy-mid: #1a2942;
    --navy-light: #2d4263;
    --cyan-bright: #00d9ff;
    --cyan-soft: #4de8ff;
    --coral: #ff6b6b;
    --cream: #fef9f3;
    --gray-light: #e8eef5;
    --gray-mid: #8b9cb5;
}

/* Light mode overrides */
.light-mode {
    --navy-deep: #f0f4f8;
    --navy-mid: #e2e8f0;
    --navy-light: #cbd5e1;
    --cyan-bright: #0077b6;
    --cyan-soft: #0096c7;
    --cream: #1a202c;
    --gray-light: #2d3748;
    --gray-mid: #4a5568;
}

.light-mode .bg-grid {
    background-image:
        linear-gradient(rgba(0, 119, 182, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 119, 182, 0.06) 1px, transparent 1px);
}

.light-mode .particle {
    background: rgba(0, 119, 182, 0.15);
}

.light-mode .main-nav {
    background: rgba(240, 244, 248, 0.95);
    border-bottom-color: rgba(0, 119, 182, 0.2);
}

.light-mode .competency-card,
.light-mode .cert-card,
.light-mode .award-card,
.light-mode .doc-card,
.light-mode .achievement-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 119, 182, 0.15);
}

.light-mode footer {
    background: var(--navy-mid);
    border-top-color: rgba(0, 119, 182, 0.2);
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.theme-toggle:hover {
    border-color: var(--cyan-bright);
    transform: scale(1.1);
}

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

body {
    font-family: 'Red Hat Display', sans-serif;
    background: var(--navy-deep);
    color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px; /* Space for fixed nav */
}

html {
    scroll-behavior: smooth;
}

/* Offset anchor targets below the fixed nav (native anchor navigation) */
[id] {
    scroll-margin-top: 95px;
}

/* Sticky Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

.nav-logo {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

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

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

/* Scrollspy: current section */
.nav-links a.active {
    color: var(--cyan-bright);
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--cyan-bright);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--coral) 100%);
    border: none;
    border-radius: 50%;
    color: var(--navy-deep);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5);
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 4rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-left {
    position: relative;
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 3/4;
    margin: 0 auto;
}

.photo-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--cyan-bright);
    border-radius: 2px;
    transform: rotate(-2deg);
    transition: transform 0.4s ease;
}

.photo-container:hover .photo-frame {
    transform: rotate(0deg);
}

.photo-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-mid);
    text-align: center;
    padding: 2rem;
    border-radius: 2px;
    overflow: hidden;
}

.photo-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 217, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

.photo-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    overflow: hidden;
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.hero-right {
    /* Container - no animation */
}

/* Staggered hero animations */
.eyebrow,
.hero-right h1,
.hero-tagline,
.hero-buttons,
.hero-stats {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.eyebrow {
    animation-delay: 0.2s;
}

.hero-right h1 {
    animation-delay: 0.4s;
}

.hero-tagline {
    animation-delay: 0.6s;
}

.hero-buttons {
    animation-delay: 0.8s;
}

.hero-stats {
    animation-delay: 1s;
}

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

.eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--cyan-bright);
    margin-bottom: 1rem;
    display: inline-block;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cyan-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-suffix {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--gray-mid);
    font-style: italic;
}

.hero-tagline {
    font-size: 1.3rem;
    color: var(--gray-light);
    margin: 1.5rem 0 2rem;
    max-width: 600px;
    line-height: 1.7;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

.stat {
    animation: floatGlow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.stat:nth-child(2) {
    animation-delay: 0.5s;
}

.stat:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes floatGlow {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 0px var(--cyan-bright));
    }
    50% {
        transform: translateY(-10px);
        filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.6));
    }
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    color: var(--cyan-bright);
    display: block;
    margin-bottom: 0.3rem;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Value Proposition Banner */
.value-banner {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-top: 2px solid var(--cyan-bright);
    border-bottom: 2px solid var(--coral);
    padding: 2rem 0;
    text-align: center;
}

.value-banner h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--cream);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.value-banner p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--cyan-soft);
    max-width: 900px;
    margin: 0 auto;
}

/* Why Me Section */
.why-me {
    padding: 8rem 0;
    background: var(--navy-deep);
    position: relative;
}

.why-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
}

.why-me-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.why-me-image {
    position: relative;
}

.why-me-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 3px solid var(--cyan-bright);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.why-me-text h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--cyan-bright);
    margin-bottom: 1.5rem;
}

.why-me-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.why-me-highlights {
    list-style: none;
    margin-top: 2rem;
}

.why-me-highlights li {
    padding: 1rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--gray-light);
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
}

.why-me-highlights li:last-child {
    border-bottom: none;
}

.why-me-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan-bright);
    font-weight: bold;
    font-size: 1.3rem;
}

@media (max-width: 968px) {
    .why-me-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* About Section */
.about {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
}

.section-header {
    max-width: 800px;
    margin-bottom: 4rem;
}

.section-header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 4rem;
}

.section-header-with-button .section-header {
    margin-bottom: 0;
    flex: 1;
}

.cv-download-side {
    flex-shrink: 0;
    align-self: center;
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    color: var(--cream);
}

.section-intro {
    font-size: 1.2rem;
    color: var(--gray-light);
    line-height: 1.8;
}

.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.competency-card {
    background: rgba(26, 41, 66, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.1);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.competency-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan-bright), var(--coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.competency-card:hover {
    border-color: var(--cyan-bright);
    transform: translateY(-5px);
    background: rgba(26, 41, 66, 0.9);
}

.competency-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyan-soft);
    margin-bottom: 1rem;
}

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

.competency-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-light);
    font-size: 0.95rem;
}

.competency-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--cyan-bright);
    font-weight: bold;
}

/* Experience Section */
.experience {
    padding: 8rem 0;
    background: var(--navy-deep);
}

.timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--cyan-bright), var(--coral));
}

.timeline-item {
    position: relative;
    padding-left: 4rem;
    margin-bottom: 4rem;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--cyan-bright);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--navy-deep), 0 0 0 6px var(--cyan-bright);
}

.timeline-content {
    background: rgba(26, 41, 66, 0.4);
    border-left: 3px solid var(--cyan-bright);
    padding: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(26, 41, 66, 0.7);
    transform: translateX(10px);
}

.job-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 0.5rem;
}

.job-meta {
    font-size: 0.95rem;
    color: var(--cyan-soft);
    margin-bottom: 1.5rem;
}

.job-highlights {
    list-style: none;
}

.job-highlights li {
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--gray-light);
    line-height: 1.6;
}

.job-highlights li::before {
    content: '●';
    position: absolute;
    left: 0;
    color: var(--coral);
}

/* Certifications Section */
.certifications {
    padding: 8rem 0;
    background: var(--navy-deep);
    position: relative;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.cert-card {
    background: rgba(26, 41, 66, 0.4);
    border: 2px solid var(--navy-light);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-bright), var(--coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.cert-card:hover {
    border-color: var(--cyan-bright);
    transform: translateY(-5px);
    background: rgba(26, 41, 66, 0.7);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.state-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.state-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.1);
}

.cert-card:hover .state-icon img {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.cert-state-name {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--cream);
    line-height: 1.2;
}

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

.cert-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-light);
    font-size: 1.05rem;
    line-height: 1.6;
}

.cert-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan-bright);
    font-weight: bold;
    font-size: 1.2rem;
}

.cert-category {
    font-weight: 600;
    color: var(--cyan-soft);
}

/* Awards & Recognition Section */
.awards {
    padding: 8rem 0;
    background: var(--navy-deep);
    position: relative;
}

.awards::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--coral), transparent);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.award-card {
    background: rgba(26, 41, 66, 0.4);
    border: 2px solid var(--navy-light);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--coral), var(--cyan-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.award-card:hover {
    border-color: var(--coral);
    transform: translateY(-10px);
    background: rgba(26, 41, 66, 0.8);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.award-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.award-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--coral);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.award-description {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.award-year {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--cyan-soft);
    font-size: 0.9rem;
}

/* Featured In Section */
.featured-in {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.6) 0%, rgba(0, 50, 80, 0.4) 50%, rgba(0, 30, 60, 0.6) 100%);
    border-top: 2px solid rgba(0, 217, 255, 0.3);
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
    box-shadow: inset 0 0 50px rgba(0, 217, 255, 0.1);
    position: relative;
}

.featured-in::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
}

.featured-in h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan-bright);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    position: relative;
    display: inline-block;
    width: 100%;
}

.featured-in h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
    box-shadow: 0 0 10px var(--cyan-bright);
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.media-logo {
    text-align: center;
    transition: all 0.4s ease;
}

.media-logo-link {
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
}

.media-logo-link p {
    transition: color 0.3s ease, text-shadow 0.3s ease;
    margin: 0;
    position: relative;
    display: inline-block;
}

.media-logo-link p::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--cyan-bright);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.media-logo-link:hover {
    transform: translateY(-2px);
}

.media-logo-link:hover p {
    color: var(--cyan-bright);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.4);
}

.media-logo-link:hover p::after {
    transform: scaleX(1);
}

.media-logo:hover {
    opacity: 1;
}

.media-logo p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-mid);
}

.media-logo-button {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-family: inherit;
}

/* Media Modal */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.media-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: var(--navy-mid);
    border: 2px solid var(--cyan-bright);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 107, 0.2);
    border: 2px solid var(--coral);
    border-radius: 50%;
    color: var(--coral);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-close:hover {
    background: var(--coral);
    color: var(--navy-deep);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem 5rem;
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
    text-align: center;
}

.modal-header h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: var(--cyan-bright);
    margin: 0;
}

.modal-body {
    flex: 1;
    padding: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.modal-body img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.modal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--cyan-bright);
    color: var(--navy-deep);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.modal-download-btn:hover {
    background: #00f0ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.modal-download-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 968px) {
    .modal-content {
        width: 95%;
        height: 90vh;
    }

    .modal-header {
        padding: 1.5rem 3rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Credibility Documentation Section */
.credibility-docs {
    padding: 8rem 0;
    background: var(--navy-deep);
    position: relative;
}

.credibility-docs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.doc-card {
    background: rgba(26, 41, 66, 0.4);
    border: 2px solid var(--navy-light);
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-bright), var(--coral));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.doc-card:hover {
    border-color: var(--cyan-bright);
    transform: translateY(-10px);
    background: rgba(26, 41, 66, 0.8);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.3);
}

.doc-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
}

.doc-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--cyan-bright);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.doc-description {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.doc-download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--coral) 100%);
    border: none;
    border-radius: 4px;
    color: var(--navy-deep);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.doc-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.doc-download svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.doc-download:hover svg {
    transform: translateY(2px);
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.carousel-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--cyan-bright);
    background: rgba(26, 41, 66, 0.6);
    color: var(--cyan-bright);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--cyan-bright);
    color: var(--navy-deep);
    transform: scale(1.1);
}

.carousel-pause {
    font-size: 1.1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border: none;
    padding: 0;
    border-radius: 50%;
    background: var(--navy-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--cyan-bright);
    transform: scale(1.3);
}

@media (max-width: 968px) {
    .carousel-slide {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .media-logos {
        gap: 2rem;
    }
}

/* Achievements Section */
.achievements {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    position: relative;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.achievement-card {
    background: rgba(10, 22, 40, 0.6);
    border: 2px solid var(--navy-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.achievement-card:hover::after {
    opacity: 1;
}

.achievement-card:hover {
    border-color: var(--cyan-bright);
    transform: scale(1.05);
}

.achievement-card-link {
    text-decoration: none;
    cursor: pointer;
}

.achievement-card-link:hover {
    border-color: var(--coral);
}

.achievement-card-link .achievement-value {
    color: var(--coral);
}

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

.achievement-value {
    font-family: 'DM Serif Display', serif;
    font-size: 2.2rem;
    color: var(--cyan-bright);
    margin-bottom: 0.5rem;
}

.achievement-label {
    color: var(--gray-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Signature Project Spotlight ===== */
.signature-project {
    padding: 8rem 0;
    background: linear-gradient(180deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
    position: relative;
    overflow: hidden;
}

.signature-project .section-header {
    margin-bottom: 4rem;
}

.signature-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--coral);
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.35);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

/* Three-stage arc */
.signature-arc {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-bottom: 4.5rem;
    flex-wrap: nowrap;
}

.arc-stage {
    flex: 1 1 0;
    max-width: 340px;
    background: rgba(10, 22, 40, 0.6);
    border: 2px solid var(--navy-light);
    border-radius: 12px;
    padding: 2.5rem 1.75rem;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.arc-stage:hover {
    transform: translateY(-8px);
    border-color: var(--cyan-bright);
    box-shadow: 0 18px 40px rgba(0, 217, 255, 0.15);
}

.arc-icon {
    font-size: 2.6rem;
    display: inline-block;
    margin-bottom: 0.75rem;
    animation: arcBob 3.5s ease-in-out infinite;
}

.arc-stage:nth-child(3) .arc-icon { animation-delay: 0.6s; }
.arc-stage:nth-child(5) .arc-icon { animation-delay: 1.2s; }

@keyframes arcBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.arc-year {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--coral);
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.arc-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: var(--cyan-bright);
    margin-bottom: 0.75rem;
}

.arc-text {
    font-size: 0.95rem;
    color: var(--gray-light);
    line-height: 1.6;
}

.arc-text em { color: var(--cream); font-style: italic; }
.arc-text strong { color: var(--cyan-soft); }

/* Animated connector between stages */
.arc-connector {
    flex: 0 0 60px;
    align-self: center;
    height: 4px;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(0, 217, 255, 0.12);
}

.arc-connector span {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
    transform: translateX(-100%);
    animation: connectorFlow 2.4s ease-in-out infinite;
}

.arc-connector:last-of-type span { animation-delay: 0.5s; }

@keyframes connectorFlow {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

/* Data panel: chart + headline */
.signature-data {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.signature-data + .signature-data {
    margin-top: 2.5rem;
}

.chart-panel {
    background: rgba(10, 22, 40, 0.6);
    border: 2px solid var(--navy-light);
    border-radius: 12px;
    padding: 2.5rem 2rem 2rem;
}

.chart-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--cream);
    text-align: center;
}

.chart-sub {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray-mid);
    margin-bottom: 2rem;
}

.bar-chart {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.chart-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.chart-group .bars {
    height: 260px;
    width: 100%;
    text-align: center;
    font-size: 0;
    white-space: nowrap;
    border-bottom: 2px solid var(--navy-light);
}

.chart-bar {
    display: inline-block;
    vertical-align: bottom;
    width: 26px;
    max-width: 40%;
    margin: 0 3px;
    height: var(--h);
    border-radius: 5px 5px 0 0;
    position: relative;
    transform: scaleY(0);
    transform-origin: bottom center;
}

@keyframes growBar {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes fadeBarVal {
    to { opacity: 1; }
}

.chart-bar.prev {
    background: linear-gradient(180deg, #f5c26b, #e0a94d);
}

.chart-bar.mine {
    background: linear-gradient(180deg, var(--cyan-soft), var(--cyan-bright));
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.35);
}

.bar-val {
    position: absolute;
    top: -1.4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gray-light);
    opacity: 0;
    white-space: nowrap;
}

/* Bars grow + values fade in when the panel reveals, staggered per group */
.chart-panel.active .chart-bar {
    animation: growBar 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.chart-panel.active .bar-val {
    animation: fadeBarVal 0.5s ease forwards;
    animation-delay: 0.9s;
}
.chart-panel.active .chart-group:nth-child(1) .chart-bar { animation-delay: 0.05s; }
.chart-panel.active .chart-group:nth-child(2) .chart-bar { animation-delay: 0.15s; }
.chart-panel.active .chart-group:nth-child(3) .chart-bar { animation-delay: 0.25s; }
.chart-panel.active .chart-group:nth-child(4) .chart-bar { animation-delay: 0.35s; }
.chart-panel.active .chart-group:nth-child(5) .chart-bar { animation-delay: 0.45s; }

.group-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.group-label small {
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--gray-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.75rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray-light);
}

.legend-item .swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.swatch.prev { background: #e0a94d; }
.swatch.mine { background: var(--cyan-bright); }

/* Headline stat panel */
.highlight-panel {
    background: linear-gradient(160deg, rgba(0, 217, 255, 0.1), rgba(10, 22, 40, 0.7));
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-stat {
    font-family: 'DM Serif Display', serif;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--cyan-bright);
    text-shadow: 0 0 30px rgba(0, 217, 255, 0.5);
    animation: statPulse 3s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% { text-shadow: 0 0 30px rgba(0, 217, 255, 0.4); }
    50% { text-shadow: 0 0 45px rgba(0, 217, 255, 0.75); }
}

.highlight-label {
    font-size: 1.05rem;
    color: var(--cream);
    line-height: 1.5;
    margin: 1rem 0 1.25rem;
}

.highlight-label strong { color: var(--cyan-soft); }

.highlight-note {
    font-size: 0.9rem;
    color: var(--gray-mid);
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .signature-arc { flex-direction: column; align-items: center; gap: 0; }
    .arc-stage { max-width: 480px; width: 100%; }
    .arc-connector {
        flex-basis: 4px;
        width: 4px;
        height: 40px;
    }
    .arc-connector span {
        background: linear-gradient(180deg, transparent, var(--cyan-bright), transparent);
        transform: translateY(-100%);
        animation: connectorFlowV 2.4s ease-in-out infinite;
    }
    @keyframes connectorFlowV {
        0% { transform: translateY(-100%); }
        60%, 100% { transform: translateY(100%); }
    }
    .signature-data { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .chart-group .bars { height: 200px; }
    .chart-bar { width: 20px; }
    .highlight-stat { font-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .arc-icon, .arc-connector span, .highlight-stat { animation: none; }
    .chart-bar, .chart-panel.active .chart-bar { animation: none; transform: scaleY(1); }
    .bar-val, .chart-panel.active .bar-val { animation: none; opacity: 1; }
}

/* Testimonial Section */
.testimonial {
    padding: 8rem 0;
    background: var(--navy-deep);
}

.testimonial-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.testimonial-intro h2 {
    margin-bottom: 1rem;
}

.testimonial-intro p {
    font-size: 1.1rem;
    color: var(--gray-light);
}

.testimonial-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    align-items: center;
}

.testimonial-image-container {
    position: relative;
}

.testimonial-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: none;
    transition: all 0.4s ease;
    filter: grayscale(20%);
}

.testimonial-image:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.testimonial-quote {
    background: rgba(26, 41, 66, 0.4);
    border-left: 4px solid var(--coral);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    font-size: 6rem;
    color: var(--cyan-bright);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-light);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-size: 1.1rem;
    color: var(--cyan-soft);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.testimonial-role {
    font-size: 0.95rem;
    color: var(--gray-mid);
}

@media (max-width: 968px) {
    .testimonial-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .testimonial-image-container {
        max-width: 400px;
        margin: 0 auto;
    }
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    font-weight: 600;
    color: var(--cyan-soft);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(10, 22, 40, 0.6);
    border: 2px solid var(--navy-light);
    border-radius: 4px;
    color: var(--cream);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--cyan-bright);
    background: rgba(10, 22, 40, 0.9);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--cyan-bright) 0%, var(--coral) 100%);
    border: none;
    border-radius: 4px;
    color: var(--navy-deep);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--coral) 0%, var(--cyan-bright) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Signature Image */
.signature-container {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.signature-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    opacity: 0;
    animation: signatureFade 2s ease forwards;
    animation-delay: 0.5s;
    filter: drop-shadow(0 4px 10px rgba(255, 107, 107, 0.3));
}

@keyframes signatureFade {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* CV Download Button */
.cv-download {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(26, 41, 66, 0.6);
    border: 2px solid var(--cyan-bright);
    border-radius: 4px;
    color: var(--cyan-bright);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.cv-download:hover {
    background: var(--cyan-bright);
    color: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.4);
}

.cv-download svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cv-download:hover svg {
    transform: translateY(2px);
}

/* SAIS Logo Link */
.sais-logo-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.sais-logo {
    height: 60px;
    width: auto;
    filter: brightness(0.9);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sais-logo-link:hover .sais-logo {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 255, 0.3);
}

/* Floating Particles Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyan-bright);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -100px);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50px, -200px);
        opacity: 0.3;
    }
    75% {
        transform: translate(80px, -150px);
        opacity: 0.5;
    }
}

/* Flip-in animation for cards */
@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg);
    transition: none;
}

.reveal.active {
    animation: flipIn 0.8s ease forwards;
}

/* Education Section */
.education {
    padding: 5rem 0;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.education-card {
    background: rgba(26, 41, 66, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan-bright);
}

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

.education-degree {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: var(--cyan-bright);
    margin-bottom: 0.5rem;
}

.education-institution {
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: 0.3rem;
}

.education-field {
    color: var(--gray-mid);
    font-size: 0.95rem;
}

.education-honor {
    color: var(--cyan-bright);
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Skills Section */
.skills {
    padding: 5rem 0;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-category {
    background: rgba(26, 41, 66, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
}

.skill-category-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--cyan-bright);
    margin-bottom: 1.2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: var(--cream);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--cyan-bright);
}

/* Publications Section */
.publications {
    padding: 5rem 0;
}

.publications-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.publication-item {
    background: rgba(26, 41, 66, 0.6);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.publication-item:hover {
    border-color: var(--cyan-bright);
}

.publication-type {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--coral);
}

.publication-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--cream);
    margin: 0.5rem 0 0.3rem;
}

.publication-venue {
    color: var(--gray-mid);
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 1rem 0;
}

.social-links a {
    color: var(--gray-mid);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--cyan-bright);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--navy-mid);
    text-align: center;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

footer p {
    color: var(--gray-mid);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.footer-contact {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--cyan-bright);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--cyan-soft);
    text-decoration: underline;
}

.footer-credit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.claude-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-left: 0.3rem;
}

.footer-deploy-time {
    font-size: 0.7rem;
    opacity: 0.5;
    margin: 0.25rem 0 0;
}

.footer-copyright {
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 968px) {
    body {
        padding-top: 70px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-bottom: 2px solid var(--cyan-bright);
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .section-header-with-button {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .cv-download-side {
        align-self: flex-start;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-left {
        order: 2;
    }

    .hero-right {
        order: 1;
    }

    .photo-container {
        max-width: 350px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

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

    .cert-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .timeline-marker {
        left: 4px;
    }
}

/* Noscript fallback lives inline in the <head> (<noscript><style>) */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--cyan-bright);
    color: var(--navy-deep);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 700;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus-visible styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--cyan-bright);
    outline-offset: 3px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--cyan-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Print stylesheet */
@media print {
    .bg-grid,
    .particles,
    .main-nav,
    .back-to-top,
    .media-modal,
    .mobile-menu-btn,
    .skip-link,
    .contact {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.5;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .nav-links a[href]::after,
    .nav-logo[href]::after {
        content: none;
    }

    .hero {
        padding: 1rem 0;
    }

    .photo-frame {
        display: none;
    }

    .hero-stats {
        border: 1px solid #ccc;
    }

    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }

    footer {
        border-top: 1px solid #ccc;
        background: none;
    }

    footer p, .footer-contact a {
        color: #000;
    }
}

/* Contact Form */
.contact {
    padding: 5rem 0;
}

.contact-form-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--cream);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 2px solid var(--navy-light);
    border-radius: 8px;
    background: var(--navy-mid);
    color: var(--cream);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-mid);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-bright);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit-btn {
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan-soft));
    color: var(--navy-deep);
    border: none;
    border-radius: 8px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    align-self: flex-start;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
}

.contact-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-message {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
}

.form-message svg {
    margin-bottom: 1rem;
}

.form-message h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-message p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.success-message svg {
    color: #10b981;
}

.success-message h3 {
    color: #10b981;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.error-message svg {
    color: #ef4444;
}

.error-message h3 {
    color: #ef4444;
}

.reset-form-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--cyan-bright);
    color: var(--cyan-bright);
    border-radius: 8px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.reset-form-btn:hover {
    background: var(--cyan-bright);
    color: var(--navy-deep);
}

/* Light mode contact form overrides */
.light-mode .form-group input,
.light-mode .form-group textarea {
    background: #fff;
    border-color: #d1d5db;
    color: #1a202c;
}

.light-mode .form-group input::placeholder,
.light-mode .form-group textarea::placeholder {
    color: #9ca3af;
}

.light-mode .form-group input:focus,
.light-mode .form-group textarea:focus {
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}
