/* ===== Webfont: Atkinson Hyperlegible (self-hosted) =====
   Served from this domain, not from Google Fonts — no request to a third
   party, so no visitor IP address leaves the site. Files in fonts/,
   SIL Open Font License 1.1 (see fonts/OFL.txt). */

/* latin */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-bold-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-bold-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-regular-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-regular-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-bold-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext */
@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/atkinson-hyperlegible-bold-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== CSS Variables (WCAG AA Compliant Color Palette) ===== */
:root {
    /* Text Colors */
    --color-heading: #0d3d4a;           /* Dark teal for main headings */
    --color-text: #333333;              /* Dark gray for body text */
    --color-accent: #750d37;            /* Burgundy for links/CTA */

    /* Gradient/Decorative Colors (NOT for text on light backgrounds) */
    --color-teal: #134e5e;              /* Teal for gradients */
    --color-sage: #71b280;              /* Sage green for gradients */

    /* Backgrounds */
    --color-bg-white: #ffffff;
    --color-bg-offwhite: #faf8f4;        /* Warm off-white (softer than pure white) */
    --color-bg-light: #f5f5f5;          /* Light gray background */

    /* Borders & Shadows */
    --color-border: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-2xl: 6rem;

    /* Typography */
    --font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --line-height-body: 1.6;
    --line-height-heading: 1.2;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
}

/* ===== CSS Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body);
    color: var(--color-text);
    background-color: var(--color-bg-offwhite);
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-heading);
    color: var(--color-heading);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(36px, 5vw, 48px);
}

h2 {
    font-size: clamp(28px, 4vw, 32px);
}

h3 {
    font-size: clamp(20px, 3vw, 24px);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
    font-size: clamp(16px, 2vw, 18px);
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: background-color var(--transition-medium),
                box-shadow var(--transition-medium);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-heading);
}

.nav-brand a:hover {
    color: var(--color-accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--color-text);
    font-weight: var(--font-weight-bold);
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-medium);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
    color: var(--color-accent);
}

.nav-menu a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--color-heading);
    border-radius: 3px;
    transition: var(--transition-fast);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family);
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    /* Transparent border keeps box height equal to bordered buttons */
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #5a0a2a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: white;
    color: var(--color-heading);
    border: 2px solid white;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== Section Styles ===== */
section {
    padding: var(--spacing-lg) 0;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    /* Top padding clears the fixed navbar (~64px) on top of the balanced
       bottom padding, so content is visually centred below the navbar.
       Extra bottom padding keeps content clear of the wavy divider. */
    padding-top: calc(64px + var(--spacing-xl));
    padding-bottom: calc(var(--spacing-xl) + 60px);
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-sage) 100%);
    position: relative;
    /* No overflow:hidden here — the wave below is pinned to bottom:-1px and
       must overhang the hero by 1px to bridge the seam (as in the mockup).
       Horizontal overflow is already contained by body { overflow-x: hidden }. */
}

/* Wavy divider at the bottom of the hero. Filled with the page's
   off-white so the hero appears to flow into the next section. */
.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 80px;
    z-index: 1;
    display: block;
    pointer-events: none;
}

.hero-wave path {
    fill: var(--color-bg-offwhite);
}

/* Textured gradient overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.25;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    align-items: center;
    flex-wrap: wrap;
}

.hero-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    transition: var(--transition-fast);
}

.hero-social a:hover,
.hero-social a:focus {
    color: white;
}

.hero-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.hero h1 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.hero-tagline {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: var(--font-weight-bold);
    color: white;
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: clamp(16px, 2.5vw, 18px);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===== Projects Section ===== */
.projects {
    background-color: var(--color-bg-offwhite);
}

.projects h2 {
    margin-bottom: var(--spacing-md);
}

/* Hand-drawn squiggle underline on the main section headings —
   one bold wavy line, deliberately shorter than the heading and
   left-biased so it reads as a casual, off-centre flourish.
   width: fit-content shrink-wraps the heading while keeping it
   block-level, so the following content stays on its own line. */
.research h2,
.projects h2 {
    width: fit-content;
    padding-bottom: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='18' viewBox='0 0 180 18' preserveAspectRatio='none'%3E%3Cpath d='M0 9 Q 30 2 60 9 T 120 9 T 180 9' stroke='%23750d37' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 65% 12px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.project-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.project-card:hover {
    box-shadow: var(--shadow-md);
}

/* Straight by default; tilt slightly on hover, alternating direction per card */
.project-card:nth-child(odd):hover {
    transform: translateY(-4px) rotate(-2deg);
}

.project-card:nth-child(even):hover {
    transform: translateY(-4px) rotate(2deg);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-sage) 100%);
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Textured gradient for project images */
.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.project-content {
    padding: var(--spacing-md);
}

