:root {
    --gold: #c9a96e;
    --gold-light: #e8c98a;
    --obsidian: #080a0f;
    --chrome: #c8cdd6;
    --electric: #4fc3f7;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--obsidian);
    color: var(--chrome);
    overflow-x: hidden;
    cursor: none;
}

/* Custom cursor */
.cursor {
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201, 169, 110, 0.5);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.cursor-ring.hovered {
    transform: scale(2) !important;
    border-color: var(--gold);
}

/* Grain overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.35;
}

/* Animated gradient canvas bg */
.hero-gradient {
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 169, 110, 0.07) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(79, 195, 247, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 50% at 80% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #080a0f 0%, #0d1017 60%, #080a0f 100%);
}

/* Gold gradient text */
.text-gold-gradient {
    background: linear-gradient(135deg, #c9a96e 0%, #e8c98a 40%, #c9a96e 60%, #8a6e47 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-chrome-gradient {
    background: linear-gradient(135deg, #e8eaed 0%, #c8cdd6 50%, #8892a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass card */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 110, 0.12);
}

.glass-dark {
    background: rgba(8, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
}

nav.scrolled {
    background: rgba(8, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

/* Section reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pillar cards */
.pillar-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.pillar-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 110, 0.35) !important;
}

/* Slider */
.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    user-select: none;
}

.slider-before,
.slider-after {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slider-after {
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gold);
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 10;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::after {
    content: '◁ ▷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: #000;
    white-space: nowrap;
    font-weight: 700;
    z-index: 1;
    pointer-events: none;
}

/* Steps */
.step-line {
    position: absolute;
    left: 23px;
    top: 48px;
    bottom: -24px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(201, 169, 110, 0.4), transparent);
}

/* Tech stack badges */
.tech-badge {
    border: 1px solid rgba(201, 169, 110, 0.15);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    border-color: rgba(201, 169, 110, 0.5);
    background: rgba(201, 169, 110, 0.05);
    transform: scale(1.03);
}

/* Blog card */
.blog-card {
    border-top: 1px solid rgba(201, 169, 110, 0.15);
    transition: border-color 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(201, 169, 110, 0.5);
}

.blog-card:hover .blog-arrow {
    transform: translateX(6px);
}

.blog-arrow {
    transition: transform 0.3s ease;
}

/* Form */
input,
textarea,
select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 110, 0.15);
    color: var(--chrome);
    padding: 14px 18px;
    border-radius: 2px;
    width: 100%;
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(201, 169, 110, 0.5);
}

input::placeholder,
textarea::placeholder {
    color: rgba(200, 205, 214, 0.3);
}

select option {
    background: #0d1017;
    color: var(--chrome);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--obsidian);
}

::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 110, 0.3);
    border-radius: 2px;
}

/* Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* Video placeholder - shimmering */
.video-shimmer {
    background: linear-gradient(135deg, #0d1017 25%, #131820 50%, #0d1017 75%);
    background-size: 400% 400%;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Marquee */
.marquee-track {
    display: flex;
    animation: marquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Number counter */
.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
}
