/* VFXFREEK - dist.css
  This file is a combination of the original styles.css and the compiled
  Tailwind CSS utilities used in the project. This removes the need for 
  the Tailwind CDN, improving performance and eliminating layout shifts.
*/

/* Universal reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    text-size-adjust: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    animation-duration: 0s !important; /* Mobile optimization */
    animation-delay: 0s !important;   /* Mobile optimization */
    transition-duration: 0.2s !important; /* Mobile optimization */
}

html, body {
    height: 100%;
    min-height: 100vh; 
    width: 100%; 
    position: fixed; /* Ensures fixed layout */
    overflow: hidden; /* Prevents scrolling on main body */
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
    -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
}

body {
    font-family: 'Inter', sans-serif; /* Default font */
    color: #e0e0e0; /* Default text color */
    background-color: #0A0A10; /* Default background for mobile */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Desktop specific background gradient */
@media (min-width: 769px) {
    body {
        background: linear-gradient(135deg, #0A0A10 0%, #1A1A2A 100%);
    }
}

/* --- Layout and Structure --- */

/* Top Menu Styling */
.top-menu {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    z-index: 50;
    pointer-events: none; /* Allows clicks to pass through by default */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.top-menu a {
    pointer-events: auto; /* Re-enable clicks for links */
}

/* Header link styling */
#vfxfreekHeader {
    font-family: 'Orbitron', monospace;
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out, transform 0.3s ease;
    display: inline-block;
    position: relative;
    z-index: 10;
    -webkit-transform: translateZ(0); /* Force GPU layer for stable positioning */
    transform: translateZ(0);
}

#vfxfreekHeader:hover {
    transform: translateZ(0) scale(1.25);
    -webkit-transform: translateZ(0) scale(1.25);
    color: #a5b4fc; /* Subtle purple accent on hover */
    text-shadow: 0 0 15px rgba(165, 180, 252, 0.6);
}

/* Container for the entire page content */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding-bottom: 6rem; /* Space for the SHOP button */
}

