/* ============================================================
   Sharmaine Anna Dobson — Portfolio global styles
   Palette supplied by the author
   ============================================================ */
:root {
    --blue-slate: #545e75;
    --cool-sky: #63adf2;
    --icy-blue: #a7cced;
    --dusk-blue: #304d6d; /* darkest — used for footer */
    --steel-blue: #82a0bc;

    --ink: #1b2a3a;
    --paper: #f6fafd;

    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-quote: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --shadow-soft: 0 18px 40px -18px rgba(48, 77, 109, .45);
    --shadow-lift: 0 30px 60px -22px rgba(48, 77, 109, .55);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
}

/* Drive body copy to Inter even over MudBlazor defaults */
body,
.mud-typography-body1,
.mud-typography-body2,
.mud-typography-subtitle1,
.mud-typography-subtitle2,
.mud-typography-button,
.mud-input-root,
.mud-button-root {
    font-family: var(--font-body) !important;
}

/* Elegant display typography for MudBlazor headings */
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.display-font {
    font-family: var(--font-display) !important;
    letter-spacing: .2px;
}

.section {
    padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.section--tint {
    background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}

.section--sky {
    background: linear-gradient(160deg, var(--icy-blue) 0%, #ffffff 70%);
}

/* ---------- Decorative section heading ---------- */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .42em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--steel-blue);
    margin-bottom: .75rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--dusk-blue);
    margin-bottom: 1rem;
}

.title-rule {
    width: 84px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cool-sky), var(--dusk-blue));
    margin: 1rem 0 1.75rem;
}

    .title-rule.is-centered {
        margin-left: auto;
        margin-right: auto;
    }

.text-gradient {
    background: linear-gradient(120deg, var(--cool-sky), var(--dusk-blue) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    animation: kenburns 22s ease-in-out infinite alternate;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(27, 42, 58, .86) 0%, rgba(48, 77, 109, .68) 45%, rgba(99, 173, 242, .28) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__name {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: .98;
    font-size: clamp(2.8rem, 8vw, 6rem);
    text-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    margin: 0;
}

.hero__roles {
    letter-spacing: .5em;
    text-transform: uppercase;
    font-size: clamp(.7rem, 1.6vw, 1rem);
    color: var(--icy-blue);
    margin-top: 1.1rem;
}

.hero__tagline {
    font-family: var(--font-quote);
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    font-style: italic;
    max-width: 40ch;
    margin-top: 1.4rem;
    color: #eaf3fb;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255,255,255,.85);
    animation: floaty 2.4s ease-in-out infinite;
}

@keyframes kenburns {
    from {
        transform: scale(1.08) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.18) translate3d(-1.5%, -1.5%, 0);
    }
}

@keyframes floaty {
    0%, 100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, 10px);
    }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
}

    .reveal.in-view {
        opacity: 1;
        transform: none;
    }

.reveal-delay-1 {
    transition-delay: .12s;
}

.reveal-delay-2 {
    transition-delay: .24s;
}

.reveal-delay-3 {
    transition-delay: .36s;
}

.reveal-delay-4 {
    transition-delay: .48s;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__bg {
        animation: none;
    }
}

/* ============================================================
   CARDS & IMAGERY
   ============================================================ */
.lift {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

    .lift:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-lift);
    }

.media-zoom {
    overflow: hidden;
}

    .media-zoom img,
    .media-zoom .media-fill {
        transition: transform .8s cubic-bezier(.2, .7, .2, 1);
        display: block;
        width: 100%;
    }

    .media-zoom:hover img,
    .media-zoom:hover .media-fill {
        transform: scale(1.08);
    }

/* Book cover */
.book-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    box-shadow: 0 22px 45px -18px rgba(27, 42, 58, .7);
}

    .book-cover::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 14px;
        background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(27,42,58,.78) 100%);
    }

.book-cover__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    border-radius: 14px 0 0 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));
}

.book-cover__label {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
    bottom: 18px;
    color: #fff;
}

/* ============================================================
   QUOTE / PULL BLOCK
   ============================================================ */
.quote-band {
    position: relative;
    color: #fff;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

    .quote-band::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(48,77,109,.92), rgba(27,42,58,.78));
    }

.quote-band__inner {
    position: relative;
    z-index: 1;
}

.pull-quote {
    font-family: var(--font-quote);
    font-style: italic;
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.25;
    max-width: 22ch;
}

.quote-mark {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 0;
    color: var(--cool-sky);
    display: block;
    height: 2.2rem;
}

/* ============================================================
   STORY TIMELINE
   ============================================================ */
.story-img {
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 260px;
}

.story-year {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    color: var(--icy-blue);
    line-height: 1;
}

/* ============================================================
   STAT CHIPS
   ============================================================ */
.stat {
    text-align: center;
}

.stat__num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--dusk-blue);
    line-height: 1;
}

.stat__label {
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .72rem;
    color: var(--steel-blue);
    margin-top: .4rem;
}

/* ============================================================
   FOOTER (darkest palette color)
   ============================================================ */
.site-footer {
    background: var(--dusk-blue);
    color: #dbe7f3;
}

.site-footer a {
    color: #cfe0f1;
    text-decoration: none;
    transition: color .25s ease;
}

    .site-footer a:hover {
        color: #fff;
    }

.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px;
}

.footer-social .mud-icon-button {
    border: 1px solid rgba(255,255,255,.22);
    transition: transform .3s ease, background-color .3s ease, border-color .3s ease;
}

    .footer-social .mud-icon-button:hover {
        background: var(--cool-sky);
        border-color: var(--cool-sky);
        transform: translateY(-4px);
    }

.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}

/* ============================================================
   NAV / APP BAR
   ============================================================ */
.brand-link {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: .5px;
    color: #fff;
    text-decoration: none;
}

.nav-cta {
    border-radius: 999px !important;
}

.appbar-blur {
    backdrop-filter: blur(8px);
    background: rgba(48, 77, 109, .92) !important;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Force every app bar menu item (links, buttons, icons) to white */
.appbar-blur .mud-button-root,
.appbar-blur .mud-icon-button,
.appbar-blur .mud-icon-root,
.appbar-blur .brand-link,
.appbar-blur a {
    color: #fff !important;
}

.appbar-blur .mud-button-root .mud-icon-root {
    color: #fff !important;
}

/* Keep the outlined "Sign in" button readable with a white border */
.appbar-blur .mud-button-outlined {
    border-color: rgba(255, 255, 255, .7) !important;
}

.appbar-blur .mud-button-root:hover {
    background-color: rgba(255, 255, 255, .12) !important;
}
