@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* =====================================================================
   DESIGN TOKENS — dark-first. :root is the dark (default) theme;
   [data-theme="light"] overrides for the light mode toggle.
   ===================================================================== */
:root{
    --bg-page: #08090d;
    --bg-surface: #12141b;
    --bg-surface-2: #171a24;
    --bg-surface-raised: #1b1e2a;
    --border-subtle: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --text-primary: #f3f4f8;
    --text-secondary: #b6b9c9;
    --text-tertiary: #82869c;
    --nav-bg: rgba(8, 9, 13, 0.78);

    --accent-a: #d946ef;
    --accent-b: #7c3aed;
    --accent-solid: #a855f7;
    --accent-soft-bg: rgba(168, 85, 247, 0.12);
    --accent-soft-border: rgba(168, 85, 247, 0.28);

    --shadow-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 48px -28px rgba(0,0,0,0.65);
    --shadow-card-hover: 0 1px 0 rgba(255,255,255,0.04) inset, 0 32px 64px -28px rgba(0,0,0,0.75);
    --shadow-pop: 0 20px 60px -20px rgba(124, 58, 237, 0.35);

    --input-bg: #12141b;
    --input-border: rgba(255,255,255,0.14);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

    color-scheme: dark;
}

[data-theme="light"]{
    --bg-page: #fafafa;
    --bg-surface: #ffffff;
    --bg-surface-2: #f4f4f7;
    --bg-surface-raised: #ffffff;
    --border-subtle: rgba(15,15,20,0.08);
    --border-strong: rgba(15,15,20,0.14);
    --text-primary: #14151a;
    --text-secondary: #52545f;
    --text-tertiary: #82848f;
    --nav-bg: rgba(250, 250, 250, 0.82);

    --accent-a: #c026d3;
    --accent-b: #6d28d9;
    --accent-solid: #7c3aed;
    --accent-soft-bg: rgba(124, 58, 237, 0.08);
    --accent-soft-border: rgba(124, 58, 237, 0.22);

    --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 40px -26px rgba(20,20,30,0.18);
    --shadow-card-hover: 0 1px 0 rgba(255,255,255,0.7) inset, 0 28px 56px -26px rgba(20,20,30,0.22);
    --shadow-pop: 0 20px 50px -22px rgba(124, 58, 237, 0.22);

    --input-bg: #ffffff;
    --input-border: rgba(15,15,20,0.14);

    color-scheme: light;
}

*{ box-sizing: border-box; }

html{
    font-size: 16px;
    scroll-behavior: smooth;
}
body{
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    background-color: var(--bg-page);
    background-image:
        radial-gradient(60rem 30rem at 85% -10%, rgba(124,58,237,0.16), transparent 60%),
        radial-gradient(50rem 26rem at -10% 15%, rgba(217,70,239,0.08), transparent 55%);
    background-attachment: fixed;
    color: var(--text-primary);
    transition: background-color 0.25s ease, color 0.25s ease;
    -webkit-font-smoothing: antialiased;
}
[data-theme="light"] body{
    background-image:
        radial-gradient(60rem 30rem at 85% -10%, rgba(124,58,237,0.06), transparent 60%),
        radial-gradient(50rem 26rem at -10% 15%, rgba(217,70,239,0.04), transparent 55%);
}