/* Carousel Wrapper */
.carousel-wrapper {
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
    margin: 0 auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Carousel itself */
#carousel {
    height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 750px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Animation Keyframes */
@keyframes smoothPulse {
    0% { 
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(201, 179, 255, 0.7);
        color: #c9b3ff;
    }
    50% { 
        opacity: 1;
        text-shadow: 0 0 15px rgba(201, 179, 255, 0.9), 0 0 25px rgba(177, 156, 217, 0.7);
        color: #e6d9ff;
    }
    100% { 
        opacity: 0.7;
        text-shadow: 0 0 5px rgba(201, 179, 255, 0.7);
        color: #c9b3ff;
    }
}

/* Countdown Container */
.countdown-container {
    position: relative;
    display: inline-block;
    padding: 2px;
    background: linear-gradient(135deg, #bc98ff 0%, #bc98ff 50%, #bc98ff 100%);
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(183, 144, 255);
    margin: 15px 0;
    overflow: hidden;
    min-width: 280px;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Countdown Text Base Style */
.countdown-text {
    font-family: 'Orbitron', sans-serif;
    color: #d9c7ff;
    text-align: center;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    background: rgba(17, 7, 37, 0.95);
    border-radius: 6px;
    padding: 12px 24px;
    margin: 0;
    border: 1px solid #bc98ff;
    font-size: 1.2rem;
    line-height: 1.4;
    min-width: 200px;
    display: inline-block;
    text-shadow: 0 0 8px rgba(201, 179, 255, 0.5);
}

/* Active States - Smooth Pulse Effect */
.countdown-text.starting-soon,
.countdown-text.ended,
.countdown-text.loading {
    animation: smoothPulse 3s infinite ease-in-out;
    font-size: 1.2rem;
    padding: 12px 24px;
}

/* Countdown Timer Style */
.countdown-text.timer {
    font-size: 1.2rem;
    padding: 12px 24px;
    letter-spacing: 2px;
}

/* Limited Monthly Drop Text */
.limited-monthly-drop-text {
    font-family: 'Orbitron', sans-serif;
    color: #bc98ff;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px !important;
    text-shadow: 0 0 10px rgba(158, 134, 214, 0.5);
}

/* Remove any conflicting animation overrides */
* {
    animation-duration: 3s !important;
    animation-iteration-count: infinite !important;
    animation-timing-function: ease-in-out !important;
}

/* --- Limited Drop Timer --- */
.limited-drop-timer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.limited-monthly-drop-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #e0e0e0;
    margin: 0 auto 0.5rem; /* Combined margin */
    display: block;
    text-align: center;
    width: 100%;
}

.countdown-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #bc98ff; /* Exact frame color from carousel items */
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(106, 90, 249, 0.5), 0 0 20px rgba(106, 90, 249, 0.3);
    text-align: center;
    display: block;
    width: 100%;
}

/* --- Artwork & Images (Carousel Items) --- */

.card-visuals {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background: #0a0a0f;
    border: 1px solid rgba(106, 90, 249, 0.3);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: all 0.3s ease; /* Combined transition */
}

.card-visuals img {
    width: 100%;
    height: auto;
    flex-grow: 1;
    object-fit: cover;
    border-radius: 0.6rem;
    display: block;
    transform: scale(1.01);
    -webkit-transform: scale(1.01);
}

.carousel-overlay-text {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    text-align: center;
    text-transform: uppercase;
    background: rgba(10, 10, 15, 0.9);
    color: #e0e0e0;
    border: 1px solid rgba(106, 90, 249, 0.5);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 2;
    white-space: nowrap;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.carousel-item.active .carousel-overlay-text {
    font-size: 0.85rem;
    padding: 0.5rem 1.5rem;
    background: rgba(20, 20, 30, 0.95);
    border-color: #6a5af9;
}

.carousel-item.prev .carousel-overlay-text,
.carousel-item.next .carousel-overlay-text {
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
    opacity: 0.8;
    background: rgba(15, 15, 20, 0.9);
    border-color: rgba(106, 90, 249, 0.3);
}

.carousel-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    cursor: pointer;
    pointer-events: auto;
    will-change: transform, opacity, z-index;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    opacity: 0;
    z-index: 1;
}

.question-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #0a0a12;
    color: #b388ff;
    font-size: 8rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px #7c4dff, 0 0 15px #b388ff;
    border: 2px solid #5e35b1;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.carousel-item.active {
    width: 340px;
    height: 425px;
    opacity: 1;
    z-index: 10;
    filter: drop-shadow(0 10px 30px rgba(106, 90, 249, 0.3));
    box-shadow: 0 0 0 2px rgba(106, 90, 249, 0.7);
    border-radius: 0.6rem;
    padding: 4px;
    background: linear-gradient(135deg, rgba(106, 90, 249, 0.3), rgba(138, 99, 210, 0.2));
    transform: translate(-50%, -50%) scale(1);
    -webkit-transform: translate(-50%, -50%) scale(1);
}

.carousel-item.prev,
.carousel-item.next {
    width: 200px;
    height: 250px;
    opacity: 0.6;
    z-index: 5;
    filter: grayscale(0.2);
    transition-delay: 0.05s;
}

.carousel-item.active .question-mark {
    font-size: 8rem;
    transition: font-size 0.4s ease-out;
}

.carousel-item.prev .question-mark,
.carousel-item.next .question-mark {
    font-size: 5rem;
    transition: font-size 0.4s ease-out;
}

.carousel-item.prev {
    transform: translate(calc(-50% - 200px), -50%) scale(0.85);
    -webkit-transform: translate(calc(-50% - 200px), -50%) scale(0.85);
}

.carousel-item.next {
    transform: translate(calc(-50% + 200px), -50%) scale(0.85);
    -webkit-transform: translate(calc(-50% + 200px), -50%) scale(0.85);
}

.carousel-item.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
    -webkit-transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    -webkit-transition: opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;
}

