/* ========================================
   VERTHSOFT - Main Stylesheet
   Modern, Dark Futuristic Gaming Studio
   ======================================== */

/* === CSS Custom Properties === */
:root {
    --color-bg-primary: #050508;
    --color-bg-secondary: #0a0b0f;
    --color-bg-tertiary: #12141a;
    --color-bg-card: #0e1016;
    --color-bg-card-hover: #161820;
    
    --color-accent-primary: #145253;
    --color-accent-secondary: #7b61ff;
    --color-accent-tertiary: #ff6b6b;
    --color-accent-gradient: linear-gradient(135deg, #145253 0%, #7b61ff 100%);
    
    --color-text-primary: #e8eaed;
    --color-text-secondary: #9aa0ab;
    --color-text-muted: #5f6672;
    
    --color-border: #2a2d37;
    --color-border-light: #3a3d47;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'Fira Code', 'Courier New', monospace;
    
    --container-max: 1400px;
    --header-height: 80px;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Particle Canvas === */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
}

/* === Container === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Header & Navigation === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: none;
    transition: var(--transition-base);
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #145253 30%, #7b61ff 70%, transparent 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.site-header.scrolled {
    background: rgba(5, 5, 8, 0.96);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

.site-header.scrolled::after {
    opacity: 1;
}

.navbar {
    height: 100%;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 32px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo {
    height: 70px;
    width: auto;
    transition: var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    display: block;
    padding: 9px 18px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 2px;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-primary);
    background: rgba(20, 82, 83, 0.08);
}

.nav-link.active {
    color: var(--color-text-primary);
    background: rgba(20, 82, 83, 0.12);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, #145253, #7b61ff);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .nav-link.active::after {
        left: 20px;
        right: 20px;
        width: auto;
        transform: none;
    }
}

/* === Mega Menu (Projekty dropdown) === */

/* Mobile accordion is hidden by default on desktop */
.mob-accordion {
    display: none;
}

/* Row wrapper — holds the link text + the toggle arrow button */
.nav-proj-row {
    display: flex;
    align-items: center;
}

.nav-item-mega {
    /* Stretch to full header height so no gap exists between the
       nav link and the mega-menu panel when moving the mouse down */
    align-self: stretch;
    display: flex;
    align-items: center;
    position: relative;
}

.nav-link-mega {
    display: inline-flex;
    align-items: center;
}

/* Desktop arrow sits inside the toggle button only — hide on desktop */
.nav-mega-toggle {
    display: none; /* shown only in mobile media query */
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: 0;
}

/* The arrow that lives inside the desktop row (<li> hover) */
.nav-proj-row .nav-mega-arrow {
    display: inline-block;
    fill: var(--color-text-secondary);
    transition: transform var(--transition-base), fill var(--transition-base);
    flex-shrink: 0;
    margin-left: 4px;
    margin-top: 1px;
    pointer-events: none;
}

.nav-item-mega:hover .nav-mega-arrow {
    transform: rotate(180deg);
    fill: var(--color-accent-primary);
}

/* The mega panel — fixed, full-width, flush under the header */
.mega-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(8, 9, 13, 0.97);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-bottom: 1px solid rgba(20, 82, 83, 0.35);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(20, 82, 83, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.nav-item-mega:hover .mega-menu,
.mega-menu:hover,
.mega-menu.mega-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Top border gradient strip */
.mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #145253 30%, #7b61ff 70%, transparent 100%);
    opacity: 0.7;
}

.mega-menu-inner {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 36px 24px;
}

/* ── Left: categories ── */
.mega-categories {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-right: 1px solid var(--color-border);
    padding-right: 36px;
    margin-right: 40px;
}

.mega-cat-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-cat-heading {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    margin-top: 4px;
}

.mega-cat-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mega-cat-link {
    display: block;
    padding: 9px 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    letter-spacing: 0.3px;
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}

.mega-cat-link:hover {
    color: var(--color-text-primary);
    background: rgba(20, 82, 83, 0.1);
    padding-left: 18px;
}

.mega-cat-divider {
    height: 1px;
    background: var(--color-border);
    margin: 16px 0;
}

.mega-cat-standalone {
    display: block;
    padding: 9px 12px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 2px;
    letter-spacing: 0.3px;
    transition: color 0.15s ease, background 0.15s ease, padding-left 0.15s ease;
}

.mega-cat-standalone:hover {
    color: var(--color-text-primary);
    background: rgba(20, 82, 83, 0.1);
    padding-left: 18px;
}

/* ── Right: featured projects ── */
.mega-featured {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mega-featured-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.mega-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Project card */
.mega-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mega-card:hover {
    border-color: rgba(20, 82, 83, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(20, 82, 83, 0.12);
}

/* Thumbnail art box */
.mega-card-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mega-card-thumb--1 {
    background: linear-gradient(135deg, #0a1f20 0%, #145253 50%, #0d0c1a 100%);
}

.mega-card-thumb--2 {
    background: linear-gradient(135deg, #0d0c1a 0%, #7b61ff 50%, #0a0a0f 100%);
}

.mega-card-thumb--3 {
    background: linear-gradient(135deg, #0f0f15 0%, #1e1040 50%, #145253 100%);
}

.mega-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
}

.mega-card-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.2));
    position: relative;
    z-index: 1;
}

/* Card info row */
.mega-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px 12px;
}

.mega-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.mega-card-type {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 0.3px;
}

/* ================================================
   Mobile mega-menu — accordion inside mobile nav
   ================================================ */
@media (max-width: 768px) {

    /* The fixed mega panel is hidden — mobile uses inline accordion */
    .mega-menu {
        display: none !important;
    }

    /* Show the mobile accordion */
    .mob-accordion {
        display: block;
    }

    /* Projekty <li>: full-width block in the flex column */
    .nav-item-mega {
        align-self: auto;
        display: block;
        width: 100%;
    }

    /* ── Split-target row ── */
    .nav-proj-row {
        display: flex;
        align-items: stretch;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    /* Left zone: the text link takes all remaining space */
    .nav-link-mega {
        flex: 1;
        display: flex;
        align-items: center;
        padding: 14px 20px;
        /* remove the desktop arrow gap */
        gap: 0;
    }

    /* Hide the desktop SVG arrow that sits next to the text on desktop */
    .nav-proj-row > .nav-mega-arrow {
        display: none;
    }

    /* Right zone: arrow toggle button — visually separate tap area */
    .nav-mega-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        flex-shrink: 0;
        background: rgba(20, 82, 83, 0.08);
        border: none;
        border-left: 1px solid rgba(20, 82, 83, 0.25);
        cursor: pointer;
        transition: background 0.15s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-mega-toggle:active {
        background: rgba(20, 82, 83, 0.22);
    }

    .nav-mega-toggle .nav-mega-arrow {
        display: block;
        fill: var(--color-text-secondary);
        transition: transform 0.25s ease, fill 0.15s ease;
    }

    .nav-item-mega.mob-open .nav-mega-toggle {
        background: rgba(20, 82, 83, 0.18);
    }

    .nav-item-mega.mob-open .nav-mega-toggle .nav-mega-arrow {
        transform: rotate(180deg);
        fill: var(--color-accent-primary);
    }

    /* ── Accordion panel ── */
    .mob-accordion {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
        background: rgba(20, 82, 83, 0.05);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        margin: 0 8px 4px;
        border: 1px solid rgba(20, 82, 83, 0.2);
        border-top: none;
    }

    .nav-item-mega.mob-open .mob-accordion {
        max-height: 600px;
        opacity: 1;
    }

    .mob-accordion-inner {
        padding: 16px 16px 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    /* Category section */
    .mob-cat-section {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mob-cat-heading {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-text-muted);
        padding: 0 4px;
        margin-bottom: 4px;
    }

    .mob-cat-row {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

    .mob-cat-chip {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        border-radius: 2px;
        border: 1px solid var(--color-border);
        background: var(--color-bg-card);
        color: var(--color-text-secondary);
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
        letter-spacing: 0.3px;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .mob-cat-chip:hover,
    .mob-cat-chip:active {
        border-color: var(--color-accent-primary);
        color: var(--color-text-primary);
        background: rgba(20, 82, 83, 0.15);
    }

    .mob-standalone-link {
        display: inline-flex;
        align-items: center;
        padding: 6px 14px;
        border-radius: 2px;
        border: 1px solid var(--color-border);
        background: var(--color-bg-card);
        color: var(--color-text-secondary);
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
        letter-spacing: 0.3px;
        transition: border-color 0.15s, color 0.15s, background 0.15s;
    }

    .mob-standalone-link:hover,
    .mob-standalone-link:active {
        border-color: var(--color-accent-primary);
        color: var(--color-text-primary);
        background: rgba(20, 82, 83, 0.15);
    }

    /* Divider */
    .mob-divider {
        height: 1px;
        background: var(--color-border);
    }

    /* Featured strip */
    .mob-featured-label {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: var(--color-text-muted);
        padding: 0 4px;
        margin-bottom: 8px;
    }

    .mob-featured-scroll {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .mob-featured-scroll::-webkit-scrollbar {
        display: none;
    }

    .mob-project-card {
        flex: 0 0 140px;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        text-decoration: none;
        border-radius: var(--radius-sm);
        overflow: hidden;
        border: 1px solid var(--color-border);
        background: var(--color-bg-card);
        transition: border-color 0.2s, transform 0.2s;
    }

    .mob-project-card:active {
        transform: scale(0.97);
        border-color: rgba(20, 82, 83, 0.6);
    }

    .mob-project-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
    }

    .mob-project-thumb--1 { background: linear-gradient(135deg, #0a1f20 0%, #145253 50%, #0d0c1a 100%); }
    .mob-project-thumb--2 { background: linear-gradient(135deg, #0d0c1a 0%, #7b61ff 50%, #0a0a0f 100%); }
    .mob-project-thumb--3 { background: linear-gradient(135deg, #0f0f15 0%, #1e1040 50%, #145253 100%); }

    .mob-project-info {
        padding: 8px 10px 10px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mob-project-name {
        font-size: 11px;
        font-weight: 700;
        color: var(--color-text-primary);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mob-project-type {
        font-size: 10px;
        color: var(--color-text-muted);
        letter-spacing: 0.3px;
    }
}

/* === Language Selector === */
.lang-selector {
    flex-shrink: 0;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
}

.lang-current:hover {
    border-color: var(--color-accent-primary);
    background: rgba(20, 82, 83, 0.1);
}

.lang-arrow {
    fill: var(--color-text-secondary);
    transition: var(--transition-base);
}

.lang-dropdown:hover .lang-arrow,
.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
    fill: var(--color-accent-primary);
}

.lang-options {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    min-width: 150px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--color-bg-card);
    border: 1px solid rgba(20, 82, 83, 0.4);
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 20px rgba(20,82,83,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-base);
    scrollbar-width: thin;
    scrollbar-color: rgba(20,82,83,0.4) transparent;
}

.lang-options::-webkit-scrollbar {
    width: 4px;
}

.lang-options::-webkit-scrollbar-track {
    background: transparent;
}

.lang-options::-webkit-scrollbar-thumb {
    background: rgba(20,82,83,0.4);
    border-radius: 2px;
}

.lang-dropdown:hover .lang-options,
.lang-dropdown.open .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 14px;
}

.lang-option:hover {
    background: rgba(20, 82, 83, 0.12);
    color: var(--color-accent-primary);
}

.lang-flag {
    display: inline-block;
    width: 20px;
    height: 15px;
    border-radius: 2px;
    flex-shrink: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* === Mobile Menu Toggle === */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

/* === Hero Slider === */
.hero {
    position: relative;
    min-height: auto;
    padding: calc(var(--header-height) + 80px) 0 50px;
    z-index: 1;
}

.hero-slider {
    position: relative;
    width: 1400px;
    max-width: 100%;
    margin: 0 auto;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    /* gradient border */
    background: linear-gradient(135deg, #145253 0%, #7b61ff 100%);
    box-shadow: 0 0 60px rgba(20, 82, 83, 0.25), 0 0 120px rgba(123, 97, 255, 0.08);
}

/* Dark inset layer → 1px gradient shows as border */
.hero-slider::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-lg) - 1px);
    background: linear-gradient(135deg, #040d0e 0%, #06040f 100%);
    z-index: 0;
    pointer-events: none;
}

.slider-track {
    display: flex;
    height: 100%;
    position: relative;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
}

.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slider-bg-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(53deg, #000000 0%, #0e1118 100%);
}

.slider-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 100%;
}

/* ── Left info panel ── */
.slider-info {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 52px 56px;
    box-sizing: border-box;
    gap: 14px;
}

/* Eyebrow row */
.slider-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-genre-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent-primary);
    background: rgba(20, 82, 83, 0.15);
    border: 1px solid rgba(20, 82, 83, 0.4);
    padding: 4px 10px;
    border-radius: 3px;
}

.slider-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.slider-status-text {
    font-size: 11px;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.slider-logo-placeholder {
    font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 800;
    background: linear-gradient(135deg, #e8eaed 0%, #9aa0ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    line-height: 1;
}

.slider-title {
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 600;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

.slider-description {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 400px;
}

/* Slider CTA button — parallelogram, matches main btn-launcher style */
.slider-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 36px;
    color: #e8eaed;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    background: linear-gradient(135deg, #145253 0%, #7b61ff 100%);
    clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
    box-shadow: 0 0 20px rgba(20, 82, 83, 0.4);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin-top: 6px;
    border: none;
}

.slider-btn::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    bottom: 1px;
    background: linear-gradient(135deg, #040d0e 0%, #080612 100%);
    clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
    z-index: 0;
    transition: background 0.3s ease;
}

.slider-btn span,
.slider-btn svg {
    position: relative;
    z-index: 1;
}

.slider-btn:hover {
    box-shadow: 0 0 40px rgba(123, 97, 255, 0.6);
    transform: translateY(-2px);
}

.slider-btn:hover::before {
    background: linear-gradient(135deg, rgba(20, 82, 83, 0.35) 0%, rgba(123, 97, 255, 0.2) 100%);
}

/* Slider Image - hidden by default */
.slider-image {
    display: none;
}

/* ── Right art panel ── */
.slider-art {
    flex: 1;
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

/* Dot-grid */
.slider-art-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0.7) 100%);
}

/* Rotating rings */
.slider-art-rings {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
}

.slider-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
}

.slider-ring.sr1 {
    width: 200px; height: 200px;
    border-color: rgba(20, 82, 83, 0.55);
    border-top-color: rgba(20, 82, 83, 0.1);
    animation: ringRotate 6s linear infinite;
}
.slider-ring.sr2 {
    width: 290px; height: 290px;
    border-color: rgba(123, 97, 255, 0.35);
    border-bottom-color: rgba(123, 97, 255, 0.07);
    animation: ringRotate 10s linear infinite reverse;
}
.slider-ring.sr3 {
    width: 370px; height: 370px;
    border-color: rgba(20, 82, 83, 0.18);
    border-left-color: rgba(123, 97, 255, 0.22);
    animation: ringRotate 16s linear infinite;
}

.slider-ring::before {
    content: '';
    position: absolute;
    width: 7px; height: 7px;
    border-radius: 50%;
    top: -4px; left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-primary);
    box-shadow: 0 0 10px 2px rgba(20, 82, 83, 0.9);
}
.slider-ring.sr2::before {
    background: var(--color-accent-secondary);
    box-shadow: 0 0 10px 2px rgba(123, 97, 255, 0.9);
}
.slider-ring.sr3::before {
    width: 5px; height: 5px; top: -3px;
    background: rgba(123, 97, 255, 0.7);
    box-shadow: 0 0 8px 2px rgba(123, 97, 255, 0.6);
}

/* Glowing orb */
.slider-art-orb {
    position: absolute;
    top: 50%; left: 40%;
    transform: translate(-50%, -50%);
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.13) 0%, rgba(20, 82, 83, 0.09) 50%, transparent 70%);
    filter: blur(18px);
    animation: orbPulse 4s ease-in-out infinite;
}

/* Central emoji icon */
.slider-art-icon {
    position: absolute;
    top: 50%; left: 40%;
    transform: translate(-50%, -50%);
    width: 88px; height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background: linear-gradient(135deg, rgba(20, 82, 83, 0.45) 0%, rgba(123, 97, 255, 0.35) 100%);
    border: 1px solid rgba(123, 97, 255, 0.4);
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(123, 97, 255, 0.3), 0 0 60px rgba(20, 82, 83, 0.2);
    animation: iconGlow 3s ease-in-out infinite;
}

/* Scan lines */
.slider-art-lines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 40px 0;
}
.slider-art-lines span {
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(20, 82, 83, 0.35) 30%, rgba(123, 97, 255, 0.25) 70%, transparent 100%);
    transform-origin: left center;
    animation: scanLine 4s ease-in-out infinite;
}
.slider-art-lines span:nth-child(2) { animation-delay: 1s; }
.slider-art-lines span:nth-child(3) { animation-delay: 2s; }
.slider-art-lines span:nth-child(4) { animation-delay: 3s; }

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-dot {
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    background-clip: content-box;
    border-radius: 2px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    padding: 6px 0;
    box-sizing: content-box;
    overflow: visible;
}

.slider-dot.active {
    background: rgba(255, 255, 255, 0.3);
    background-clip: content-box;
}

.slider-dot-progress {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    height: 3px;
    background: #252f7a;
    border-radius: 2px;
    width: 0%;
    transition: none;
}

.slider-dot.active .slider-dot-progress {
    animation: dotProgress 10s linear forwards;
}

@keyframes dotProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.slider-arrow {
    display: none;
}

/* === Slider CTA (Launcher button) === */
.slider-cta {
    display: flex;
    justify-content: center;
    margin-top: 26px;
    padding-bottom: 32px;
}

.btn-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 48px;
    color: #e8eaed;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    /* Gradient outer layer — visible as the "border" */
    background: linear-gradient(135deg, #145253 0%, #7b61ff 100%);
    clip-path: polygon(20px 0%, 100% 0%, calc(100% - 20px) 100%, 0% 100%);
    box-shadow: 0 0 25px rgba(20, 82, 83, 0.45), 0 0 60px rgba(20, 82, 83, 0.12);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    animation: launcherGlow 3s ease-in-out infinite;
}

@keyframes launcherGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(20, 82, 83, 0.45), 0 0 45px rgba(20, 82, 83, 0.12); }
    50%       { box-shadow: 0 0 30px rgba(123, 97, 255, 0.55), 0 0 65px rgba(123, 97, 255, 0.15); }
}

