/* ==========================================
   1. RESET & SNAPPING
   ========================================== */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #2C2C2C;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    scrollbar-width: none;
}
body::-webkit-scrollbar { display: none; }

/* ==========================================
   2. NAVIGATION & HEADER
   ========================================== */
header {
    position: fixed;
    top: 0; width: 100%;
    z-index: 2000;
    background-color: rgba(44, 44, 44, 0.29);
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    height: 80px;
}

.logo img { height: 60px; width: auto; display: block; }

nav ul { display: flex; list-style: none; background: transparent; }
nav ul li { margin: 0 18px; }

nav ul li a {
    position: relative;
    font-family: 'Fira Sans Condensed', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: capitalize;
    transition: 0.3s ease;
}

/* Active Link State */
nav ul li a.active { font-weight: 700; }
nav ul li a.active::after { width: 0 !important; }

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 50%;
    background-color: #ffffff;
    transition: 0.3s;
    transform: translateX(-50%);
}
nav ul li a:hover::after { width: 100%; }

#theme-toggle {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: 0.3s ease;
}
#theme-toggle:hover { background-color: #ffffff; color: #2C2C2C; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 9999;
}
.hamburger span { width: 30px; height: 3px; background-color: #ffffff; transition: 0.4s; }

/* ==========================================
   3. SECTIONS & CONTENT
   ========================================== */
.hero, 
.about-hero, 
.services-hero,
.mission-section, 
.vision-section, 
.promo-section,
.pool-gallery-section,
.snooker-gallery-section,
.beverages-gallery-section,
.gallery-section {
    height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative; scroll-snap-align: start;
    overflow: hidden;
}
.gallery-hero, 
.gallery-showcase {
    scroll-snap-align: start;
}
.white-text, .card-overlay h3, .card-overlay p {
    color: #ffffff !important;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-content h1 { 
    font-family: 'Arial Black', sans-serif; 
    font-size: clamp(3rem, 12vw, 8rem); 
    text-transform: uppercase; 
}

/* CINEMATIC PROMO ANIMATION (ENHANCED) */
@keyframes cinematicReveal {
    0% { 
        opacity: 0; 
        transform: scale(0.8) translateY(20px); 
        filter: blur(15px);
        letter-spacing: 15px; 
    }
    45%, 55% { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
        filter: blur(0px);
        letter-spacing: 2px; 
    }
    100% { 
        opacity: 0; 
        transform: scale(1.1) translateY(-20px); 
        filter: blur(15px);
        letter-spacing: 10px; 
    }
}

.promo-section {
    view-timeline-name: --promoTimeline;
    view-timeline-axis: block;
}

.promo-content {
    animation: cinematicReveal linear;
    animation-timeline: --promoTimeline;
    animation-range: entry 0% exit 100%;
}

.promo-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: -1;
    transition: background-color 0.3s ease;
}

.promo-text {
    font-family: 'Arial Black', sans-serif;
    font-size: clamp(2.5rem, 10vw, 7rem);
    color: #ffffff;
    text-align: center;
}

#hero-video {
    position: absolute; top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; z-index: -2;
}

.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: -1;
}

.gallery-container { display: flex; width: 100%; height: 100%; }
.gallery-card { position: relative; flex: 1; overflow: hidden; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.gallery-card:hover img { transform: scale(1.1); }

.card-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; transition: 0.4s; padding: 20px;
}
.gallery-card:hover .card-overlay { opacity: 1; }

/* ==========================================
   4. MOBILE RESPONSIVENESS
   ========================================== */
@media screen and (max-width: 900px) {
    nav { padding: 0 20px; }
    .hamburger { 
        display: flex !important; /* Force the display */
        z-index: 10000;}

    nav ul {
        position: fixed; right: -100%; top: 0;
        height: 100vh; width: 100%;
        background-color: #2C2C2C;
        flex-direction: column; align-items: center; justify-content: center;
        transition: 0.5s ease; z-index: 2050;
    }
    nav ul.open { right: 0; }
    nav ul li { margin: 20px 0; }

    .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-6px, 6px); }
    .hamburger.toggle span:nth-child(2) { opacity: 0; }
    .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-6px, -7px); }

    .gallery-container { flex-direction: column; }
    .gallery-card { width: 100%; height: 33.33vh; }
    .gallery-card.clicked .card-overlay { opacity: 1; }
}

/* ==========================================
   5. LIGHT MODE OVERRIDES
   ========================================== */