/* --- SHOP Button Styles --- */
.buy-button {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    font-size: 1.125rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700; /* Make text bold */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 0.375rem;
    padding: 0.75rem 2rem;
    color: white;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    min-width: 180px;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.buy-button:hover {
    background-color: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: translateX(-50%) scale(1.05);
    -webkit-transform: translateX(-50%) scale(1.05);
}

.buy-button:active {
    background: #fff;
    color: #181825;
    transform: translateX(-50%) scale(0.95);
    -webkit-transform: translateX(-50%) scale(0.95);
}

/* --- Privacy Box Styles --- */
.privacy-consent-box {
    display: none; /* Controlled by JS */
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

.privacy-box {
    background: rgba(3,10,21,0.8);
    border: 2px solid #6366f1;
    border-radius: 18px;
    box-shadow: 0 4px 32px #23294699, 0 0 8px #6366f1;
    padding: 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    max-width: 90vw;
    color: #fff;
}

.privacy-text {
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    text-align: center;
}

.privacy-actions {
    display: flex;
    gap: 1.5rem;
}

.privacy-btn {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 10px;
    border: 2px solid #6366f1;
    background: #232946;
    color: #fff;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px #23294655;
}

.privacy-btn:hover {
    background: #6366f1;
    color: #fff;
    border-color: #a5b4fc;
}

/* --- Console Blink Effect --- */
.console-blink {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #110000;
    display: none; /* Controlled by JS */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.console-blink.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

/* Scanlines effect */
.console-blink::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 3;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,0,0,0.10) 0px,
        rgba(255,0,0,0.10) 1px,
        transparent 2px,
        transparent 6px
    );
    opacity: 0.4;
    mix-blend-mode: lighten;
}

.console-text {
    font-family: 'Black Ops One', cursive; /* Using Black Ops One as specified in original CSS */
    font-size: 3.5rem; /* Mobile default */
    color: #ff4d4d;
    text-shadow: 0 0 10px #ff0000;
    letter-spacing: 2px;
    opacity: 0;
    position: relative;
    padding: 1.5rem 3rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #ff3333;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
    transform: translateY(20px);
    -webkit-transform: translateY(20px);
    z-index: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease;
    text-transform: uppercase;
}

.console-text.show {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
}

/* Only show scanline animation on desktop */
@media (min-width: 769px) {
    .console-blink::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 12px;
        background: linear-gradient(
            to bottom,
            rgba(255, 0, 0, 0.2),
            rgba(0, 0, 0, 0.4) 50%,
            rgba(255, 0, 0, 0.2) 100%
        );
        opacity: 0.8;
        pointer-events: none;
        z-index: 1;
        animation: scanline 3s linear infinite;
        box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
    }
    
    @keyframes scanline {
        0% { transform: translateY(-100%); }
        100% { transform: translateY(100vh); }
    }

    .console-text {
        font-size: 6rem; /* Desktop font size */
        padding: 2rem 4rem;
    }
}

/* --- Loading Bar Styles (used by JS for loading states) --- */
.scifi-bar-bg {
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #232946 0%, #6366f1 100%);
    border-radius: 8px;
    box-shadow: 0 0 12px #6366f1, 0 0 2px #232946;
    overflow: hidden;
    position: relative;
}

.scifi-bar {
    height: 100%;
    background: linear-gradient(90deg, #a5b4fc 0%, #6366f1 100%);
    box-shadow: 0 0 16px #a5b4fc, 0 0 4px #6366f1;
    border-radius: 8px 0 0 8px;
    width: 1%;
    transition: width 0.18s cubic-bezier(.4,2.3,.3,1);
}

.scifi-bar-text {
    color: #a5b4fc;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    text-align: right;
    margin-top: 2px;
    text-shadow: 0 0 8px #232946, 0 0 2px #6366f1;
    letter-spacing: 0.1em;
}

#lightboxLoadingBarContainer { /* This ID is used in the JS logic */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 60vw;
    max-width: 400px;
    z-index: 11;
    display: none;
    margin-top: 0;
}

