html {
    width: 100%;
    margin: 0;
    padding: 0;
}
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

:root {
    /* Colors */
    --color-primary-bg: #050505;
    /* Brand Black */
    --color-dark-bg: #121212;
    /* Charcoal Surface */
    --color-accent: #FF0000;
    /* Brand Red */
    --color-accent-secondary: #CC0000;
    /* Deep Red */
    /* Text & Utilities */
    --color-text-main: #FFFFFF;
    --color-text-muted: #ababab;
    --color-divider: rgba(255, 255, 255, 0.1);
    --color-white: #FFFFFF;
    --color-black: #000000;
    --premium-gradient: linear-gradient(135deg, #FF0000 0%, #000000 100%);
    --bg-dark-gradient: radial-gradient(circle at center, #121212 0%, #000000 100%);

    --color-dark-grey: #1A1A1A;

    /* Fonts */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Cairo', sans-serif;

    /* Spacing */
    --container-max-width: 1400px;
    --section-spacing: clamp(60px, 10vh, 140px);
}

@media (max-width: 767px) {
    :root {
        --fz-h1: 93px;
        --fz-h2: 36px;
        --fz-h3: 26px;
        --fz-body: 12px;
    }
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text-muted);
    background-color: var(--color-primary-bg);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    text-transform: uppercase;
    line-height: 1.2;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Base Components from Aurelia */
.btn-primary {
    font-family: var(--font-heading);
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 15px 35px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.5s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--color-accent);
    color: var(--color-black);
}

.bg-dark {
    background-color: var(--color-dark-bg);
    color: var(--color-white);
}

.text-accent {
    color: var(--color-accent);
}

.bg-dark-grey {
    background-color: var(--color-dark-grey);
}

.text-stroke-3 {
    -webkit-text-stroke: 3px currentColor;
    color: transparent;
}

.text-stroke-2 {
    -webkit-text-stroke: 2px currentColor;
    color: transparent;
}

/* Animations */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    animation: marquee 25s linear infinite;
    display: flex;
    width: max-content;
    will-change: transform;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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


.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 1s ease forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.fade-in-down {
    animation: fadeInDown 1s ease forwards;
}

/* Stroke Utilities */
.stroke-white {
    -webkit-text-stroke: 1px white;
}

.stroke-black {
    -webkit-text-stroke: 1px var(--color-accent);
}

.stroke-none {
    -webkit-text-stroke: 0px transparent;
}

/* Custom Overrides for 100% Fidelity */
.hero-title-filled {
    font-size: clamp(90px, 24vw, 340px);
    letter-spacing: -0.05em;
    line-height: 0.8;
}

.hero-title-outline {
    font-size: clamp(90px, 24vw, 340px);
    letter-spacing: -0.05em;
    -webkit-text-stroke: 2px var(--color-accent);
    color: transparent;
    line-height: 0.8;
}

/* Coupon card responsive scaling */
@media (max-width: 1023px) {
    .hero-image-container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ============================================
   MARQUEE - Aurelia Style (100% Match)
   ============================================ */

.marquee-wrapper {
    overflow: visible;
}

.marquee-container {
    overflow: hidden;
    position: relative;
    direction: ltr;
    /* Force LTR for animation to work correctly */
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 50s linear infinite;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    flex-shrink: 0;
    direction: rtl;
    /* Keep text RTL */
}

.marquee-item {
    font-family: 'Cairo', sans-serif;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: -1px;
}

.marquee-separator {
    font-size: clamp(1.25rem, 2.5vw, 2.5rem);
    color: #000000;
    opacity: 0.8;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Pause on hover (optional - Aurelia behavior) */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* Logo Marquee Specifics */
.logo-marquee {
    padding: 15px 0;
    /* Add vertical breath for hover scale */
}

.logo-marquee img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1) opacity(0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* MySQL is naturally smaller/thinner, so we give it a boost */
.logo-marquee img.mysql-logo {
    height: 45px;
}

.logo-marquee img:hover {
    filter: brightness(0) saturate(100%) invert(28%) sepia(99%) saturate(7487%) hue-rotate(359deg) brightness(103%) contrast(116%);
    opacity: 1;
    transform: scale(1.15);
    /* Slightly bigger for better impact */
}

.logo-marquee .marquee-track {
    animation-duration: 40s;
}

@media (max-width: 768px) {
    .marquee-track {
        animation-duration: 20s !important;
    }
    .logo-marquee .marquee-track {
        animation-duration: 15s !important;
    }
}

/* --- Pricing Plans Section --- */
.pricing-section {
    background-color: var(--color-primary-bg);
    /* Fallback */
}

.pricing-card {
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 0, 0, 0.2);
    border-color: var(--color-accent) !important;
}

/* Specific Plan Colors */
.plan-starter {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-growth {
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(255, 0, 0, 0.4);
}

.plan-elite {
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Staircase Heights (RTL: Progression from Right to Left) */
.staircase-step-1 {
    min-height: 550px;
}

.staircase-step-2 {
    min-height: 650px;
}

.staircase-step-3 {
    min-height: 750px;
}

/* Elite - Tallest */

/* Divider Line with Text */
.divider-line,
.divider-line-white {
    display: flex;
    align-items: center;
    gap: 15px;
}

.divider-line::after,
.divider-line::before {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider-line-white::after,
.divider-line-white::before {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.plan-growth .divider-line-white::after,
.plan-growth .divider-line-white::before {
    background: rgba(0, 0, 0, 0.2);
}

/* Features List Icons */
.pricing-card ul li i {
    transition: transform 0.3s ease;
}

.pricing-card:hover ul li i {
    transform: scale(1.2);
}

/* Pricing Buttons */
.pricing-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
}

.pricing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.pricing-btn:hover::before {
    left: 0;
}

.pricing-btn span,
.pricing-btn i {
    transition: color 0.4s ease;
}

.pricing-btn:hover span,
.pricing-btn:hover i {
    color: var(--color-black) !important;
}

/* Plan Growth Button Specifics (White button) */
.plan-growth .pricing-btn {
    border: none;
}

.plan-growth .pricing-btn:hover {
    background: var(--color-accent) !important;
}

.plan-growth .pricing-btn:hover span,
.plan-growth .pricing-btn:hover i {
    color: var(--color-black) !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {

    .staircase-step-1,
    .staircase-step-2,
    .staircase-step-3 {
        min-height: auto !important;
    }
}

/* ============================================
   NEW INTERACTIVE SECTIONS
   ============================================ */

/* Section 1: Before/After Slider */
.before-after-slider {
    cursor: ew-resize;
    user-select: none;
}

#ba-handle {
    transition: background 0.3s ease;
}

#ba-slider:active #ba-handle {
    background: var(--color-white);
}

/* Section 2: Process Timeline */
.process-step.active .w-24 {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.3);
}

/* Section 3: ROI Calculator */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border: 3px solid var(--color-black);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Section 4: FoxBot Modal */
#foxbot-modal.active {
    opacity: 1;
    pointer-events: auto;
}

#foxbot-modal.active .bg-dark-grey {
    transform: scale(1);
    opacity: 1;
}

#foxbot-modal .bg-dark-grey {
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Special Offer Coupon Animation */
@keyframes coupon-float {
    0%,
    100% {
        transform: scale(0.55) translateY(0) rotate(-3deg);
    }
    50% {
        transform: scale(0.55) translateY(-10px) rotate(-1deg);
    }
}

@keyframes coupon-float-lg {
    0%,
    100% {
        transform: scale(0.8) translateY(0) rotate(-3deg);
    }
    50% {
        transform: scale(0.8) translateY(-10px) rotate(-1deg);
    }
}

.animate-coupon {
    transform-origin: left center;
    animation: coupon-float 4s ease-in-out infinite;
}

@media (min-width: 1024px) {
    .animate-coupon {
        animation: coupon-float-lg 4s ease-in-out infinite;
    }
}

/* === Flip Card Pricing === */
.flip-card-container {
    perspective: 1000px;
    height: 520px;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card-container:hover .flip-card {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.flip-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

/* Featured card (middle) flip override */
.flip-card-container.featured {
    height: 560px;
    transform: scale(1.05);
    z-index: 10;
}

/* Mobile: tap to flip */
@media (max-width: 1024px) {

    .flip-card-container:active .flip-card,
    .flip-card-container.flipped .flip-card {
        transform: rotateY(180deg);
    }
}

/* === Roulette Wheel === */
.roulette-wrapper {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

#roulette-wheel {
    background: conic-gradient(#ff0000 0deg 45deg,
            #1A1A1A 45deg 90deg,
            #ff0000 90deg 135deg,
            #1A1A1A 135deg 180deg,
            #ff0000 180deg 225deg,
            #1A1A1A 225deg 270deg,
            #ff0000 270deg 315deg,
            #1A1A1A 315deg 360deg);
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
    border: 10px solid #ff0000;
}

#roulette-wheel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.wheel-labels {
    position: absolute;
    inset: 0;
}

.wheel-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    padding-top: 14px; /* Position close to the outer rim on mobile */
    transform: rotate(calc(var(--i) * 45deg + 22.5deg));
    transform-origin: center;
}

.wheel-segment span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 11.5px; /* Slightly adjusted for better alignment */
    letter-spacing: 0.02em;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    opacity: 1;
    white-space: normal;
    text-align: center;
    max-width: 60px;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.wheel-segment span i {
    font-size: 1.35em; /* Larger icons for mobile */
    color: rgba(255, 255, 255, 0.9);
    margin-top: 2px;
}

@media (min-width: 768px) {
    .wheel-segment {
        padding-top: 22px; /* Position at the widest outer part of the slice on desktop */
    }

    .wheel-segment span {
        font-size: 13.5px; /* Adjusted size for 380px wheel */
        max-width: 85px;
        gap: 6px;
    }

    .wheel-segment span i {
        font-size: 1.45em; /* Larger icons for desktop */
        margin-top: 3px;
    }
}

/* Dynamic segment count styles to prevent text overflow */
.segment-count-9 .wheel-segment span,
.segment-count-10 .wheel-segment span {
    font-size: 9.5px;
}
@media (min-width: 768px) {
    .segment-count-9 .wheel-segment span,
    .segment-count-10 .wheel-segment span {
        font-size: 11px;
    }
}

.segment-count-11 .wheel-segment span,
.segment-count-12 .wheel-segment span,
.segment-count-13 .wheel-segment span,
.segment-count-14 .wheel-segment span,
.segment-count-15 .wheel-segment span,
.segment-count-16 .wheel-segment span {
    font-size: 8.5px;
}
@media (min-width: 768px) {
    .segment-count-11 .wheel-segment span,
    .segment-count-12 .wheel-segment span,
    .segment-count-13 .wheel-segment span,
    .segment-count-14 .wheel-segment span,
    .segment-count-15 .wheel-segment span,
    .segment-count-16 .wheel-segment span {
        font-size: 10px;
    }
}

.vip-title-gold {
    background: linear-gradient(135deg, #FFE082 0%, #FFC107 50%, #FFE082 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Game Cards (UNO Style) === */
.cards-stack-container {
    perspective: 1000px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}

.game-card {
    position: absolute;
    width: 165px;
    height: 255px; /* Increased height to fit descriptions and button cleanly */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    left: 50%;
    bottom: 60px;
    background: transparent !important;
    border-radius: 16px;
    /* Match inner card corners */
}

/* Stack positioning - fan from center like holding cards */
.game-card:nth-of-type(1) {
    transform: translateX(calc(-50% - 130px)) rotate(-15deg);
    z-index: 1;
}

.game-card:nth-of-type(2) {
    transform: translateX(-50%) rotate(0deg);
    z-index: 3;
}

.game-card:nth-of-type(3) {
    transform: translateX(calc(-50% + 130px)) rotate(15deg);
    z-index: 2;
}

/* Featured card is larger */
.game-card.featured {
    width: 185px;
    height: 275px; /* Increased height to fit descriptions and button cleanly */
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
    background: transparent !important;
    border-radius: 16px;
    /* Match inner card corners */
}

.game-card-back,
.game-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}


.game-card-back {
    background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.game-card-back .card-pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(234, 84, 85, 0.1) 10px,
            rgba(234, 84, 85, 0.1) 20px);
}

.game-card-front {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    text-align: center;
    overflow: visible;
    /* Changed to visible to show badges on edges */
}

.game-card-front h4 {
    margin-bottom: 0.1rem !important;
    font-size: 16px !important;
}

.game-card-front p {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-top: 0.25rem !important;
    max-height: none;
    overflow: visible;
}

/* Revealed state */
.game-card.revealed .game-card-inner {
    transform: rotateY(180deg);
}

.game-card.revealed:nth-child(1) {
    transform: translateX(calc(-50% - 160px)) translateY(-20px) rotate(-10deg) scale(1.1);
}

.game-card.revealed:nth-child(2) {
    transform: translateX(-50%) translateY(-40px) rotate(0deg) scale(1.25);
}

.game-card.revealed:nth-child(3) {
    transform: translateX(calc(-50% + 160px)) translateY(-20px) rotate(10deg) scale(1.1);
}

/* Discount Badge (Luck Badges) */
.discount-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background: #ff0000;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 800;
    font-size: 14px;
    /* Increased for clarity */
    z-index: 30;
    /* Higher z-index */
    border: 2px solid #ffffff;
    transform: rotate(5deg);
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.close-card-btn {
    position: absolute;
    top: -12px;
    /* On the edge */
    left: -12px;
    /* On the edge */
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 1);
    color: #ff0000;
    border: 2px solid #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    /* Highest z-index */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}



.close-card-btn:hover {
    background: #ff0000;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

/* Focused State */
.game-card.focused {
    z-index: 100 !important;
    transform: translateX(-50%) translateY(-100px) scale(1.8) rotate(0deg) !important;
    will-change: transform;
    isolation: isolate;
}

.game-card.focused .close-card-btn {
    opacity: 1;
    pointer-events: auto;
    transform: scale(0.55) !important;
}

.game-card.focused .close-card-btn:hover {
    transform: scale(0.65) rotate(90deg) !important;
}

.game-card.focused .order-now-btn {
    transform: scale(0.55) !important;
}

.game-card.focused .order-now-btn:hover {
    transform: scale(0.6) !important;
}

.game-card.focused .discount-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: scale(0.55) rotate(0deg) !important;
    margin: 8px auto 0 auto !important;
    display: inline-block !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Reveal Button */
.game-card.revealed .order-now-btn,
.game-card.focused .order-now-btn {
    display: inline-flex !important;
    opacity: 0;
    animation: fadeInBtn 0.5s ease forwards 0.5s;
}

@keyframes fadeInBtn {
    to {
        opacity: 1;
    }
}

/* Dimmed effect for other cards */
.game-card.dimmed {
    opacity: 0.15;
    transform: scale(0.9);
    filter: blur(2px);
    pointer-events: none;
}



@keyframes badge-pop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Revealed Result State Effects */
#roulette-game-area.results-revealed .roulette-wrapper {
    transform: scale(0.65);
    opacity: 0.3;
    pointer-events: none;
}

/* Deeper dimming when a card is opened for details */
#roulette-game-area.details-open .roulette-wrapper {
    opacity: 0.1;
}

#roulette-game-area.details-open .cards-stack-container {
    z-index: 50 !important;
}

