:root {
    --bg-body: rgb(8, 9, 11);
    --bg-card: #0D0E11;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --primary-color: #2BD9B9;
    --border-color: #27272a;
    --btn-primary-bg: #ffffff;
    --btn-primary-text: #08090b;
}

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Transitions */
a, button, .btn, .form-input, .game-card {
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    background-color: rgba(13, 14, 17, 0.3); /* Initially transparent/translucent */
    backdrop-filter: blur(5px);
    border-bottom: 1px solid transparent; /* Initially transparent border */
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Fixed to stay on top */
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-bottom 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(13, 14, 17, 0.95); /* Darker on scroll */
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem; /* Slightly smaller padding */
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links a {
    margin-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn {
    padding: 0.6rem 1.4rem;
    border-radius: 8px; /* Slightly more rounded */
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

.btn-primary:hover {
    background-color: #f4f4f5;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-carousel {
    position: relative;
    height: 100vh; /* Full viewport height */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -80px; /* Offset navbar height since navbar is fixed */
    padding-top: 80px;
}

/* Video Background */
.video-background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Dim the video slightly */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(8,9,11,0.2) 0%, rgba(8,9,11,0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

/* Games Showcase Carousel */
.games-showcase {
    padding: 4rem 0;
    background-color: var(--bg-body);
    position: relative;
    z-index: 2;
}

/* New Blur Effect for Games Section */
.games-showcase-blur {
    /* Stronger, distinct background layer */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

/* Optional: Add a subtle pattern or noise if desired, but keeping it clean for now */
.games-showcase-blur::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(43, 217, 185, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.carousel-container-games {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0; /* Increased padding */
    background: linear-gradient(to right, rgba(8,9,11,1) 0%, rgba(8,9,11,0) 10%, rgba(8,9,11,0) 90%, rgba(8,9,11,1) 100%); /* Fade edges */
}

/* Ensure fade edges are on top of scroll */
.carousel-container-games::before,
.carousel-container-games::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.carousel-container-games::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
}

.carousel-container-games::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
}

.carousel-track-games {
    display: flex;
    width: max-content;
    animation: scrollGames 40s linear infinite;
}

.carousel-track-games:hover {
    animation-play-state: paused;
}

.game-card-carousel {
    width: 200px;
    height: 200px; /* Square aspect ratio like typical game icons */
    margin: 0 15px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.game-card-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card-carousel:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}

@keyframes scrollGames {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.15), transparent 40%);
    background-color: var(--bg-body);
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.auth-card {
    background-color: rgba(13, 14, 17, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 420px;
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect on top of card */
.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.auth-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 1rem;
    z-index: 10;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.8rem; /* Padding left for icon */
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box; 
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.4);
}

.form-input:focus + .input-icon,
.input-group:focus-within .input-icon {
    color: var(--primary-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 1rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.auth-link:hover {
    color: #818cf8; /* Lighter shade of primary */
    text-decoration: none  !important;
}

.auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Modern Footer */
.modern-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    color: var(--text-secondary);
    margin-top: auto;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Grid Layouts (Plans, etc) */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.plan-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    border-color: var(--text-secondary);
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-card .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}