/* --- Mobile Specific Overrides (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Reset any conflicting styles */
    html, body {
        height: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Create a container that takes full viewport height */
    .header-timer-wrapper {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
    }
    
    /* Position the header in the middle of the top half */
    .top-menu {
        position: absolute;
        top: 25vh; /* Position in the middle of the top half */
        left: 0;
        right: 0;
        transform: translateY(-50%);
        text-align: center;
        z-index: 50;
        padding: 0 1rem;
    }

    #vfxfreekHeader {
        font-size: 1.8rem;
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .limited-drop-timer-container {
        position: absolute;
        top: 50vh; /* Position in the middle of the viewport */
        left: 0;
        right: 0;
        text-align: center;
        padding: 2rem 1rem;
        margin: 0;
    }

    .countdown-text {
        font-size: 1.25rem;
        text-shadow: none; /* Reduce text shadow for mobile */
    }

    .limited-monthly-drop-text {
        font-size: 0.85rem;
    }

    .container {
        width: 100vw;
        max-width: 100vw;
        margin: 0 auto;
        padding: 0;
        min-height: 100vh;
        padding-bottom: 4rem; /* Adjusted for mobile SHOP button */
    }

    .carousel-wrapper {
        width: 100vw;
        max-width: 100vw;
        min-height: 320px;
        margin: 0 auto;
    }

    #carousel {
        height: 320px;
    }

    .carousel-item.active {
        width: 240px;
        height: 300px;
        filter: none; /* Remove expensive filter */
        box-shadow: 0 0 0 2px rgba(106, 90, 249, 0.5);
        background: rgba(106, 90, 249, 0.2); /* Simplified background */
    }
    .carousel-item.prev,
    .carousel-item.next {
        width: 120px;
        height: 150px;
        filter: none; /* Remove expensive filter */
    }
    .carousel-item.prev {
        transform: translate(calc(-50% - (240px / 2) - (120px / 2) - 15px), -50%);
        -webkit-transform: translate(calc(-50% - (240px / 2) - (120px / 2) - 15px), -50%);
    }
    .carousel-item.next {
        transform: translate(calc(-50% + (240px / 2) + (120px / 2) + 15px), -50%);
        -webkit-transform: translate(calc(-50% + (240px / 2) + (120px / 2) + 15px), -50%);
    }
    
    .carousel-item.active .carousel-overlay-text {
        font-size: 0.75rem;
        padding: 0.5rem 1.4rem;
    }
    .carousel-item.prev .carousel-overlay-text,
    .carousel-item.next .carousel-overlay-text {
        font-size: 0.4rem;
        padding: 0.2rem 0.6rem;
    }

    .buy-button {
        bottom: 20px;
        width: 90vw;
        max-width: 400px;
        text-align: center;
        padding: 0.65rem 2rem;
        font-size: 1.1rem;
        min-width: 160px;
    }
    
    .question-mark {
        text-shadow: 0 0 4px #7c4dff; /* Reduced text shadow */
    }
}

/* Desktop specific styles (min-width: 769px) */
@media (min-width: 769px) {
    .buy-button {
        bottom: 60px;
        margin: 0;
    }
    
    .buy-button:hover {
        background: #fff;
        color: #181825;
        border-color: #6a5af9;
        box-shadow: 0 4px 24px 0 rgba(106,90,249,0.18);
        transform: translateX(-50%) translateY(-1px) scale(1.03);
        -webkit-transform: translateX(-50%) translateY(-1px) scale(1.03);
    }
    
    /* Enable animations only on desktop */
    .carousel-item.active .question-mark {
        animation: subtlePulse 4s infinite alternate;
    }
    
    @keyframes subtlePulse {
        0% { opacity: 0.7; }
        50% { opacity: 0.9; }
        100% { opacity: 0.7; }
    }
    
    .card-visuals:hover {
        border-color: rgba(106, 90, 249, 0.7);
        box-shadow: 0 15px 40px -5px rgba(106, 90, 249, 0.2);
    }
    
    .carousel-item.prev:hover,
    .carousel-item.next:hover {
        opacity: 0.7;
        filter: grayscale(0.1);
    }
}