/* =========================================================
   AKHIL.IN — CINEMATIC PORTFOLIO
   Pure CSS
   Works with:
   - HTML
   - Tailwind CDN
   - Vanilla JavaScript
   - Three.js
   - GitHub Pages
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --black: #030303;
    --black-2: #070605;
    --black-3: #0b0907;

    --gold: #d4af37;
    --gold-light: #f1d48a;
    --gold-dark: #806039;

    --white: #f4eee7;
    --white-soft: #d8cec3;

    --gray: #9f948a;
    --gray-dark: #71675e;

    --line: rgba(140, 109, 79, 0.25);

    --container: 1240px;

    --transition:
        cubic-bezier(0.16, 1, 0.3, 1);
}


/* =========================================================
   RESET
========================================================= */

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

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    background: var(--black);
}

body {
    margin: 0;
    padding: 0;

    min-width: 320px;

    background:
        radial-gradient(
            circle at 50% 0%,
            #120d08 0%,
            #030303 45%,
            #000 100%
        );

    color: var(--white);

    font-family:
        "Montserrat",
        Arial,
        sans-serif;

    overflow-x: hidden;

    cursor: none;
}

body,
button,
a,
input,
textarea {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    border: 0;
}

::selection {
    background: var(--gold);
    color: #000;
}


/* =========================================================
   CUSTOM CURSOR
========================================================= */

#cursor {
    position: fixed;

    width: 6px;
    height: 6px;

    left: 0;
    top: 0;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 8px rgba(212, 175, 55, 0.9),
        0 0 22px rgba(212, 175, 55, 0.5);

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

    pointer-events: none;

    z-index: 99999;
}

#ring {
    position: fixed;

    width: 34px;
    height: 34px;

    left: 0;
    top: 0;

    border:
        1px solid
        rgba(212, 175, 55, 0.6);

    border-radius: 50%;

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

    pointer-events: none;

    z-index: 99998;

    transition:
        width 0.25s ease,
        height 0.25s ease,
        border-color 0.25s ease,
        opacity 0.25s ease;
}

body.hovering #ring {
    width: 55px;
    height: 55px;

    border-color: var(--gold);

    opacity: 0.9;
}


/* =========================================================
   THREE.JS BACKGROUND
========================================================= */

#three-bg {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: -10;

    pointer-events: none;

    opacity: 0.32;
}


/* =========================================================
   GENERAL CONTAINERS
========================================================= */

.container {
    width: min(
        var(--container),
        calc(100% - 48px)
    );

    margin-inline: auto;
}

.narrow {
    width: min(
        950px,
        calc(100% - 48px)
    );

    margin-inline: auto;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.silver {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #d7d0c9 40%,
            #817970 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.gold {
    background:
        linear-gradient(
            180deg,
            #fff0c9 0%,
            #d4af37 45%,
            #70501f 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.title {
    margin: 0 0 35px;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size:
        clamp(4rem, 8vw, 7rem);

    font-weight: 400;

    line-height: 0.84;

    letter-spacing: 0.01em;

    text-transform: uppercase;
}

.copy {
    max-width: 680px;

    margin:
        0 0 18px;

    color: var(--gray);

    font-size: 13px;

    line-height: 1.9;

    font-weight: 400;
}

.copy strong {
    color: var(--white-soft);
}


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

.section {
    position: relative;

    padding:
        115px 0;

    overflow: hidden;
}

.dark {
    background:
        linear-gradient(
            180deg,
            #080706 0%,
            #050403 100%
        );
}


/* =========================================================
   SECTION KICKER
========================================================= */

.kicker {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 30px;

    color: #c99e5d;

    font-family: monospace;

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.3em;

    text-transform: uppercase;
}

.kicker i {
    display: block;

    width: 80px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            var(--gold),
            transparent
        );
}


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

.hero {
    position: relative;

    min-height: 100svh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 75% 45%,
            #1a1209 0%,
            #080604 28%,
            #000 70%
        );

    isolation: isolate;
}


/* =========================================================
   HERO VIDEO
========================================================= */