#roulette-game-area.results-revealed .cards-stack-container {
    transform: scale(1.15) translateY(-40px);
}

/* Mobile: Adjust revealed scale for smaller screens */
@media (max-width: 768px) {
    #roulette-game-area.results-revealed .roulette-wrapper {
        transform: scale(0.5);
    }

    #roulette-game-area.results-revealed .cards-stack-container {
        transform: scale(1.1) translateY(-20px);
    }
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .game-card {
        width: 220px;
        height: 300px;
    }

    .game-card:nth-child(1) {
        transform: translateX(calc(-50% - 40px)) rotate(-5deg);
    }

    .game-card:nth-child(2) {
        transform: translateX(-50%) translateY(5px) rotate(0deg);
    }

    .game-card:nth-child(3) {
        transform: translateX(calc(-50% + 40px)) translateY(3px) rotate(5deg);
    }

    .game-card.revealed:nth-child(1) {
        transform: translateX(calc(-50% - 240px)) rotate(0deg);
    }

    .game-card.revealed:nth-child(2) {
        transform: translateX(-50%) rotate(0deg);
    }

    .game-card.revealed:nth-child(3) {
        transform: translateX(calc(-50% + 240px)) rotate(0deg);
    }

    .cards-stack-container {
        width: 280px;
        height: 320px;
    }
}