.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible{
    outline: 2px solid var(--accent-solid);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
    *{
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Shared layout / typography ---------- */
.container{
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
section, .sectionPad{
    padding: clamp(3.5rem, 7vw, 6rem) 1.5rem;
}
.sectionHead{
    max-width: 42rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}
.eyebrow{
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-solid);
    margin: 0 0 0.75rem;
    display: block;
}
.sectionTitle{
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}
.sectionSub{
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
ul{ list-style: none; margin: 0; padding: 0; }
a{ text-decoration: none; color: inherit; }

/* ---------- Nav ---------- */
nav{
    position: sticky;
    top: 0;
    z-index: 10000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
}
#navInner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    position: relative;
}
#navBrand{
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
#navBrand span{ color: var(--accent-solid); }
#navLinks{
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0 auto 0 2.5rem;
    padding: 0;
}
#navActions{
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
#resumeLink{
    text-decoration: none;
    color: #ffffff;
    background-image: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    padding: 0.45rem 1.05rem;
    border-radius: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.83rem;
}
#menuToggle{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.3125rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.burgerLine{
    width: 1.35rem;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: block;
}
.burgerLine.open:nth-child(1){ transform: translateY(0.4375rem) rotate(45deg); }
.burgerLine.open:nth-child(2){ opacity: 0; }
.burgerLine.open:nth-child(3){ transform: translateY(-0.4375rem) rotate(-45deg); }
#themeToggle{
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-radius: 50%;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.link{
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.link:hover{ color: var(--text-primary); }
.linkActive{
    color: var(--text-primary) !important;
    border-bottom-color: var(--accent-solid) !important;
}

/* ---------- Hero ---------- */
#main{
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#home{
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}
#heroContainer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2.5rem, 6vw, 5rem);
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
}
#heroText{
    max-width: 36rem;
}
#heroKicker{
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin: 0 0 1rem;
    letter-spacing: 0.01em;
}
#heroHeading{
    font-size: clamp(2.1rem, 4.4vw, 3rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
}
.heroAccent{
    background-image: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#heroSubtext{
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin: 0 0 2rem;
    max-width: 32rem;
}
#heroCTAs{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 0 2rem;
}
.ctaPrimary,
.ctaSecondary{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.ctaPrimary{
    background-image: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    color: #ffffff;
    box-shadow: var(--shadow-pop);
}
.ctaPrimary:hover{ transform: translateY(-2px); }
.ctaSecondary{
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    background: var(--bg-surface);
}
.ctaSecondary:hover{ border-color: var(--accent-soft-border); transform: translateY(-2px); }

#socials{
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.socialIcon{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.6rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.socialIcon:hover{ border-color: var(--accent-soft-border); transform: translateY(-2px); }
.socialIcon img{
    height: 1.15rem;
    width: auto;
    opacity: 0.85;
}
[data-theme="light"] .socialIcon img{ opacity: 0.75; }

#heroVisual{
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
#heroAvatarRing{
    position: relative;
    width: clamp(11rem, 20vw, 15rem);
    height: clamp(11rem, 20vw, 15rem);
    border-radius: 50%;
    padding: 3px;
    background-image: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}
#heroAvatarInner{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-surface);
}
#myPhoto{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    scale: 1.1;
    pointer-events: none;
}

/* ---------- Featured Projects ---------- */
#projectRoot{
    max-width: 1180px;
    margin: 0 auto;
}
#featuredGrid{
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
}
.featuredCard{
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.featuredCard:hover{
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-strong);
}
.featuredCard:nth-child(even) .featuredMedia{
    order: 2;
}
.featuredMedia{
    position: relative;
    background: var(--bg-surface-2);
    min-height: 14rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.featuredImg{
    width: 100%;
    height: 100%;
    max-height: 16rem;
    object-fit: contain;
}
.featuredBody{
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.featuredHead{
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.featuredName{
    margin: 0;
    color: var(--text-primary);
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.featuredTechRow{
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.techChip{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    white-space: nowrap;
}
.featuredFacts{
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0;
}
.featuredFacts > div{
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 0.75rem;
}
.featuredFacts dt{
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin: 0.15rem 0 0;
}
.featuredFacts dd{
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.featuredVisit{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.25rem;
    padding: 0.55rem 1.25rem;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    width: fit-content;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.featuredVisit:hover{
    border-color: var(--accent-soft-border);
    background: var(--accent-soft-bg);
}
.featuredVisitDisabled{
    opacity: 0.5;
    cursor: default;
}

#moreProjectsWrap{
    margin-top: clamp(3rem, 5vw, 4rem);
}
#moreProjectsText{
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin: 0 0 1.25rem;
    text-align: left;
}
#cardBox{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
    gap: 1.25rem;
    width: 100%;
}
.miniProjectCard{
    display: flex;
    flex-direction: column;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.miniProjectCard:hover,
.miniProjectCard:focus-visible{
    transform: translateY(-4px);
    border-color: var(--accent-soft-border);
    box-shadow: var(--shadow-card-hover);
}
.miniProjectImgWrap{
    background: var(--bg-surface-2);
    height: 8.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.miniProjectImg{
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.miniProjectBody{
    padding: 1.1rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.miniProjectName{
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.miniProjectDesc{
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
}
.miniProjectTech{
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

/* ---------- Experience ---------- */
#experienceRoot{
    max-width: 42rem;
    margin: 0 auto;
}
#timeline{
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.timelineItem{
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 2px solid var(--accent-solid);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-card);
}
.timelineHead{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}
.timelineRole{
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.0625rem;
}
.timelineOrg{
    margin: 0.15rem 0 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.timelineDates{
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    font-size: 0.78rem;
    white-space: nowrap;
}
.timelinePoints{
    margin: 0;
    padding-left: 1.125rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.timelinePoints li{ list-style: disc; }

/* ---------- Skills ---------- */
#techStackRoot{
    max-width: 1180px;
    margin: 0 auto;
}
#techStackCategories{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1.25rem;
    width: 100%;
}
.techCategory{
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}
.techCategoryLabel{
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-solid);
    margin: 0 0 1rem;
}
.techStackGrid{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}
.techPill{
    background: var(--bg-surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.83rem;
    padding: 0.4rem 0.85rem;
    border-radius: 0.5rem;
    cursor: default;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.techPill:hover{
    border-color: var(--accent-soft-border);
    color: var(--text-primary);
}

/* ---------- Engineering Impact / Metrics ---------- */
#impactRoot{
    max-width: 1180px;
    margin: 0 auto;
}
#metricsGrid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
    gap: 1.25rem;
}
.metricTile{
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-card);
}
.metricValue{
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    background-image: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 0.4rem;
    line-height: 1.1;
}
.metricLabel{
    margin: 0 0 0.35rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}
.metricDetail{
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
    line-height: 1.55;
}

/* ---------- About ---------- */
#aboutRoot{
    max-width: 44rem;
    margin: 0 auto;
    text-align: center;
}
#aboutContent{
    text-align: left;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 1rem;
    padding: clamp(1.75rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-card);
}
.aboutParagraph{
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin: 0 0 1rem;
}
.aboutParagraph:last-child{ margin-bottom: 0; }

/* ---------- Testimonials ---------- */
#testimonialsRoot{
    max-width: 1180px;
    margin: 0 auto;
}
.mockBadge{
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--text-tertiary);
    border: 1px dashed var(--border-strong);
    padding: 0.3rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}
#testimonialsGrid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 2rem;
}
.testimonialCard{
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 0.85rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
}
.testimonialQuote{
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 1rem;
}
.testimonialName{
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}
.testimonialRole{
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

/* ---------- Contact ---------- */
#contactMe{
    background-color: var(--bg-surface-2);
    border-top: 1px solid var(--border-subtle);
}
#contactInner{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1180px;
    margin: 0 auto;
}
#contactIntro{
    flex: 1 1 22rem;
    max-width: 30rem;
}
#quoteBody{
    color: var(--text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    margin: 0 0 1.5rem;
}
#contactMailto{
    display: inline-flex;
    margin-bottom: 1.75rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