.hero-video {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center center;

    z-index: -4;

    display: block;

    opacity: 1;

    filter:
        brightness(0.48)
        contrast(1.08)
        saturate(0.85);

    transform: scale(1.02);

    pointer-events: none;

    background: #000;
}


/* =========================================================
   HERO VIDEO OVERLAY
========================================================= */

.hero-video-overlay {
    position: absolute;

    inset: 0;

    z-index: -3;

    pointer-events: none;

    background:

        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(0, 0, 0, 0.80) 28%,
            rgba(0, 0, 0, 0.55) 52%,
            rgba(0, 0, 0, 0.28) 75%,
            rgba(0, 0, 0, 0.55) 100%
        ),

        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.18) 45%,
            rgba(0, 0, 0, 0.55) 100%
        );
}


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

.hero-grid {
    position: absolute;

    inset: 0;

    z-index: -2;

    pointer-events: none;

    background-image:

        linear-gradient(
            rgba(212, 175, 55, 0.035) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.035) 1px,
            transparent 1px
        );

    background-size: 70px 70px;

    opacity: 0.6;

    mask-image:
        linear-gradient(
            90deg,
            #000 0%,
            transparent 90%
        );
}


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

.nav {
    position: relative;

    z-index: 100;

    height: 80px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 5vw;

    border-bottom:
        1px solid
        rgba(140, 109, 79, 0.18);

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

    backdrop-filter: blur(4px);
}

.brand {
    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 18px;

    line-height: 1;

    letter-spacing: 0.18em;
}

.brand span {
    color: var(--gold);
}

.nav nav {
    position: absolute;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    align-items: center;

    gap: 30px;
}

.nav nav a {
    position: relative;

    color: #b9aa9b;

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.2em;

    transition:
        color 0.3s ease;
}

.nav nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 1px;

    background: var(--gold);

    transition:
        width 0.35s var(--transition);
}

.nav nav a:hover {
    color: var(--gold-light);
}

.nav nav a:hover::after {
    width: 100%;
}

.talk {
    padding:
        11px 15px;

    border:
        1px solid
        #5b4733;

    color: #b9aa9b;

    font-size: 9px;

    letter-spacing: 0.2em;

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

.talk:hover {
    color: #000;

    background: var(--gold);

    border-color: var(--gold);
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    position: relative;

    z-index: 5;

    min-height:
        calc(100svh - 80px);

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 60px;

    padding:
        40px 10vw 100px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin: 0;

    color: #c99e5d;

    font-family: monospace;

    font-size: 9px;

    letter-spacing: 0.3em;

    line-height: 1.8;
}

.hero h1 {
    margin:
        25px 0;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size:
        clamp(5rem, 12vw, 11rem);

    font-weight: 400;

    line-height: 0.82;

    letter-spacing: 0.01em;
}

.hero h1 span {
    display: block;
}

.hero-role {
    margin: 0;

    color: #c8b8a7;

    font-size: 10px;

    font-weight: 500;

    letter-spacing: 0.24em;

    line-height: 1.8;
}

.hero-role i {
    margin:
        0 7px;

    color: var(--gold);

    font-style: normal;
}

.lead {
    max-width: 650px;

    margin:
        22px 0 0;

    color: #9f948a;

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   HERO BUTTONS
========================================================= */

.actions {
    display: flex;

    gap: 14px;

    margin-top: 28px;
}

.primary,
.secondary {
    display: inline-flex;

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

    padding:
        14px 18px;

    border:
        1px solid
        #735a3f;

    font-size: 9px;

    font-weight: 500;

    letter-spacing: 0.2em;

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

.primary {
    color: #080604;

    background: var(--gold);

    border-color: var(--gold);
}

.primary:hover {
    background: var(--gold-light);

    border-color: var(--gold-light);
}

.secondary {
    color: #d9c9b9;

    background: rgba(13, 11, 8, 0.7);
}

.secondary:hover {
    color: #000;

    background: var(--gold);

    border-color: var(--gold);
}


/* =========================================================
   HERO ORBIT
========================================================= */

.hero-orbit {
    position: relative;

    width: 340px;
    height: 340px;

    flex: 0 0 340px;

    display: grid;

    place-items: center;
}

.orbit {
    position: absolute;

    width: 100%;
    height: 100%;

    border:
        1px solid
        rgba(212, 175, 55, 0.35);

    border-radius: 50%;

    animation:
        orbit-spin 18s linear infinite;
}

.orbit::before {
    content: "";

    position: absolute;

    width: 8px;
    height: 8px;

    top: 12%;
    left: 50%;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 10px var(--gold),
        0 0 25px rgba(212, 175, 55, 0.7);

    transform:
        translateX(-50%);
}

.orbit.inner {
    width: 72%;
    height: 72%;

    border-color:
        rgba(255, 255, 255, 0.12);

    animation:
        orbit-spin-reverse 12s linear infinite;
}

.orbit-core {
    position: relative;

    width: 150px;
    height: 150px;

    display: flex;

    flex-direction: column;

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

    border:
        1px solid
        rgba(212, 175, 55, 0.38);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(30, 21, 12, 0.85),
            rgba(0, 0, 0, 0.88)
        );

    box-shadow:
        0 0 60px rgba(212, 175, 55, 0.08),
        inset 0 0 30px rgba(212, 175, 55, 0.04);
}

.orbit-core span {
    color: #c99e5d;

    font-size: 8px;

    letter-spacing: 0.3em;
}

.orbit-core b {
    margin: 8px 0;

    color: #eee;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 31px;

    font-weight: 400;

    line-height: 0.8;

    text-align: center;
}

.orbit-core small {
    color: #9b8c7d;

    font-family: monospace;

    font-size: 7px;

    letter-spacing: 0.18em;

    text-align: center;
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes orbit-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}


/* =========================================================
   HERO BOTTOM
========================================================= */

.hero-bottom {
    position: absolute;

    z-index: 10;

    left: 5vw;
    right: 5vw;
    bottom: 25px;

    display: flex;

    align-items: center;

    gap: 15px;

    color: #776b60;

    font-family: monospace;

    font-size: 8px;

    letter-spacing: 0.2em;
}

.hero-bottom i {
    width: auto;
    height: 1px;

    flex: 1;

    background:
        linear-gradient(
            90deg,
            #735a3f,
            transparent
        );
}

.hero-bottom span:last-child {
    color: #c99e5d;
}


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

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 7fr)
        minmax(300px, 5fr);

    gap: 70px;

    align-items: center;
}


