:root {
    --primary: #003366; /* Navy blue */
    --primary-light: #0055aa;
    --primary-glow: rgba(0, 51, 102, 0.15);
    --bg: #ffffff;
    --surface: #f4f7f9;
    --surface-light: #e9eff5;
    --text: #001a33; /* Dark navy */
    --text-muted: #5a6b7d;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 51, 102, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Platform Colors */
    --color-net1: #2d6a4f; /* Emerald Green */
    --color-net2: #c05621; /* Burnt Orange */
    --color-ground: #003366; /* Deep Navy (Original Primary) */
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--surface-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    display: none; /* Hide all sections by default */
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

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

/* Hero Section */
#home {
    min-height: 100vh;
    display: none; /* Hide by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 0 60px;
}

#home.active-page {
    display: flex; /* Show only when active */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.9);
}

.hero-content {
    max-width: 100%;
    width: 100%;
}

.hero-slogan {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-image-wrapper {
    width: 100vw;
    margin: 0 calc(-50vw + 50%); /* Centering full-width element in container */
    max-height: 70vh;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image-wrapper:hover .hero-full-img {
    transform: scale(1.05);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (min-width: 600px) {
    .why-us-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

/* Booking Calendar */
.booking-container {
    background: var(--surface);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid var(--glass-border);
}

#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 2rem;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-light);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.cal-day:hover:not(.booked) {
    background: var(--primary);
    color: #fff;
}

.cal-day.booked {
    opacity: 0.3;
    pointer-events: none;
    text-decoration: line-through;
}

.cal-day.selected {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text);
    outline: none;
}

.input-group input:focus, .input-group textarea:focus {
    border-color: var(--primary);
}

/* Gallery & Updates */
.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.update-card {
    border-radius: 15px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--glass-border);
}

.update-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.update-info {
    padding: 1.5rem;
}

.tag {
    font-size: 0.75rem;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

section.active-page {
    display: block !important;
    animation: fadeIn 0.5s ease-out;
}

#home.active-page {
    display: flex !important;
}

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s ease-out;
}

[data-animate].animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .hero-slogan { font-size: 3rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
/* Mobile nav should be improved later */
}

/* Program Cards */
.program-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.program-card:hover h3 {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.program-info {
    flex-grow: 1;
}

.program-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Registration Form Specifics */
.registration-wrapper {
    background: var(--surface);
    border-radius: 30px;
    padding: 4rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-grid .full-width {
    grid-column: span 2;
}

.registration-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.registration-form input, 
.registration-form select, 
.registration-form textarea {
    width: 100%;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.registration-form input:focus, 
.registration-form select:focus, 
.registration-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    outline: none;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-grid .full-width {
        grid-column: span 1;
    }
    .registration-wrapper {
        padding: 2rem;
    }
}

/* Arena Booking Layout */
.arena-booking-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
}

.arena-platforms {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-btn {
    padding: 1.5rem;
    text-align: left;
    background: var(--surface-light);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.platform-btn.active {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Coloring Logic based on data-active-platform on container */
[data-active-platform="net1"] .platform-btn[data-platform="net1"] { background: var(--color-net1); color: #fff; border-color: var(--color-net1); }
[data-active-platform="net1"] .cal-day.selected { background: var(--color-net1); color: #fff; box-shadow: 0 0 15px rgba(45, 106, 79, 0.3); }
[data-active-platform="net1"] .time-slot.selected { background: var(--color-net1); color: #fff; border-color: var(--color-net1); }

[data-active-platform="net2"] .platform-btn[data-platform="net2"] { background: var(--color-net2); color: #fff; border-color: var(--color-net2); }
[data-active-platform="net2"] .cal-day.selected { background: var(--color-net2); color: #fff; box-shadow: 0 0 15px rgba(192, 86, 33, 0.3); }
[data-active-platform="net2"] .time-slot.selected { background: var(--color-net2); color: #fff; border-color: var(--color-net2); }

[data-active-platform="ground"] .platform-btn[data-platform="ground"] { background: var(--color-ground); color: #fff; border-color: var(--color-ground); }
[data-active-platform="ground"] .cal-day.selected { background: var(--color-ground); color: #fff; box-shadow: 0 0 15px rgba(0, 51, 102, 0.3); }
[data-active-platform="ground"] .time-slot.selected { background: var(--color-ground); color: #fff; border-color: var(--color-ground); }

.platform-title {
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.platform-desc {
    font-size: 0.8rem;
    opacity: 0.7;
}

.calendar-horizontal {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 1rem;
    background: var(--surface-light);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.time-slot.available:hover {
    background: var(--primary-light);
    color: #fff;
}

.time-slot.selected {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.time-slot.booked {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.mini-form input {
    width: 100%;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

@media (max-width: 992px) {
    .arena-booking-layout {
        grid-template-columns: 1fr;
    }
}