body.light-mode { background-color: #ffffff; color: #2C2C2C; }
body.light-mode .about-hero { 
    background-color: #ffffff; 
}


/* FIX FOR ABOUT TEXT: Change 'About Us' and 'Mission/Vision' text to dark */
body.light-mode .about-hero .hero-content h1
body.light-mode .mv-text h2 { 
    color: #2C2C2C !important; 
    text-shadow: none !important; /* Removes the dark shadow from white text */
}

body.light-mode .mv-text p { 
    color: #444444 !important; 
}

/* FIX FOR MISSION/VISION SECTION: Change background to white */
body.light-mode .mission-vision { 
    background-color: #ffffff !important; 
}
body.light-mode header { background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
body.light-mode nav ul li a { color: #2C2C2C; }
body.light-mode nav ul li a::after { background-color: #2C2C2C; }
body.light-mode .hamburger span { background-color: #2C2C2C; }

/* White background for Promo in Light Mode */
body.light-mode .promo-overlay { background-color: #ffffff; }
body.light-mode .promo-text { color: #2C2C2C !important; text-shadow: none; }

body.light-mode #theme-toggle { border-color: #2C2C2C; color: #2C2C2C; }
body.light-mode #theme-toggle:hover { background-color: #2C2C2C; color: #ffffff; }

@media screen and (max-width: 900px) {
    body.light-mode nav ul { background-color: #ffffff; }
}

/* Ensure overlay text stays white even when Light Mode is active */
body.light-mode .item-overlay h3,
body.light-mode .item-overlay p,
body.light-mode .overlay-content h3,
body.light-mode .overlay-content p {
    color: #ffffff !important;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5); /* Helps it pop */
}

/* Also keep the price badge white/light if it looks better */
body.light-mode .price-badge {
    color: #ffffff !important;
}

body.light-mode .gallery-hero,
body.light-mode .gallery-showcase {
    background-color: #ffffff !important;
}

body.light-mode .gallery-hero-content h1,
body.light-mode .gallery-hero-content p,
body.light-mode .gallery-kicker {
    color: #ffffff !important;
}

/* 2. Change the "MOMENTS" header text to dark in Light Mode */
body.light-mode .gallery-showcase-header h2 {
    color: #2C2C2C !important;
}


/* ==========================================
   CONTACT SECTION LIGHT MODE
   ========================================== */
body.light-mode .contact-details-section {
    background-color: #ffffff !important;
}

/* Change Main Text to Dark */
body.light-mode .contact-h2,
body.light-mode .contact-subtext,
body.light-mode .input-group label,
body.light-mode .info-item p {
    color: #2C2C2C !important;
}

/* Adjust Info Headers for better hierarchy */
body.light-mode .info-item h3 {
    color: #666666 !important;
}

/* Style Inputs so they don't disappear on white background */
body.light-mode .input-group input, 
body.light-mode .input-group textarea {
    background-color: #f4f4f4 !important; /* Light grey instead of pure white */
    border: 1px solid #dddddd !important;
    color: #2C2C2C !important;
}

/* Style the Send Button for Light Mode */
body.light-mode .contact-send-btn {
    background-color: #2C2C2C !important;
    color: #ffffff !important;
}

body.light-mode .contact-send-btn:hover {
    background-color: #444444 !important;
}

/* Ensure the border line in the bottom info changes color */
body.light-mode .contact-bottom-info {
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}
/* ==========================================
   6. WHATSAPP FLOAT
   ========================================== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background-color: #25d366; border-radius: 50px;
    display: flex; align-items: center; padding: 10px;
    z-index: 3000; text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: 0.3s;
}
.whatsapp-float img { width: 35px; height: 35px; }
.whatsapp-float span {
    max-width: 0; overflow: hidden; white-space: nowrap;
    transition: 0.3s; font-weight: bold; color: white;
    font-family: 'Fira Sans Condensed', sans-serif;
}
.whatsapp-float:hover span { max-width: 150px; margin-left: 10px; }
@media screen and (max-width: 900px) { .whatsapp-float span { display: none; } }

/* ==========================================
   7. FOOTER STYLES
   ========================================== */
footer {
    background-color: #222222;
    padding: 60px 0 30px;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
    
    /* FIX: Added snap alignment so you can scroll here */
    scroll-snap-align: end; 
    
    /* FIX: Ensure it takes up enough space to be felt by the scroll-snap */
    min-height: 40vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    width: 100%;
}

/* ... rest of your footer column styles remain the same ... */

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3 {
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.footer-col p, .footer-col li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #bbbbbb;
    list-style: none;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
}

.slogan.italic {
    font-style: italic;
    font-weight: 700;
    color: #ffffff;
}

/* Links column */
.links-col ul li a {
    text-decoration: none;
    color: #bbbbbb;
    transition: 0.3s;
}

.links-col ul li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon img {
    width: 35px;
    height: 35px;
    filter: invert(1); 
}

.social-icon.xhs {
    background-color: #fce4cc;
    color: #000;
    padding: 5px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom Copyright */
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding: 0 60px;
}

.footer-line {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #555, transparent);
    margin-bottom: 30px; /* Increase this to move the text further down from the line */
}

.footer-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #555, transparent);
    margin-bottom: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #888;
}

/* --- Light Mode Footer Overrides --- */
body.light-mode footer {
    background-color: #f4f4f4;
    color: #2C2C2C;
}

body.light-mode .footer-col p, 
body.light-mode .links-col ul li a,
body.light-mode .footer-bottom p {
    color: #555;
}

body.light-mode .slogan.italic,
body.light-mode .footer-col h3 {
    color: #2C2C2C;
}

body.light-mode .social-icon img {
    filter: invert(0);
}

/* --- Mobile Footer --- */
@media screen and (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        padding: 0 30px;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-col {
        margin-bottom: 20px;
    }
}
/* ==========================================
   8. DISABLE SCROLL SNAPPING ON MOBILE
   ========================================== */
@media screen and (max-width: 900px) {
    /* 1. Turn off snapping on the container */
    html {
        scroll-snap-type: none !important;
    }

    /* 2. Turn off snapping on the individual sections */
    .hero, 
    .about-hero, 
    .services-hero,
    .mission-section, 
    .vision-section, 
    .promo-section,
    .pool-gallery-section,
    .snooker-gallery-section,
    .beverages-gallery-section,
    .gallery-section,
    .gallery-hero,
    .gallery-showcase,
    .contact-hero,
    .contact-details-section,
	.contact-hero,
    .contact-details-section,
    .contact-map-section,
    footer {
        scroll-snap-align: none !important;
        height: auto; /* Optional: lets sections be as tall as their content */
        min-height: 100vh; /* Keeps them full-screen but allows free scrolling */
    }
}

@media screen and (max-width: 900px) {
.footer-logo {
        transform: translateX(-20px);
        /* Optional: If you want to center it instead of moving it right */
        /* margin: 0 auto 15px; */
        /* display: block; */
    }
}

/* ==========================================
   ABOUT PAGE HERO
   ========================================== */
.about-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('Images/about.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    scroll-snap-align: start;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-family: 'Arial Black', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   MISSION SECTION DESIGN
   ========================================== */
.mission-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    overflow: hidden; /* Prevents the large image from causing horizontal scroll */
}

/* Remove or comment out .mission-container entirely for this section */

.mission-content {
    display: flex;
    align-items: center;
    width: 100%;
    /* This padding keeps your text away from the left edge */
    padding-left: 10%; 
}

/* Text Area Styles */
.mission-text-area {
    flex: 0 0 40%; /* Keeps text box a fixed size */
    z-index: 2;
    /* Negative margin pushes the text closer to/over the image */
    margin-right: -100px; 
}

.mission-title-static {
    font-size: 6rem; /* Made it a bit bigger like the design */
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Arial Black', sans-serif;
}

.mission-text-area p {
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 450px;
	text-align: left;
}

/* Image Area Styles */
.mission-image-area {
    flex: 0 0 60%; /* Takes up the remaining 60% of the screen */
    display: flex;
    justify-content: flex-end; /* Pushes image to the screen edge */
}

.main-image-small {
    width: 100%; /* Fills the 60% area */
    height: auto;
}


/* VISION SECTION STYLES */
.vision-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.vision-content {
    display: flex;
    align-items: center;
    width: 100%;
    /* Padding on the right to keep the text away from the edge */
    padding-right: 10%; 
}

/* Image on the Left */
.vision-image-area {
    flex: 0 0 60%;
    display: flex;
    justify-content: flex-start; /* Pushes image to the left edge */
}

/* Text on the Right */
.vision-text-area {
    flex: 0 0 40%;
    z-index: 2;
    margin-left: -100px; /* Overlaps the image on the left side */
}

.vision-title-static {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-family: 'Arial Black', sans-serif;
    text-align: right; /* Aligns title to the right */
}

.vision-description {
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 450px;
    text-align: justify; /* Matches your justified mission description */
    margin-left: auto;   /* Pushes the paragraph block to align with the right-aligned title */
}

/* Reusing the image class for consistency */
.vision-image-area .main-image-small {
    width: 100%;
    height: auto;
}

/* ==========================================
   MOBILE RESPONSIVENESS (Below 1024px)
   ========================================== */
@media screen and (max-width: 1024px) {
    
    /* 1. Hero Adjustments */
    .hero-content h1 {
        font-size: clamp(2.5rem, 8vw, 4rem); /* Smaller font for mobile */
        padding: 0 20px;
    }

    /* 2. Mission & Vision Sections */
    .mission-section, 
    .vision-section {
        height: auto; /* Allow content to grow taller than the screen */
        min-height: auto; 
        padding: 80px 0; /* Add space at top/bottom for scrolling */
        display: block; /* Switch from flex to block for easier stacking */
    }

    /* 3. Layout Stack */
    .mission-content, 
    .vision-content {
        flex-direction: column; /* Stack image and text vertically */
        padding: 0 20px; /* Standard side padding for mobile */
        text-align: center;
    }

    /* Reversing Vision for Mobile so it matches Mission order (Text then Image) */
    .vision-content {
        flex-direction: column-reverse; 
    }

    /* 4. Text Area Resets */
    .mission-text-area, 
    .vision-text-area {
        flex: 0 0 100%;
        width: 100%;
        margin: 0 0 40px 0; /* Remove negative overlaps, add bottom spacing */
        z-index: 5;
    }

    .mission-title-static, 
    .vision-title-static {
        font-size: 3.5rem; /* Smaller titles */
        text-align: center; /* Center titles on mobile */
    }

    .mission-text-area p, 
    .vision-description {
        max-width: 100%;
        text-align: center; /* Center paragraph text */
        margin: 0 auto;
    }

    /* 5. Image Area Resets */
    .mission-image-area, 
    .vision-image-area {
        flex: 0 0 100%;
        width: 100%;
        justify-content: center; /* Center images */
    }

    .main-image-small {
        width: 90%; /* Scale down image slightly for mobile framing */
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Extra small screens (Phones) */
@media screen and (max-width: 480px) {
    .mission-title-static, 
    .vision-title-static {
        font-size: 2.5rem;
    }
    
    .mission-text-area p, 
    .vision-description {
        font-size: 1rem;
    }
}

/* ==========================================
   SCROLL SLIDE REVEAL
   ========================================== */

/* Default hidden state */
.scroll-reveal {
    opacity: 0;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Mission starts from right */
.mission-text-area.scroll-reveal,
.mission-image-area.scroll-reveal {
    transform: translateX(120px);
}

/* Vision starts from left */
.vision-text-area.scroll-reveal,
.vision-image-area.scroll-reveal {
    transform: translateX(-120px);
}

/* When visible */
.mission-text-area.scroll-reveal.active,
.mission-image-area.scroll-reveal.active,
.vision-text-area.scroll-reveal.active,
.vision-image-area.scroll-reveal.active {
    opacity: 1;
    transform: translateX(0);
}



/* ==========================================
   SERVICES PAGE HERO
   ========================================== */
.services-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('Images/service.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    scroll-snap-align: start;
}

/* ==========================================
   INFINITE CAROUSEL ANIMATION
   ========================================== */
.infinite-container {
    width: 100%;
    overflow: hidden; /* Hides everything outside the screen */
    padding: 20px 0;
    position: relative;
}

.infinite-track {
    display: flex;
    width: calc(500px * 6 + 120px); /* (Card width * Total Cards) + Total Gaps */
    gap: 20px;
    animation: scrollInfinite 10s linear infinite; /* Smooth, constant speed */
}

/* Pause the animation when the user wants to look at a price */
.infinite-track:hover {
    animation-play-state: paused;
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* This must be exactly half of the total track width */
        transform: translateX(calc(-500px * 3 - 60px)); 
    }
}

/* --- CARD STYLING (Re-using your previous logic) --- */
.scroll-item {
    flex: 0 0 500px; /* Fixed width for each card */
    height: 350px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.scroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px); /* Premium look */
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: 0.4s ease;
}

.scroll-item:hover .item-overlay {
    opacity: 1;
}

/* ==========================================
   POOL SECTION LAYOUT FIX
   ========================================== */
.pool-gallery-section {
    display: flex;
    flex-direction: column; /* This stacks children vertically */
    align-items: flex-start; /* Aligns title to the left; use 'center' if you want it centered */
    justify-content: center;
    padding: 60px 5%; /* Adjust padding to match your design */
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
}

/* Ensure the title has its own space on top */
.pool-gallery-section h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 40px; /* Space between the word and the images */
    color: #ffffff;
    text-transform: uppercase;
}

/* Ensure the carousel container takes the full width below the title */
.infinite-container {
    width: 100%;
}

/* Light Mode Support */
body.light-mode .pool-gallery-section h2 {
    color: #2C2C2C !important;
}

/* ==========================================
   CENTERING OVERLAY TEXT
   ========================================== */

.overlay-content {
    display: flex;
    flex-direction: column;    /* Stacks Title and Price vertically */
    align-items: center;       /* Centers the items horizontally */
    justify-content: center;   /* Centers the items vertically */
    width: 100%;               /* Ensures it takes full width to align text correctly */
}

.overlay-content h3, 
.overlay-content p {
    margin: 5px 0;             /* Small gap between Title and Price */
    width: 100%;               /* Forces the text-align to take effect */
    text-align: center;        /* Explicitly centers the text strings */
}

/* ==========================================================================
   SNOOKER GALLERY SECTION (Right Aligned Title)
   ========================================================================== */
.snooker-gallery-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Pushes everything, including Title, to the right */
    justify-content: center;
    padding: 60px 5%;
    height: 100vh;
    width: 100%;
    background-color: #2C2C2C;
    scroll-snap-align: start;
    overflow: hidden;
}

/* Ensure the title stays on the right */
.snooker-gallery-section h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 40px;
    color: #ffffff;
    text-transform: uppercase;
    text-align: right;
    width: 100%; /* Important to allow right alignment within the flex box */
}

/* Reusing your Pool Infinite Track settings */
.snooker-gallery-section .infinite-track {
    animation: scrollInfinite 10s linear infinite; /* Slightly faster since fewer unique items */
}

/* ==========================================
   LIGHT MODE & MOBILE
   ========================================== */
body.light-mode .snooker-gallery-section {
    background-color: #ffffff;
}

body.light-mode .snooker-gallery-section h2 {
    color: #2C2C2C !important;
}

@media screen and (max-width: 900px) {
    .snooker-gallery-section {
        align-items: center; /* Center on mobile for better visibility */
    }
    .snooker-gallery-section h2 {
        text-align: center;
    }
}

/* This targets the track specifically when the user hovers over the container */
.infinite-container:hover .infinite-track {
    animation-play-state: paused !important;
}

/* Also add this to allow individual items to be hovered while paused */
.scroll-item:hover {
    cursor: pointer;
}

/* ==========================================================================
   BEVERAGES GALLERY SECTION
   ========================================================================== */
.beverages-gallery-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns "BEVERAGES" to the left */
    justify-content: center;
    padding: 60px 5%;
    height: 100vh;
    width: 100%;
    background-color: #2C2C2C;
    scroll-snap-align: start;
    overflow: hidden;
}

.beverages-gallery-section h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 40px;
    color: #ffffff;
    text-transform: uppercase;
}

/* Ensure this section's track also pauses on hover */
.beverages-gallery-section .infinite-container:hover .infinite-track {
    animation-play-state: paused;
}

/* ==========================================
   LIGHT MODE & MOBILE
   ========================================== */
body.light-mode .beverages-gallery-section {
    background-color: #ffffff;
}

body.light-mode .beverages-gallery-section h2 {
    color: #2C2C2C !important;
}

@media screen and (max-width: 900px) {
    .beverages-gallery-section {
        align-items: center;
        text-align: center;
    }
}

.beverages-gallery-section .scroll-item img {
    /* 50% = Center horizontally */
    /* 20% = Shows more of the TOP of the image */
    object-position: 50% 85%; 
    
    /* Use 'object-fit' to ensure it fills the box while moving */
    object-fit: cover; 
}

/* ==========================================================================
   GLOBAL RESPONSIVE OVERRIDES (Tablets & Phones)
   ========================================================================== */

@media screen and (max-width: 900px) {
    /* 1. General Section Adjustments */
    .pool-gallery-section, 
    .snooker-gallery-section, 
    .beverages-gallery-section {
        height: auto !important;
        min-height: auto;
        padding: 40px 20px;
        align-items: block;
    }

    /* 2. Responsive Typography */
    .pool-gallery-section h2, 
    .snooker-gallery-section h2, 
    .beverages-gallery-section h2 {
        font-size: 2.8rem;
        text-align: center;
        margin-top: 0;
        margin-bottom: 20px;      /* Less space between Title and Carousel */
        width: 100%;
    }

    /* 3. Card Scaling */
    .scroll-item {
        flex: 0 0 300px;
        height: 250px;
    }

    .infinite-track {
        width: 1900px; 
        animation: scrollInfiniteMobile 15s linear infinite; /* Using Mobile Animation */
    }
.snooker-gallery-section .infinite-track {
    animation: scrollInfiniteMobile 15s linear infinite !important; 
    /* Increased to 40s to make it much slower */
}
    /* 4. Overlay Content Adjustments */
    .overlay-content h3 { font-size: 1.4rem; }
    .overlay-content p { font-size: 1rem; }
} /* End of 900px Media Query */

/* ==========================================================================
   SMALL PHONES (480px)
   ========================================================================== */
@media screen and (max-width: 480px) {
    .pool-gallery-section h2, 
    .snooker-gallery-section h2, 
    .beverages-gallery-section h2 {
        font-size: 2.2rem;
    }

    .scroll-item {
        flex: 0 0 260px;
    }

    .infinite-track {
        animation: scrollInfiniteSmall 15s linear infinite; /* Using Small Animation */
    }
} /* End of 480px Media Query */

/* ==========================================================================
   ANIMATION KEYFRAMES (Kept outside for stability)
   ========================================================================== */

/* Tablet Animation (300px cards) */
@keyframes scrollInfiniteMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 3 - 60px)); }
}