@media (max-width: 640px) {
    .game-card {
        width: 155px;
        height: 230px;
        bottom: 25px;
    }

    .game-card.featured {
        width: 165px;
        height: 245px;
    }

    .game-card:nth-of-type(1) {
        transform: translateX(calc(-50% - 100px)) rotate(-10deg);
    }

    .game-card:nth-of-type(2) {
        transform: translateX(-50%) rotate(0deg);
    }

    .game-card:nth-of-type(3) {
        transform: translateX(calc(-50% + 100px)) rotate(10deg);
    }

    .game-card.revealed:nth-child(1) {
        transform: translateX(calc(-50% - 100px)) translateY(-15px) rotate(-8deg) scale(0.95);
        z-index: 10 !important;
    }

    .game-card.revealed:nth-child(2) {
        transform: translateX(-50%) translateY(-35px) rotate(0deg) scale(1.1);
        z-index: 30 !important;
    }

    .game-card.revealed:nth-child(3) {
        transform: translateX(calc(-50% + 100px)) translateY(-15px) rotate(8deg) scale(0.95);
        z-index: 20 !important;
    }

    .game-card.focused {
        transform: translateX(-50%) translateY(-40px) scale(1.6) rotate(0deg) !important;
        z-index: 1000 !important;
    }

    .cards-stack-container {
        width: 240px;
        height: 240px;
    }

    .close-card-btn {
        width: 32px;
        height: 32px;
        top: -10px;
        left: -10px;
    }

    /* Counter-scale close and order buttons when focused on mobile to keep them normal-sized */
    .game-card.focused .close-card-btn {
        transform: scale(0.6) !important;
        pointer-events: auto !important;
        opacity: 1 !important;
    }

    .game-card.focused .close-card-btn:hover {
        transform: scale(0.7) rotate(90deg) !important;
    }

    .game-card.focused .order-now-btn {
        transform: scale(0.6) !important;
    }

    .game-card.focused .order-now-btn:hover {
        transform: scale(0.65) !important;
    }

    .game-card.focused .discount-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: scale(0.6) rotate(0deg) !important;
        margin: 6px auto 0 auto !important;
        display: inline-block !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
}





