/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: white;
    color: #333;
    overflow-x: hidden;
    padding-top: 70px; /* To prevent content from being covered by fixed header */
}

/* Header */
header {
    background-color: #2C8C84;
    padding: 20px;
    text-align: center;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo {
    width: 150px;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(44, 140, 132, 0.98);
    padding-top: 60px;
    transition: left 0.3s ease-in-out;
    z-index: 5000;
    overflow-y: auto;
}

/* Sidebar Open */
.sidebar.open {
    left: 0;
}

/* Sidebar Links */
.sidebar ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.sidebar ul li {
    padding: 35px;
}

.sidebar ul li a {
    text-decoration: none;
    color: white;
    font-size: 18px;
    display: block;
    padding: 12px;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    background-color: white;
    color: #2C8C84;
}

/* Menu Button */
.menu-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 6000;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

/* Menu Button Bars */
.menu-btn .bar {
    width: 30px;
    height: 4px;
    background-color: black;
    transition: 0.3s;
}

/* Transform to "X" when sidebar is active */
.menu-btn.close .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-btn.close .bar:nth-child(2) {
    opacity: 0;
}

.menu-btn.close .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Smooth Scroll Animation (Fade-in Effect) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}














/* ==== hero section with full‑section overlay ==== */
.hero {
    position: relative;
    margin-top: 70px;                  /* push it below your 70px header */
    height: calc(115vh - 70px);        /* extra height to show more of the image */
    overflow: hidden;
    background: linear-gradient(135deg, #6a0dad, #9b59b6);
    margin-bottom: 30px;               /* keep spacing below hero */
}

/* ==== slider wrapper ==== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ==== slide container ==== */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* ==== slide image ==== */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==== full image overlay for text and background ==== */
.hero-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);   /* slightly lighter for more image visibility */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 30px 20px;
    box-sizing: border-box;
}

/* ==== text styles ==== */
.hero-text h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 75%;
    margin-bottom: 24px;
}

/* ==== cta button styles ==== */
.cta-btn {
    display: inline-block;
    padding: 16px 36px;
    background: #6a0dad;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 30px;
    font-weight: bold;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover {
    background: #9b59b6;
    transform: scale(1.07);
}

/* ==== responsive adjustments ==== */
@media (max-width: 768px) {
    .hero {
        margin-top: 0;               /* remove header gap if header becomes inline */
        height: 70vh;
        margin-bottom: 20px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        max-width: 90%;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
} 








.hero-desc {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
  animation-delay: 0.3s;
}

.highlight-cyan {
  color: #00ffff;
  font-weight: 600;
}

.highlight-orange {
  color: #ff8800;
  font-weight: 600;
}

.highlight-green {
  color: #00ff88;
  font-weight: 600;
}

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



















/* Welcome Section */
.welcome {
    text-align: center;
    padding: 60px 20px;
    background-color: white;
    color: black;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.welcome h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2C8C84; /* Green */
}

.welcome p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto 15px;
    line-height: 1.6;
}

/* Call-to-action Button */
.btn {
    display: inline-block;
    background-color: #2C8C84;
    color: white;
    padding: 12px 25px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 10px;
    transition: background 0.3s ease-in-out;
}

.btn:hover {
    background-color: #D84B16;
}

/* Animation Trigger */
.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome h2 {
        font-size: 1.8rem;
    }
    
    .welcome p {
        font-size: 1rem;
    }
}














/* Tennis Training Section */
.tennis-training {
    text-align: center;
    padding: 60px 20px;
    background: white;
    color: black;
}

.tennis-training h2 {
    color: #2C8C84;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.tennis-training p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: black;
}

/* 2x2 Grid Layout for All Screens */
.training-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Training Box Style */
.training {
    background-size: cover;
    background-position: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out, box-shadow 0.3s ease-in-out;
    position: relative;
    color: white;
}

/* Overlay Effect for Readable Text */
.training::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    border-radius: 10px;
}

/* Content Positioning */
.training h3, 
.training p, 
.training .btn {
    position: relative;
    z-index: 1;
}

/* Assign Background Images */
.training:nth-child(1) {
    background-image: url('images/beginner.jpg');
}
.training:nth-child(2) {
    background-image: url('images/advanced.jpg');
}
.training:nth-child(3) {
    background-image: url('images/intermediate.jpg');
}
.training:nth-child(4) {
    background-image: url('images/private.jpg');
}

/* Hover Effect */
.training:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Text Styles */
.training h3 {
    color: white;
    margin-bottom: 10px;
}

.training p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: white;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 10px 15px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.btn:hover {
    background: white;
    color: #2C8C84;
}

/* Smooth Scroll Animation (Fade-in Effect) */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure Grid Stays 2x2 on Mobile */
@media (max-width: 600px) {
    .training-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .training {
        padding: 15px;
    }
}


