:root {
    /* Fogbound Light Theme Palette */
    --c-teal: #23B2A4;
    --c-teal-dark: #1a8e83;
    --c-orange: #FF5C39;
    --c-yellow: #D9E21E;
    --c-dark: #1E1E1E;
    --c-gray-light: #F8FAFB;
    --c-gray-border: #E5E9EB;
    
    --bg-color: #FFFFFF;
    --card-bg: #FFFFFF;
    --primary-color: var(--c-teal);
    --primary-gradient: linear-gradient(135deg, var(--c-teal) 0%, #17ead9 100%);
    --secondary-color: var(--c-orange);
    --text-color: #1E1E1E;
    --text-muted: #6B7280;

    /* Typography System */
    --fs-h1: clamp(2.5rem, 8vw, 5.5rem);
    --fs-h2: clamp(2rem, 5vw, 3.5rem);
    --fs-h3: clamp(1.5rem, 3vw, 2.5rem);
    --fs-hero: clamp(3.5rem, 12vw, 8.5rem);
    --fs-body: 1.1rem;
    --fs-xl: 1.35rem;
    --fs-lg: 1.2rem;
    --fs-sm: 0.85rem;
    --fs-xs: 0.75rem;
    
    --header-height: 100px;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --border-radius: 32px;
}

.logo-icon {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.misty-logo {
    transition: var(--transition-smooth);
}

.fog-text-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--c-dark);
    text-transform: uppercase;
    letter-spacing: -0.05em;
    position: relative;
    display: inline-block;
    filter: blur(0.5px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

.fog-text-logo::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(35, 178, 164, 0.15);
    filter: blur(12px);
    z-index: -1;
    transition: all 0.6s ease;
}

.fog-text-logo:hover {
    filter: blur(0);
    letter-spacing: 0.05em;
    color: var(--c-teal);
}

.fog-text-logo:hover::after {
    filter: blur(25px);
    color: rgba(35, 178, 164, 0.4);
}

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

/* Artistic Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    z-index: 9999;
    pointer-events: none;
}

h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

h1, h2, h3, .navbar-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0;
}

/* --- Core Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes flowBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Premium Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--c-gray-border);
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 4%;
    max-width: 1600px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--c-dark);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--c-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    opacity: 0.8;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--c-teal);
    opacity: 1;
}

.btn-contact {
    background: var(--primary-gradient);
    color: white !important;
    padding: 12px 28px;
    border-radius: 100px;
    opacity: 1 !important;
    font-weight: 700 !important;
    font-size: 0.95rem;
}

/* Hero Section */
.hero-wrapper {
    min-height: 100vh;
    padding: 160px 4% 80px;
    display: flex;
    align-items: center;
    background: #0f1113;
    position: relative;
    overflow: hidden;
}

.pixel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; /* We'll handle mouse on the container or document */
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(15,17,19,0.4) 0%, rgba(15,17,19,0.9) 100%);
    z-index: 2;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 10;
    position: relative;
    pointer-events: auto;
}

.hero-tag {
    background: var(--c-yellow);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 30px;
}

.hero-title {
    font-size: var(--fs-h1);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -0.04em;
}

.hero-text {
    font-size: var(--fs-xl);
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 650px;
}

.hero-wrapper .hero-text {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-wrapper .fog-text-logo {
    color: white;
    text-shadow: 0 0 30px rgba(255,255,255,0.2);
}

/* Stats Section */
.stats-bar {
    display: flex;
    justify-content: space-between;
    padding: 80px 4%;
    max-width: 1600px;
    margin: 0 auto;
    border-top: 1px solid var(--c-gray-border);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
}

.stat-item p {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* Buttons */
.btn-solid {
    background: var(--c-orange);
    color: white;
    padding: 18px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition-fast);
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--c-gray-border);
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: var(--transition-fast);
}

.hero-wrapper .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.hero-wrapper .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-solid:hover, .btn-outline:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Slider System */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    overflow: hidden;
    padding: 40px 0 100px 0;
}

