/* --- VARIABLES & RESET --- */
:root {
    --primary: #1571AC;
    --primary-dark: #0f5585;
    --text-dark: #1a252f; /* Darker for better contrast */
    --text-gray: #6c757d;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-gray: #f4f6f9; /* Slightly cooler gray */
    --accent: #5eb0e2; /* #de7f50 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);
    --radius: 12px; /* Modern rounded corners */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth physics-like transition */
    --overlay-darkness: rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { width: 100%; display: block; object-fit: cover; }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 100px 0; } /* More breathing room */
.bg-gray { background-color: var(--bg-gray); }
.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    /* color: var(--primary); */
    color: #235789;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto 60px auto;
    border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background: var(--primary);
    color: white;
    border-radius: 50px; /* Pill shape is trendy */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(21, 113, 172, 0.3);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px); /* Lift effect */
    box-shadow: 0 8px 20px rgba(21, 113, 172, 0.4);
}

/* --- HEADER & NAV (Glassmorphism) --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Blurry glass effect */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo img {
    height: 80px; /* Slightly smaller for cleaner look */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links > li > a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

/* Underline animation for links */
.nav-links > li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-links > li > a:hover::after, 
.nav-links > li > a.active::after {
    width: 100%;
}

.member-btn {
    background: var(--text-dark);
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.member-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    box-shadow: var(--shadow-md);
    min-width: 240px;
    z-index: 1001;
    border-radius: var(--radius);
    padding: 15px 0;
    border-top: 4px solid var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    animation: fadeInUp 0.3s ease forwards;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background-color: var(--bg-gray);
    color: var(--primary);
    padding-left: 30px; /* Slide effect */
}

/* Language Switch */
.lang-switch { display: flex; gap: 8px; margin-left: 20px; }
.lang-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
}
.lang-btn:hover, .lang-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.hamburger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--text-dark); }

/* --- HERO & PAGE HEADERS --- */
.hero, .page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 90px;
    position: relative;
    z-index: 0;
}

.hero { 
    height: 100vh;
    background: linear-gradient(var(--overlay-darkness), var(--overlay-darkness)), url('1Bcgr.jpg'); /* Use specific image if needed */
}

.page-header { height: 90vh; margin-bottom: 0; } /* Increased height slightly */

.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7)); /* Gradient fade */
    z-index: -1;
}

/* Hero Typography */
.hero h1, .page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.hero p, .page-header p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.2s backwards; /* Delay */
}

.hero .btn, .page-header .btn {
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* --- ABOUT --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p { font-size: 1.1rem; color: var(--text-gray); margin-bottom: 20px; }

.about-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-img:hover { transform: scale(1.02); }

/* --- CARDS (Team & Training) --- */
.team-grid, .training-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

/* Shared Card Styles */
.team-card, .training-card, .contact-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.team-card:hover, .training-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Team Specific */
.team-card { padding: 40px 20px; text-align: center; }
.team-photo {
    width: 150px; height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--bg-gray);
    box-shadow: var(--shadow-md);
}
.team-card h4 { font-size: 1.5rem; margin-bottom: 5px; color: var(--text-dark); }
.team-card p { color: var(--primary); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; }
.head-coach-img {
    width: 120px;        /* Reduced size */
    height: 120px;       /* Reduced size */
    border-radius: 50%;  /* Circle shape */
    object-fit: cover;   /* Prevents stretching */
    border: 4px solid var(--primary); /* Adds a nice border */
    box-shadow: var(--shadow-md);     /* Adds a modern shadow */
    margin: 0 auto 20px auto;         /* Centers the image */
    display: block;
}

/* Training Card Specific */
.training-card { display: flex; flex-direction: column; }
.training-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Overlay on training image hover */
.training-card:hover .training-img::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(21, 113, 172, 0.2);
}
.training-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.training-content h3 { color: var(--text-dark); font-size: 1.5rem; }
.training-content p { color: var(--text-gray); flex-grow: 1; margin-bottom: 20px; }

