/* ═══════════════════════════════════════════════════════
   YONDAIME — style.css
   
═══════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Design Tokens ────────────────────────────────── */
:root {
    --bg: #f3effa;
    --bg-alt: #e7dcf2;
    --text: #24152e;
    --text-muted: rgba(36, 21, 46, 0.58);
    --border: rgba(91, 48, 126, 0.24);
    --card-bg: rgba(255, 255, 255, 0.58);
    --card-border: rgba(91, 48, 126, 0.16);
    --tag-bg: rgba(124, 58, 237, 0.1);
    --accent: #7c3aed;
    --topo-base: #f3effa;
    --topo-line: rgba(91, 48, 126, 0.13);
    --overlay-color: #f3effa;
    --section-overlay: rgba(243, 239, 250, 0.84);

    /* glass effect colors */
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-accent: rgba(224, 195, 255, 0.68);
    --glass-hover: rgba(124, 58, 237, 0.16);
    --button-bg: rgba(124, 58, 237, 0.16);
    --button-border: rgba(124, 58, 237, 0.46);
    --button-hover: #7c3aed;
    --button-hover-text: #ffffff;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-slow: 0.9s;
    --duration-med: 0.55s;
    --duration-fast: 0.3s;
}

body.dark-mode {
    --bg: #160d20;
    --bg-alt: #241334;
    --text: #f8efff;
    --text-muted: rgba(248, 239, 255, 0.62);
    --border: rgba(220, 177, 255, 0.22);
    --card-bg: rgba(104, 54, 138, 0.22);
    --card-border: rgba(220, 177, 255, 0.18);
    --tag-bg: rgba(208, 154, 255, 0.13);
    --accent: #d09aff;
    --topo-base: #160d20;
    --topo-line: rgba(220, 177, 255, 0.12);
    --overlay-color: #160d20;
    --section-overlay: rgba(22, 13, 32, 0.84);

    --glass-bg: rgba(78, 36, 104, 0.28);
    --glass-border: rgba(220, 177, 255, 0.24);
    --glass-accent: rgba(220, 177, 255, 0.32);
    --glass-hover: rgba(208, 154, 255, 0.2);
    --button-bg: rgba(142, 58, 218, 0.34);
    --button-border: rgba(220, 177, 255, 0.48);
    --button-hover: #a94eff;
    --button-hover-text: #1b0927;
}

body.dark-mode {
    --bg: #160d20;
    --bg-alt: #241334;
    --text: #f8efff;
    --text-muted: rgba(248, 239, 255, 0.62);
    --border: rgba(220, 177, 255, 0.22);
    --card-bg: rgba(104, 54, 138, 0.22);
    --card-border: rgba(220, 177, 255, 0.18);
    --tag-bg: rgba(208, 154, 255, 0.13);
    --accent: #d09aff;
    --topo-base: #160d20;
    --topo-line: rgba(220, 177, 255, 0.12);
    --overlay-color: #160d20;
    --section-overlay: rgba(22, 13, 32, 0.84);

    --glass-bg: rgba(78, 36, 104, 0.28);
    --glass-border: rgba(220, 177, 255, 0.24);
    --glass-accent: rgba(220, 177, 255, 0.32);
    --glass-hover: rgba(208, 154, 255, 0.2);
    --button-bg: rgba(142, 58, 218, 0.34);
    --button-border: rgba(220, 177, 255, 0.48);
    --button-hover: #a94eff;
    --button-hover-text: #1b0927;
}

/* Instant variable switch (before animation) */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
    cursor: none;
    height: 100dvh;
    /* color transitions AFTER the overlay has done its job */
    transition: background-color 0s, color 0s;
}

body.theme-transitioning {
    transition: none;
}

/* ── Loading Screen ────────────────────────────────── */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Cinematic exit transition: fade, blur, and scale slightly */
    transition: opacity 1.4s cubic-bezier(0.7, 0, 0.3, 1),
        visibility 1.4s,
        transform 1.4s cubic-bezier(0.7, 0, 0.3, 1),
        filter 1.4s ease;
}

/* if dark-mode applied to loading (via script) */
.loading-screen.dark-mode {
    background: var(--bg);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.1);
    filter: blur(10px);
}

