/* ============================================================
   SCHMITZ MEDIA GROUP — SERIOUS MINIMALISM (REFINED TYPO)
   Theme: High-End Light / Clean / Structured Headings
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-base: #ffffff;
    --bg-subtle: #f8f8fa;
    --accent-blue: #0066ff;
    --text-primary: #000000;
    --text-secondary: #626264;
    --text-muted: #a1a1a6;
    --border: rgba(0, 0, 0, 0.05);
    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* ─── BACKGROUND ─── */
.bg-orchestra {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #fff;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 100%);
    opacity: 0.4;
}

.bg-blur {
    position: absolute;
    width: 60vw;
    height: 60vw;
    top: -20vw;
    right: -10vw;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.03) 0%, transparent 70%);
    filter: blur(80px);
}

/* ─── LAYOUT ─── */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 80px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ─── NAVIGATION ─── */
nav {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1140px;
    height: 64px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all 0.5s var(--ease-expo);
}

nav.scrolled {
    top: 16px;
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
}

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

.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.04em;
}

.logo-text {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
}

.logo-group {
    color: var(--text-secondary);
    padding-left: 0.1em;
}

.logo img {
    height: 48px;
    width: auto;
    transition: transform 0.3s var(--ease-expo);
}

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

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #000;
}

.btn-nav {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
    padding: 10px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: #000;
    transition: all 0.4s var(--ease-expo);
    transform-origin: center;
}

/* Burger Animation to X */
.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ─── HERO ─── */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(0, 102, 255, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    display: inline-block;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 32px;
}

.hero-title span {
    background: linear-gradient(135deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    background: #000;
    color: #fff;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--ease-expo);
}

.btn-primary:hover {
    background: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: #000;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

/* ─── SECTION HEADERS ─── */
.section-header {
    margin-bottom: 80px;
}

.section-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-tag::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--accent-blue);
    opacity: 0.3;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    color: #000;
}

.section-title span {
    color: var(--text-muted);
}

/* ─── PORTFOLIO CARDS ─── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.portfolio-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 70px;
    position: relative;
    overflow: hidden;
    transition: all 0.7s var(--ease-expo);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 540px;
}

.portfolio-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-16px);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.04);
}

.card-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(0, 102, 255, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.portfolio-card:hover .card-shine {
    opacity: 1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-subtle);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 50px;
    transition: all 0.6s var(--ease-expo);
}

.portfolio-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-blue);
    color: #fff;
}

.card-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
}

/* ─── BENTO GRID ─── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.bento-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 48px;
    transition: all 0.4s var(--ease-expo);
}

.bento-item h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bento-item h4::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
}

.bento-item.large {
    grid-column: span 2;
}

/* ─── CONTACT FORM ─── */
.contact-form {
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.contact-form textarea {
    height: 160px;
    margin-bottom: 24px;
    resize: none;
}

.contact-form .btn-primary {
    width: 100%;
    border: none;
    cursor: pointer;
    padding: 20px;
    font-size: 1.1rem;
}

/* ─── FOOTER ─── */
footer {
    background: #000;
    color: #fff;
    padding: 160px 0 80px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 120px;
}

.footer-brand h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    gap: 100px;
}

.footer-col h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #444;
    margin-bottom: 32px;
}