/* =========================================================
   PROFILE IMAGE
========================================================= */

.portrait-wrap {
    display: grid;

    place-items: center;
}

.portrait-card {
    position: relative;

    width: min(
        430px,
        82vw
    );

    aspect-ratio: 3 / 4;

    overflow: hidden;

    border:
        1px solid
        #70563b;

    background:
        radial-gradient(
            circle,
            #241b12,
            #050403 65%
        );

    box-shadow:
        20px 30px 90px rgba(0, 0, 0, 0.8);

    transform-style: preserve-3d;

    transition:
        transform 0.6s var(--transition),
        border-color 0.4s ease;
}

.portrait-card:hover {
    border-color: var(--gold);

    transform:
        perspective(1000px)
        rotateY(-4deg)
        rotateX(2deg)
        translateY(-5px);
}

.portrait-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center 28%;

    filter:
        saturate(0.9)
        contrast(1.06);

    transition:
        transform 0.7s var(--transition),
        filter 0.7s ease;
}

.portrait-card:hover img {
    transform: scale(1.035);

    filter:
        saturate(1)
        contrast(1.08);
}

.portrait-card::before {
    content: "";

    position: absolute;

    inset: 18px;

    z-index: 3;

    border:
        1px solid
        rgba(212, 175, 55, 0.22);

    pointer-events: none;
}

.portrait-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(0, 0, 0, 0.08) 60%,
            rgba(0, 0, 0, 0.82) 100%
        );
}

.portrait-card > span {
    position: absolute;

    z-index: 4;

    left: 0;
    right: 0;
    bottom: 22px;

    text-align: center;

    color: #fff;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 20px;

    letter-spacing: 0.25em;

    text-shadow:
        0 2px 12px #000;
}


/* =========================================================
   STATS
========================================================= */

.stats {
    display: grid;

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

    margin-top: 65px;

    border-top:
        1px solid
        #2b2118;
}