.game-slider-track {
    display: flex;
    gap: 40px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 4%;
}

.game-card-new {
    flex: 0 0 calc(50% - 40px); /* Show roughly 2 cards at a time on desktop */
    min-width: 450px;
    background: rgba(248, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px;
    transition: var(--transition-smooth);
    border: 1px solid var(--c-gray-border);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .game-card-new {
        flex: 0 0 calc(100% - 40px);
    }
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-arrow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--c-gray-border);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-arrow:hover {
    background: var(--c-teal);
    color: white;
    border-color: var(--c-teal);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-gray-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--c-teal);
    width: 30px;
    border-radius: 10px;
}

.game-card-new::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(35, 178, 164, 0.05), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.game-card-new:hover {
    background: white;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: var(--c-teal);
    transform: translateY(-15px) scale(1.02);
}

.game-card-new:hover::before {
    opacity: 1;
}

.game-card-new img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card-new:hover img {
    transform: scale(1.1) rotate(1deg);
}

.game-card-new .btn-solid {
    margin-top: auto;
    width: 100%;
    text-align: center;
    transform: translateY(10px);
    opacity: 0.9;
    transition: var(--transition-fast);
}

.game-card-new:hover .btn-solid {
    transform: translateY(0);
    opacity: 1;
    background: var(--primary-gradient);
    box-shadow: 0 10px 20px rgba(35, 178, 164, 0.3);
}

/* Filter Bar Interactions */
.filter-btn {
    border: 1px solid var(--c-gray-border);
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    background: transparent;
    color: var(--c-dark);
}

.filter-btn:hover {
    border-color: var(--c-teal);
    color: var(--c-teal);
    background: rgba(35, 178, 164, 0.05);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--c-teal);
    color: white;
    border-color: var(--c-teal);
}

/* Contact Form */
.contact-container {
    padding: 100px 4% 100px;
    background: #0f1113;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info {
    max-width: 1200px;
    width: 100%;
}

.contact-info h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}

.contact-form {
    background: var(--c-gray-light);
    padding: 60px;
    border-radius: var(--border-radius);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--c-gray-border);
    background: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--c-teal);
    box-shadow: 0 0 0 4px rgba(35, 178, 164, 0.1);
}

.btn-submit {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    border-radius: 100px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(35, 178, 164, 0.2);
}

/* Team Cards */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-top: 60px;
    width: 100%;
}

.team-card {
    background: var(--c-gray-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 40px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    background: #fff;
    border-color: rgba(35, 178, 164, 0.5);
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(35, 178, 164, 0.1), transparent);
    transition: 0.8s;
}

.team-card:hover::before {
    left: 100%;
}

.team-img {
    width: 180px;
    height: 180px;
    border-radius: 35px;
    object-fit: cover;
    background: var(--c-gray-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.team-info h4 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 800;
    color: #000;
}

.team-info p {
    margin: 10px 0 25px;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    font-weight: 700;
    color: var(--c-teal);
    letter-spacing: 0.1em;
}

.team-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-fast);
    color: #333;
}

.social-link:hover {
    background: var(--c-teal);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding-top: 120px;
    }
    .contact-form { padding: 40px; }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text { margin: 0 auto 50px; }
    .btn-outline { margin: 20px 0 0; display: block; }
}

footer {
    padding: 30px 4%;
    background: var(--c-gray-light);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--c-gray-border);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Vision & Mission Cards */
.vision-mission-card {
    padding: 60px;
    background: var(--c-gray-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.vision-mission-card h2 {
    color: #000 !important;
}

.vision-mission-card p {
    color: #444 !important;
}

.vision-mission-card:hover {
    background: #fff;
    border-color: rgba(35, 178, 164, 0.5);
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}

.vision-mission-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(35, 178, 164, 0.1), transparent);
    transition: 0.8s;
}

.vision-mission-card:hover::before {
    left: 100%;
}