.footer-col a {
    text-decoration: none;
    color: #888;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

/* ─── REVEAL ─── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s var(--ease-expo);
}

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

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

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

    .bento-item.large {
        grid-column: span 1;
    }

    .footer-top {
        flex-direction: column;
        gap: 60px;
    }

    .footer-nav {
        gap: 40px;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 32px;
    }

    nav {
        top: 16px;
        border-radius: 24px;
        width: calc(100% - 48px);
        height: 64px;
    }

    nav.scrolled {
        top: 12px;
        width: calc(100% - 24px);
    }

    .nav-inner {
        padding: 0 20px;
    }

    .logo img {
        height: 38px;
    }

    .logo-text {
        font-size: 0.85rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.8s var(--ease-expo);
        z-index: 1050;
    }

    .nav-links li {
        transform: translateY(30px);
        opacity: 0;
        transition: all 0.6s var(--ease-expo);
    }

    nav.menu-open .nav-links li {
        transform: translateY(0);
        opacity: 1;
    }

    nav.menu-open .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav.menu-open .nav-links li:nth-child(2) {
        transition-delay: 0.2s;
    }

    nav.menu-open .nav-links li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav.menu-open .nav-links li:nth-child(4) {
        transition-delay: 0.4s;
    }

    nav.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .btn-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1100;
        width: 32px;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #000;
        border-radius: 2px;
        transition: all 0.4s var(--ease-expo);
    }

    nav.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    nav.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    nav.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

    nav.menu-open .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: #000;
        font-family: 'Plus Jakarta Sans', sans-serif;
    }

    .hero-title {
        font-size: 2.75rem;
        letter-spacing: -0.04em;
    }

    .hero-desc {
        font-size: 1.1rem;
        padding: 0 40px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 30px;
    }

    section {
        padding: 80px 0 !important;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .hero-content img {
        height: 100px !important;
        margin-bottom: 32px !important;
    }

    .portfolio-card {
        padding: 40px 24px;
        min-height: 400px;
        border-radius: 32px;
    }

    .card-content h3 {
        font-size: 1.75rem;
    }
}

/* ─── MODAL OVERLAY ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-expo);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 24px;
    padding: 48px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: all 0.4s var(--ease-expo);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #000;
    color: #fff;
}

.modal-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ============================================================
   COOKIE CONSENT INTERFACE — PURE LUXURY LIGHT-GLASS OVERHAUL
   ============================================================ */

/* ─── STAGE WRAPPER ─── */
.cookie-banner-stage {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 10001;
    width: var(--banner-width);
    height: var(--banner-height);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
    opacity: 0;
    visibility: hidden;
    --banner-width: 740px;
    --banner-height: 84px;
}

.cookie-banner-stage.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cookie-banner-stage.dismissing {
    opacity: 0;
    transform: translateX(-50%) translateY(30px) scale(0.95);
    pointer-events: none;
}

/* ─── GOOEY FILTER LAYOUT ─── */
.cookie-banner-gooey-container {
    position: absolute;
    inset: -60px;
    filter: url(#cookie-goo);
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.cookie-banner-stage.visible .cookie-banner-gooey-container {
    animation: gooeyGlowFade 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gooeyGlowFade {
    0%, 30% { filter: url(#cookie-goo) drop-shadow(0 20px 40px rgba(0, 102, 255, 0.4)); }
    100% { filter: url(#cookie-goo) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.05)); }
}

/* Rising decorative blobs */
.c-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0;
    transform-origin: center center;
}

.cookie-banner-stage.visible .c-blob--center {
    width: 120px;
    height: 120px;
    bottom: -110px;
    transform: translateX(-50%);
    animation: floatBlobCenter 2.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Capsule shape background */
.cookie-banner-bg-capsule {
    position: absolute;
    background: var(--accent-blue);
    opacity: 0;
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%);
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.cookie-banner-stage.visible .cookie-banner-bg-capsule {
    animation: morphCapsule 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ─── ANIMATION KEYFRAMES ─── */
@keyframes floatBlobCenter {
    0% {
        opacity: 0;
        transform: translateY(160px) translateX(-50%) scaleX(0.4) scaleY(1.4) rotate(-45deg);
        left: 45%;
    }
    30% {
        opacity: 0.95;
        transform: translateY(60px) translateX(-50%) scaleX(1.3) scaleY(0.7) rotate(15deg);
        left: 52%;
    }
    65% {
        opacity: 0.95;
        transform: translateY(-20px) translateX(-50%) scaleX(0.6) scaleY(1.5) rotate(75deg);
        left: 48%;
    }
    100% {
        opacity: 0;
        transform: translateY(-60px) translateX(-50%) scaleX(0.1) scaleY(0.1) rotate(90deg);
        left: 50%;
    }
}

@keyframes morphCapsule {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(120px) scale(0.4);
        border-radius: 50%;
        width: 80px;
        height: 80px;
        background: var(--accent-blue);
    }
    30% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 50%;
        width: 100px;
        height: 100px;
        background: var(--accent-blue);
    }
    60% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 60px;
        width: 380px;
        height: 84px;
        background: rgba(128, 179, 255, 0.9);
    }
    85% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 100px;
        width: 760px;
        height: 84px;
        background: #ffffff;
    }
    100% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 100px;
        width: 740px;
        height: 84px;
        background: #ffffff;
    }
}

/* Top-level mobile gooey capsule morphing keyframes */
@keyframes morphCapsuleMobile {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(120px) scale(0.4);
        border-radius: 50%;
        width: 80px;
        height: 80px;
        background: var(--accent-blue);
    }
    30% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 50%;
        width: 100px;
        height: 100px;
        background: var(--accent-blue);
    }
    60% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 30px;
        width: 240px;
        height: 140px;
        background: rgba(128, 179, 255, 0.9);
    }
    85% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 28px;
        width: calc(100vw - 20px);
        height: 310px;
        background: #ffffff;
    }
    100% {
        opacity: 0.95;
        transform: translateX(-50%) translateY(0) scale(1);
        border-radius: 28px;
        width: calc(100vw - 32px);
        height: 300px;
        background: #ffffff;
    }
}