/* Dark interior — leaves 1px of gradient visible as border */
.btn-launcher::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 0;
    right: 0;
    bottom: 1px;
    background: linear-gradient(135deg, #040d0e 0%, #080612 100%);
    clip-path: polygon(18px 0%, 100% 0%, calc(100% - 18px) 100%, 0% 100%);
    transition: background 0.3s ease;
    z-index: 0;
}

/* Shimmer sweep on hover */
.btn-launcher::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.btn-launcher:hover::after {
    left: 150%;
    transition: left 0.6s ease;
}

/* Keep svg and text above the pseudo layers */
.btn-launcher svg,
.btn-launcher span {
    position: relative;
    z-index: 2;
}

.btn-launcher:hover {
    animation: none;
    box-shadow: 0 0 50px rgba(123, 97, 255, 0.65), 0 0 20px rgba(20, 82, 83, 0.5);
    transform: translateY(-2px);
}

.btn-launcher:hover::before {
    background: linear-gradient(135deg, rgba(20, 82, 83, 0.38) 0%, rgba(123, 97, 255, 0.22) 100%);
}

/* === Hero Section (old, kept for compatibility) === */
.hero-old {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 60px) 24px 80px;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-title {
    font-size: clamp(42px, 8vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #252f7a 0%, #9d9ea0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease both;
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: #1a1d2e;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(26, 29, 46, 0.5);
    background: #222538;
}

/* === Section Styles === */
.section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #252f7a 0%, #9d9ea0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 18px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* === Projects Grid === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 0;
    max-width: 100%;
    width: 100%;
}