.project-role {
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
}

.project-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--color-heading);
}

.project-card p {
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-heading);
    color: white;
    padding: var(--spacing-md) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: var(--font-weight-bold);
}

.footer-links a:hover,
.footer-links a:focus {
    color: white;
    text-decoration: underline;
}

/* ===== Responsive Design (Mobile-First Approach) ===== */

/* Tablet breakpoint */
@media (max-width: 768px) {
    section {
        padding: var(--spacing-xl) 0;
    }

    /* Remove the navbar's backdrop blur on mobile so it doesn't become the
       containing block for the fixed full-screen overlay below. */
    .navbar {
        backdrop-filter: none;
    }

    /* Full-screen overlay menu */
    .nav-menu {
        position: fixed;
        inset: 0;
        z-index: 1;
        height: 100vh;
        height: 100dvh;
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-sage) 100%);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity var(--transition-medium),
                    transform var(--transition-medium),
                    visibility var(--transition-medium);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Grainy texture over the overlay, matching the hero */
    .nav-menu::after {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        opacity: 0.25;
        mix-blend-mode: overlay;
        pointer-events: none;
    }

    /* Keep the links above the texture layer */
    .nav-menu li {
        padding: 0;
        position: relative;
        z-index: 1;
    }

    .nav-menu a {
        color: white;
        font-size: 1.75rem;
    }

    /* Keep links white when active/hovered — the white underline alone
       indicates selection (the burgundy text clashes with the gradient). */
    .nav-menu a:hover,
    .nav-menu a:focus,
    .nav-menu a.active {
        color: white;
    }

    .nav-menu a::after {
        background: white;
    }

    /* Keep the header (brand + hamburger) above the overlay */
    .nav-brand,
    .hamburger {
        position: relative;
        z-index: 2;
    }

    /* When the overlay is open, let the teal show through the header bar.
       Progressive enhancement via :has() — without it the header stays
       white with a dark X, which is still a perfectly usable fallback. */
    .navbar:has(.nav-menu.active) {
        background: transparent;
        box-shadow: none;
    }

    .navbar:has(.nav-menu.active) .nav-brand a {
        color: white;
    }

    .navbar:has(.nav-menu.active) .hamburger span {
        background: white;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .project-image {
        height: 220px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile breakpoint */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .btn {
        width: 100%;
        max-width: 100%;
    }

    .hero-cta {
        flex-direction: column;
    }

    .project-image {
        height: 200px;
    }
}

/* ===== Research Section ===== */
.research {
    background-color: var(--color-bg-offwhite);
}

.research h2 {
    margin-bottom: var(--spacing-md);
}

.research-inner {
    max-width: 900px;
    margin: 0 auto;
}

.research-affiliation {
    display: inline-block;
    background: var(--color-bg-offwhite);
    border: 1.5px solid var(--color-sage);
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
    font-size: 0.95rem;
}

.research-subsection {
    margin-bottom: var(--spacing-lg);
}

.research-subsection-title {
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(13, 61, 74, 0.18);
}

.research-item {
    padding: var(--spacing-sm) 0;
}

.research-item h4 {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--color-heading);
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.research-meta {
    font-size: 0.9rem;
    color: var(--color-text);
    opacity: 0.75;
    margin-bottom: 0.5rem;
}

.research-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.research-link:hover {
    text-decoration: underline;
}

.research-upcoming {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    opacity: 0.7;
    margin-bottom: var(--spacing-sm);
}

.orcid-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--color-border);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-bg-white);
    color: var(--color-heading);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.orcid-link:hover,
.orcid-link:focus {
    border-color: #A6CE39;
    box-shadow: 0 0 0 2px rgba(166, 206, 57, 0.2);
}

.orcid-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ===== Footer Social Links ===== */
.footer-social {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    transition: var(--transition-fast);
}

.footer-social a:hover,
.footer-social a:focus {
    color: white;
}

.footer-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===== Responsive: Hero Photo & Research ===== */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-photo img {
        width: 180px;
        height: 180px;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-photo img {
        width: 150px;
        height: 150px;
    }
}

/* Print styles for accessibility */
@media print {
    .navbar,
    .hamburger {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    a {
        text-decoration: underline;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }

    .project-card {
        border: 2px solid var(--color-border);
    }
}