/* Responsive capsule adjustments for mobile */
@media (max-width: 768px) {
    .cookie-banner-stage {
        --banner-width: calc(100vw - 32px);
        --banner-height: 300px;
        bottom: 24px;
    }
    .cookie-banner-stage.visible .cookie-banner-bg-capsule {
        animation: morphCapsuleMobile 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
}

/* ─── CRISP INTERACTIVE CONTENT WRAPPER ─── */
.cookie-banner-content-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    padding: 12px 16px 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.02),
        0 24px 60px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 1.3s;
    overflow: hidden;
}

.cookie-banner-stage.visible .cookie-banner-content-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Glass sweep glare effect */
.cookie-banner__glare,
.cookie-drawer__glare {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 70%,
        transparent 100%
    );
    transform: translateX(-100%);
    pointer-events: none;
    z-index: 10;
}

.cookie-banner-stage.visible .cookie-banner__glare {
    animation: glassGlare 8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    animation-delay: 2s;
}

.cookie-drawer.active .cookie-drawer__glare {
    animation: glassGlare 8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    animation-delay: 1s;
}

@keyframes glassGlare {
    0% { transform: translateX(-100%); }
    20%, 100% { transform: translateX(100%); }
}

/* ─── BANNER CONTENT PARTS ─── */
.cookie-banner__left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.cookie-banner__icon-container {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner__icon {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    z-index: 2;
}

/* Monochrome concentric radar scanner scan rings */
.radar-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.cookie-banner-stage.visible .radar-pulse-ring.ring-1 {
    animation: radarSweep 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.cookie-banner-stage.visible .radar-pulse-ring.ring-2 {
    animation: radarSweep 3s cubic-bezier(0.16, 1, 0.3, 1) infinite;
    animation-delay: 1.5s;
}

@keyframes radarSweep {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.radar-scanner-sweep {
    transform-origin: 12px 12px;
    animation: radarRotate 4s linear infinite;
}

@keyframes radarRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.radar-node-pulse {
    animation: pulseNode 2s ease-in-out infinite;
}

@keyframes pulseNode {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.cookie-banner__copy {
    text-align: left;
}

.cookie-banner__eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 2px;
    display: block;
}

.cookie-banner__text {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.45;
    max-width: 440px;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-banner__btn {
    padding: 12px 22px;
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.4s var(--ease-expo);
}

.cookie-banner__btn span {
    position: relative;
    z-index: 2;
}

.cookie-banner__btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-banner__btn--secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
}

.cookie-banner__btn--reject {
    background: transparent;
    color: var(--text-secondary);
}

.cookie-banner__btn--reject:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.03);
}

.cookie-banner__btn--accept {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.cookie-banner__btn--accept:hover {
    background: var(--accent-blue);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
}

/* ─── MOBILE BANNER RESPONSIVE OVERRIDES ─── */
@media (max-width: 768px) {
    .cookie-banner-content-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 24px;
        border-radius: 28px;
        height: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    .cookie-banner__left {
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-banner__copy {
        text-align: center;
    }
    
    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }
    
    .cookie-banner__btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }
    
    .cookie-banner__btn--accept {
        grid-column: span 2;
        order: 1;
    }
    .cookie-banner__btn--secondary {
        grid-column: span 1;
        order: 2;
    }
    .cookie-banner__btn--reject {
        grid-column: span 1;
        order: 3;
    }
}

/* ─── DRAWER OVERLAY ─── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    z-index: 10004;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ─── COOKIE SETTINGS DRAWER ─── */
.cookie-drawer {
    position: fixed;
    top: 0;
    right: -480px;
    width: 440px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(32px) saturate(180%);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.05);
    z-index: 10005;
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cookie-drawer.active {
    transform: translateX(-480px);
}

@media (max-width: 768px) {
    .cookie-drawer {
        width: 100%;
        right: -100%;
        padding: 40px 24px;
    }
    .cookie-drawer.active {
        transform: translateX(-100%);
    }
}

.cookie-drawer__close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-expo);
    z-index: 15;
}

.cookie-drawer__close:hover {
    background: #000;
    color: #fff;
    transform: scale(1.05);
}

.cookie-drawer__header {
    margin-bottom: 36px;
    text-align: left;
}

.cookie-drawer__eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    margin-bottom: 8px;
    display: block;
}

.cookie-drawer__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
    color: #000;
    margin-bottom: 12px;
}

.cookie-drawer__desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cookie-drawer__content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 4px;
}

/* Custom Scrollbar for Drawer */
.cookie-drawer__content::-webkit-scrollbar {
    width: 4px;
}

.cookie-drawer__content::-webkit-scrollbar-track {
    background: transparent;
}

