/* ============================================================
   deepstatetlv.com – shared stylesheet (all inner pages)
   ============================================================ */

/* ── Self-hosted fonts ──────────────────────────────────── */
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/heebo-300-hebrew.woff2') format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
    font-family: 'Heebo';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/heebo-300-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Secular One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/secular-one-hebrew.woff2') format('woff2');
    unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
    font-family: 'Secular One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/secular-one-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                   U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                   U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes laser-draw {
    0% {
        width: 0%;
        box-shadow: 4px 0 0 0 #c41e3a, 4px 0 8px 0 rgba(196, 30, 58, 0.8);
    }
    100% {
        width: 100%;
        box-shadow: 0 0 0 0 transparent, 0 0 12px 0 rgba(196, 30, 58, 0.6);
    }
}

@keyframes ambient-breathe {
    0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 0.25; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes fog-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%       { transform: translate(5%, 3%) scale(1.05); }
    50%       { transform: translate(-3%, 5%) scale(1.02); }
    75%       { transform: translate(-5%, -2%) scale(1.08); }
}

@keyframes fog-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1.05); }
    33%       { transform: translate(-4%, -3%) scale(1); }
    66%       { transform: translate(3%, 4%) scale(1.1); }
}

@keyframes fog-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(4%, -4%) scale(1.15); }
}

@keyframes glitch-small {
    0%, 3%, 6%, 94%, 97%, 100% { transform: translate(0); }
    1%, 2%   { transform: translate(-2px, 1px); }
    4%, 5%   { transform: translate(1px, -1px); }
    95%, 96% { transform: translate(-1px, 1px) skewX(1deg); }
    98%, 99% { transform: translate(2px, 0); }
}

@keyframes glitch-color {
    0%, 3%, 6%, 94%, 97%, 100% { filter: none; }
    1%, 2%   { filter: hue-rotate(-30deg) saturate(1.5); }
    4%, 5%   { filter: hue-rotate(30deg) saturate(1.3); }
    95%, 96% { filter: hue-rotate(-20deg) brightness(1.2); }
    98%, 99% { filter: hue-rotate(20deg) saturate(1.4); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 40px rgba(196, 30, 58, 0.3); }
    50%       { box-shadow: 0 0 60px rgba(196, 30, 58, 0.5); }
}

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

/* ── Fog background ─────────────────────────────────────── */
.fog-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    /* Isolate fog repaints from the rest of the page */
    contain: layout style paint;
}

.fog-layer {
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    filter: blur(40px);
    /* Promote each layer to its own GPU compositing layer */
    will-change: transform;
}

.fog-layer:nth-child(1) {
    animation: fog-drift-1 25s ease-in-out infinite;
    background: radial-gradient(ellipse 80% 60% at 30% 50%,
        rgba(30, 10, 15, 0.5) 0%,
        rgba(20, 5, 10, 0.3) 40%,
        transparent 70%);
}

.fog-layer:nth-child(2) {
    animation: fog-drift-2 30s ease-in-out infinite reverse;
    background: radial-gradient(ellipse 70% 80% at 70% 60%,
        rgba(40, 12, 18, 0.4) 0%,
        rgba(15, 5, 8, 0.2) 50%,
        transparent 75%);
}

.fog-layer:nth-child(3) {
    animation: fog-drift-3 35s ease-in-out infinite;
    background: radial-gradient(ellipse 90% 50% at 50% 30%,
        rgba(25, 8, 12, 0.4) 0%,
        rgba(12, 3, 6, 0.25) 45%,
        transparent 70%);
}

/* ── Base ───────────────────────────────────────────────── */
html {
    width: 100%;
    min-height: 100%;
    background-color: #000;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100%;
    font-family: 'Secular One', sans-serif;
    color: #fff;
    position: relative;
    background: transparent;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('freebg5.jpg');
    background-image: image-set(url('freebg5.webp') type('image/webp'), url('freebg5.jpg') type('image/jpeg'));
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: 50%; left: 50%;
    width: 120vw; height: 120vh;
    background: radial-gradient(ellipse at center,
        rgba(196, 30, 58, 0.1) 0%,
        rgba(196, 30, 58, 0.04) 30%,
        transparent 70%);
    transform: translate(-50%, -50%);
    animation: ambient-breathe 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ── Logo (corner link on inner pages) ──────────────────── */
.logo {
    position: fixed;
    top: 2rem; right: 2rem;
    z-index: 10;
}

.logo img {
    width: 80px; height: auto;
    animation: glitch-small 10s ease-in-out infinite,
               glitch-color  10s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(196, 30, 58, 0.8));
}

/* ── Navigation ─────────────────────────────────────────── */
nav {
    position: fixed;
    top: 50%; right: 2rem;
    transform: translateY(-50%);
    display: flex; flex-direction: column;
    gap: 1.5rem;
    z-index: 10;
}

nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Heebo', sans-serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: all 0.4s ease-out;
    position: relative;
    display: inline-block;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: #c41e3a;
    opacity: 0;
}

nav a:hover,
nav a:focus {
    color: #c41e3a;
    text-shadow: 0 0 30px rgba(196, 30, 58, 0.6);
    transform: scale(1.03);
    outline: none;
}

nav a:focus-visible {
    outline: 2px solid #c41e3a;
    outline-offset: 4px;
}

nav a:hover::after {
    animation: laser-draw 0.5s ease-out forwards;
    opacity: 1;
}

nav a.active {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

nav a.active::after {
    width: 100%; height: 2px;
    opacity: 1;
    box-shadow: 0 0 12px rgba(196, 30, 58, 0.6);
}

/* ── Social links ───────────────────────────────────────── */
.social-links {
    display: flex; gap: 1rem;
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a,
.social-links .coming-soon {
    color: #c41e3a;
    transition: all 0.3s ease-out;
    display: inline-block;
}

.social-links a:hover {
    color: #ff3a5c;
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(196, 30, 58, 0.8));
}

.social-links .coming-soon {
    opacity: 0.35;
    cursor: not-allowed;
    animation: pulse-glow 6s ease-in-out infinite;
}

/* ── Mobile nav ─────────────────────────────────────────── */
@media (max-width: 768px) {
    body::after { opacity: 0.08; }

    nav {
        position: fixed;
        top: auto; bottom: 0;
        right: 0; left: 0;
        transform: none;
        flex-direction: row; flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem; padding: 1rem;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav a { font-size: 0.95rem; }

    .social-links {
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem; padding-top: 0.5rem;
    }

    .logo {
        position: relative;
        top: 0; right: 0;
        text-align: center;
        padding-top: 2rem;
    }
}

/* ── Accessibility: reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
