/* Nuada Quantum — Global Styles */

:root {
    --bg: #0a0a0f;
    --text: rgba(229, 231, 235, 0.9);
    --text-subtle: rgba(156, 163, 175, 0.6);
    --accent: #4F6457;        /* flat: dark grey-green, green-grey cast */
    --accent-bright: #7FB89A; /* reflective glint */
    --accent-deep: #2C3832;   /* gradient shadow */
    --accent-gradient: linear-gradient(135deg,#6E8C7C 0%,#A8E2C2 30%,#4A5F53 52%,#84C0A0 75%,#5E7C6C 100%);
    --border: rgba(255, 255, 255, 0.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    /* proximity (not mandatory): settles at section starts but never traps
       the user or blocks free scrolling through longer sections */
    scroll-snap-type: y proximity;
    scroll-padding-top: 5rem; /* matches .section scroll-margin-top so snapped/anchored headings clear the fixed bar */
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

/* body already offsets for the fixed nav bar (see nav.css) */
main { padding-top: 0; }

.section {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    scroll-margin-top: 5rem; /* clear the fixed bar on anchor jumps */
}

/* Proximity scroll-snap: each section settles at its start; normal stop so
   longer sections remain freely scrollable */
section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

/* Gentler feel: fewer snap points — don't grab on the short lede or the
   contact-button section, so realignment between sections is less aggressive */
#problem, #contact {
    scroll-snap-align: none;
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.1rem);
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-align: center;
    /* metallic forest-green sheen; falls back to flat --accent-bright */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
}

/* Body copy is centred page-wide; 700px measure stays centred via margin auto */
.section p {
    max-width: 700px;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text);
    text-align: center;
    margin: 0 auto 1.5rem;
}

.section p:last-child { margin-bottom: 0; }

/* Heading-less statement block (Problem section): a lede that reads larger
   than body copy but smaller than a display heading; centred via .section p */
.section-statement {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.section .lede {
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    line-height: 1.5;
    font-weight: 400;
    color: var(--text);
}

.section .emphasis {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* ── Team list ── */
.svg-defs { position: absolute; }

.team-list {
    list-style: none;
    max-width: 700px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.team-member {
    margin-bottom: 1.5rem;
}

.team-member:last-child { margin-bottom: 0; }

.team-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: var(--text);
}

.team-role {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-subtle);
}

/* LinkedIn icon: small, vertically centred, accent-coloured, brighten on hover */
.li-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    transition: color 0.2s, opacity 0.2s;
}

.li-link:hover {
    color: var(--accent-bright);
    opacity: 1;
}

.li-icon {
    width: 1.05em;
    height: 1.05em;
    fill: currentColor;
}

/* Inline links within section copy: accent colour, underline on hover */
.section p a {
    color: var(--accent);
    text-decoration: none;
}

.section p a:hover {
    text-decoration: underline;
    opacity: 1;
}

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-subtle);
    margin-bottom: 3rem;
}

.stub-notice {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    text-transform: uppercase;
}

/* ── Landing page ────────────────────────────────────────────── */

@keyframes ethereal-glow {
    0%, 100% {
        text-shadow:
            0 0 8px  rgba(180, 190, 210, 0.25),
            0 0 20px rgba(180, 190, 210, 0.2),
            0 0 45px rgba(160, 175, 210, 0.15),
            0 0 80px rgba(140, 160, 210, 0.08);
        filter: blur(0.4px);
    }
    50% {
        text-shadow:
            0 0 12px rgba(210, 220, 240, 0.5),
            0 0 30px rgba(200, 215, 240, 0.35),
            0 0 60px rgba(180, 200, 235, 0.25),
            0 0 120px rgba(160, 185, 230, 0.12);
        filter: blur(0.9px);
    }
}

/* Hero — first full-viewport section of the long-scroll page */
#hero.hero {
    min-height: calc(100vh - 4.75rem);
    justify-content: center;
    max-height: none;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
    gap: 0;
}

#hero-animation {
    background: transparent;
    flex-shrink: 0;
    width: min(500px, 40vw, calc(100vh - 18rem));
    height: min(500px, 40vw, calc(100vh - 18rem));
    margin: 0 auto;
}

.wordmark {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    /* same metallic forest-green as the section headers (.section-title) */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-bright);
    padding: 1rem 1.5rem 1rem calc(1.5rem + 0.5em);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.1;
    position: relative;
    z-index: 1;
    animation: ethereal-glow 7s ease-in-out infinite;
}

.tagline {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    /* metallic forest-green sheen; falls back to flat --accent-bright */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-bright);
    margin-bottom: 0.6rem;
}

.subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-subtle);
    margin-bottom: 1.75rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 2px;
    transition: opacity 0.2s, background 0.2s;
    min-height: 48px;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    opacity: 1;
}

/* Site footer — sits at the end of the scroll (was fixed on the old
   single-viewport landing page; static now so it can't overlay content) */
.landing-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: var(--text-subtle);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
}

.footer-sep { color: var(--border); }

/* ── About page ────────────────────────────────────────────── */

.about-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}

.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.8rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    #hero-animation {
        width: min(280px, 65vw, calc(100vh - 16rem));
        height: min(280px, 65vw, calc(100vh - 16rem));
    }

    .wordmark {
        font-size: clamp(2rem, 7vw, 3.5rem);
        letter-spacing: 0.35em;
        padding: 0.75rem 1rem 0.75rem calc(1rem + 0.35em);
    }

    .hero {
        padding: 0 1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        padding: 0 1.5rem;
    }

    .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .about-content {
        max-width: none;
        padding: 3rem 1.5rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .landing-footer {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }

    .footer-sep { display: none; }
}

/* Fine-tune for very small screens (iPhone SE) */
@media (max-width: 375px) {
    .wordmark {
        font-size: 1.8rem;
        letter-spacing: 0.25em;
        padding: 0.5rem 0.75rem 0.5rem calc(0.75rem + 0.25em);
    }

    #hero-animation {
        width: min(240px, 60vw);
        height: min(240px, 60vw);
    }
}