#projects .container {
    max-width: 95%;
    padding: 0 48px;
    margin: 0 auto;
}

/* === Project Card === */
.project-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 4px 12px rgba(20, 82, 83, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: var(--color-bg-tertiary);
    overflow: hidden;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(53deg, #000000 0%, #0e1118 100% 100%);
    color: var(--color-text-muted);
    font-size: 48px;
}

.project-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: rgba(0, 212, 255, 0.9);
    color: var(--color-bg-primary);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-badge.coming-soon {
    background: rgba(123, 97, 255, 0.9);
}

.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.project-description {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tag {
    padding: 4px 12px;
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    font-size: 12px;
    border-radius: 50px;
    border: 1px solid var(--color-border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-base);
}

.project-link:hover {
    gap: 12px;
}

.project-link svg {
    transition: var(--transition-base);
}

/* === More Projects Button === */
.projects-cta {
    text-align: center;
    margin-top: 48px;
}

.btn-more-projects {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: transparent;
    border: 2px solid var(--color-accent-primary);
    color: var(--color-accent-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
    cursor: pointer;
}

.btn-more-projects:hover {
    background: var(--color-accent-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(20, 82, 83, 0.3);
    transform: translateY(-2px);
}

/* === About Section === */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.about-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition-base);
}

.about-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(20, 82, 83, 0.12);
}

.about-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-gradient);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.about-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-bg-primary);
}

