/* Custom Design System for Gaminza - Premium Edition */

:root {
    --primary: #4ade80;
    --secondary: #6366f1;
    --accent: #a855f7;
    --dark: #050505;
    --dark-lighter: #101010;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

/* Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

body {
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
    background-color: var(--dark);
    color: white;
}

/* Glassmorphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.header-pill {
    margin-top: 2rem;
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    max-width: 1100px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Text & Visual Effects */
.text-gradient {
    background: linear-gradient(to right, #4ade80, #6366f1, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8.5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.text-reveal {
    background: linear-gradient(to right, #fff 0%, #fff 45%, var(--primary) 50%, #fff 55%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 6s linear infinite;
}

@keyframes text-shine {
    to {
        background-position: 200% center;
    }
}

.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent !important;
    transition: all 0.5s ease;
}

.text-outline:hover {
    -webkit-text-stroke: 1px var(--primary);
    filter: drop-shadow(0 0 15px var(--primary));
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

.glass-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
    filter: blur(40px);
}

@keyframes wave-move {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translate(-45%, -55%) rotate(5deg) scale(1.1);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }
}

.animate-wave {
    animation: wave-move 15s ease-in-out infinite;
}



.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -2;
    opacity: 0.4;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -100px;
    right: -100px;
}

/* Cards & Interactions */
.premium-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2.5rem;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.btn-premium {
    position: relative;
    padding: 1rem 2.5rem;
    background: white;
    color: black;
    font-weight: 700;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-premium:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Custom Select Styles */
#custom-options {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

#custom-options::-webkit-scrollbar {
    width: 4px;
}

#custom-options::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.custom-select-wrapper #custom-options.hidden {
    display: none;
}

/* Intl-Tel-Input Custom Styles */
.iti {
    width: 100%;
    display: block;
}

.iti__selected-flag {
    background-color: transparent !important;
    border-radius: 1rem 0 0 1rem;
    padding-left: 1.5rem !important;
}

.iti__country-list {
    background-color: #0a0a0a !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    margin-top: 10px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.iti__country {
    padding: 10px 15px !important;
    color: #999;
}

.iti__country:hover,
.iti__country.iti__highlight {
    background-color: var(--primary) !important;
    color: black !important;
}

.iti__dial-code {
    color: #666;
}

.iti__country-name {
    color: inherit;
}

.iti--separate-dial-code .iti__selected-dial-code {
    color: #fff;
    font-size: 0.875rem;
}

/* Animations */
@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 8s ease-in-out infinite;
}

.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-text.active span {
    transform: translateY(0);
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .blob-1,
    .blob-2 {
        width: 300px;
        height: 300px;
        filter: blur(80px);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .header-pill {
        padding: 0.5rem 1rem;
        margin-top: 1rem;
        width: 95%;
    }

    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    section {
        overflow: hidden;
        /* Prevent AOS animations from creating scrollbars */
    }

    .blob-1,
    .blob-2 {
        display: none;
        /* Blobs can cause layout shifts on small mobile */
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }
}