:root {
    --bg: #030712;
    --text: #ffffff;
    --muted: #b8c4d8;
    --accent: #65efff;
    --line: rgba(255, 255, 255, 0.12);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}


/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;

    background:
        linear-gradient(
            180deg,
            #030712,
            #061222
        );

    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1180px, 92%);
    margin: auto;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--accent);
}

h1,
h2,
h3 {
    line-height: 1.05;
    margin: 0 0 1rem;
}

h2 {
    font-size: clamp(2.2rem, 4vw, 4rem);
}

p {
    color: var(--muted);
}


/* =========================
   NAVIGATION
========================= */

nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.82),
            transparent
        );
}

.nav-inner {
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;

    gap: 0.8rem;

    font-weight: 900;
    letter-spacing: 0.08em;
}

.brand img {
    width: 48px;
    height: 48px;

    object-fit: contain;

    border-radius: 12px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;

    font-size: 0.9rem;
}

.nav-links a {
    position: relative;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}


/* =========================
   HERO SECTION
========================= */

.hero {
    min-height: 100vh;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    background:

        radial-gradient(
            circle at 82% 45%,
            rgba(53, 207, 255, 0.22),
            transparent 28%
        ),

        radial-gradient(
            circle at 20% 90%,
            rgba(24, 255, 206, 0.18),
            transparent 24%
        ),

        linear-gradient(
            120deg,
            #02040a 0%,
            #07111f 53%,
            #0b1e33 100%
        );
}


/* bottom fade */

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 30%;

    background:
        linear-gradient(
            180deg,
            transparent,
            #061222
        );

    pointer-events: none;
}


/* =========================
   HERO LAYOUT
========================= */

.hero-shell {
    position: relative;

    z-index: 2;

    width: min(1280px, 94%);
    margin: auto;

    padding-top: 90px;

    display: grid;

    grid-template-columns:
        0.72fr
        1.28fr;

    gap: 1rem;

    align-items: center;
}


/* =========================
   HERO LEFT
========================= */

.hero-left {
    align-self: stretch;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding:
        2rem
        0
        3rem;
}


/* =========================
   HERO DESCRIPTION
========================= */

.hero-copy {
    max-width: 430px;

    margin-bottom: 2.4rem;

    animation:
        fadeUp
        1.2s
        ease
        forwards;
}

.hero-copy p {
    font-size: 1.06rem;
}


/* =========================
   MINI CARD
========================= */

.mini-card {
    width: min(310px, 80%);

    position: relative;

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    padding: 0.45rem;

    background:
        rgba(5, 15, 27, 0.55);

    backdrop-filter:
        blur(8px);

    box-shadow:
        var(--shadow);

    opacity: 0;

    animation:
        miniCardReveal
        1.3s
        ease
        0.7s
        forwards;
}

.mini-card img {
    width: 100%;

    aspect-ratio:
        4 / 3;

    object-fit: cover;

    transition:
        transform 0.8s ease;
}

.mini-card:hover img {
    transform:
        scale(1.05);
}


/* =========================
   PLAY BUTTON
========================= */

.play {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    width: 58px;
    height: 58px;

    border-radius: 50%;

    display: grid;
    place-items: center;

    background:
        rgba(255, 255, 255, 0.88);

    color:
        #091421;

    font-weight: 900;

    transition:
        transform 0.3s ease;
}

.play:hover {
    transform:
        translate(-50%, -50%)
        scale(1.12);
}


/* =========================
   MINI CARD DOTS
========================= */

.dots {
    display: flex;

    gap: 0.45rem;

    margin-top: 0.8rem;
}

.dots span {
    width: 34px;
    height: 3px;

    background:
        rgba(255, 255, 255, 0.3);
}

.dots span:first-child {
    background:
        #ffffff;
}


/* =========================
   HERO BUTTON
========================= */

.hero-btn {
    margin-top: 2rem;

    display: inline-flex;

    align-items: center;

    gap: 0.6rem;

    width: max-content;

    padding:
        0.9rem
        1.2rem;

    background:
        #ffffff;

    color:
        #061222;

    font-weight: 900;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

    opacity: 0;

    animation:
        fadeUp
        1s
        ease
        1.2s
        forwards;
}

