/* 
 * KAIRA "UNICORN" THEME
 * Precision. Scale. Dominance.
 */

:root {
    /* Palette */
    --bg-deep: #ffffff;
    --bg-dark: #f5f5f7;
    --bg-surface: #ffffff;
    --bg-card: rgba(245, 245, 247, 0.9);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;

    /* Accents */
    --gold-primary: #d4af37;
    --gold-light: #f4d03f;
    --gold-dim: rgba(212, 175, 55, 0.1);

    --emerald-primary: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);

    --rose-primary: #f43f5e;
    --blue-primary: #3b82f6;
    --purple-primary: #8b5cf6;

    /* Gradients */
    --grad-gold: linear-gradient(135deg, #d4af37 0%, #f4d03f 40%, #c5a028 100%);
    --grad-dark: linear-gradient(180deg, rgba(245, 245, 247, 0) 0%, rgba(245, 245, 247, 1) 100%);
    --grad-card: linear-gradient(145deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.005) 100%);

    /* Shadows & Glows */
    --glow-gold: 0 0 40px rgba(212, 175, 55, 0.2);
    --glow-text: 0 0 20px rgba(212, 175, 55, 0.3);
    --shadow-deep: 0 20px 60px -15px rgba(0, 0, 0, 0.1);

    /* Animation Curves */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    user-select: none;
    cursor: none;
}

/* CUSTOM CURSOR */
.cursor-dot,
.cursor-circle {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
}

.cursor-circle {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

body:active .cursor-circle {
    width: 30px;
    height: 30px;
    background: rgba(212, 175, 55, 0.15);
}

/* BACKGROUND FX */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ambient-glow {
    position: fixed;
    width: 150vw;
    height: 150vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, rgba(255, 255, 255, 0) 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    animation: breathe 10s infinite alternate;
}

@keyframes breathe {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

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

@keyframes pulse-tam {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes pulse-sam {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }

    100% {
        transform: scale(1.03);
        opacity: 1;
    }
}

@keyframes pulse-som {
    0% {
        transform: scale(1);
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 35px rgba(16, 185, 129, 0.4);
    }
}

/* LAYOUT & STRUCTURE */
#deck-container {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 2000px;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateZ(-200px) rotateX(10deg);
    filter: blur(10px);
    transition: all 1.2s var(--ease-out-expo);
    z-index: 1;
    padding: 4vh 6vw;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateZ(0) rotateX(0deg);
    filter: blur(0);
    z-index: 10;
}

.slide.leaving {
    transform: translateZ(100px) scale(1.1);
    opacity: 0;
    filter: blur(20px);
}

/* TYPOGRAPHY */
h1 {
    font-family: 'Playfair Display', serif;
    font-size: 7vw;
    font-weight: 700;
    line-height: 0.9;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2vh;
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5vw;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3vh;
}

h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 1.5vh;
    display: inline-block;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 5px;
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 1.5vw;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
    text-align: center;
    font-weight: 300;
}

.tagline {
    font-family: 'Playfair Display', serif;
    font-size: 2vw;
    color: var(--text-primary);
    font-style: italic;
    opacity: 0.8;
    margin-top: 2vh;
}

.code-font {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* COMPONENTS: CARDS */
.card-grid {
    display: grid;
    gap: 2vw;
    width: 100%;
    max-width: 1400px;
    margin-top: 4vh;
}

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

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

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

.kaira-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 3vw;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
    box-shadow: var(--shadow-deep);
    overflow: hidden;
}

.kaira-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.01) 0%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

.kaira-card.gold-border {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--glow-gold);
}

.kaira-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
}

.card-icon {
    font-size: 3vw;
    margin-bottom: 2vh;
    color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    width: 6vw;
    height: 6vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

/* COMPONENTS: UI ELEMENTS */
.stat-big {
    font-size: 5vw;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-size: 1.1vw;
    margin-top: 1vh;
}

.highlight-text {
    color: var(--gold-primary);
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease-out-expo);
}

.slide.active .highlight-text::after {
    transform: scaleX(1);
    transform-origin: left;
    transition-delay: 0.5s;
}

/* Timeline */
.timeline-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin-top: 6vh;
    position: relative;
}

.timeline-line {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.timeline-node {
    position: relative;
    z-index: 1;
    text-align: center;
    transition: transform 0.3s;
    flex: 1;
}

.timeline-node:hover {
    transform: translateY(-10px);
}

.t-dot {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    margin: 14px auto 20px;
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.1);
}

.t-date {
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 1.1rem;
}

.t-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 5px;
}

/* ANIMATIONS (STAGGER) */
.stagger-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--ease-out-expo);
}

.slide.active .stagger-in {
    opacity: 1;
    transform: translateY(0);
}

.slide.active .d-1 {
    transition-delay: 0.1s;
}

.slide.active .d-2 {
    transition-delay: 0.2s;
}

.slide.active .d-3 {
    transition-delay: 0.3s;
}

.slide.active .d-4 {
    transition-delay: 0.4s;
}

.slide.active .d-5 {
    transition-delay: 0.5s;
}

.slide.active .d-6 {
    transition-delay: 0.6s;
}

/* NAV CONTROLS */
.deck-controls {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--gold-primary);
    color: #000;
    transform: scale(1.1);
}

.slide-indicator {
    position: fixed;
    bottom: 40px;
    left: 40px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    font-size: 14px;
}

.logo-mark {
    position: fixed;
    top: 40px;
    left: 40px;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--gold-primary);
    z-index: 1000;
}