.stats div {
    padding: 22px;

    border-right:
        1px solid
        #2b2118;
}

.stats div:last-child {
    border-right: 0;
}

.stats b {
    display: block;

    color: var(--gold);

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 45px;

    font-weight: 400;
}

.stats span {
    color: #83786d;

    font-size: 8px;

    letter-spacing: 0.2em;
}


/* =========================================================
   HEADING ROW
========================================================= */

.heading-row {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;
}

.heading-row > p {
    max-width: 380px;

    margin: 0 0 35px;

    color: #8f8479;

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   BOOKS / GLASS CARDS
========================================================= */

.cards.four {
    display: grid;

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

    gap: 15px;
}

.glass {
    position: relative;

    min-height: 360px;

    padding: 28px;

    overflow: hidden;

    border:
        1px solid
        #382b20;

    background:
        linear-gradient(
            145deg,
            rgba(25, 20, 15, 0.92),
            rgba(7, 6, 5, 0.94)
        );

    transition:
        transform 0.45s var(--transition),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.glass::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    bottom: -90px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.09),
            transparent 70%
        );

    pointer-events: none;
}

.glass:hover {
    border-color: #a77c42;

    transform:
        translateY(-7px);

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.45),

        0 0 35px
        rgba(212, 175, 55, 0.06);
}

.glass .num {
    position: absolute;

    top: 10px;
    right: 15px;

    color: rgba(255, 255, 255, 0.08);

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 75px;

    line-height: 1;
}

.glass small,
.project small {
    color: #c99e5d;

    font-family: monospace;

    font-size: 8px;

    letter-spacing: 0.25em;
}

.glass h3 {
    margin:
        45px 0 15px;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 28px;

    font-weight: 400;

    line-height: 0.9;
}

.glass p {
    color: #8e8379;

    font-size: 11px;

    line-height: 1.8;
}

.glass > a {
    position: absolute;

    left: 28px;
    bottom: 22px;

    color: var(--gold);

    font-size: 8px;

    letter-spacing: 0.2em;

    transition:
        color 0.3s ease;
}

.glass > a:hover {
    color: var(--gold-light);
}


/* =========================================================
   CHIPS
========================================================= */