#findMe{
    font-size: 0.85rem;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin: 0 0 0.85rem;
}
#mediaHandles{
    display: flex;
    gap: 0.75rem;
}
#emailRoot{
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 1rem;
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 24rem;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}
#emailRoot form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
#contactMessage{
    font-family: var(--font-body);
    height: 6.25rem;
    width: 100%;
    resize:none;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    box-sizing: border-box;
}
#contactName,
#contactEmail{
    width: 100%;
    font-family: var(--font-body);
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-primary);
    border-radius: 0.5rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    box-sizing: border-box;
}
#contactButton{
    margin: 0;
    text-align: center;
    padding: 0.75rem;
    width: 100%;
    background-image: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    color: white;
    border: none;
    border-radius: 0.6rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    box-shadow: var(--shadow-pop);
}
#sending{
    text-align: center;
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}
#sendingText{
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* ---------- Footer ---------- */
#siteFooter{
    background-color: var(--bg-page);
    border-top: 1px solid var(--border-subtle);
    padding: 2.75rem 1.5rem 2rem;
}
#footerInner{
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}
#footerName{
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}
#footerLinks{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}
#footerLinks a{
    color: var(--text-secondary);
    font-size: 0.875rem;
}
#footerLinks a:hover{ color: var(--text-primary); }
#footerSocials{
    display: flex;
    gap: 0.75rem;
}
.footerIcon{
    height: 1.25rem;
    width: auto;
    opacity: 0.7;
}
#backToTop{
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    border-radius: 1.25rem;
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    cursor: pointer;
}
#footerCopyright{
    font-family: var(--font-body);
    color: var(--text-tertiary);
    font-size: 0.75rem;
    margin: 0.5rem 0 0;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media screen and (max-width: 900px){
    #menuToggle{ display: flex; }
    #navLinks{
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        margin: 0;
        background-color: var(--nav-bg);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-subtle);
        padding: 1.5rem 6%;
    }
    #navLinks.navOpen{ display: flex; }

    #heroContainer{ flex-direction: column-reverse; text-align: center; }
    #heroText{ max-width: 100%; }
    #heroSubtext{ margin-left: auto; margin-right: auto; }
    #heroCTAs{ justify-content: center; }
    #socials{ justify-content: center; }

    .featuredCard,
    .featuredCard:nth-child(even){
        grid-template-columns: 1fr;
    }
    .featuredCard:nth-child(even) .featuredMedia{ order: 0; }
    .featuredFacts > div{ grid-template-columns: 1fr; gap: 0.2rem; }

    #contactInner{ flex-direction: column; }
    #emailRoot{ max-width: 100%; }
}

@media screen and (max-width: 480px){
    #heroCTAs{ flex-direction: column; align-items: stretch; }
    .ctaPrimary, .ctaSecondary{ justify-content: center; }
}