/* --- SPORTS ICONS --- */
.sports-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.sport-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sport-item a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--primary);
}

.sport-item a:hover p { color: white; }
.sport-item a:hover .sport-icon { filter: brightness(0) invert(1); } /* Makes icon white */

.sport-icon { width: 50px; height: 50px; object-fit: contain; transition: var(--transition); }
.sport-item p { font-weight: 700; font-size: 0.9rem; color: var(--text-dark); }

/* --- SPORT DETAIL PAGE --- */
.sport-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.sport-info-wrapper { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.sport-text { font-size: 1.15rem; line-height: 1.8; margin-bottom: 40px; color: var(--text-gray); }
.sport-detail-img {
    width: 100%; aspect-ratio: 3/4; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

/* --- FORMS --- */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.form-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-dark); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: #fcfcfc;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
/* --- GALLERY SLIDER --- */
.gallery-wrapper {
    position: relative;
    padding: 0 10px; /* Space for buttons if needed, or keep 0 */
}

.gallery-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Hide scrollbars for a cleaner look */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    padding-bottom: 10px; /* Space for shadow */
}

.gallery-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Updated Gallery Item to fixed width so they don't shrink */
.gallery-item {
    min-width: 300px; /* Adjust this width as needed */
    height: 280px;
    flex-shrink: 0;   /* Prevents items from squishing */
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Navigation Buttons */
.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0.9;
}

.gallery-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.gallery-btn.prev { left: -15px; } /* Position outside left */
.gallery-btn.next { right: -15px; } /* Position outside right */

/* Responsive adjustment for buttons */
@media (max-width: 900px) {
    .gallery-btn.prev { left: 5px; }
    .gallery-btn.next { right: 5px; }
}

/* --- FOOTER (New Layout) --- */
footer {
    background: #1a252f;
    color: #a0aeb9;
    padding: 70px 0 30px;
    margin-top: auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-socials a {
    display: inline-flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; background: rgba(255,255,255,0.1);
    color: white; border-radius: 50%; margin-right: 10px; transition: var(--transition);
}
.footer-socials a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px; text-align: center; font-size: 0.9rem;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none; position: fixed; z-index: 9999;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center; align-items: center;
    animation: fadeIn 0.3s;
}
.lightbox-content {
    max-width: 90%; max-height: 90vh;
    border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* --- CONTACT CARD (Modernized) --- */
.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow-lg);
    text-align: center; /* Centers text to match image */
    max-width: 600px;   /* Prevents it from being too wide */
    margin: 0 auto;     /* Centers the card on the page */
    border: 1px solid rgba(0,0,0,0.05);
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the list items */
    gap: 15px;
    margin-bottom: 30px;
}

.contact-info p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin: 0;
}

.contact-info i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 25px; /* Ensures icons align vertically */
    text-align: center;
}

/* Ensure map fits nicely inside the constrained card */
.map-container {
    width: 100%;
    margin-top: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 300px; /* Enforce height */
}

.map-container iframe {
    height: 100%; /* Fill container */
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

/* Scroll Animation Class (Added by JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .hero h1, .page-header h1 { font-size: 2.5rem; }
    .about-grid, .sport-detail, .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .sports-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    .sport-detail-img { order: -1; aspect-ratio: 4/3; }
    .sport-info-wrapper { align-items: center; text-align: center; }
    
    .navbar { padding: 0 20px; }
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 90px; right: -100%; width: 100%;
        background: white; flex-direction: column; padding: 40px 0;
        box-shadow: var(--shadow-lg); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.active { right: 0; }
    .dropdown-menu { position: static; box-shadow: none; width: 100%; text-align: center; transform: none; border-top: none; background: #f9f9f9; }
}
/* --- DEVELOPER CREDIT (Footer) --- */
.developer-credit {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.developer-credit a {
    color: white;
    transition: var(--transition);
    font-size: 1rem;
}

.developer-credit a:hover {
    color: var(--primary); /* Highlight color on hover */
    transform: translateY(-2px);
}