.loading-logo-wrapper {
    position: relative;
    width: clamp(200px, 40vw, 320px);
    aspect-ratio: 1 / 1;
    /* Subtle enter animation */
    transform: scale(0.9);
    opacity: 0;
    animation: loadingEnter 0.8s var(--ease-out-expo) forwards;
}

@keyframes loadingEnter {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-main {
    opacity: 0.12;
    filter: brightness(0) saturate(100%) invert(20%) sepia(36%) saturate(2500%) hue-rotate(250deg) brightness(82%) contrast(108%);
}

body.dark-mode .loading-main {
    filter: brightness(0) saturate(100%) invert(69%) sepia(58%) saturate(1650%) hue-rotate(238deg) brightness(105%) contrast(105%);
}

.loading-fill {
    clip-path: inset(0 100% 0 0);
    filter: brightness(0) saturate(100%) invert(31%) sepia(55%) saturate(1900%) hue-rotate(250deg) brightness(92%) contrast(110%) drop-shadow(0 0 12px rgba(139, 52, 217, 0.55));
    /* Dramatic fast-to-slow wiping effect */
    animation: loadingWipe 1.3s cubic-bezier(0.85, 0, 0.15, 1) 0.2s forwards;
}

@keyframes loadingWipe {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* ── Page Container (scroll host) ─────────────────── */
.page-container {
    position: fixed;
    inset: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    /* We use JS for slower, custom smooth scroll */
    scrollbar-width: none;
}

.page-container::-webkit-scrollbar {
    display: none;
}

/* ── Background Canvas ────────────────────────────── */
.topo-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ── Slide Overlay (dark mode transition) ─────────── */
.slide-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-color);
    z-index: 10000;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0s;
}

.slide-overlay.wipe-in {
    transform: scaleX(1);
    transition: transform 0.45s var(--ease-out-expo);
}

.slide-overlay.wipe-out {
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.4s var(--ease-in-out);
}

/* ── Sections ─────────────────────────────────────── */
.section {
    position: relative;
    width: 100%;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    z-index: 1;
}

/* ══════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════ */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/* Logo */
.logo-container {
    position: relative;
    width: min(420px, 75vw);
    height: min(420px, 75vw);
    z-index: 10;
    opacity: 0;
    transform: scale(0.88);
    transition: transform var(--duration-slow) var(--ease-out-expo),
        opacity var(--duration-slow) var(--ease-out-expo);
}

body.loaded .logo-container {
    animation: logoReveal 1s var(--ease-out-expo) 0.2s forwards;
}

@keyframes logoReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.main-logo {
    z-index: 1;
    filter: brightness(0) saturate(100%) invert(20%) sepia(36%) saturate(2500%) hue-rotate(250deg) brightness(82%) contrast(108%) drop-shadow(0 0 14px rgba(139, 52, 217, 0.42));
    transition: filter var(--duration-med) ease;
}

body.dark-mode .main-logo {
    filter: brightness(0) saturate(100%) invert(69%) sepia(58%) saturate(1650%) hue-rotate(238deg) brightness(105%) contrast(105%) drop-shadow(0 0 18px rgba(176, 74, 255, 0.7));
}

.reveal-logo {
    z-index: 2;
    clip-path: circle(0px at 50% 50%);
    mix-blend-mode: normal;
    filter: brightness(0) saturate(100%) invert(48%) sepia(91%) saturate(2400%) hue-rotate(252deg) brightness(103%) contrast(108%) drop-shadow(0 0 16px rgba(163, 67, 255, 0.68));
    transition: clip-path 0.05s linear;
}

/* Hero tagline */
.hero-tagline {
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 10;
    flex-wrap: wrap;
    padding: 0 20px;
}

.tagline-word {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 6px;
    opacity: 0;
    color: var(--text);
    transform: translateY(12px);
    animation: taglineIn 0.7s var(--ease-out-expo) forwards;
}

.tagline-word[data-delay="0"] {
    animation-delay: 0.8s;
}

.tagline-word[data-delay="1"] {
    animation-delay: 1.0s;
}

.tagline-word[data-delay="2"] {
    animation-delay: 1.2s;
}

.tagline-sep {
    color: var(--text-muted);
    font-size: 1.2rem;
    opacity: 0;
    animation: taglineIn 0.5s ease 1.1s forwards;
}