.about-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-text-primary);
}

.about-card-text {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* === Launcher Banner Section === */
.launcher-section {
    padding: 60px 0;
}

.launcher-banner {
    margin-inline: 0;
    height: 400px;
    display: flex;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    /* gradient border via background + inset inner layer */
    background: linear-gradient(135deg, #145253 0%, #7b61ff 100%);
    box-shadow: 0 0 60px rgba(20, 82, 83, 0.2), 0 0 120px rgba(123, 97, 255, 0.08);
}

/* Dark interior — 1px of gradient shows as border */
.launcher-banner::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--radius-lg) - 1px);
    background: linear-gradient(135deg, #05080d 0%, #07050f 100%);
    z-index: 0;
}

.launcher-banner-left {
    position: relative;
    z-index: 1;
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 52px;
    gap: 16px;
}

.launcher-banner-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent-primary);
}

.launcher-banner-title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-text-primary);
}

.launcher-banner-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 8px;
}

/* Right decorative art panel */
.launcher-banner-art {
    position: absolute;
    inset: 0;
    left: 50%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Dot-grid pattern */
.launcher-art-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0.7) 100%);
}

/* Concentric rotating rings */
.launcher-art-rings {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
}

.launcher-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid transparent;
}

.launcher-ring.r1 {
    width: 220px;
    height: 220px;
    border-color: rgba(20, 82, 83, 0.55);
    border-top-color: rgba(20, 82, 83, 0.15);
    animation: ringRotate 6s linear infinite;
}