/* Hover Effect */
.training:hover, 
.training.active {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}
















/* Game Point Tennis Coaching Section */
.coaching {
    text-align: center;
    padding: 60px 20px;
    background: white;
    color: black;
}

.coaching h2 {
    color: #2C8C84;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.coaching p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: black;
}

/* Default: Single Column Stack (Mobile) */
.coaching-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* Switch to 2x2 Grid on Desktop */
@media (min-width: 1024px) {
    .coaching-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .coaching-box {
        width: 100%;
        max-width: none; /* Allow it to fit the grid */
    }
}

/* Coaching Box */
.coaching-box {
    background: #2C8C84;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 500px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out, box-shadow 0.3s ease-in-out;
}

/* Hover Effect */
.coaching-box:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Button Styling */
.coaching-box .btn {
    display: inline-block;
    padding: 10px 15px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.coaching-box .btn:hover {
    background: white;
    color: #2C8C84;
}

/* Scroll Animation */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Meet Our Coaches Section */
.coaches {
    position: relative;
    text-align: center;
    color: white;
    padding: 80px 20px;
    overflow: hidden; /* Prevents content shift */
}

/* Background Image Transition */
.coaches::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/Ts1.jpg') no-repeat center/cover;
    animation: fadeBackground 10s infinite;
    z-index: -1;
}

/* Background Fade Effect */
@keyframes fadeBackground {
    0%, 100% {
        background-image: url('images/Ts1.jpg');
        opacity: 1;
    }
    50% {
        background-image: url('images/Ts3.jpg');
        opacity: 1;
    }
}

/* Text Styling */
.coaches h2 {
    font-size: 1.5rem;
    color: #2C8C84;
    margin-bottom: 15px;
}

.coaches p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Button Style */
.coaches .btn {
    display: inline-block;
    padding: 12px 20px;
    background: black;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.coaches .btn:hover {
    background: white;
    color: #2C8C84;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .coaches {
        padding: 60px 15px;
    }

    .coaches h2 {
        font-size: 2rem;
    }

    .coaches p {
        font-size: 1rem;
    }
}



/* Center grid on desktop */
@media (min-width: 1024px) {
    .coaching-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 1100px; /* Adjust as needed */
        margin: 0 auto; /* This centers the grid */
        justify-content: center;
    }
}









/* Join Community Section */
.join-community {
  background-color: #f2f2f2;
  padding: 40px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.join-community h2 {
  font-size: 2rem;
  color: #003366;
  font-family: 'Arial', sans-serif;
  margin-bottom: 15px;
}

.join-community p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
}

.join-community button {
  background-color: #00c4cc;
  color: white;
  font-size: 1.1rem;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.join-community button:hover {
  background-color: #009c9f;
  transform: translateY(-2px);
}

.join-community button:active {
  transform: translateY(0);
}







/* Basic styles for the image slider */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Smooth sliding transition */
}

.slider-images {
    display: flex;
    width: 200%; /* Double the width for 2 images to be shown side by side */
}

.slider-image {
    width: 100%; /* Each image will take full width of the container */
    object-fit: cover;
    height: auto;
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.slider-dot.active {
    background-color: #fff; /* Active dot color */
}


/* Style for the container holding the WhatsApp links */
.whatsapp-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 images per row */
    gap: 20px; /* Space between images */
    max-height: 600px; /* Set max height for the container */
    overflow-y: auto; /* Enable vertical scrolling */
    padding: 10px;
}

/* Style for the images */
.whatsapp-img {
    width: 100%; /* Make images take full width of the grid cell */
    height: auto; /* Preserve the image's natural height */
    object-fit: contain; /* Ensure the whole image is visible without distortion */
    border-radius: 8px;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

/* Optional hover effect for images */
.whatsapp-img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

/* Footer */
footer {
    background-color: #2C8C84; /* Game Point Green */
    color: white;
    text-align: center;
    padding: 20px 15px;
    width: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 50px; /* Adds space between content and footer */
}

/* Social Icons */
footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

footer .social-icons a {
    font-size: 22px;
    transition: transform 0.3s ease-in-out;
}

footer .social-icons a:hover {
    transform: scale(1.2);
}

/* Copyright Text */
footer p {
    font-size: 14px;
    margin-top: 5px;
}

/* Logo Styling */
footer .header-logo {
    width: 120px;
    height: auto;
    margin-top: 10px;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out;
}

footer .header-logo:hover {
    transform: scale(1.1);
}

/* Ensures Footer Stays at Bottom if Content is Short */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    footer {
        padding: 15px;
    }

    footer .social-icons a {
        font-size: 20px;
    }

    footer p {
        font-size: 12px;
    }

    footer .header-logo {
        width: 100px;
    }
}












.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background-color: #black;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: opacity 0.3s ease;
}