@keyframes taglineIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

body.loaded .scroll-indicator {
    animation: scrollIndicatorIn 0.7s ease 0.6s forwards;
}
@keyframes scrollIndicatorIn {
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-indicator:hover {
    transform: translateX(-50%) translateY(-4px);
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 1.5px solid var(--text-muted);
    border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(-45deg);
    animation: bounce 2.2s var(--ease-in-out) infinite;
}

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(8px); }
}

/* ══════════════════════════════════════════════════
   ABOUT / CONTACT SECTION
══════════════════════════════════════════════════ */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--section-overlay);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.about-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(40px, 8vw, 140px);
    padding: 0 clamp(30px, 6vw, 80px);
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.about-content {
    max-width: 680px;
    flex: 1 1 300px;
}

.about-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 6px;
    line-height: 0.9;
    color: var(--text);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.7s var(--ease-out-expo) 0.1s, transform 0.7s var(--ease-out-expo) 0.1s;
}

.about-text {
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    color: var(--text-muted);
    line-height: 1.75;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0;
    transition: opacity 0.6s ease 0.25s;
}

.about-section.in-view .about-label {
    opacity: 1;
    transform: translateX(0);
}

.about-section.in-view .about-title {
    opacity: 1;
    transform: translateX(0);
}

.about-section.in-view .about-text {
    opacity: 1;
}

/* Stats */
.about-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transition: opacity 0.6s ease 0.35s;
}

.about-section.in-view .about-stats {
    opacity: 1;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.4rem;
    letter-spacing: 3px;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
}

/* shared glass style */
.glass,
.contact-btn,
.action-btn,
.send-btn,
.chat-container,
.bubble,
.chat-close-btn {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: inherit;
    /* softer frost, slightly more transparent */
    backdrop-filter: blur(12px) saturate(120%) brightness(1.03);
    -webkit-backdrop-filter: blur(12px) saturate(120%) brightness(1.03);
    overflow: hidden;
    /* subtle glass bevel / shading */
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.6),
        inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* sheen/refraction highlights */
.glass::before,
.glass::after,
.contact-btn::before,
.contact-btn::after,
.action-btn::before,
.action-btn::after,
.send-btn::before,
.send-btn::after,
.chat-container::before,
.chat-container::after,
.bubble::before,
.bubble::after,
.chat-close-btn::before,
.chat-close-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* linear sweep */
.glass::before,
.contact-btn::before,
.action-btn::before,
.send-btn::before,
.chat-container::before,
.bubble::before,
.chat-close-btn::before {
    background: radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0) 60%);
    mix-blend-mode: screen;
}

/* dark undersheen */
.glass::after,
.contact-btn::after,
.action-btn::after,
.send-btn::after,
.chat-container::after,
.bubble::after,
.chat-close-btn::after {
    background: radial-gradient(circle at bottom right,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0) 70%);
    mix-blend-mode: multiply;
}

/* Contact button */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    color: var(--text);
    transition: background 0.35s ease, border-color 0.35s ease,
        color 0.35s ease, gap 0.3s ease, transform 0.3s ease;
    opacity: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(12px);
}

/* give glass effect to btn border/background */
.contact-btn {
    background: var(--button-bg);
    border: 1.5px solid var(--button-border);
}

.about-section.in-view .contact-btn {
    opacity: 1;
    transform: translateY(0);
    transition: background 0.35s ease, border-color 0.35s ease,
        color 0.35s ease, gap 0.3s ease, transform 0.3s ease,
        opacity 0.6s ease 0.45s;
}

.contact-btn:hover {
    background: var(--button-hover);
    color: var(--button-hover-text);
    /* black on light, white on dark */
    border-color: var(--text);
    gap: 18px;
    transform: translateY(-2px);
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* About visual / rings */
.about-visual {
    position: relative;
    width: clamp(180px, 30vw, 300px);
    height: clamp(180px, 30vw, 300px);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s var(--ease-out-expo) 0.3s, transform 0.8s var(--ease-out-expo) 0.3s;
}

.about-section.in-view .about-visual {
    opacity: 1;
    transform: scale(1);
}

.about-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation: spinSlow 20s linear infinite;
}

.ring-2 {
    width: 70%;
    height: 70%;
    animation: spinSlow 14s linear infinite reverse;
    border-style: dashed;
}

