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

html {
    scroll-behavior: smooth;
}

:root {
    --black: #050505;
    --dark: #0b0b0b;
    --card: rgba(18, 18, 18, 0.62);
    --white: #f5f1e8;
    --muted: #858585;
    --gold: #d8ad4f;
    --gold-light: #f0cf7a;
    --border: rgba(255, 255, 255, 0.1);
}

body {
    background: var(--black);
    color: var(--white);
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 20px;
}


/* =========================== */
/* PROGRESS */
/* =========================== */

.progress-line {
    position: fixed;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    height: 190px;
    width: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1000;
    border-radius: 50px;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--gold);
    border-radius: 50px;
}


/* =========================== */
/* CURSOR GLOW */
/* =========================== */

.cursor-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(216, 173, 79, 0.08),
            transparent 67%
        );

    z-index: 0;

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


/* =========================== */
/* PARTICLES */
/* =========================== */

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}


/* =========================== */
/* HEADER */
/* =========================== */

.header {
    height: 78px;
    padding: 0 5%;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

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

    background: rgba(5, 5, 5, 0.58);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    transition: 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--white);
    text-decoration: none;
}

.logo-symbol {
    font-size: 29px;
    color: var(--gold);
}

.logo-text {
    letter-spacing: 6px;
    font-size: 16px;
    font-weight: 500;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    position: relative;

    text-decoration: none;

    font-size: 13px;
    color: #777;

    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -13px;

    height: 1px;
    width: 0%;

    background: var(--gold);

    transition: 0.3s;
}

.nav-link.active::after {
    width: 100%;
}

.header-button {
    border: 1px solid rgba(216, 173, 79, 0.35);

    background: rgba(216, 173, 79, 0.05);

    color: var(--gold-light);

    border-radius: 50px;

    padding: 12px 23px;

    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 14px;

    transition: 0.3s;
}

.header-button:hover {
    background: var(--gold);
    color: #050505;
}


/* =========================== */
/* 3D MODEL */
/* =========================== */

.model-stage {
    position: fixed;

    width: 58vw;
    height: 100vh;

    right: -2vw;
    top: 0;

    z-index: 4;

    pointer-events: none;

    will-change: transform;

    transform:
        translate3d(0, 0, 0)
        scale(1);

    transition: filter 0.3s ease;
}

.model-float {
    width: 100%;
    height: 100%;

    animation: floatingModel 5s ease-in-out infinite;
}

#clock-model {
    width: 100%;
    height: 100%;

    --poster-color: transparent;

    background: transparent;
}