.hero-btn:hover {
    transform:
        translateY(-4px);

    background:
        var(--accent);
}

.hero-btn b {
    color:
        #ff8d48;
}


/* =========================
   HERO MAIN STAGE
========================= */

.hero-stage {
    position: relative;

    min-height: 760px;
}


/* =========================
   HERO PORTRAIT
========================= */

.hero-main {
    position: absolute;

    top: 3%;
    right: 0;

    width: 66%;
    height: 94%;

    object-fit: cover;

    object-position:
        top center;

    border-radius:
        0 0 0 42px;

    filter:
        saturate(0.92)
        contrast(1.02);

    transform-origin:
        center;

    opacity: 0;

    animation:
        heroImageReveal
        1.8s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        )
        forwards,

        heroImageFloat
        8s
        ease-in-out
        1.8s
        infinite;
}


/* dark overlay over portrait */

.hero-stage::before {
    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    background:

        linear-gradient(
            90deg,
            #07111f 0%,
            rgba(7, 17, 31, 0.2) 22%,
            transparent 44%
        ),

        linear-gradient(
            180deg,
            transparent 70%,
            rgba(2, 7, 15, 0.7) 100%
        );

    pointer-events: none;
}


/* =========================
   HERO TITLE
========================= */

.hero-title {
    position: absolute;

    z-index: 3;

    right: 0;
    top: 28%;

    width: 88%;

    font-size:
        clamp(
            3.8rem,
            7vw,
            7.8rem
        );

    font-weight: 1000;

    letter-spacing:
        -0.055em;

    line-height:
        0.92;

    text-align: right;

    text-transform:
        uppercase;

    pointer-events: none;
}


/* each line separate */

.hero-title span {
    display: block;
}


/* TALES LIKE */

.hero-title span:first-child {
    opacity: 0;

    transform:
        translateX(-220px);

    animation:
        titleFromLeft
        1.4s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        )
        0.4s
        forwards;
}


/* A RIVER */

/* TALES LIKE */
.hero-title span:first-child {
    color: #f0b44d;

    text-shadow:
        0 4px 25px
        rgba(0, 0, 0, 0.75);
}


/* A RIVER */
.hero-title .accent {
    color: #35c6e8;

    text-shadow:
        0 4px 25px
        rgba(0, 0, 0, 0.8);
}


/* =========================
   HERO ANIMATIONS
========================= */


/* portrait enters */

@keyframes heroImageReveal {

    0% {
        opacity: 0;

        transform:
            scale(1.12)
            translateY(50px);
    }

    100% {
        opacity: 1;

        transform:
            scale(1)
            translateY(0);
    }
}


/* portrait slow motion */

@keyframes heroImageFloat {

    0% {
        transform:
            scale(1)
            translateY(0);
    }

    50% {
        transform:
            scale(1.035)
            translateY(-10px);
    }

    100% {
        transform:
            scale(1)
            translateY(0);
    }
}


/* first title from left */

@keyframes titleFromLeft {

    0% {
        opacity: 0;

        transform:
            translateX(-220px);
    }

    100% {
        opacity: 1;

        transform:
            translateX(0);
    }
}


/* second title from right */

@keyframes titleFromRight {

    0% {
        opacity: 0;

        transform:
            translateX(220px);
    }

    100% {
        opacity: 1;

        transform:
            translateX(0);
    }
}


/* A RIVER keeps gently moving */

@keyframes riverFloat {

    0% {
        transform:
            translateX(0)
            translateY(0);
    }

    50% {
        transform:
            translateX(-18px)
            translateY(-6px);
    }

    100% {
        transform:
            translateX(0)
            translateY(0);
    }
}


/* left content fade */

