/* ===== CSS Variables ===== */
:root {
    --primary: #1e40af;
    --secondary: #059669;
    --accent: #7c3aed;
    --dark: #0f172a;
    --light: #f1f5f9;
}

/* ===== Base Styles ===== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.glass-effect {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, #1e40af 0%, #0f766e 50%, #3730a3 100%);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.marquee {
    animation: marquee 20s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gradient-border {
    border: 2px solid transparent;
    background: linear-gradient(var(--dark), var(--dark)) padding-box,
                linear-gradient(135deg, #3b82f6, #10b981, #8b5cf6) border-box;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e40af, #0f766e);
    margin: 0 auto;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 50%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.game-card:hover::before {
    opacity: 0.8;
}

.game-card img {
    transition: transform 0.5s ease;
}

.game-card:hover img {
    transform: scale(1.1);
}

.jackpot-meter {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.jackpot-meter::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    border-radius: 4px;
    animation: progress 2s ease-out forwards;
    width: var(--progress, 0%);
}

@keyframes progress {
    from { width: 0; }
}

.testimonial-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    box-shadow: 20px 20px 60px #0d1525,
               -20px -20px 60px #111f35;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: #3b82f6;
    font-family: serif;
    opacity: 0.2;
    line-height: 1;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.footer-section {
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, #10b981, transparent);
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    transform: translateY(-3px);
}

.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    z-index: 1000;
    transition: width 0.1s ease;
}

.chip-animation {
    animation: chip-spin 3s linear infinite;
}

@keyframes chip-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ticker-container {
    overflow: hidden;
    background: linear-gradient(90deg, #1e40af, #0f766e);
    padding: 1rem 0;
}

.ticker-content {
    display: inline-flex;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.modal-animation {
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.floating-chips {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(45deg, #3b82f6, #10b981);
    color: white;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 14px;
    z-index: 1;
}

.ribbon::before, .ribbon::after {
    content: '';
    position: absolute;
    border-style: solid;
    border-color: transparent;
    bottom: -8px;
}

.ribbon::before {
    border-width: 0 8px 8px 0;
    border-right-color: #2563eb;
    left: 0;
}

.ribbon::after {
    border-width: 0 0 8px 8px;
    border-left-color: #059669;
    right: 0;
}

.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    animation: stagger 0.5s ease forwards;
}

@keyframes stagger {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }

.form-success {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-success.show {
    opacity: 1;
    transform: translateY(0);
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: translateX(150%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.review-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.review-rating {
    color: #fbbf24;
}

.subscribe-section {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.subscribe-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

/* Page Header for sub-pages */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1), transparent);
}