@keyframes floatingModel {

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

    50% {
        transform: translateY(-17px);
    }

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


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

.section {
    min-height: 100vh;

    position: relative;

    display: flex;

    overflow: hidden;

    z-index: 2;
}

.section-content {
    position: relative;
    z-index: 8;
}

.section-label {
    color: var(--gold);

    letter-spacing: 6px;

    font-size: 12px;

    text-transform: uppercase;

    margin-bottom: 20px;
}

.section-number {
    color: #575757;

    font-size: 11px;

    letter-spacing: 3px;

    margin-bottom: 14px;
}

.section-title {
    font-family: "Playfair Display", serif;

    font-size: clamp(3.2rem, 5.8vw, 6.2rem);

    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -3px;
}

.section-title span {
    display: block;
    color: var(--gold);
}


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

.hero {
    align-items: center;

    padding: 110px 6% 40px;
}

.hero-content {
    width: 52%;

    position: relative;

    z-index: 10;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 15px;

    letter-spacing: 5px;
    text-transform: uppercase;

    font-size: 11px;

    color: var(--gold);

    margin-bottom: 37px;
}

.eyebrow-line {
    display: inline-block;

    width: 45px;
    height: 1px;

    background: var(--gold);
}

.hero-title {
    font-family: "Playfair Display", serif;

    font-size: clamp(5rem, 8.8vw, 9.2rem);

    line-height: 0.82;

    font-weight: 400;

    letter-spacing: -7px;
}

.hero-title span {
    display: block;
}

.hero-title em {
    font-style: normal;
    color: var(--gold);
}

.hero-description {
    width: min(630px, 95%);

    margin-top: 44px;

    color: var(--muted);

    font-size: clamp(1rem, 1.25vw, 1.25rem);

    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;

    margin-top: 37px;
}

.primary-button,
.secondary-button {
    min-height: 58px;

    border-radius: 60px;

    padding: 0 29px;

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

    cursor: pointer;

    transition: 0.35s;

    font-size: 14px;
}

.primary-button {
    background: var(--gold);

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

    color: black;

    display: inline-flex;
    align-items: center;
    gap: 25px;
}

.primary-button span {
    transition: 0.3s;
}

.primary-button:hover {
    background: var(--gold-light);
    transform: translateY(-4px);
}

.primary-button:hover span {
    transform: translateX(5px);
}

.secondary-button {
    border: 1px solid #414141;

    background: transparent;

    color: white;
}

.secondary-button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.giant-background-text {
    position: absolute;

    right: -3vw;
    bottom: -5vw;

    font-family: "Playfair Display", serif;

    font-size: 28vw;

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

    pointer-events: none;
}

.scroll-indicator {
    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    color: #666;

    font-size: 9px;

    letter-spacing: 4px;
}

.scroll-line {
    height: 40px;
    width: 1px;

    position: relative;

    background: #333;

    overflow: hidden;
}

.scroll-line div {
    position: absolute;

    width: 100%;
    height: 17px;

    background: var(--gold);

    animation: scrollLine 1.8s infinite;
}

@keyframes scrollLine {

    0% {
        transform: translateY(-18px);
    }

    100% {
        transform: translateY(45px);
    }
}


/* =========================== */
/* ORIGIN */
/* =========================== */

.origin-section {
    align-items: center;

    padding: 120px 7%;
}

.right-content {
    margin-left: auto;

    width: 52%;

    max-width: 830px;
}

.glass-card {
    margin-top: 45px;

    padding: 40px;

    background:
        linear-gradient(
            130deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.012)
        );

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

    border-radius: 25px;

    backdrop-filter: blur(13px);

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.glass-card .lead {
    color: #dedede;

    font-size: 19px;

    line-height: 1.8;

    margin-bottom: 25px;
}

.glass-card > p:not(.lead) {
    color: #737373;

    line-height: 1.9;
}

.stats {
    margin-top: 40px;

    padding-top: 32px;

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

    display: grid;

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

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-family: "Playfair Display", serif;

    font-size: 40px;

    color: var(--gold);

    font-weight: 400;
}

.stat span {
    font-size: 9px;

    letter-spacing: 3px;

    color: white;

    margin-top: 5px;
}

.stat small {
    color: #666;

    margin-top: 10px;
}

.roman-background {
    position: absolute;

    inset: 0;

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

    pointer-events: none;
}

.roman-background span {
    font-family: "Playfair Display", serif;

    font-size: 12vw;

    color: rgba(216, 173, 79, 0.02);
}


/* =========================== */
/* MECHANISM */
/* =========================== */

.mechanism-section {
    padding: 110px 6%;

    flex-direction: column;

    justify-content: center;
}

.mechanism-heading {
    width: 57%;

    z-index: 8;

    position: relative;
}

.timeline {
    display: grid;

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

    gap: 18px;

    margin-top: 75px;

    position: relative;

    z-index: 8;
}

.timeline-card {
    min-height: 280px;

    padding: 29px;

    border-radius: 22px;

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

    background: rgba(9, 9, 9, 0.72);

    backdrop-filter: blur(12px);

    position: relative;

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

.timeline-card:hover {
    transform:
        perspective(900px)
        rotateX(4deg)
        rotateY(-6deg)
        translateY(-11px);

    border-color: rgba(216, 173, 79, 0.45);

    background: rgba(22, 18, 10, 0.8);
}

.timeline-year {
    color: var(--gold);

    font-size: 10px;

    letter-spacing: 3px;
}

.timeline-index {
    position: absolute;

    right: 25px;
    top: 20px;

    font-family: "Playfair Display", serif;

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

    font-size: 50px;
}

.timeline-card h3 {
    margin-top: 53px;

    font-family: "Playfair Display", serif;

    font-size: 28px;

    font-weight: 400;
}

.timeline-card p {
    margin-top: 22px;

    color: #747474;

    line-height: 1.7;

    max-width: 340px;
}

.card-arrow {
    position: absolute;

    bottom: 22px;
    right: 27px;

    font-size: 23px;

    color: var(--gold);
}


/* =========================== */
/* RELATIVITY */
/* =========================== */

.relativity-section {
    align-items: center;

    padding: 110px 7%;

    background:
        radial-gradient(
            circle at 75% 50%,
            rgba(72, 48, 137, 0.15),
            transparent 34%
        );
}

.relativity-content {
    position: relative;

    z-index: 8;

    width: 52%;
}

.relativity-title {
    font-family: "Playfair Display", serif;

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

    font-weight: 400;

    line-height: 0.9;

    letter-spacing: -5px;
}

.relativity-title span {
    display: block;
    color: var(--gold);
}

.relativity-description {
    color: #787878;

    font-size: 17px;

    line-height: 1.9;

    max-width: 600px;

    margin-top: 40px;
}

.formula {
    margin-top: 45px;

    display: flex;
    flex-direction: column;

    width: max-content;

    padding-left: 23px;

    border-left: 1px solid var(--gold);
}

.formula-small {
    color: #656565;

    letter-spacing: 4px;

    font-size: 9px;
}

.formula strong {
    font-family: "Playfair Display", serif;

    font-size: 57px;

    font-weight: 400;

    margin-top: 9px;
}

.space-word,
.time-word {
    position: absolute;

    font-family: "Playfair Display", serif;

    font-size: 19vw;

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

    pointer-events: none;
}

.space-word {
    top: 5%;
    right: -5%;
}

.time-word {
    bottom: 0;
    right: 5%;
}


/* =========================== */
/* FINAL */
/* =========================== */

.final-section {
    min-height: 100vh;

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

    text-align: center;
}

.final-content {
    position: relative;

    z-index: 10;
}

.final-title {
    font-family: "Playfair Display", serif;

    font-size: clamp(4rem, 9vw, 10rem);

    font-weight: 400;

    line-height: 0.84;

    letter-spacing: -6px;

    margin-top: 22px;
}

.final-title span {
    display: block;

    color: var(--gold);
}

.final-question {
    margin: 42px 0 32px;

    color: #888;

    font-family: "Playfair Display", serif;

    font-style: italic;

    font-size: 24px;
}

.final-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    border: 1px solid rgba(216, 173, 79, 0.09);

    border-radius: 50%;

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

    animation: ringPulse 6s ease-in-out infinite;
}

.ring-one {
    width: 450px;
    height: 450px;
}

.ring-two {
    width: 650px;
    height: 650px;

    animation-delay: 1s;
}

.ring-three {
    width: 850px;
    height: 850px;

    animation-delay: 2s;
}

@keyframes ringPulse {

    0%,
    100% {
        opacity: 0.2;
        transform:
            translate(-50%, -50%)
            scale(0.95);
    }

    50% {
        opacity: 0.8;
        transform:
            translate(-50%, -50%)
            scale(1.04);
    }
}


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

.reveal {
    opacity: 0;

    transform: translateY(42px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.in-view {
    opacity: 1;

    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

.delay-3 {
    transition-delay: 0.36s;
}


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

footer {
    min-height: 110px;

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

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

    padding: 0 6%;

    position: relative;

    z-index: 10;

    background: #050505;

    color: #5c5c5c;

    font-size: 11px;
}

footer > span:first-child {
    color: var(--gold);

    letter-spacing: 5px;
}


/* =========================== */
/* RESPONSIVE */
/* =========================== */

@media (max-width: 1000px) {

    .nav {
        display: none;
    }

    .model-stage {
        width: 75vw;
        opacity: 0.78;
    }

    .hero-content,
    .right-content,
    .relativity-content,
    .mechanism-heading {
        width: 75%;
    }

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

    .mechanism-section {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 140px;
    }

    .hero-title {
        font-size: 13vw;
    }
}


@media (max-width: 700px) {

    .header {
        height: 68px;
    }

    .header-button {
        display: none;
    }

    .hero {
        padding-left: 7%;
        padding-right: 7%;
    }

    .hero-content,
    .right-content,
    .relativity-content,
    .mechanism-heading {
        width: 100%;
    }

    .hero-title {
        font-size: 17vw;
        line-height: 0.89;
        letter-spacing: -4px;
    }

    .hero-description {
        width: 100%;
    }

    .model-stage {
        width: 100vw;

        right: -25vw;

        opacity: 0.45;
    }

    .origin-section {
        padding-left: 7%;
        padding-right: 7%;
    }

    .section-title {
        font-size: 13vw;
    }

    .glass-card {
        padding: 25px;
    }

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

        gap: 28px;
    }

    .mechanism-section {
        padding-left: 7%;
        padding-right: 7%;
    }

    .relativity-title {
        font-size: 14vw;
    }

    .final-title {
        font-size: 15vw;
    }

    .progress-line {
        display: none;
    }

    footer {
        flex-direction: column;

        justify-content: center;

        gap: 10px;

        text-align: center;
    }
}

/* ===================================================== */
/* PREMIUM 3D HOLOGRAPHIC CLOCK HALO */
/* ===================================================== */

.clock-halo {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 470px;
    height: 470px;

    transform:
        translate(-50%, -50%)
        perspective(1000px);

    transform-style: preserve-3d;

    pointer-events: none;

    z-index: -1;
}

.halo-ring {
    position: absolute;

    inset: 0;

    border-radius: 50%;

    border: 1px solid rgba(216, 173, 79, 0.22);

    box-shadow:
        0 0 30px rgba(216, 173, 79, 0.08),
        inset 0 0 30px rgba(216, 173, 79, 0.04);

    transform-style: preserve-3d;
}

.ring-x {
    animation: rotateRingX 10s linear infinite;
}

.ring-y {
    animation: rotateRingY 13s linear infinite;
}

.ring-z {
    transform: scale(0.78);

    border-style: dashed;

    animation: rotateRingZ 16s linear infinite;
}

@keyframes rotateRingX {

    from {
        transform:
            rotateX(72deg)
            rotateZ(0deg);
    }

    to {
        transform:
            rotateX(72deg)
            rotateZ(360deg);
    }

}

@keyframes rotateRingY {

    from {
        transform:
            rotateY(70deg)
            rotateZ(0deg);
    }

    to {
        transform:
            rotateY(70deg)
            rotateZ(-360deg);
    }

}

@keyframes rotateRingZ {

    from {
        transform:
            scale(0.78)
            rotateZ(0deg);
    }

    to {
        transform:
            scale(0.78)
            rotateZ(360deg);
    }

}


/* ===================================================== */
/* ORBITING DOTS */
/* ===================================================== */

.orbit-dot {
    position: absolute;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #f0cf7a;

    box-shadow:
        0 0 10px #d8ad4f,
        0 0 30px rgba(216, 173, 79, 0.8);
}

.orbit-dot-1 {
    left: 50%;
    top: -4px;

    animation: dotPulse 1.5s ease-in-out infinite;
}

.orbit-dot-2 {
    right: 5%;
    bottom: 18%;

    animation: dotPulse 1.5s ease-in-out infinite 0.7s;
}

@keyframes dotPulse {

    0%,
    100% {
        transform: scale(0.7);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }

}


/* ===================================================== */
/* FLOATING TIME FRAGMENTS */
/* ===================================================== */

.time-fragment {
    position: absolute;

    font-family: "Playfair Display", serif;

    color: rgba(216, 173, 79, 0.33);

    letter-spacing: 3px;

    pointer-events: none;

    z-index: 7;

    text-shadow:
        0 0 20px rgba(216, 173, 79, 0.18);

    animation:
        fragmentFloat 5s ease-in-out infinite;
}

.fragment-1 {
    top: 21%;
    left: 18%;

    font-size: 28px;
}

.fragment-2 {
    top: 65%;
    right: 12%;

    font-size: 24px;

    animation-delay: 1s;
}

.fragment-3 {
    top: 36%;
    right: 8%;

    font-size: 40px;

    animation-delay: 2s;
}

.fragment-4 {
    bottom: 18%;
    left: 25%;

    font-size: 15px;

    animation-delay: 3s;
}

@keyframes fragmentFloat {

    0%,
    100% {
        transform:
            translateY(0px)
            rotateY(0deg);
    }

    50% {
        transform:
            translateY(-20px)
            rotateY(25deg);
    }

}


/* ===================================================== */
/* MODEL HUD */
/* ===================================================== */

.model-hud {
    position: absolute;

    z-index: 8;

    font-size: 8px;

    letter-spacing: 3px;

    color: rgba(240, 207, 122, 0.65);

    border-left: 1px solid rgba(216, 173, 79, 0.45);

    padding-left: 12px;

    pointer-events: none;
}

.model-hud span {
    color: #8affb8;

    margin-left: 8px;
}

.hud-top {
    top: 17%;
    right: 13%;
}

.hud-bottom {
    bottom: 17%;
    left: 20%;
}

.hud-dot {
    display: inline-block;

    width: 5px;
    height: 5px;

    background: #8affb8;

    border-radius: 50%;

    box-shadow: 0 0 10px #8affb8;

    animation: hudBlink 1.2s infinite;
}

@keyframes hudBlink {

    50% {
        opacity: 0.2;
    }

}


/* ===================================================== */
/* MECHANICAL 3D GEAR FIELD */
/* ===================================================== */

.gear-field {
    position: absolute;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    perspective: 1100px;
}

.gear {
    position: absolute;

    border-radius: 50%;

    background:
        repeating-conic-gradient(
            from 0deg,
            rgba(216, 173, 79, 0.14) 0deg 8deg,
            transparent 8deg 17deg
        );

    border: 2px solid rgba(216, 173, 79, 0.15);

    box-shadow:
        0 0 60px rgba(216, 173, 79, 0.05);

    transform-style: preserve-3d;
}

.gear::before {
    content: "";

    position: absolute;

    inset: 15%;

    border-radius: 50%;

    border: 1px solid rgba(216, 173, 79, 0.15);
}

.gear-hole {
    position: absolute;

    width: 22%;
    height: 22%;

    left: 39%;
    top: 39%;

    border-radius: 50%;

    background: #050505;

    border: 1px solid rgba(216, 173, 79, 0.2);
}

.gear-one {
    width: 500px;
    height: 500px;

    left: -160px;
    top: 10%;

    animation: spinGear 30s linear infinite;
}

.gear-two {
    width: 340px;
    height: 340px;

    right: -80px;
    top: 20%;

    animation: spinGearReverse 21s linear infinite;
}

.gear-three {
    width: 210px;
    height: 210px;

    left: 35%;
    bottom: -80px;

    opacity: 0.5;

    animation: spinGear 17s linear infinite;
}

@keyframes spinGear {

    from {
        transform:
            rotateZ(0deg)
            rotateX(60deg);
    }

    to {
        transform:
            rotateZ(360deg)
            rotateX(60deg);
    }

}

@keyframes spinGearReverse {

    from {
        transform:
            rotateZ(360deg)
            rotateY(55deg);
    }

    to {
        transform:
            rotateZ(0deg)
            rotateY(55deg);
    }

}


/* ===================================================== */
/* SPACETIME 3D TUNNEL */
/* ===================================================== */

.spacetime-tunnel {
    position: absolute;

    right: 3%;
    top: 50%;

    width: 600px;
    height: 600px;

    transform:
        translateY(-50%)
        perspective(900px)
        rotateY(-15deg);

    transform-style: preserve-3d;

    pointer-events: none;
}

.tunnel-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    border:
        1px solid
        rgba(119, 98, 255, 0.24);

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

    box-shadow:
        0 0 30px
        rgba(119, 98, 255, 0.08);

    animation:
        tunnelPulse
        4s ease-in-out infinite;
}

.tunnel-1 {
    width: 110px;
    height: 110px;
}

.tunnel-2 {
    width: 190px;
    height: 190px;

    animation-delay: 0.3s;
}

.tunnel-3 {
    width: 280px;
    height: 280px;

}