.ring-3 {
    width: 40%;
    height: 40%;
    animation: spinSlow 9s linear infinite;
    opacity: 0.5;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.about-monogram {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(4rem, 8vw, 6rem);
    letter-spacing: 4px;
    color: var(--text);
    z-index: 1;
    opacity: 0.9;
}

/* Footer line */
.about-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 400;
}

.footer-sep {
    opacity: 0.3;
}

/* ══════════════════════════════════════════════════
   FIXED UI CHROME
══════════════════════════════════════════════════ */

/* Dark mode toggle */
.dark-mode-toggle {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 1000;
    cursor: pointer;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease, visibility var(--duration-fast) ease;
    border-radius: 50%;
}

.dark-mode-toggle.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.9);
    pointer-events: none;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
}

.theme-icon {
    width: 26px;
    height: 26px;
    fill: var(--text);
    stroke: var(--text);
    position: absolute;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-30deg);
}

body.dark-mode .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

body.dark-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Hamburger */
.hamburger {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 9999;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center horizontally for perfect X math */
    gap: 8px;
    /* Gap between the two lines */
    transition: transform var(--duration-fast) ease;
}

.hamburger:hover {
    transform: scale(1.08);
}

.hamburger-line {
    width: 32px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-in-out), width 0.4s var(--ease-in-out);
    transform-origin: center;
}

/* Make second line shorter initially for dynamic look */
.hamburger-line:nth-child(2) {
    width: 24px;
    align-self: flex-end;
    /* Align to right within the 32px available */
    margin-right: 8px;
    /* ((48 - 32) / 2) offset from align-items center */
}

.hamburger:hover .hamburger-line:nth-child(2) {
    width: 32px;
}

/* X state */
.hamburger.open .hamburger-line {
    width: 32px;
    margin-right: 0;
    align-self: center;
}

/* 
  With gap: 8px and height: 2px, the distance between centers is 10px. 
  To overlap exactly in the middle:
  - Top line moves down 5px
  - Bottom line moves up 5px 
*/
.hamburger.open .hamburger-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Section dots */
.section-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    transition: background var(--duration-fast) ease,
        transform var(--duration-fast) ease;
    padding: 0;
}

.dot:hover {
    transform: scale(1.4);
}

.dot.active {
    background: var(--text);
    transform: scale(1.3);
}

/* Custom cursor */
.cursor-dot {
    position: fixed;
    width: 18px;
    height: 18px;
    background: var(--text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease,
        background 0s, opacity 0.3s ease;
    mix-blend-mode: difference;
}

/* light-mode: solid black cursor, no blending for clarity */
body:not(.dark-mode) .cursor-dot {
    background: #5b307e;
    mix-blend-mode: normal;
}

/* dark-mode: solid white cursor */
body.dark-mode .cursor-dot {
    background: #fff;
    mix-blend-mode: normal;
}

.cursor-dot.hover {
    width: 38px;
    height: 38px;
}

/* ══════════════════════════════════════════════════
   MENU OVERLAY
══════════════════════════════════════════════════ */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.menu-items {
    list-style: none;
    text-align: center;
}

.menu-item {
    margin: 22px 0;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0s, transform 0s;
}

.menu-overlay.active .menu-item {
    animation: menuSlide 0.6s var(--ease-out-expo) forwards;
}

.menu-overlay.active .menu-item:nth-child(1) {
    animation-delay: 0.05s;
}

.menu-overlay.active .menu-item:nth-child(2) {
    animation-delay: 0.12s;
}

.menu-overlay.active .menu-item:nth-child(3) {
    animation-delay: 0.19s;
}

@keyframes menuSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item a {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(3rem, 7vw, 5rem);
    color: var(--text);
    text-decoration: none;
    letter-spacing: 6px;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
}

.menu-item a:hover {
    transform: translateX(10px);
    opacity: 1;
}

/* Lightbox gallery */
.lb-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 14, 22, 0.7);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 99999;
    padding: 24px;
}

.lb-overlay.lb-open {
    opacity: 1;
    visibility: visible;
}

.lb-panel {
    position: relative;
    width: min(100%, 1180px);
    max-height: min(100%, 92vh);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    border-radius: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 0 transparent;
    backdrop-filter: blur(22px);
    overflow: visible;
}