.launcher-ring.r2 {
    width: 310px;
    height: 310px;
    border-color: rgba(123, 97, 255, 0.35);
    border-bottom-color: rgba(123, 97, 255, 0.08);
    animation: ringRotate 10s linear infinite reverse;
}

.launcher-ring.r3 {
    width: 390px;
    height: 390px;
    border-color: rgba(20, 82, 83, 0.2);
    border-left-color: rgba(123, 97, 255, 0.25);
    animation: ringRotate 16s linear infinite;
}

/* Ring node dots — one bright point on each ring */
.launcher-ring::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent-primary);
    box-shadow: 0 0 10px 2px rgba(20, 82, 83, 0.9);
}

.launcher-ring.r2::before {
    background: var(--color-accent-secondary);
    box-shadow: 0 0 10px 2px rgba(123, 97, 255, 0.9);
}

.launcher-ring.r3::before {
    width: 5px;
    height: 5px;
    top: -3px;
    background: rgba(123, 97, 255, 0.7);
    box-shadow: 0 0 8px 2px rgba(123, 97, 255, 0.6);
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Glowing orb */
.launcher-art-orb {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.14) 0%, rgba(20, 82, 83, 0.1) 50%, transparent 70%);
    filter: blur(18px);
    animation: orbPulse 4s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.12); }
}

