/* 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;
    direction: ltr !important;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Pricing Section Styles */
.pricing-card-featured {
    position: relative;
}

.featured-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ccff00;
    color: #000;
    padding: 0.5rem 1.8rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 50;
    box-shadow: 0 0 25px rgba(204, 255, 0, 0.4);
    white-space: nowrap;
}

/* Pricing Section Decorations */
.pricing-card-featured {
    position: relative;
    border: 2px solid #b166ff !important;
    box-shadow: 0 0 40px rgba(177, 102, 255, 0.15) !important;
}

.card-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 1;
}

.decoration-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    filter: blur(60px);
    opacity: 0.3;
    border-radius: 50%;
}

.blob-purple { background: radial-gradient(circle, #b166ff, transparent 70%); }
.blob-green { background: radial-gradient(circle, #ccff00, transparent 70%); }
.blob-yellow { background: radial-gradient(circle, #facc15, transparent 70%); }

.decoration-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.8s ease;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 20%;
    transform: rotate(45deg);
    border-radius: 24px;
    animation: float-shape 8s infinite ease-in-out;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 10%;
    transform: rotate(-15deg);
    border-radius: 16px;
    animation: float-shape 6s infinite ease-in-out reverse;
    border-color: rgba(177, 102, 255, 0.3);
}

.shape-3 {
    width: 90px;
    height: 90px;
    top: 40%;
    right: 15%;
    transform: rotate(15deg);
    border-radius: 20px;
    animation: float-shape 7s infinite ease-in-out;
    border-color: rgba(204, 255, 0, 0.3);
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 15%;
    transform: rotate(30deg);
    border-radius: 22px;
    animation: float-shape 9s infinite ease-in-out;
    border-color: rgba(250, 204, 21, 0.3);
}

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(55deg); }
}

.group:hover .shape-1 { transform: rotate(90deg) scale(1.1); border-color: rgba(255,255,255,0.3); }
.group:hover .shape-2, .group:hover .shape-3, .group:hover .shape-4 { transform: rotate(0deg) scale(1.2); }

.pricing-card-pro { border-color: rgba(177, 102, 255, 0.2); }
.pricing-card-special { border-color: #ccff00 !important; box-shadow: 0 0 40px rgba(204, 255, 0, 0.1) !important; }
.pricing-card-elite { border-color: rgba(250, 204, 21, 0.2); }

/* Portfolio Marquee */
.portfolio-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    direction: ltr !important;
}

.portfolio-marquee-track {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 2rem;
    width: max-content;
    padding: 1rem 0;
}

.marquee-left {
    animation: scroll-left 60s linear infinite;
}

.marquee-right {
    animation: scroll-right 60s linear infinite;
}

.portfolio-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.portfolio-card-marquee {
    width: 450px;
    aspect-ratio: 16/10;
    flex-shrink: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: #0f0f0f;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card-marquee:hover {
    border-color: rgba(0, 222, 255, 0.6);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -15px rgba(0, 222, 255, 0.2);
    z-index: 10;
}

.portfolio-card-marquee img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    opacity: 0.8;
}

.portfolio-card-marquee:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card-marquee:hover .portfolio-overlay {
    opacity: 1;
}

/* 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) {
    .portfolio-card-marquee {
        width: 300px;
    }

    .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;
    }
}