html {
    scroll-behavior: smooth;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

.dark ::-webkit-scrollbar-track {
    background: #050608;
}

::-webkit-scrollbar-thumb {
    background: #f5c542;
    border-radius: 10px;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Darker border for light mode */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.glass-card:hover {
    background: #ffffff;
    border-color: rgba(245, 197, 66, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 20px rgba(245, 197, 66, 0.1);
    transform: translateY(-8px);
}

.dark .glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 197, 66, 0.1);
}

/* Text Gradients */
.text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #c49b2f 100%);
    /* Sharper contrast for light mode */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f5c542 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-glow {
    box-shadow: 0 0 20px rgba(245, 197, 66, 0.1);
}

.btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(245, 197, 66, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-premium:hover::after {
    width: 300%;
    height: 300%;
}

/* Atropos specific tweaks */
.atropos-inner {
    border-radius: 12px;
}

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

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

.animate-marquee {
    display: flex;
    width: max-content;
    gap: 3rem;
    animation: marquee 40s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Tile Grid Background Pattern */
.tile-pattern {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    /* Slightly larger for clearer grid */
}

.dark .tile-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
}

.tile-pattern-gold {
    background-image:
        linear-gradient(rgba(196, 155, 47, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(196, 155, 47, 0.2) 1px, transparent 1px);
    background-size: 80px 80px;
}

.dark .tile-pattern-gold {
    background-image:
        linear-gradient(rgba(245, 197, 66, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 66, 0.15) 1px, transparent 1px);
}