/* Central icon */
.launcher-art-icon {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 82, 83, 0.5) 0%, rgba(123, 97, 255, 0.4) 100%);
    border: 1px solid rgba(123, 97, 255, 0.45);
    border-radius: var(--radius-md);
    box-shadow: 0 0 30px rgba(123, 97, 255, 0.3), 0 0 60px rgba(20, 82, 83, 0.2);
    animation: iconGlow 3s ease-in-out infinite;
}

.launcher-art-icon svg {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(123, 97, 255, 0.8));
}

@keyframes iconGlow {
    0%, 100% { box-shadow: 0 0 25px rgba(123, 97, 255, 0.3), 0 0 55px rgba(20, 82, 83, 0.2); }
    50%       { box-shadow: 0 0 45px rgba(123, 97, 255, 0.6), 0 0 80px rgba(20, 82, 83, 0.35); }
}

/* Floating stat badges */
.launcher-art-stats {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.launcher-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 18px;
    background: rgba(14, 16, 22, 0.85);
    border: 1px solid rgba(42, 45, 55, 0.8);
    border-left: 2px solid var(--color-accent-primary);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    animation: statFloat 5s ease-in-out infinite;
}

.launcher-stat:nth-child(2) { animation-delay: 1.6s; border-left-color: var(--color-accent-secondary); }
.launcher-stat:nth-child(3) { animation-delay: 3.2s; }

@keyframes statFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-5px); }
}

.launcher-stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1;
}

.launcher-stat-lbl {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 3px;
}

/* Animated scan lines */
.launcher-art-lines {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 40px 0;
}

.launcher-art-lines span {
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, rgba(20, 82, 83, 0.4) 30%, rgba(123, 97, 255, 0.3) 70%, transparent 100%);
    transform-origin: left center;
    animation: scanLine 4s ease-in-out infinite;
}

.launcher-art-lines span:nth-child(2) { animation-delay: 0.8s; }
.launcher-art-lines span:nth-child(3) { animation-delay: 1.6s; }
.launcher-art-lines span:nth-child(4) { animation-delay: 2.4s; }
.launcher-art-lines span:nth-child(5) { animation-delay: 3.2s; }

@keyframes scanLine {
    0%, 100% { opacity: 0.2; transform: scaleX(0.4); }
    50%       { opacity: 0.7; transform: scaleX(1); }
}

/* === Contact Section === */
/* === Contact Section === */
.contact-section {
    background: var(--color-bg-primary);
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent-primary);
    margin-bottom: 18px;
}

.contact-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--color-accent-primary);
}

.contact-heading {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #e8eaed 0%, #7b8494 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-sub {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: var(--color-bg-card);
    position: relative;
    border-radius: 2px;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(20,82,83,0.5) 0%, rgba(123,97,255,0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.contact-card-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20,82,83,0.25) 0%, rgba(123,97,255,0.15) 100%);
    border: 1px solid rgba(20,82,83,0.5);
    border-radius: 2px;
    color: var(--color-accent-primary);
}

