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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    color: #474747;
    background: linear-gradient(135deg, #1a3a5c 0%, #2d5a7b 25%, #3d7a9c 50%, #4a8dad 75%, #5ba0be 100%);
    min-height: 100vh;
}

/* Gradient dither — break up Firefox/WebKit color banding on the page
   background. Chromium dithers CSS gradients; Firefox/Safari don't, so the
   135deg linear gradient above shows visible stair-step bands on those
   engines (caught by the platform glow-banding e2e). A near-invisible
   (3.5% opacity) fractal-noise overlay scatters the quantization so the
   transition reads smooth. Fixed + pointer-events:none + z-index:-1 keeps
   it behind all content (the white cards sit on top); only the exposed
   gradient margins carry the dither. Same technique as the platform theme. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.035;
    pointer-events: none;
    z-index: -1;
}

/* Fade-in slide-up animation */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeSlideIn 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.8s; }
.delay-6 { animation-delay: 1.0s; }
.delay-7 { animation-delay: 1.2s; }
.delay-8 { animation-delay: 1.4s; }

.site-wrapper {
    max-width: 74rem;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    padding: 4rem 2rem;
    color: #ffffff;
}

header h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

header .tagline {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.container {
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #2d5a7b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #5dd9e8;
    display: inline-block;
}

.intro-section {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.profile-placeholder {
    width: 180px;
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    max-width: 180px;
    border-radius: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.intro-text h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.intro-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    line-height: 1.85;
}

.highlight {
    color: #2d5a7b;
    font-weight: 600;
}

/* Navigation inside the about box */
.intro-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e8eef3;
    flex-wrap: wrap;
}

.intro-nav a {
    color: #2d5a7b;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.intro-nav a:hover {
    border-bottom-color: #5dd9e8;
    color: #1a3a5c;
}

.intro-nav a:not(:last-child)::after {
    content: '';
    display: none;
}

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

.expertise-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid #5dd9e8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expertise-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.expertise-card h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.expertise-card p {
    font-size: 0.95rem;
    color: #5a6a7a;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #5dd9e8, #2d5a7b);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #5dd9e8;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px #5dd9e8;
}

.timeline-item h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a3a5c;
    margin-bottom: 0.25rem;
}

.timeline-item .org {
    font-weight: 600;
    color: #2d5a7b;
    margin-bottom: 0.5rem;
}

.timeline-item .period {
    font-size: 0.85rem;
    color: #8a9aaa;
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 0.95rem;
    color: #5a6a7a;
}

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

.education-card {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0.5rem;
}

.education-card .degree {
    font-family: 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d5a7b;
    margin-bottom: 0.5rem;
}

.education-card .field {
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 0.25rem;
}

.education-card .school {
    font-size: 0.9rem;
    color: #5a6a7a;
}

.accomplishments-list {
    list-style: none;
    margin-top: 1.5rem;
}

.accomplishments-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.accomplishments-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: #5dd9e8;
    border-radius: 50%;
}

/* Media & Publications */
.media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.media-category {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.media-category h3 {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a3a5c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #5dd9e8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.media-category h3 svg {
    width: 18px;
    height: 18px;
    fill: #2d5a7b;
}

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

.media-list li {
    margin-bottom: 0.75rem;
}

.media-list a {
    color: #2d5a7b;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.media-list a:hover {
    background: #e8f4f8;
    color: #1a3a5c;
}

.media-list .source {
    font-size: 0.8rem;
    color: #8a9aaa;
    display: block;
    margin-top: 0.15rem;
}

.contact-section {
    text-align: center;
}

.contact-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2d5a7b;
    color: #ffffff;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 0.25rem;
    transition: all 0.25s ease;
}

.contact-link:hover {
    background: #1a3a5c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

footer a {
    color: #5dd9e8;
    text-decoration: none;
}

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

@media (max-width: 900px) {
    .expertise-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
        letter-spacing: 0.1em;
    }

    header .tagline {
        font-size: 1rem;
    }

    .intro-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-placeholder {
        width: 150px;
        margin: 0 auto;
    }

    .profile-image {
        max-width: 150px;
        margin: 0 auto;
    }

    .intro-text h2 {
        font-size: 1.5rem;
    }

    .intro-nav {
        gap: 0.5rem;
    }

    .intro-nav a {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
        letter-spacing: 0.05em;
    }

    .container {
        padding: 1.5rem;
    }

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

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

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