.lb-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    pointer-events: none;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.18);
}

.lb-overlay.lb-open .lb-panel {
    overflow: visible;
}

.lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
}

.lb-title {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    line-height: 1.05;
    flex: 1 1 0;
    min-width: 0;
}

.lb-header-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

.lb-header-controls>* {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .lb-header {
        padding: 16px 18px;
    }

    .lb-header-controls {
        width: 100%;
        justify-content: flex-end;
    }

    .lb-zoom-btn,
    .lb-close,
    .lb-nav {
        width: 44px;
        height: 44px;
    }
}

.lb-zoom-btn,
.lb-close,
.lb-nav {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text);
    width: 48px;
    height: 48px;
    border-radius: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    display: grid;
    place-items: center;
}

.lb-zoom-btn:hover,
.lb-close:hover,
.lb-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.lb-stage {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 22px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.lb-prev,
.lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

.lb-img-wrap {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 0;
    max-height: 720px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.18));
    transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.lb-img-wrap:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 40px 90px rgba(0, 0, 0, 0.2));
    background: rgba(255, 255, 255, 0.18);
}

.lb-img-wrap.dragging {
    cursor: grabbing;
}

.lb-main-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
    display: block;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.25));
}

.lb-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
}

.lb-counter {
    color: var(--text);
    font-size: 0.95rem;
    opacity: 0.9;
}

.lb-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    width: 100%;
    padding: 12px 0 6px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding-left: 12px;
}

.lb-thumbs::-webkit-scrollbar {
    height: 10px;
}

.lb-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.24);
    border-radius: 999px;
}

.lb-thumb {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.08));
}

.lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lb-thumb:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.16);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

.lb-thumb-active {
    border-color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.12));
}

.lb-img-switching {
    opacity: 0.35;
    transform: scale(0.98);
}

@media (max-width: 900px) {
    .lb-panel {
        padding: 20px;
    }

    .lb-stage {
        flex-direction: column;
    }

    .lb-img-wrap {
        min-height: 50px;
        max-height: 480px;
    }

    .lb-thumb {
        width: 72px;
        height: 72px;
    }
}

.close-menu {
    display: none;
}

/* ══════════════════════════════════════════════════
   KAPCSOLAT PAGE TWEAKS
══════════════════════════════════════════════════ */
body.contact-body {
    overflow-y: hidden;
}

.contact-page-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(60px, 12vh, 120px);
    z-index: 10;
    transition: padding-top 0.5s ease;
}

.contact-theme {
    /* Hide from static positioned wrapper context */
    z-index: 1000;
}

/* Logo Home Button Override */
.contact-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.contact-logo-link:hover {
    transform: scale(1.05);
}

.contact-logo-link .back-hint {
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: -10px;
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-logo-link:hover .back-hint {
    opacity: 1;
    transform: translateY(0);
}

.contact-logo-container {
    width: clamp(200px, 35vw, 320px);
    height: clamp(200px, 35vw, 320px);
    animation: contactLogoIn 0.8s var(--ease-out-expo) forwards;
}

@keyframes contactLogoIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Action Buttons (Mail, Discord) */

/* contact page: icons follow currentColor and maintain contrast on hover */
body.contact-body .action-btn {
    color: var(--text);
}

body.contact-body .action-btn:hover {
    color: var(--button-hover-text);
}

.contact-actions {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: actionsIn 0.8s var(--ease-out-expo) 0.3s forwards;
}

@keyframes actionsIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.action-btn {
    width: 80px;
    height: 80px;
    border-radius: 75%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text);
    cursor: pointer;
    transition: transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo),
        background 0.3s ease, color 0.3s ease;
    text-decoration: none;
    /* apply glass style */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.action-btn:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--glass-hover);
    color: var(--bg);
}

body.dark-mode .action-btn:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    background: var(--glass-hover);
}