.contact-card-icon svg {
    width: 20px;
    height: 20px;
}

.contact-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contact-card-value {
    font-size: 15px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a.contact-card-value:hover {
    color: var(--color-accent-primary);
}

/* Contact Right — Social */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-social-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--color-accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-social-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--color-accent-primary);
}

.contact-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-social-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    text-decoration: none;
    position: relative;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s ease;
    overflow: hidden;
}

.contact-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(20,82,83,0.4) 0%, rgba(123,97,255,0.25) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.contact-social-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(20,82,83,0.08) 0%, rgba(123,97,255,0.08) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.contact-social-btn:hover {
    color: var(--color-text-primary);
}

.contact-social-btn:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #145253 0%, #7b61ff 100%);
}

.contact-social-btn:hover::after {
    opacity: 1;
}

.contact-social-btn svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: color 0.25s ease;
}

.contact-social-btn span {
    position: relative;
    z-index: 1;
}

.contact-social-btn:hover svg {
    color: var(--color-accent-primary);
}

/* === Footer === */
.site-footer {
    position: relative;
    z-index: 1;
    background: var(--color-bg-secondary);
    padding: 0 0 40px;
}

.footer-border-top {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #145253 25%, #7b61ff 75%, transparent 100%);
    margin-bottom: 56px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
}

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #e8eaed 0%, #9aa0ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    margin-bottom: 0;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 2px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-link:hover {
    background: rgba(20, 82, 83, 0.15);
    border-color: var(--color-accent-primary);
    color: var(--color-accent-primary);
}

.footer-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(20,82,83,0.3);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: var(--color-accent-primary);
    transition: width 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-text-primary);
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-launcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    border-radius: 2px;
    transition: color 0.25s ease;
}

.footer-launcher-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    padding: 1px;
    background: linear-gradient(135deg, #145253 0%, #7b61ff 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.footer-launcher-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2px;
    background: linear-gradient(135deg, rgba(20,82,83,0.15) 0%, rgba(123,97,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.footer-launcher-btn:hover {
    color: var(--color-text-primary);
}

.footer-launcher-btn:hover::after {
    opacity: 1;
}

.footer-launcher-btn svg {
    position: relative;
    z-index: 1;
}

.footer-launcher-btn span {
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-border) 30%, var(--color-border) 70%, transparent 100%);
    margin-bottom: 28px;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 13px;
}

/* === Policy Pages === */
.policy-page {
    min-height: 100vh;
    background:
        radial-gradient(900px 480px at 10% -8%, rgba(20, 82, 83, 0.18) 0%, transparent 60%),
        radial-gradient(720px 420px at 92% 8%, rgba(123, 97, 255, 0.12) 0%, transparent 58%),
        var(--color-bg-primary);
}

.policy-header {
    background: rgba(5, 5, 8, 0.86);
}

.policy-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
}

.policy-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1;
}

.policy-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.policy-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-base);
}

.policy-nav-link:hover,
.policy-nav-link.active {
    color: var(--color-text-primary);
    border-color: rgba(123, 97, 255, 0.45);
    background: rgba(123, 97, 255, 0.12);
}

.policy-main {
    position: relative;
    z-index: 1;
    padding: calc(var(--header-height) + 44px) 0 88px;
}

.policy-hero {
    padding: 0 0 34px;
}

.policy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(20, 82, 83, 0.45);
    border-radius: 999px;
    background: rgba(20, 82, 83, 0.12);
    color: var(--color-accent-primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.policy-title {
    max-width: 900px;
    margin-top: 22px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.policy-lead {
    max-width: 840px;
    margin-top: 20px;
    color: var(--color-text-secondary);
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 1.8;
}

.policy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.policy-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(14, 16, 22, 0.88);
    color: var(--color-text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.policy-layout {
    display: grid;
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.policy-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.policy-article {
    display: grid;
    gap: 20px;
}

.policy-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
        rgba(14, 16, 22, 0.94);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
}

.policy-panel h2 {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.2;
}

.policy-panel h3 {
    margin: 18px 0 10px;
    font-size: 17px;
}

.policy-panel p,
.policy-panel li {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.policy-panel strong {
    color: var(--color-text-primary);
}

.policy-panel a {
    color: var(--color-accent-secondary);
}

.policy-panel a:hover {
    color: var(--color-text-primary);
}

.policy-sidebar-title {
    margin-bottom: 14px;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent-primary);
}

.policy-toc {
    display: grid;
    gap: 10px;
}

.policy-toc a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: var(--transition-base);
}

.policy-toc a:hover {
    border-color: rgba(20, 82, 83, 0.4);
    color: var(--color-text-primary);
    background: rgba(20, 82, 83, 0.08);
}

.policy-side-copy {
    color: var(--color-text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.policy-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--color-accent-secondary);
    text-decoration: none;
    font-weight: 600;
}

.policy-inline-link:hover {
    color: var(--color-text-primary);
}

.policy-list {
    padding-left: 20px;
}

.policy-list li + li {
    margin-top: 10px;
}

.policy-callout {
    border-color: rgba(20, 82, 83, 0.5);
    background:
        linear-gradient(180deg, rgba(20, 82, 83, 0.16), rgba(20, 82, 83, 0.06)),
        rgba(14, 16, 22, 0.94);
}

.policy-callout.warn {
    border-color: rgba(255, 107, 107, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 107, 107, 0.16), rgba(255, 107, 107, 0.05)),
        rgba(14, 16, 22, 0.94);
}

.policy-footer {
    padding-top: 16px;
}

.policy-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 48px;
}