/* Phone Animation (260px cards) */
@keyframes scrollInfiniteSmall {
    0% { transform: translateX(0); }
    100% {
    transform: translateX(calc(-260px * 3 - 60px));
  }
}
	


/* ==========================================
   GALLERY HERO
   ========================================== */
.gallery-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('Images/gallery.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
}

.gallery-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.gallery-hero-content h1 {
    font-size: 150px;
    margin-bottom: 15px;
}

.gallery-hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #eee;
}

.gallery-hero-btn {
    padding: 12px 26px;
    border: 1px solid white;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.gallery-hero-btn:hover {
    background: white;
    color: #2C2C2C;
}


/* ==========================================
   GALLERY SECTION
   ========================================== */
.gallery-showcase {
    min-height: 100vh;
    padding: 120px 20px 80px;
    background: #353535;
}

.gallery-showcase-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-showcase-header h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.gallery-showcase-header p {
    color: #ccc;
}


/* ==========================================
   GRID (NO FR VERSION)
   ========================================== */
.gallery-custom-grid {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 23% 23% 23% 23%;
    gap: 24px;
}


/* ==========================================
   IMAGE BOX STYLE
   ========================================== */
.gallery-box {
    width: 100%; /* Ensure it fills the grid column */
    height: 350px; /* Change from 285px to 582px */
    border-radius: 28px;
    overflow: hidden;
    background: #1f1f1f;
    cursor: pointer;
    position: relative;

    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.gallery-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.gallery-box:hover img {
    transform: scale(1.08);
}


/* ==========================================
   REVEAL ANIMATION
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s ease;
}

.reveal.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* delay */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }


/* ==========================================
   LIGHTBOX
   ========================================== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 45px;
    color: white;
    cursor: pointer;
}


/* ==========================================
   RESPONSIVE (NO FR)
   ========================================== */
@media screen and (max-width: 900px) {
    .gallery-custom-grid {
        grid-template-columns: 31% 31% 31%;
        gap: 18px;
    }

    .gallery-box {
        height: 240px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-custom-grid {
        grid-template-columns: 48% 48%;
        gap: 14px;
    }

    .gallery-box {
        height: 200px;
    }

    .gallery-hero-content h1 {
        font-size: 48px;
    }
}

/* ==========================================
   Contact page
   ========================================== */

.contact-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start; /* This makes it snappy */
    background-image: url('Images/contact.png'); 
    background-size: cover;
    background-position: center;
}

.contact-title {
    font-family: 'Arial Black', sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   GET IN TOUCH SECTION
   ========================================== */
.contact-details-section {
    min-height: 100vh;
    background-color: #2C2C2C;
	padding: 80px 0 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
	overflow: hidden;
}

.contact-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
    
    /* ADD THESE LINES */
    width: 100%;
    max-width: none; /* Allows the section to span the full screen width */
    padding: 0;      /* Removes side padding so image can touch the edge */
    position: relative;
}

.contact-form-area { flex: 1; }

.contact-h2 {
    font-family: 'Arial Black', sans-serif;
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.contact-subtext {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 40px;
}

/* Form Elements */
.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.input-group label {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input, 
.input-group textarea {
    padding: 12px 20px;
    border-radius: 50px; /* Pill shape */
    border: none;
    outline: none;
    font-size: 1rem;
}

.input-group textarea {
    border-radius: 20px; /* Slightly less rounded for box */
    resize: none;
}

.contact-send-btn {
    margin-top: 10px;
    padding: 15px;
    border-radius: 50px;
    border: none;
    background-color: #ffffff;
    color: #2C2C2C;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.contact-send-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.02);
}

/* Phone PNG Styling */
.contact-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
}

.phone-png {
   width: 120%;        /* Increase width over 100% to make it pop out */
    max-width: none;    /* Allow it to go beyond the container limit */
    height: auto;
    transform: scale(1.3); /* Scale it up (1.3 = 130% size) */
    transform-origin: center right;
}

/* Bottom Info Row */
.contact-bottom-info {
	margin: 60px 15% 0 10%;
    display: flex;
    justify-content: space-between;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
}

.info-item h3 {
    color: #bbbbbb;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.info-item p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile Responsiveness */
@media screen and (max-width: 900px) {
    .contact-main-container { flex-direction: column; }
    .form-row { flex-direction: column; }
    .contact-bottom-info { flex-direction: column; gap: 30px; text-align: center; }
    .contact-h2 { font-size: 2.5rem; text-align: center; }
    .contact-subtext { text-align: center; }
}

/* ==========================================
   MOBILE RESPONSIVENESS (WITHOUT CHANGING DESKTOP)
   ========================================== */
@media screen and (max-width: 1024px) {
    /* 1. Remove the 10% left padding so text centers on mobile */
    .contact-details-section {
        padding: 80px 20px; /* Equal side padding for mobile */
        height: auto;       /* Let the section grow if text is long */
    }

    /* 2. Stack the Form and the Image vertically */
    .contact-main-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* 3. Stack First/Last name boxes */
    .form-row {
        flex-direction: column;
    }

    /* 4. Reset the enlarged image so it fits the phone screen */
    .phone-png {
        transform: scale(1); /* Reset the 1.3 scale */
        width: 100%;
        max-width: 350px;    /* Keeps the phone mockup a reasonable size */
        margin: 0 auto;
        transform-origin: right;
    }

    /* 5. Center the Bottom Info items */
    .contact-bottom-info {
        flex-direction: column;
        margin: 40px 0 0 0;  /* Remove the 10% margins for mobile */
        gap: 25px;
        text-align: center;
    }
}

/* ==========================================
   GOOGLE MAPS SECTION - FULL WIDTH REWRITE
   ========================================== */
.contact-map-section {
    height: 100vh;
    width: 100%;
    background-color: #2C2C2C;
    display: flex; /* We use flex here only to center the box vertically */
    align-items: center; 
    justify-content: center; 
    padding: 0 10%; /* Matches your form's side alignment */
    scroll-snap-align: start;
    transition: background-color 0.3s ease;
    overflow: hidden;
}

.map-container {
    width: 100%; /* Makes the map fill the available width */
    max-width: 1200px; /* Keeps it from stretching too far on big screens */
    height: 600px; /* Increases height for a better look */
    border-radius: 20px;
    overflow: hidden; /* This makes the corners round */
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    border: 4px solid #3d3d3d;
    position: relative;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* Light Mode Support */
body.light-mode .contact-map-section {
    background-color: #ffffff !important;
}

body.light-mode .map-container {
    border-color: #eeeeee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Mobile Fix (Consistent with your site) */
@media screen and (max-width: 900px) {
    .contact-map-section {
        height: auto;
        min-height: 50vh;
        padding: 40px 20px;
        scroll-snap-align: none !important;
    }
    
    .map-container {
        height: 400px; /* Shorter height for mobile screens */
    }
}