/* ════════════════════════════════════════════════════════
   RESPONSIVE ENHANCEMENTS
   ════════════════════════════════════════════════════════ */

/* Mobile-First Optimizations */
@media (max-width: 640px) {
    /* Prevent text overflow on small screens */
    * {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Optimize hero section for mobile */
    #home {
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 0 !important;
    }

    /* Improve touch targets */
    button,
    a,
    .cursor-pointer {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Retina display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape mobile optimization */
@media (max-width: 896px) and (orientation: landscape) {
    section {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .hero-title-filled,
    .hero-title-outline {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
}

/* Print styles */
@media print {
    .marquee-wrapper,
    .animate-coupon,
    #mobile-menu,
    footer,
    button {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Prevent FOUC (Flash of Unstyled Content) */
html.wf-loading body {
    opacity: 0;
}

html.wf-active body,
html.wf-inactive body {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* ════════════════════════════════════════════════════════
   TECHNICAL CAPABILITIES CARDS (Subtle Silver Metallic Glow Borders)
   ════════════════════════════════════════════════════════ */
.tech-card {
    position: relative;
    border-radius: 1.5rem !important;
    overflow: hidden;
    background: rgba(18, 18, 18, 0.45) !important;
    border: 1px solid transparent !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.tech-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1.2px; /* Super thin, elegant border */
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(255, 255, 255, 0.12) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
    transition: all 0.5s ease;
}

.tech-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.tech-card:hover {
    background: rgba(22, 22, 22, 0.75) !important;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(255, 0, 0, 0.15); /* Brand red shadow glow on hover */
}

.tech-card:hover::before {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
}

.tech-card:hover::after {
    opacity: 1;
}