@keyframes fadeUp {

    0% {
        opacity: 0;

        transform:
            translateY(35px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* mini card entrance */

@keyframes miniCardReveal {

    0% {
        opacity: 0;

        transform:
            translateX(-70px);
    }

    100% {
        opacity: 1;

        transform:
            translateX(0);
    }
}


/* =========================
   SECTIONS
========================= */

section {
    padding:
        6rem
        0;
}

.section-head {
    display: flex;

    justify-content:
        space-between;

    align-items:
        end;

    gap:
        2rem;

    margin-bottom:
        2.2rem;
}

.section-head p {
    max-width:
        600px;
}


/* =========================
   ABOUT SECTION
========================= */

.about-grid {
    display: grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap:
        3rem;

    align-items:
        center;
}

.about-grid img {
    border-radius:
        28px;

    box-shadow:
        var(--shadow);
}


/* =========================
   GRID
========================= */

.grid-3 {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        1.2rem;
}


/* =========================
   CARDS
========================= */

.card {
    background:

        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.025)
        );

    border:
        1px solid
        var(--line);

    border-radius:
        22px;

    overflow:
        hidden;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}

.card:hover {
    transform:
        translateY(-8px);

    border-color:
        rgba(101, 239, 255, 0.4);
}

.card-body {
    padding:
        1.3rem;
}


/* =========================
   PORTFOLIO
========================= */

.portfolio-card img {
    width:
        100%;

    aspect-ratio:
        3 / 4;

    object-fit:
        cover;

    transition:
        transform 0.8s ease;
}

.portfolio-card:hover img {
    transform:
        scale(1.04);
}

.tag {
    display:
        inline-block;

    padding:
        0.35rem
        0.65rem;

    border:
        1px solid
        var(--line);

    border-radius:
        999px;

    color:
        #bad8ee;

    font-size:
        0.75rem;
}


/* =========================
   ABOUT LIST
========================= */

.list {
    display:
        grid;

    gap:
        0.85rem;
}

.list div {
    padding:
        1rem;

    border-left:
        3px solid
        var(--accent);

    background:
        rgba(255, 255, 255, 0.035);

    border-radius:
        0 14px 14px 0;
}


/* =========================
   AWARDS
========================= */

.award {
    padding:
        1.4rem;

    border:
        1px solid
        var(--line);

    border-radius:
        18px;

    background:
        rgba(255, 255, 255, 0.03);

    transition:
        transform 0.4s ease;
}

.award:hover {
    transform:
        translateY(-6px);
}


/* =========================
   COVER IMAGE
========================= */

.cover {
    width: 100%;

    border-radius:
        28px;

    border:
        1px solid
        var(--line);

    box-shadow:
        var(--shadow);
}


/* =========================
   CONTACT
========================= */

.contact {
    background:

        linear-gradient(
            135deg,
            #0d2f62,
            #07142c
        );

    border:
        1px solid
        var(--line);

    border-radius:
        30px;

    padding:
        2.5rem;
}

.contact-grid {
    display:
        grid;

    grid-template-columns:
        1fr
        1fr;

    gap:
        2rem;
}


/* =========================
   SOCIAL LINKS
========================= */

/* =========================
   SOCIAL MEDIA ICONS
========================= */

.socials {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 1.5rem;
}

.socials a {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.04);

    color: #ffffff;

    font-size: 1.25rem;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

.socials a:hover {
    transform: translateY(-5px);

    background: var(--accent);

    color: #061222;

    border-color: var(--accent);
}
/* =========================
   FOOTER
========================= */

footer {
    padding:
        2rem
        0;

    border-top:
        1px solid
        var(--line);

    color:
        var(--muted);
}


/* =========================
   TABLET
========================= */

@media (max-width: 980px) {

    .hero-shell {
        grid-template-columns:
            1fr;
    }

    .hero-left {
        padding-top:
            5rem;
    }

    .hero-stage {
        min-height:
            650px;
    }

    .hero-main {
        width:
            72%;
    }

    .hero-title {
        width:
            92%;

        top:
            30%;

        font-size:
            clamp(
                3.2rem,
                10vw,
                6rem
            );
    }

    .about-grid,
    .contact-grid {
        grid-template-columns:
            1fr;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {

    .nav-links {
        display:
            none;
    }

    .hero {
        min-height:
            auto;
    }

    .hero-shell {
        padding-top:
            110px;
    }

    .hero-left {
        padding-top:
            1rem;
    }

    .hero-stage {
        min-height:
            560px;
    }

    .hero-main {
        width:
            85%;

        height:
            90%;
    }

    .hero-title {
        top:
            30%;

        width:
            100%;

        font-size:
            clamp(
                2.7rem,
                12vw,
                4.7rem
            );
    }

    .mini-card {
        width:
            85%;
    }

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

    section {
        padding:
            4rem
            0;
    }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;
    }

}