/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
   :root {
    --bg-dark: #0a0a0c;
    --text-light: #f4f4f5;
    --accent-neon: #a855f7; /* Violet */
    --accent-cyan: #06b6d4;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Outfit', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

span {
    background: linear-gradient(to right, var(--accent-neon), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: rgba(244, 244, 245, 0.7);
    font-size: 1.1rem;
    font-weight: 300;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-neon), var(--accent-cyan));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform var(--transition), box-shadow var(--transition);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: opacity var(--transition);
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.btn:hover::before {
    opacity: 1;
}

/* ==========================================================================
   Navbar (Glassmorphism)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding var(--transition), background var(--transition);
}

.navbar.scrolled {
    padding: 10px 5%;
    background: rgba(10, 10, 12, 0.95);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px; /* Default larger size */
    width: auto;
    object-fit: contain;
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled .logo img {
    height: 20px; /* Shrinks the logo significantly on scroll */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--accent-neon);
    transition: width var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero & Distortion Slider
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.heroSwiper {
    position: absolute !important; /* Force position to override swiper defaults */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.heroSwiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* Slight scale to prevent edge bleeding */
    position: absolute;
    top: 0;
    left: 0;
}

/* The distorted image sits on top and is masked to a circle around the mouse */
.hero-img.distorted {
    filter: url('#distortion'); 
    z-index: 1;
    -webkit-mask-image: radial-gradient(circle 250px at var(--mouse-x, -1000px) var(--mouse-y, -1000px), black 0%, transparent 100%);
    mask-image: radial-gradient(circle 250px at var(--mouse-x, -1000px) var(--mouse-y, -1000px), black 0%, transparent 100%);
    transition: -webkit-mask-image 0.1s ease, mask-image 0.1s ease;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 12, 1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Electrical Glitch Flicker effect for video */
.video-blackout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0;
    z-index: 5;
    pointer-events: none;
    animation: electric-flicker 5s infinite;
}

@keyframes electric-flicker {
    0%   { opacity: 0; }
    2%   { opacity: 0.3; }
    3%   { opacity: 0.1; }
    4%   { opacity: 0.4; }
    5%   { opacity: 0; }
    20%  { opacity: 0; }
    21%  { opacity: 0.2; }
    23%  { opacity: 0; }
    45%  { opacity: 0; }
    46%  { opacity: 0.5; }
    47%  { opacity: 0.1; }
    48%  { opacity: 0.4; }
    49%  { opacity: 0; }
    75%  { opacity: 0; }
    76%  { opacity: 0.3; }
    77%  { opacity: 0; }
    90%  { opacity: 0; }
    91%  { opacity: 0.4; }
    92%  { opacity: 0.1; }
    93%  { opacity: 0.5; }
    94%  { opacity: 0; }
    100% { opacity: 0; }
}

/* Hero pagination styling */
.hero-pagination {
    bottom: 30px !important;
}
.hero-pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}
.hero-pagination .swiper-pagination-bullet-active {
    background: var(--accent-neon);
    opacity: 1;
}

/* ==========================================================================
   Glitch Text Effect
   ========================================================================== */
.black-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.glitch-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glitch-text {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    position: relative;
    letter-spacing: 5px;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
}