.chips {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.chips i {
    padding:
        6px;

    border:
        1px solid
        #463528;

    color: #b7a796;

    font-size: 7px;

    font-style: normal;

    letter-spacing: 0.1em;

    background:
        rgba(0, 0, 0, 0.18);
}


/* =========================================================
   SKILLS FILTER
========================================================= */

.skill-filter {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin:
        0 0 30px;
}

.skill-filter button {
    padding:
        10px 13px;

    border:
        1px solid
        #463528;

    color: #8f8275;

    background:
        #0b0907;

    font-size: 8px;

    letter-spacing: 0.17em;

    cursor: none;

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

.skill-filter button:hover,
.skill-filter button.active {
    color: #000;

    background: var(--gold);

    border-color: var(--gold);
}


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

.skill-grid {
    display: grid;

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

    gap: 12px;
}

.skill {
    padding: 20px;

    border:
        1px solid
        #292019;

    background:
        #0d0b09;

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

.skill:hover {
    border-color: #6b5035;

    transform:
        translateY(-3px);
}

.skill > div:first-child {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.skill span {
    color: #e1d4c7;

    font-size: 11px;
}

.skill b {
    color: var(--gold);

    font-family: monospace;

    font-size: 11px;
}

.skill small {
    display: block;

    margin-top: 8px;

    color: #6e635a;

    font-size: 8px;
}

.bar {
    width: 100%;
    height: 2px;

    margin-top: 13px;

    overflow: hidden;

    background:
        #292019;
}

.bar i {
    display: block;

    width: 0;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #806039,
            #d4af37
        );

    transition:
        width 1.2s var(--transition);
}


/* =========================================================
   PROJECTS
========================================================= */

.project-stack {
    margin-top: 45px;
}

.project {
    display: grid;

    grid-template-columns:
        80px
        minmax(0, 1fr)
        160px;

    gap: 20px;

    align-items: center;

    padding:
        40px 0;

    border-top:
        1px solid
        #33271e;

    transition:
        padding 0.4s ease;
}

.project:last-child {
    border-bottom:
        1px solid
        #33271e;
}

.project:hover {
    padding-left: 12px;
}

.pnum {
    color: #5e4936;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 40px;

    transition:
        color 0.3s ease;
}

.project:hover .pnum {
    color: var(--gold);
}

.project h3 {
    margin:
        7px 0 10px;

    color: #eee;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 43px;

    font-weight: 400;

    line-height: 0.9;
}

.project p {
    max-width: 700px;

    margin:
        0 0 15px;

    color: #8f8479;

    font-size: 11px;

    line-height: 1.8;
}

.project-link {
    display: inline-flex;

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

    padding:
        13px;

    border:
        1px solid
        #604a32;

    color: #c9b8a6;

    font-size: 8px;

    letter-spacing: 0.18em;

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

.project-link:hover {
    color: #000;

    background: var(--gold);

    border-color: var(--gold);
}


/* =========================================================
   EXPERIENCE TIMELINE
========================================================= */

.timeline {
    position: relative;

    margin-left: 110px;

    border-left:
        1px solid
        #5a432d;
}

.time {
    position: relative;

    display: grid;

    grid-template-columns:
        150px
        minmax(0, 1fr);

    gap: 25px;

    padding:
        0 0 55px 30px;
}

.time:last-child {
    padding-bottom: 0;
}

.time::before {
    content: "";

    position: absolute;

    left: -5px;
    top: 2px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 8px var(--gold),
        0 0 18px rgba(212, 175, 55, 0.45);
}

.time time {
    color: #c99e5d;

    font-family: monospace;

    font-size: 8px;

    letter-spacing: 0.14em;
}

.time h3 {
    margin: 0;

    color: #eee;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 32px;

    font-weight: 400;

    line-height: 1;
}

.time p {
    margin:
        8px 0 0;

    color: #8e8379;

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   EDUCATION
========================================================= */

.edu-grid {
    display: grid;

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

    gap: 15px;
}

.edu {
    min-height: 220px;
}

.edu h3 {
    margin:
        35px 0 10px;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 30px;

    font-weight: 400;

    line-height: 0.95;
}

.edu p {
    margin: 0 0 10px;

    color: #8f8479;

    font-size: 10px;
}

.edu b {
    color: var(--gold);

    font-size: 9px;

    letter-spacing: 0.2em;
}


/* =========================================================
   CERTIFICATES
========================================================= */

.cert-grid {
    display: grid;

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

    gap: 15px;
}

.cert {
    position: relative;

    min-height: 190px;

    display: flex;

    flex-direction: column;

    gap: 12px;

    padding: 25px;

    border:
        1px solid
        #33271e;

    background:
        linear-gradient(
            145deg,
            #100d09,
            #050403
        );

    transition:
        transform 0.35s var(--transition),
        border-color 0.3s ease;
}

.cert:hover {
    border-color: #806039;

    transform:
        translateY(-5px);
}

.cert b {
    color: var(--gold);

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 30px;

    font-weight: 400;
}

.cert span {
    color: #eee;

    font-family:
        "Bebas Neue",
        sans-serif;

    font-size: 23px;

    line-height: 1;
}

.cert small {
    color: #82776d;

    font-size: 9px;

    line-height: 1.6;
}

.cert a {
    margin-top: auto;

    color: var(--gold);

    font-size: 8px;

    letter-spacing: 0.2em;
}


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

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 7fr)
        minmax(320px, 5fr);

    gap: 70px;

    align-items: center;
}


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

.terminal {
    display: flex;

    flex-direction: column;

    gap: 18px;

    padding: 30px;

    border:
        1px solid
        #3c2e21;

    background:
        linear-gradient(
            145deg,
            #0d0a08,
            #050403
        );

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.35);
}

.terminal label {
    color: #a7855e;

    font-family: monospace;

    font-size: 8px;

    letter-spacing: 0.2em;
}

.terminal input,
.terminal textarea {
    display: block;

    width: 100%;

    margin-top: 7px;

    padding:
        13px;

    outline: none;

    resize: vertical;

    border:
        1px solid
        #30251d;

    color: #fff;

    background:
        #030303;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 11px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.terminal input::placeholder,
.terminal textarea::placeholder {
    color: #4f4740;
}

.terminal input:focus,
.terminal textarea:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 1px
        rgba(212, 175, 55, 0.08);
}

.terminal button {
    padding:
        14px;

    border:
        1px solid
        #7b5b36;

    color: #050403;

    background:
        var(--gold);

    font-size: 9px;

    letter-spacing: 0.2em;

    cursor: none;

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

.terminal button:hover {
    background:
        var(--gold-light);

    transform:
        translateY(-2px);
}

.terminal p {
    margin: 0;

    color: var(--gold);

    font-family: monospace;

    font-size: 9px;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 80px;

    padding-top: 25px;

    border-top:
        1px solid
        #2b2118;

    color: #71675e;

    font-family: monospace;

    font-size: 8px;

    letter-spacing: 0.15em;
}

.footer span:first-child {
    color: #d4af37;
}

.footer a {
    color: var(--gold);
}

.footer a:hover {
    color: var(--gold-light);
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(28px);

    filter:
        blur(5px);

    transition:
        opacity 0.9s var(--transition),
        transform 0.9s var(--transition),
        filter 0.9s var(--transition);
}

.reveal.visible {
    opacity: 1;

    transform:
        translateY(0);

    filter:
        blur(0);
}


/* =========================================================
   STAGGERED REVEALS
========================================================= */

.cards .reveal:nth-child(2),
.skill-grid .reveal:nth-child(2),
.cert-grid .reveal:nth-child(2) {
    transition-delay: 0.08s;
}

.cards .reveal:nth-child(3),
.skill-grid .reveal:nth-child(3),
.cert-grid .reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.cards .reveal:nth-child(4),
.skill-grid .reveal:nth-child(4),
.cert-grid .reveal:nth-child(4) {
    transition-delay: 0.24s;
}


/* =========================================================
   MAGNETIC ELEMENTS
========================================================= */

.magnetic {
    will-change: transform;

    transition:
        transform 0.25s ease,
        color 0.3s ease,
        background 0.3s ease;
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #030303;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(
            180deg,
            #806039,
            #d4af37,
            #806039
        );

    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}


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

@media (max-width: 1100px) {

    .nav nav {
        gap: 18px;
    }

    .hero-content {
        padding-left: 7vw;
        padding-right: 7vw;
    }

    .hero-orbit {
        width: 280px;
        height: 280px;

        flex-basis: 280px;
    }

    .orbit-core {
        width: 125px;
        height: 125px;
    }

    .orbit-core b {
        font-size: 27px;
    }

    .cards.four {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .skill-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .project h3 {
        font-size: 37px;
    }
}


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

@media (max-width: 900px) {

    body {
        cursor: auto;
    }

    #cursor,
    #ring {
        display: none;
    }

    .container,
    .narrow {
        width:
            calc(100% - 32px);
    }

    .nav {
        height: 70px;

        padding:
            0 20px;
    }

    .nav nav {
        display: none;
    }

    .talk {
        margin-left: auto;
    }

    .hero-content {
        min-height:
            calc(100svh - 70px);

        display: block;

        padding:
            80px 7vw 100px;
    }

    .hero-copy {
        max-width: 100%;
    }

    .hero h1 {
        font-size:
            clamp(
                5rem,
                19vw,
                8rem
            );
    }

    .hero-role {
        max-width: 700px;

        line-height: 1.9;
    }

    .hero-orbit {
        display: none;
    }

    .hero-bottom {
        left: 20px;
        right: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .portrait-wrap {
        order: -1;
    }

    .portrait-card {
        width:
            min(
                380px,
                90vw
            );
    }

    .stats {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .stats div {
        border-bottom:
            1px solid
            #2b2118;
    }

    .heading-row {
        display: block;
    }

    .heading-row > p {
        margin-top: -10px;
        margin-bottom: 30px;
    }

    .project {
        grid-template-columns:
            45px
            minmax(0, 1fr);
    }

    .project-link {
        grid-column: 2;

        justify-self: start;
    }

    .timeline {
        margin-left: 0;
    }

    .time {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .footer {
        flex-direction: column;

        text-align: center;
    }
}


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

@media (max-width: 560px) {

    .section {
        padding:
            80px 0;
    }

    .title {
        font-size:
            4rem;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding:
            65px 22px 100px;
    }

    .hero h1 {
        margin:
            22px 0;

        font-size:
            clamp(
                4.5rem,
                22vw,
                6rem
            );
    }

    .hero-role {
        font-size: 8px;

        letter-spacing: 0.16em;
    }

    .lead {
        font-size: 12px;
    }

    .actions {
        flex-direction: column;

        width: 100%;
    }

    .primary,
    .secondary {
        width: 100%;

        text-align: center;
    }

    .cards.four,
    .skill-grid,
    .edu-grid,
    .cert-grid {
        grid-template-columns: 1fr;
    }

    .glass {
        min-height: 330px;
    }

    .skill {
        padding: 18px;
    }

    .project {
        padding:
            32px 0;
    }

    .project h3 {
        font-size: 32px;
    }

    .project p {
        font-size: 10px;
    }

    .pnum {
        font-size: 32px;
    }

    .time h3 {
        font-size: 27px;
    }

    .terminal {
        padding: 20px;
    }

    .footer {
        margin-top: 55px;
    }

}


/* =========================================================
   VERY SMALL DEVICES
========================================================= */

@media (max-width: 380px) {

    .brand {
        font-size: 15px;
    }

    .talk {
        padding:
            9px 10px;

        font-size: 8px;
    }

    .hero h1 {
        font-size:
            4.2rem;
    }

    .title {
        font-size:
            3.5rem;
    }

    .portrait-card {
        width: 100%;
    }

}


/* =========================================================
   VIDEO FALLBACK
========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-video {
        transform: none;
    }
}


/* =========================================================
   MOBILE VIDEO OPTIMIZATION
========================================================= */

@media (max-width: 900px) {

    .hero-video {
        object-position: center center;

        filter:
            brightness(0.40)
            contrast(1.06)
            saturate(0.82);
    }

    .hero-video-overlay {
        background:

            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.78),
                rgba(0, 0, 0, 0.38) 40%,
                rgba(0, 0, 0, 0.88) 100%
            );
    }

}


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

@media (
    max-width: 900px
) and (
    orientation: landscape
) {

    .hero-content {
        padding-top: 40px;
        padding-bottom: 70px;
    }

    .hero h1 {
        font-size: 5rem;
    }

    .hero-bottom {
        bottom: 12px;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    #three-bg,
    #cursor,
    #ring,
    .hero-video,
    .hero-video-overlay,
    .hero-grid {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        cursor: auto;
    }

    .section {
        break-inside: avoid;
    }

}
/* =========================================================
   HERO ORBIT VIDEO
========================================================= */

.orbit-core {
    position: relative;
    overflow: hidden;

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

    isolation: isolate;
}

/* VIDEO INSIDE CIRCLE */

.orbit-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;

    display: block;

    opacity: .85;

    filter:
        brightness(.65)
        contrast(1.1)
        saturate(.85);

    pointer-events: none;
}


/* DARK OVERLAY */

.orbit-video-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        radial-gradient(
            circle,
            rgba(0,0,0,.15) 0%,
            rgba(0,0,0,.65) 75%,
            rgba(0,0,0,.9) 100%
        );

    pointer-events: none;
}


/* TEXT ABOVE VIDEO */

.orbit-content {
    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    width: 100%;
    height: 100%;

    padding: 20px;
}


/* PYTHON */

.orbit-content span {
    font-size: 10px;

    letter-spacing: .28em;

    color: #d4af37;

    margin-bottom: 8px;
}


/* FULL STACK */

.orbit-content b {
    font-family: "Bebas Neue", sans-serif;

    font-size: 30px;

    line-height: .85;

    letter-spacing: .08em;

    color: #f4eee7;

    text-shadow:
        0 2px 20px rgba(0,0,0,.8);
}


/* TG SET */

.orbit-content small {
    margin-top: 10px;

    font-size: 7px;

    line-height: 1.4;

    letter-spacing: .18em;

    color: #d8cec3;

    text-shadow:
        0 2px 10px rgba(0,0,0,.9);
}
