:root {
    /* Colors as per requirements */
    --bg-white: #ffffff;
    --main-blue: #0a2647;
    /* Deep/Petrol blue */
    --accent-playgo: #e63946;
    /* Coral/Red */
    --accent-outdoor: #2d6a4f;
    /* Natural Green */
    --accent-sand: #f4f1de;
    /* Warm sand/beige */
    --text-dark: #1a1a1a;
    --text-light: #fefefe;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --accent-gold: #d4af37;
    --transition-smooth: 0.4s ease;

    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto !important;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Defaults */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#main-nav .container {
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--main-blue);
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--main-blue);
}

.lang-switch a {
    text-decoration: none;
    color: #999;
    margin-left: 0.5rem;
    font-size: 0.8rem;
}

.lang-switch a.active {
    color: var(--main-blue);
    font-weight: bold;
}

/* Curtain Effect Core Logic */
.curtain-container {
    /* Container should not have a fixed height if we want to scroll through sections */
    position: relative;
    width: 100%;
}

.curtain-section {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--bg-white);
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.15);
    /* Stronger shadow for depth */
    overflow: hidden;
    /* Keep content within the viewport */
}

/* z-index assignments for stacking */
#hero {
    z-index: 1;
}

#about {
    z-index: 2;
}

#playgo {
    z-index: 3;
}

#outdoor {
    z-index: 4;
}

#team {
    z-index: 5;
}

#registration {
    z-index: 6;
}

#contact {
    z-index: 7;
}

.section-content {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section Styles */
#hero .hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero .overlay {
    position: relative;
    z-index: 2;
    background: rgba(10, 38, 71, 0.4);
    /* Petrol blue tint */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.hero-text {
    text-align: center;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--main-blue);
    color: white;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Grayscale Hover Effect */
.grayscale {
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    text-align: center;
}

.card-img {
    height: 300px;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typography & Spacing */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--main-blue);
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

.btn-accent-playgo {
    background: var(--accent-playgo);
    color: white;
}

.btn-accent-outdoor {
    background: var(--accent-outdoor);
    color: white;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.team-member {
    text-align: center;
}

.member-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 4px;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.team-member:hover .member-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-member h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: var(--main-blue);
}

.team-member span {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* B2B Form */
.registration-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.benefit {
    margin-bottom: 1.5rem;
}

.benefit strong {
    display: block;
    font-size: 1.1rem;
    color: var(--main-blue);
}

.form-block {
    background: var(--accent-sand);
    padding: 3rem;
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

fieldset {
    border: none;
    margin-top: 1rem;
}

legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.btn-submit {
    width: 100%;
    background: var(--main-blue);
    color: white;
    padding: 1.2rem;
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#contact {
    background: var(--main-blue);
    color: white;
}

#contact h2,
#contact h3 {
    color: white;
}

#contact a {
    color: var(--accent-sand);
    text-decoration: none;
}

.bottom-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #main-nav {
        padding: 1rem 0;
        backdrop-filter: none;
        background: rgba(255, 255, 255, 0.98);
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 3px;
        background: var(--main-blue);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Animation for toggle */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-white);
        padding: 8rem 2rem 2rem;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    /* Language switch in mobile menu */
    .lang-switch {
        display: flex !important;
        /* Force display for JS to handle placement if needed, or keep it as is */
        margin-right: 1.5rem;
    }

    .grid,
    .categories-grid,
    .team-grid,
    .registration-wrapper {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .curtain-section {
        height: auto;
        position: relative;
        min-height: 100vh;
        padding: 80px 0 40px;
        box-shadow: none;
        will-change: transform;
    }

    #contact.curtain-section {
        min-height: auto;
        padding-bottom: 2rem;
    }

    .section-content {
        justify-content: flex-start;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-block {
        padding: 1.5rem;
    }

    .footer-break {
        display: block;
        margin-top: 0.5rem;
    }

    /* Grayscale optimization for touch */
    .grayscale {
        filter: grayscale(0%);
        /* Disable by default on mobile for better visibility */
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}