.glitch-text::before {
    left: 4px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -4px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(74px, 9999px, 86px, 0); }
    5% { clip: rect(13px, 9999px, 80px, 0); }
    10% { clip: rect(21px, 9999px, 56px, 0); }
    15% { clip: rect(51px, 9999px, 14px, 0); }
    20% { clip: rect(98px, 9999px, 3px, 0); }
    25% { clip: rect(69px, 9999px, 63px, 0); }
    30% { clip: rect(81px, 9999px, 86px, 0); }
    35% { clip: rect(3px, 9999px, 75px, 0); }
    40% { clip: rect(55px, 9999px, 54px, 0); }
    45% { clip: rect(62px, 9999px, 80px, 0); }
    50% { clip: rect(59px, 9999px, 89px, 0); }
    55% { clip: rect(48px, 9999px, 6px, 0); }
    60% { clip: rect(42px, 9999px, 18px, 0); }
    65% { clip: rect(26px, 9999px, 98px, 0); }
    70% { clip: rect(2px, 9999px, 37px, 0); }
    75% { clip: rect(61px, 9999px, 7px, 0); }
    80% { clip: rect(26px, 9999px, 34px, 0); }
    85% { clip: rect(96px, 9999px, 15px, 0); }
    90% { clip: rect(39px, 9999px, 7px, 0); }
    95% { clip: rect(50px, 9999px, 84px, 0); }
    100% { clip: rect(97px, 9999px, 40px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 97px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

/* ==========================================================================
   Intro Text Bar
   ========================================================================== */
.intro-text-bar {
    width: 100%;
    min-height: 512px;
    padding: 128px 20px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 1; /* Adjusted for shared snow canvas */
}

.snow-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20; /* High z-index to fall over pink bar and screenshots (including hovers) */
    pointer-events: none;
}

.intro-content {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 30; /* Ensures text stays above snow */
}

.graffiti-text {
    font-family: 'Permanent Marker', cursive;
    font-weight: 400;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    color: #b8758f;
    line-height: 1.3;
    margin: 0;
}

.intro-icon {
    display: block;
    margin: 0 auto clamp(18px, 2.5vw, 32px) auto;
    width: clamp(55px, 8vw, 110px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}


.highlight-big {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    text-decoration: underline;
    text-decoration-color: #b8758f;
    text-underline-offset: 4px;
    text-decoration-thickness: 3px;
    display: inline-block;
    animation: big-glitch 2.8s infinite;
}

@keyframes big-glitch {
    0%, 88%, 100% { text-shadow: none; transform: none; }
    89% { text-shadow: -2px 0 red, 2px 0 cyan; transform: translate(2px, 0); }
    90% { text-shadow: 2px 0 red, -2px 0 cyan; transform: translate(-2px, 1px); }
    91% { text-shadow: none; transform: none; }
    94% { text-shadow: -1px 0 red, 1px 0 cyan; transform: translate(1px, -1px); }
    95% { text-shadow: 1px 0 red, -1px 0 cyan; transform: translate(-1px, 0); }
    96% { text-shadow: none; transform: none; }
}

/* ==========================================================================
   Gallery & Slider
   ========================================================================== */
.gallery {
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.mySwiper {
    width: 100%;
    padding: 0; /* Glue perfectly to pink bar and to the next slider */
}

.mySwiperReverse {
    width: 100%;
    padding: 0 0 40px 0; /* Bottom spacing for shadow and next section */
}

.bottom-pink-bar {
    width: 100%;
    height: 30px;
    background-color: #BB798C;
    position: relative;
    z-index: 10;
}

/* Linear transition for continuous scroll effect */
.mySwiper .swiper-wrapper,
.mySwiperReverse .swiper-wrapper {
    transition-timing-function: linear !important;
}

.screenshot-slide {
    width: 500px;
    height: 280px;
    overflow: hidden;
    transition: transform 0.3s ease, z-index 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.screenshot-slide:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}

.screenshot-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.screenshot-slide:hover img {
    filter: grayscale(0%);
}

/* Random Glitch Effect applied via JS */
.image-glitch img {
    animation: img-glitch-anim 0.2s linear infinite;
}

@keyframes img-glitch-anim {
    0% { transform: translate(0); filter: grayscale(100%); }
    20% { transform: translate(-10px, 0) skewX(10deg); filter: grayscale(100%) brightness(2); }
    40% { transform: translate(10px, 5px) skewX(-10deg); filter: invert(1); }
    60% { transform: translate(-5px, -5px) skewX(5deg); filter: grayscale(0%) hue-rotate(90deg); }
    80% { transform: translate(5px, 2px) skewX(-5deg); filter: grayscale(100%) contrast(3); }
    100% { transform: translate(0); filter: grayscale(100%); }
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.swiper-slide-active .slide-overlay {
    transform: translateY(0);
    opacity: 1;
}

/* ==========================================================================
   Pink Lightbox
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(187, 121, 140, 0.95); /* Matches #BB798C */
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: min(1020px, 80vw); /* Reduced by 15% (1200px -> 1020px) */
    max-width: 85vw;
    max-height: 78vh;
    transform: scale(0.8) translateY(50px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border-radius: 10px;
    overflow: hidden;
}

.lightbox.show .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-content img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    transform: rotate(90deg) scale(1.2);
}

/* ==========================================================================
   Info / About Section
   ========================================================================== */
.info {
    padding: 120px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #050505;
}

.about-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px; /* Constrain the overall width */
}

.about-container .glitch-container {
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-container .glitch-text {
    /* Font size dynamically calculated by JS to match container width exactly */
    font-size: 5vw; 
    line-height: 1;
    margin: 0;
    text-align: center;
    letter-spacing: 0px;
    white-space: nowrap; /* Keep it on one line to preserve glitch effect */
    display: inline-block; /* Required for exact width measurement */
}

.text-blocks-container {
    display: flex;
    gap: 30px;
    width: 100%;
}

.text-block {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--neon-pink);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.text-block p {
    text-align: justify;
    font-size: 1rem;
    color: #b3b3b3;
    line-height: 1.8;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.text-blocks-full {
    width: 100%;
    margin-top: 30px;
    text-align: center;
}

.text-blocks-full p {
    text-align: center;
    font-size: 1rem;
    color: #b3b3b3;
    line-height: 1.8;
    margin: 0 0 1.2rem 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.text-blocks-full p:last-child {
    margin-bottom: 0;
}

.new-color-section {
    width: 100%;
    height: auto; 
    min-height: 800px; /* Extended to provide 20% more breathing room */
    background-color: #151F24; /* Dark teal/slate blue matched from image */
    position: relative;
    padding: 72px 20px 48px 20px; /* Increased padding by 20% (60px->72px top, 40px->48px bottom) */
}

/* ==========================================================================
   QR Codes Strip Section
   ========================================================================== */
.qr-strip {
    width: 100%;
    background-color: #0b1114; /* Darker terminal base */
    padding: 95px 20px; /* Increased breathing room (was 60px 0) */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 45px; /* Increased breathing room between title, codes and email */
    justify-content: center;
    border-top: 1px solid #23343d; /* Subtle separation line */
}

.qr-heading {
    font-family: var(--font-main);
    color: #5b656b; /* Same graphite color as globe heading */
    font-size: clamp(1.6rem, 4.5vw, 3rem); /* Same size as globe heading */
    margin: 0 auto 35px auto; /* Increased space between heading and QR codes */
    text-align: center;
    text-transform: none; /* Sem caixa alta */
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: none;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.qr-email {
    text-align: center;
    width: 100%;
    z-index: 10;
}

.qr-email a {
    color: #151F24;
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qr-email a:hover {
    color: #BB798C;
    text-shadow: 0 0 10px rgba(187, 121, 140, 0.5);
}

.qr-container {
    display: flex;
    justify-content: space-between; /* Spread items to the edges */
    align-items: center;
    width: 100%;
    max-width: 900px; /* Matches the heading and upper text boxes */
    box-sizing: border-box;
    z-index: 10;
    padding: 0 20px; 
    position: relative;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-logo {
    height: 35px; /* Restrict height so they fit nicely above the QR codes */
    width: auto;
    object-fit: contain;
    margin-bottom: 5px;
}

.qr-item .qr-img {
    border: 1px solid #ff0055;
    border-radius: 0; /* Raw corners */
    padding: 5px;
    background-color: #fff; 
    width: 80px;
    height: 80px;
    box-shadow: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.qr-item .qr-img:hover {
    opacity: 1; /* Simple feedback */
    transform: none; /* No scaling */
    box-shadow: none;
}

@media (max-width: 768px) {
    .qr-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }
}

.terminal-heading {
    font-family: var(--font-main);
    color: #5b656b; /* Graphite color */
    font-size: clamp(1.6rem, 4.5vw, 3rem); /* Increased size for equivalent presence */
    margin: 0 auto 36px auto; /* Increased spacing by 20% (30px -> 36px) */
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    text-shadow: none; /* Removed neon glow */
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

#retroGlobe {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

@media (max-width: 768px) {
    .text-blocks-container {
        flex-direction: column;
    }
    .drawer-buttons-container {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   Drawer Buttons & Panels
   ========================================================================== */
.drawer-section {
    width: 100%;
    margin-top: 60px; /* 50% increase from 40px */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.more-details-title {
    font-family: 'Permanent Marker', cursive;
    color: #b8758f;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    text-transform: lowercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}

.more-details-title::before,
.more-details-title::after {
    background: #050505;
    color: #b8758f;
}

.bracket-wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 0;
}

.bracket-svg {
    width: 16px;
    min-width: 16px;
    flex-shrink: 0;
    opacity: 0.6;
}

.drawer-buttons-container {
    display: flex;
    gap: 30px;
    width: 100%;
    flex: 1;
    padding: 10px 12px;
}

.drawer-btn {
    flex: 1;
    padding: 18px 30px;
    background-color: #BB798C;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.26rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
    letter-spacing: 0.5px;
}

.drawer-btn.active {
    background-color: #a3687a;
}

/* Glitch effect on hover — mirrors the glitch-text approach */
.glitch-btn {
    position: relative;
    display: inline-block;
}

.glitch-btn::before,
.glitch-btn::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #BB798C;
    border-radius: 8px;
    opacity: 0;
    pointer-events: none;
}

.glitch-btn::before {
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
}

.glitch-btn::after {
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
}

.glitch-btn:hover::before {
    opacity: 1;
    animation: glitch-btn-anim 2.5s infinite linear alternate-reverse;
}

.glitch-btn:hover::after {
    opacity: 1;
    animation: glitch-btn-anim2 3s infinite linear alternate-reverse;
}

.glitch-btn:hover {
    animation: glitch-btn-text 0.3s infinite;
}

@keyframes glitch-btn-anim {
    0% { clip: rect(10px, 9999px, 20px, 0); }
    5% { clip: rect(5px, 9999px, 35px, 0); }
    10% { clip: rect(15px, 9999px, 25px, 0); }
    15% { clip: rect(0px, 9999px, 10px, 0); }
    20% { clip: rect(30px, 9999px, 45px, 0); }
    25% { clip: rect(8px, 9999px, 40px, 0); }
    30% { clip: rect(20px, 9999px, 50px, 0); }
    35% { clip: rect(2px, 9999px, 18px, 0); }
    40% { clip: rect(25px, 9999px, 35px, 0); }
    45% { clip: rect(12px, 9999px, 28px, 0); }
    50% { clip: rect(35px, 9999px, 55px, 0); }
    55% { clip: rect(3px, 9999px, 15px, 0); }
    60% { clip: rect(22px, 9999px, 38px, 0); }
    65% { clip: rect(7px, 9999px, 42px, 0); }
    70% { clip: rect(18px, 9999px, 30px, 0); }
    75% { clip: rect(40px, 9999px, 55px, 0); }
    80% { clip: rect(1px, 9999px, 12px, 0); }
    85% { clip: rect(28px, 9999px, 48px, 0); }
    90% { clip: rect(10px, 9999px, 22px, 0); }
    95% { clip: rect(33px, 9999px, 50px, 0); }
    100% { clip: rect(16px, 9999px, 36px, 0); }
}

@keyframes glitch-btn-anim2 {
    0% { clip: rect(30px, 9999px, 50px, 0); }
    5% { clip: rect(15px, 9999px, 40px, 0); }
    10% { clip: rect(5px, 9999px, 20px, 0); }
    15% { clip: rect(25px, 9999px, 45px, 0); }
    20% { clip: rect(10px, 9999px, 30px, 0); }
    25% { clip: rect(35px, 9999px, 55px, 0); }
    30% { clip: rect(0px, 9999px, 15px, 0); }
    35% { clip: rect(20px, 9999px, 38px, 0); }
    40% { clip: rect(8px, 9999px, 25px, 0); }
    45% { clip: rect(28px, 9999px, 48px, 0); }
    50% { clip: rect(3px, 9999px, 18px, 0); }
    55% { clip: rect(38px, 9999px, 55px, 0); }
    60% { clip: rect(12px, 9999px, 30px, 0); }
    65% { clip: rect(22px, 9999px, 42px, 0); }
    70% { clip: rect(7px, 9999px, 22px, 0); }
    75% { clip: rect(32px, 9999px, 50px, 0); }
    80% { clip: rect(2px, 9999px, 14px, 0); }
    85% { clip: rect(18px, 9999px, 35px, 0); }
    90% { clip: rect(40px, 9999px, 55px, 0); }
    95% { clip: rect(6px, 9999px, 28px, 0); }
    100% { clip: rect(24px, 9999px, 44px, 0); }
}

@keyframes glitch-btn-text {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(2px, -1px); }
    60% { transform: translate(-1px, -1px); }
    80% { transform: translate(1px, 2px); }
    100% { transform: translate(0); }
}

/* Drawer Close Button */
.drawer-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1;
}

.drawer-close:hover {
    color: #BB798C;
    transform: rotate(90deg) scale(1.2);
}

/* Drawer Panel */
.drawer-panel {
    width: 70vw;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                margin 0.7s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.5s ease;
    opacity: 0;
    background-color: #050505;
    border-radius: 8px;
    margin-top: 0;
    position: relative;
    /* Center the 70vw panel relative to the viewport, breaking out of the 900px parent */
    margin-left: calc(50% - 35vw);
    margin-right: calc(50% - 35vw);
}

.drawer-panel.open {
    max-height: 1600px;
    opacity: 1;
    margin-top: 30px;
}

.drawer-inner {
    padding: 35px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
}

.drawer-panel p {
    text-align: left;
    font-size: 0.95rem;
    color: #b3b3b3;
    line-height: 1.8;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    /* Card styling — matches .text-block */
    background-color: rgba(255, 255, 255, 0.02);
    padding: 24px 26px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.drawer-panel p strong {
    color: #d4a0b3;
    font-weight: 600;
    font-size: 1.14rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #d4a0b3;
    display: block;
    margin-bottom: 8px;
}

@media (max-width: 1200px) {
    .drawer-panel {
        width: 85vw;
    }
}

@media (max-width: 768px) {
    .drawer-buttons-container {
        flex-direction: column;
    }
    .drawer-panel {
        width: 92vw;
    }
    .drawer-inner {
        grid-template-columns: 1fr;
        padding: 20px 16px;
    }
}


/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    padding: 3rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    background-color: #050505;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-logo {
    height: 75px; /* Scaled down by 50% as requested */
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-nav a {
    color: #888888;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #ffffff;
}
/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active, .reveal-left.active {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Hamburger Icon */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001; /* Above the dropdown */
}

@keyframes bwGlitch {
    0%, 93%, 97%, 100% { filter: grayscale(0%) brightness(1); }
    95% { filter: grayscale(100%) brightness(1.5); }
    98% { filter: grayscale(100%) brightness(0.5); }
}

.hamburger-img {
    height: 13px; /* Decreased by ~30% from 18px */
    width: auto;
    transition: transform 0.3s ease;
    animation: bwGlitch 3.5s infinite linear;
}

/* Hamburger active state (Pink and rotated) */
.hamburger.active .hamburger-img {
    /* CSS Filter to turn the colored image into pure magenta/pink */
    filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(6293%) hue-rotate(292deg) brightness(104%) contrast(108%);
    transform: rotate(90deg);
    animation: none; /* Stop the BW glitch when active so the pink remains stable */
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .info {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%; /* Drop down below navbar */
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 0;
        gap: 0;
        max-height: 0; /* Hidden state */
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
        border-bottom: 1px solid transparent;
    }
    
    .nav-links.active {
        max-height: 300px; /* Enough to show links */
        opacity: 1;
        pointer-events: auto;
        padding: 20px 0;
        border-bottom: 1px solid #ff00ff;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
    }
    
    .swiper-slide {
        width: 260px;
        height: 350px;
    }
}