/* Ensure inline SVGs and images inside .action-btn inherit color and size */
.action-btn>svg,
.action-btn>img {
    width: 50px;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.action-btn>svg,
.action-btn>svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

/* Fallback for image icons: invert filter based on theme and hover */
.action-btn>img {
    transition: filter 0.18s var(--ease-in-out), opacity 0.18s var(--ease-in-out);
    filter: grayscale(1) brightness(0) invert(0);
}

.action-btn:hover>img {
    filter: grayscale(1) brightness(0) invert(1);
}

body.dark-mode .action-btn>img {
    filter: grayscale(1) brightness(0) invert(1);
}

body.dark-mode .action-btn:hover>img {
    filter: grayscale(1) brightness(0) invert(0);
}

.action-svg {
    width: 14px;
    aspect-ratio: 1 / 1;
    height: auto;
    display: block;
    flex-shrink: 0;
}

.action-svg img,
.action-svg svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.action-svg svg,
.action-svg svg * {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.action-svg img {
    transition: filter 0.18s var(--ease-in-out);
    filter: grayscale(1) brightness(0) invert(0);
}

.action-btn:hover .action-svg img {
    filter: grayscale(1) brightness(0) invert(0);
}

body.dark-mode .action-btn .action-svg img {
    filter: grayscale(1) brightness(0) invert(0);
}

body.dark-mode .action-btn:hover .action-svg img {
    filter: grayscale(1) brightness(0) invert(0);
}

/* Chat UI Container */
.chat-container {
    margin-top: auto;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out-expo), max-height 0.5s ease, padding 0.5s ease;
    opacity: 1;
    transform: translateY(0);
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.chat-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 40vh;
    overflow-y: auto;
    scrollbar-width: none;
    padding-bottom: 10px;
}

.chat-bubbles::-webkit-scrollbar {
    display: none;
}

.chat-message {
    display: flex;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    animation: bubbleIn 0.4s var(--ease-out-expo) forwards;
    justify-content: center;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.bubble {
    color: var(--text);
    padding: 14px 22px;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 85%;
    /* glassy look */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.user-message .bubble {
    background: var(--glass-accent);
    color: var(--bg);
    border-color: transparent;
    border-bottom-right-radius: 4px;
}

.bot-message .bubble {
    border-bottom-left-radius: 4px;
}

/* error bubble uses red-tinted glass */
.error-message .bubble {
    background: rgba(255, 0, 0, 0.6);
    border-color: rgba(255, 0, 0, 0.8);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes bubbleIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Chat Form Area */

/* floating input error bubble */
.input-error {
    position: fixed;
    padding: 6px 10px;
    background: rgba(255, 0, 0, 0.15);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 8px;
    transform: translate(-50%, -100%);
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0.9;
    transition: opacity 0.5s ease;
    z-index: 10001;
    /* above chat container which is z-index 10 */
}

.input-error.fade-out {
    opacity: 0;
}

/* Chat open/close modifiers */
.contact-page-wrapper.chat-open {
    padding-top: clamp(30px, 6vh, 60px);
}

.contact-page-wrapper.chat-open .logo-container,
.contact-page-wrapper.chat-open .contact-actions {
    transform: scale(0.85);
    transition: transform 0.4s var(--ease-out-expo);
}

.contact-page-wrapper.chat-open .chat-container {
    max-height: 60vh;
    padding: 20px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1rem;
    line-height: 28px;
    text-align: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.chat-close-btn:hover {
    color: var(--text);
    background: var(--glass-hover);
}

.chat-container .chat-close-btn {
    z-index: 2;
}

.chat-input-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inputs-row {
    display: flex;
    gap: 8px;
}

.message-row {
    display: flex;
    position: relative;
    align-items: flex-end;
}

.chat-input {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.chat-input::placeholder {
    color: var(--text-muted);
}

.chat-input:focus {
    border-color: var(--text);
    background: var(--tag-bg);
}

.mini-input {
    flex: 1;
}

.text-input {
    flex: 1;
    resize: none;
    border-radius: 18px;
    padding-right: 50px;
}

.send-btn {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.08);
    background: var(--button-hover);
    color: var(--button-hover-text);
}

.send-btn:active {
    transform: scale(0.95);
    background: var(--button-hover);
}

.action-btn {
    background: var(--button-bg);
    border-color: var(--button-border);
}

.action-btn:hover {
    background: var(--button-hover);
    color: var(--button-hover-text);
}

.send-svg {
    width: 16px;
    height: 16px;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .page-container {
        scroll-snap-type: y proximity !important;
    }

    .section {
        scroll-snap-align: start !important;
        scroll-snap-stop: normal !important;
    }

    .cursor-dot {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    .reveal-logo {
        clip-path: circle(100% at 50% 50%) !important;
        animation: mobileLogoTransition 1.25s infinite alternate ease-in-out !important;
    }
}

@keyframes mobileLogoTransition {

    0%,
    20% {
        opacity: 0;
    }

    80%,
    100% {
        opacity: 1;
    }
}

@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .showroom-inner {
        padding: 40px 20px 20px;
    }

    .about-visual {
        display: none;
    }

    .about-inner {
        padding: 0 24px;
    }

    .section-dots {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-tagline {
        bottom: 90px;
        gap: 10px;
    }

    .logo-container {
        width: 260px;
        height: 260px;
    }
}

.error-text {
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 20px;
}

/* ── Showroom ────────────────────────────────────── */
.showroom-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

.showroom-section::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(20px);
    z-index: -1;
}

.showroom-inner {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 100px 0;
    justify-content: center;
    width: 100%;
    max-width: none;
}

.showroom-header {
    padding: 0 5% 28px;
    position: relative;
    z-index: 10;
}

.projects-slider {
    flex: none;
    width: 100vw;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
    padding: 40px 0;
    cursor: grab;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.projects-slider::-webkit-scrollbar {
    display: none;
}

.projects-slider.dragging {
    cursor: grabbing;
    user-select: none;
}

.showroom-track {
    display: inline-flex;
    gap: 80px;
    padding: 40px 5vw;
    animation: floatCarousel 120s linear infinite;
    will-change: transform;
}

.showroom-track:hover {
    animation-play-state: paused;
}

@keyframes floatCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.project-card {
    display: inline-block;
    width: 500px;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    flex-shrink: 0;
    transition: transform 0.8s var(--ease-out-expo);
    white-space: normal;
    vertical-align: top;
    position: relative;
    box-shadow: none !important;

    /* Randomized vertical floating */
    animation: verticalFloat 6s ease-in-out infinite alternate;
}

/* Add slight variations to floating for "random" effect */
.project-card:nth-child(2n) {
    animation-duration: 7s;
    animation-delay: -1s;
}

.project-card:nth-child(3n) {
    animation-duration: 8s;
    animation-delay: -2.5s;
}

.project-card:nth-child(4n) {
    animation-duration: 5.5s;
    animation-delay: -0.5s;
}

@keyframes verticalFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-25px);
    }
}

.project-card:hover {
    animation-play-state: paused;
    transform: translateY(-35px) scale(1.03) !important;
}

.new-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #ff3e3e;
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-image-area {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s var(--ease-out-expo);
}

.project-card:hover .card-img {
    transform: scale(1.15);
}

.card-overlay-tag {
    position: absolute;
    bottom: 24px;
    right: 24px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.card-body {
    padding: 35px 0;
}

.card-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: transparent;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.card-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: 2px;
}

.card-desc {
    font-size: 20px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: all 0.3s;
}

.card-link:hover {
    opacity: 1;
    gap: 15px;
}

/* ── NEWSLETTER POPUP ──────────────────────────── */
.newsletter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.newsletter-overlay.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-modal {
    width: 90%;
    max-width: 450px;
    padding: 50px 40px;
    position: relative;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s var(--ease-out-expo);
    border: 1px solid var(--border);
    border-radius: 28px;
}

.newsletter-overlay.active .newsletter-modal {
    transform: translateY(0) scale(1);
}

.news-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.news-close:hover {
    opacity: 1;
}

.news-icon {
    font-size: 50px;
    color: var(--accent);
    margin-bottom: 24px;
    display: block;
}

.news-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.news-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.news-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-input {
    background: var(--tag-bg);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: 16px;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.news-input:focus {
    border-color: var(--accent);
}

.news-submit {
    background: var(--accent);
    color: var(--bg);
    border: 1px solid var(--accent);
    padding: 16px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.news-submit:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--accent);
}

.news-dismiss-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 16px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 4px;
}

.news-dismiss-btn:hover {
    border-color: var(--text);
    color: var(--text);
}

.news-disclaimer {
    margin-top: 24px;
    font-size: 12px !important;
    opacity: 0.5;
}

.dark-mode .newsletter-modal {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}