.policy-footer-copy {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.75;
    max-width: 460px;
}

@media (max-width: 1180px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-sidebar {
        position: static;
    }

    .policy-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .policy-header-inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 14px 0;
    }

    .policy-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .policy-nav {
        justify-content: flex-start;
    }

    .policy-main {
        padding-top: calc(var(--header-height) + 96px);
    }

    .policy-panel {
        padding: 20px;
    }

    .policy-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .policy-title {
        letter-spacing: -0.03em;
    }

    .policy-nav-link,
    .policy-chip {
        width: 100%;
        justify-content: center;
    }

    .policy-nav {
        width: 100%;
    }
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: calc(var(--radius-lg) + 4px);
    padding: 22px 24px;
    z-index: 9999;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: min(var(--container-max), 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-copy {
    flex: 1;
    min-width: 280px;
}

.cookie-message {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.cookie-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent-secondary);
    font-size: 14px;
    font-weight: 600;
}

.cookie-link:hover {
    color: var(--color-text-primary);
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-btn {
    min-height: 46px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.cookie-accept {
    background: var(--color-accent-primary);
    color: #ffffff;
}

.cookie-accept:hover {
    box-shadow: 0 10px 24px rgba(20, 82, 83, 0.28);
    transform: translateY(-1px);
}

.cookie-decline {
    background: var(--color-bg-tertiary);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.cookie-decline:hover {
    border-color: var(--color-border-light);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

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

/* === Responsive === */
@media (max-width: 1440px) {
    .hero-slider {
        width: 95%;
        height: 550px;
    }

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

@media (max-width: 1200px) {
    .hero-slider {
        width: 95%;
        height: 480px;
    }

    .slider-info {
        padding: 40px 40px;
    }

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

@media (max-width: 1024px) {
    .hero-slider {
        width: 95%;
        height: 420px;
    }

    .slider-info {
        flex: 0 0 56%;
        padding: 36px 32px;
    }

    .slider-art {
        flex: 1;
    }

    .slider-ring.sr3 {
        display: none;
    }

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

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

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .logo {
        height: 44px;
    }

    .hero-slider {
        width: 100%;
        border-radius: 0;
        height: auto;
        min-height: auto;
        background: none;
        box-shadow: none;
    }

    .hero-slider::before {
        display: none;
    }

    .slider-slide {
        flex-direction: column;
    }

    .slider-content {
        flex-direction: column;
    }

    /* Hide art panel on mobile */
    .slider-art {
        display: none;
    }

    .slider-info {
        flex: none;
        width: 100%;
        padding: 36px 28px;
        align-items: flex-start;
        gap: 12px;
    }

    .slider-logo-placeholder {
        font-size: 22px;
    }

    .slider-title {
        font-size: 20px;
    }

    .slider-description {
        font-size: 13px;
    }

    .slider-btn {
        padding: 11px 28px;
        font-size: 11px;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-secondary);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 14px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1 1 220px;
    }

    .hero {
        padding: calc(var(--header-height) + 40px) 0 40px;
    }

    /* Launcher banner stacks on mobile */
    .launcher-banner {
        height: auto;
        flex-direction: column;
    }

    .launcher-banner-art {
        position: relative;
        left: 0;
        height: 200px;
    }

    .launcher-banner-left {
        flex: none;
        padding: 36px 28px;
    }
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 18px;
    }

    .cookie-message {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .slider-logo-placeholder {
        font-size: 18px;
    }

    .slider-title {
        font-size: 16px;
    }

    .slider-description {
        font-size: 12px;
    }

    .slider-nav {
        gap: 12px;
    }

    .slider-dot {
        width: 24px;
    }

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

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