.cookie-drawer__content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* ─── TIMELINE OPTIONS FLOW ─── */
.cookie-timeline {
    position: relative;
    padding-left: 28px;
    margin-top: 10px;
}

.cookie-timeline__track {
    position: absolute;
    top: 10px;
    left: 7px;
    bottom: 10px;
    width: 2px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.cookie-timeline__signal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent-blue), transparent);
    animation: timelinePulse 3s linear infinite;
}

@keyframes timelinePulse {
    0% { transform: translateY(-40px); }
    100% { transform: translateY(400px); }
}

/* Option nodes */
.cookie-node-card {
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.4s var(--ease-expo);
    text-align: left;
}

.cookie-node-card:hover {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(4px);
}

.cookie-node-card.active-essential {
    border-color: rgba(0, 0, 0, 0.1);
    background: rgba(0, 0, 0, 0.01);
}

.cookie-node-card.active-selected {
    border-color: #000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

/* Timeline dot indicators */
.cookie-node__dot {
    position: absolute;
    left: -25px;
    top: 26px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
    transition: all 0.4s var(--ease-expo);
}

.cookie-node-card.active-essential .cookie-node__dot,
.cookie-node-card.active-selected .cookie-node__dot {
    background: #000;
    transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.cookie-node__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-node__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-node__badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 8px;
    border-radius: 100px;
    color: var(--text-secondary);
}

.cookie-node__desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Sleek Monochrome Switch Toggles */
.cookie-toggle-container {
    width: 36px;
    height: 20px;
    display: flex;
    align-items: center;
}

.toggle-slider.disabled {
    width: 36px;
    height: 20px;
    background: #000;
    border-radius: 20px;
    position: relative;
    cursor: not-allowed;
    opacity: 0.9;
}

.toggle-slider.disabled::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.08);
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: #000;
    border-color: #000;
}

input:checked + .slider:before {
    transform: translateX(16px);
}

/* ─── DRAWER FOOTER ─── */
.cookie-drawer__footer {
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 28px;
    background: transparent;
}

.cookie-drawer__btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.4s var(--ease-expo);
}

.cookie-drawer__btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-drawer__btn--secondary:hover {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.15);
}

.cookie-drawer__btn--accept {
    background: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.cookie-drawer__btn--accept:hover {
    background: var(--accent-blue);
    box-shadow: 0 12px 28px rgba(0, 102, 255, 0.15);
    transform: translateY(-2px);
}

/* ─── SCROLL REVEAL ANIMATIONS ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── PAGE TRANSITIONS ─── */
.page-transitioning main,
.page-transitioning footer {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

main.page-enter {
    animation: pageEnterFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageEnterFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── WIZARD STYLES ─── */
.wizard-content {
    max-width: 480px;
    padding: 40px;
}

.wizard-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
}

.wizard-step-indicator {
    height: 4px;
    flex: 1;
    background: var(--border);
    border-radius: 4px;
    transition: background 0.4s ease;
}

.wizard-step-indicator.active {
    background: var(--accent-blue);
}

.wizard-step {
    display: none;
    animation: wizardFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wizard-step.active {
    display: block;
}

@keyframes wizardFadeIn {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.wizard-radio-card {
    cursor: pointer;
}

.wizard-radio-card input {
    display: none;
}

.wizard-radio-card .card-inner {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    transition: all 0.3s ease;
}

.wizard-radio-card .card-inner i {
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.wizard-radio-card .card-inner span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.wizard-radio-card .card-inner small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    margin-top: 4px;
}

.wizard-radio-card:hover .card-inner {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.02);
}

.wizard-radio-card input:checked + .card-inner {
    border-color: var(--accent-blue);
    background: rgba(0, 102, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
}

.wizard-radio-card input:checked + .card-inner i {
    color: var(--accent-blue);
}

/* ─── SESSION FIX: COOKIE BANNER NO ANIMATION ─── */
.cookie-banner-stage.no-animation .cookie-banner-bg-capsule,
.cookie-banner-stage.no-animation .c-blob,
.cookie-banner-stage.no-animation .cookie-banner-gooey-container {
    animation: none !important;
}

.cookie-banner-stage.no-animation .cookie-banner-bg-capsule {
    opacity: 0.95 !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
    background: #ffffff !important;
    width: var(--banner-width) !important;
    height: var(--banner-height) !important;
    border-radius: 100px !important;
}

@media (max-width: 768px) {
    .cookie-banner-stage.no-animation .cookie-banner-bg-capsule {
        border-radius: 28px !important;
    }
}

.cookie-banner-stage.no-animation .cookie-banner-content-wrapper {
    animation: none !important;
    transition-delay: 0s !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
