/* ===== ROOT VARIABLES ===== */
/* ===== ROOT VARIABLES ===== */
:root {
    --primary: #00d4ff;
    --secondary: #ff6b35;
    --accent: #9d4edd;
    --dark: #1a1a1a;           /* Main background */
    --darker: #141414;         /* Slightly darker for contrast */
    --gray: #2a2a2a;           /* Cards, containers */
    --light-gray: #3a3a3a;     /* Borders, subtle elements */
    --card-bg: #222222;        /* Card backgrounds */
    --text: #e0e0e0;
    --text-light: #a0a0b0;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --swipe-indicator-opacity: 1;
    --swipe-container-padding: 24px;
}
/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text);
    
    /* VERY VISIBLE ripple effect */
    background-color: #0a0a0a;
    
    background-image: 
        /* Massive center ripple */
        radial-gradient(circle at 50% 40%, #1a1a1a 0%, transparent 80%),
        /* Large top-left */
        radial-gradient(circle at 15% 15%, #000 0%, transparent 70%),
        /* Large bottom-right */
        radial-gradient(circle at 85% 85%, #2a2a2a 0%, transparent 70%),
        /* Medium top-right */
        radial-gradient(circle at 85% 15%, #303030 0%, transparent 60%),
        /* Medium bottom-left */
        radial-gradient(circle at 15% 85%, #282828 0%, transparent 60%);
    
    overflow-x: hidden;
    font-weight: 400;
}

h1, h2, h3, h4, .logo-text, .section-title h2 {
    font-family: 'Archivo Black', 'Impact', 'Arial Black', sans-serif;
    font-weight: 900;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 {
    font-size: 2.8rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.8rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.3rem;
    line-height: 1.4;
}

/* ===== UNIVERSAL HERO SYSTEM ===== */
.page-hero {
    min-height: 85vh;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 80px 24px 0 24px; /* Add top padding here */
    background-color: var(--darker);
}

.page-hero {
    background-position: center 35%;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(5, 5, 8, 0.85),
        rgba(5, 5, 8, 0.65)
    );
    z-index: 1;
}

.page-hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 24px;
    width: 100%;
}

.page-hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(to right, var(--white), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Specific hero backgrounds using YOUR assets */
.hero-home {
    background-image: url('/assets/images/projects/propadel.webp');
}

.hero-padel {
    background-image: url('assets/images/projects/vamos (5).jpg');
}

.hero-sports {
    background-image: url('/assets/images/projects/sitara\ villas\ 2.jpg');
}

/* ===== IMAGE BREAK SECTIONS ===== */
.image-break {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 80px 24px;
    background-size: cover;
    background-position: center;
    position: relative;
}


.image-break::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.image-break-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.image-break-content h2 {
    color: var(--white);
    font-size: 2.8rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.image-break-content p {
    color: var(--text-light);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Image break backgrounds using YOUR assets */
.break-padel {
    background-image: url('assets/images/projects/vamos (5).jpg');
}

.break-sports {
    background-image: url('/assets/images/projects/alpha.jpg');
}

.break-engineering {
    background-image: url('/assets/images/projects/laying down sbr.jpg');
}
/* ===== PREMIUM HEADER WITH GLASS EFFECT ===== */
.header {
    background: linear-gradient(
        135deg,
        rgba(15, 15, 22, 0.5),
        rgba(5, 5, 8, 0.5)
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10000; /* Increased to beat shared-bg-section overlays */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    isolation: isolate; /* Create new stacking context */
}

/* Subtle pattern overlay - always visible */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 212, 255, 0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    position: relative;
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

.logo-img-real {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

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

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Poppins', sans-serif;
}

/* ===== DESKTOP NAVIGATION ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    padding: 12px 16px;
    border-radius: 8px;
}

.nav-links a:not(.cta-button):hover {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Underline animation */
.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-button):hover::after {
    width: 20px;
}

/* Get Quote button in nav */
.nav-links .cta-button {
    background: linear-gradient(135deg, var(--primary), #0066ff);
    color: var(--dark);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: none;
}

.nav-links .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* ===== HAMBURGER MENU ===== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: left center;
}

/* Hamburger animation */
.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
}

/* ===== MOBILE NAVIGATION ===== */
/* ===== MOBILE MENU CLOSE BUTTON ===== */
.mobile-close-btn {
    display: none; /* Hidden on desktop */
    position: absolute;
    top: 30px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 10004;
    align-items: center;
    justify-content: center;
}

.mobile-close-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: rotate(90deg);
}

/* Show close button only on mobile */
@media (max-width: 768px) {
    .mobile-close-btn {
        display: flex;
    }
    
    /* Adjust padding to make room for close button */
    .nav-links {
        padding: 100px 20px 40px;
    }
}
@media (max-width: 1024px) {
    .nav-links {
        gap: 4px;
    }
    
    .nav-links a {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .nav-links .cta-button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 768px) {
    .logo-text, .logo-tagline {
        display: none;
    }
    
    .logo-link {
        gap: 8px;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 10002;
        position: relative;
    }
    
    /* MOBILE MENU - FIXED: Will now appear above everything */
     /* MOBILE MENU - CLEAN & PROPERLY SIZED */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(5, 5, 8, 1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Changed from center to start */
        gap: 10px; /* Reduced gap */
        padding: 100px 20px 40px; /* Reduced padding */
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10001;
        margin: 0;
        overflow-y: auto;
        isolation: isolate;
    }
    
    
    .nav-links.active {
        transform: translateX(0);
    }
    
       /* Menu items - smaller and more compact */
    .nav-links a {
        width: 100%;
        max-width: 280px; /* Reduced from 300px */
        text-align: center;
        padding: 16px 20px; /* Reduced padding */
        font-size: 16px; /* Smaller font */
        color: var(--white);
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px; /* Slightly smaller radius */
        border: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 10003;
        margin-bottom: 5px; /* Small space between items */
        transition: all 0.3s ease;
    }
    
    .nav-links a:not(.cta-button)::after {
        display: none;
    }
    
    .nav-links a:not(.cta-button):hover {
        background: rgba(0, 212, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    }
    
  /* Get Quote button - smaller */
    .nav-links .cta-button {
        margin: 15px 0 0 0; /* Reduced margin */
        width: 100%;
        max-width: 280px; /* Reduced */
        padding: 16px 20px; /* Reduced */
        font-size: 15px; /* Smaller */
        background: linear-gradient(135deg, var(--primary), #0066ff);
        border-radius: 10px; /* Smaller radius */
        z-index: 10003;
        font-weight: 600;
    }
}

/* Hide logo text on very small screens */
@media (max-width: 480px) {
    .logo-img-real {
        height: 45px;
    }
}
/* ===== WHATSAPP FLOAT BUTTON FIX ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    margin-top: 2px;
}

/* ===== LOGO STYLING UPDATES ===== */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-family: 'Poppins', sans-serif;
}

/* Hide text on mobile for cleaner look */
@media (max-width: 768px) {
    .logo-text, .logo-tagline {
        display: none;
    }
    
    .logo-link {
        gap: 0;
    }
}

/* Show on desktop */
@media (min-width: 769px) {
    .logo-text, .logo-tagline {
        display: block;
    }
}

/* ===== NAVIGATION UPDATES ===== */
/* Contact link styling */
.nav-links .contact-link {
    color: var(--text);
    position: relative;
    padding: 8px 0;
    margin: 0 16px;
}

.nav-links .contact-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: 0;
    transition: var(--transition);
}

.nav-links .contact-link:hover {
    color: var(--primary);
}

.nav-links .contact-link:hover:after {
    width: 100%;
}

/* Get Quote button in nav */
.nav-links .cta-button {
    margin-left: 16px;
    white-space: nowrap;
}

/* Mobile adjustments for buttons in nav */
@media (max-width: 768px) {
    .nav-links .contact-link,
    .nav-links .cta-button {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 18px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-links .cta-button {
        background: var(--primary);
        color: var(--dark);
        border-radius: 0;
        margin-top: 10px;
    }
    
    .nav-links .cta-button:hover {
        background: var(--primary);
        opacity: 0.9;
    }
}

/* ===== MODALS ===== */
/* Modal overlay */
.modal,
.sport-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active state */
.modal.active,
.sport-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Modal content */
.modal-content,
.sport-modal-content {
    background: var(--card-bg);
    margin: 80px auto;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Specific widths */
.modal-content {
    max-width: 600px;
}
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sport-modal-content {
    max-width: 900px;
}

/* Animate when active */
.modal.active .modal-content,
.sport-modal.active .sport-modal-content {
    opacity: 1;
    transform: translateY(0);
}

/* Close button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gray);
    color: var(--text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Modal form styles */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 14px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-submit {
    background: linear-gradient(135deg, var(--primary), #0066ff);
    color: var(--dark);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

/* Sport modal specific styles */
.sport-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.sport-specs h4,
.sport-features h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.sport-specs ul,
.sport-features ul {
    list-style: none;
}

.sport-specs li,
.sport-features li {
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sport-specs li:before {
    content: "📐";
}

.sport-features li:before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .modal-content,
    .sport-modal-content {
        margin: 20px auto;
        padding: 20px;
    }

    .sport-modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}
.prefill-mode .sport-chip,
.prefill-mode .fork-option,
.prefill-mode .form-step {
    transition: none !important;
}
#quoteModal {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#quoteModal.is-visible {
    opacity: 1;
    pointer-events: auto;
}
/* Hide step 1 by default */
.form-step[data-step="1"] {
    display: none;
}
/* Modal visibility states */
#quoteModal:not(.is-visible) .modal-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: none; /* No transition during setup */
}

#quoteModal.is-visible .modal-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Disable animations during prefill setup */
.prefill-mode * {
    transition: none !important;
    animation: none !important;
}

/* Form steps */
.form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-step.active {
    display: block;
    opacity: 1;
}
/* ===== PORTFOLIO GRID ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    height: 300px;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 25px;
    color: white;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-badge {
    background: var(--primary);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.portfolio-overlay h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.portfolio-overlay p {
    color: var(--text-light);
    font-size: 14px;
    opacity: 0.9;
}

/* Gallery filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--text-light);
    font-style: italic;
    grid-column: 1 / -1;
}

/* For gallery page */
.portfolio-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .portfolio-grid,
    .portfolio-grid-full {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}
/* Add to the existing CSS in gallery.html style tag */
.slideshow-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.autoplay-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: var(--text-light);
}

.autoplay-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(0.8); }
}
/* ===== COMPACT PROCESS GRID FOR IMAGE BREAKS ===== */
.image-break.compact {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.process-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
}

.process-card-compact {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.process-card-compact:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.process-icon {
    background: var(--primary);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 900;
    font-size: 18px;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.process-card-compact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.process-card-compact p {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .process-grid-compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .image-break.compact {
        min-height: 50vh;
        padding: 40px 15px;
    }
    
    .process-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .process-card-compact {
        padding: 18px 12px;
    }
    
    .process-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .process-card-compact h4 {
        font-size: 0.95rem;
    }
    
    .process-card-compact p {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .process-grid-compact {
        grid-template-columns: 1fr;
        max-width: 300px;
        gap: 10px;
    }
    
    .image-break.compact .section-title h2 {
        font-size: 1.8rem;
    }
    
    .image-break.compact .section-title p {
        font-size: 0.9rem;
    }
}

/* ===== PROJECT CAROUSEL ===== */
.project-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.carousel-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    cursor: pointer;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 25px;
    color: white;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-slide:hover .carousel-overlay {
    transform: translateY(0);
    opacity: 1;
}

.carousel-overlay h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.carousel-overlay p {
    color: var(--text-light);
    font-size: 14px;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Auto-play indicator */
.carousel-auto {
    text-align: center;
    margin-top: 10px;
}

.auto-play-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 20px;
}

.play-icon {
    color: var(--primary);
    font-size: 12px;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.95);
    z-index: 10000;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 5vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 0 0 10px 10px;
    width: 100%;
    max-width: 800px;
    margin-top: -10px;
    position: relative;
    z-index: 2;
    text-align: center;
}

.lightbox-info h3 {
    color: white;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.lightbox-info p {
    color: var(--text-light);
    font-size: 14px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gray);
    color: var(--text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--primary);
    color: var(--dark);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-overlay {
        padding: 15px;
    }
    
    .carousel-overlay h3 {
        font-size: 1.2rem;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 250px;
    }
    
    .carousel-controls {
        gap: 10px;
    }
    
    .carousel-dots {
        gap: 6px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
}
/* ===== BUTTONS ===== */
.cta-button {
    background: linear-gradient(135deg, var(--primary), #0066ff);
    color: var(--dark);
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.5px;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.consult-cta {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-block;
}

.consult-cta:hover {
    background: var(--primary);
    color: var(--dark);
}

/* ===== SECTIONS ===== */
.section {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 70px;
    padding-bottom: 70px;
}

.section.full-bleed {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.section-title {
    text-align: center;
    max-width: 1280px;
    margin: 0 auto 24px;
}
.section-title h1,
.section-title h2 {
    margin-bottom: 16px;
}

.section-title p {
    margin: 0 auto;
    max-width: 700px;
}

/* ===== ROTATING 3-IMAGE GRID ===== */
.project-grid-rotating {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.project-grid-slot {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 300px; /* Fixed height */
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: var(--gray); /* Fallback background */
}

/* Fixed aspect ratio container */
.project-grid-item {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes images fill the container */
    transition: transform 0.5s ease;
}

.project-grid-slot:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-grid-slot:hover .project-grid-item img {
    transform: scale(1.05);
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.project-grid-slot:hover .grid-overlay {
    opacity: 1;
    transform: translateY(0);
}

.grid-overlay h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.grid-overlay p {
    color: var(--text-light);
    font-size: 13px;
    opacity: 0.9;
}

/* Loading state */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    font-style: italic;
}

/* Controls */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-top: 20px;
}

.auto-play-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.play-indicator {
    color: var(--primary);
    font-size: 12px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.grid-nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.grid-nav-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Fade animation for image changes */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in .project-grid-item img {
    animation: fadeIn 0.8s ease;
}

/* Lightbox image should maintain aspect ratio */
.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain; /* Different from grid - contain for lightbox */
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .project-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-grid-slot:nth-child(3) {
        grid-column: span 2;
        max-width: 500px;
        margin: 0 auto;
        height: 280px; /* Slightly smaller on tablet */
    }
    
    .project-grid-slot {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .project-grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .project-grid-slot {
        height: 250px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
    
    .project-grid-slot:nth-child(3) {
        grid-column: 1;
        max-width: 500px;
    }
    
    .grid-controls {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .grid-overlay {
        padding: 15px;
    }
    
    .grid-overlay h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-grid-slot {
        height: 220px;
    }
    
    .grid-overlay {
        padding: 12px;
    }
    
    .grid-overlay h3 {
        font-size: 0.95rem;
    }
    
    .grid-overlay p {
        font-size: 12px;
    }
    
    .grid-nav-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}
/* ===== BANNER SECTIONS ===== */
.map-section,
.padel-tiers,
.flooring-section,
.clients-section {
    background: rgba(20, 20, 32, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 40px 24px;
    margin: 20px auto 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 1200px;
}

.map-section::before,
.padel-tiers::before,
.flooring-section::before,
.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 1;
}



/* ===== TWO COLUMN MAP SECTION - UPDATED ===== */
.map-two-column {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Map takes more space, stats less */
    gap: 50px;
    align-items: start; /* Align at top instead of stretch */
    margin-top: 30px;
}

.map-left-panel {
    position: relative;
    display: flex;
    align-items: center;
}

.map-right-panel {
    display: flex;
    align-items: center;
}

/* Map Container Adjustments */
.pakistan-svg-wrapper {
    position: relative;
    width: 100%;
}

.pakistan-svg-container {
    position: relative;
    background: rgba(20, 20, 32, 0.3);
    border-radius: 20px;
    padding: 20px; /* Reduced padding */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4/3; /* Keep aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pakistan-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1) contrast(0.9);
    opacity: 0.9;
}


/* Cumulative Stats Panel - CLEANER VERSION */
.cumulative-stats {
    background: rgba(20, 20, 32, 0.3);
    border-radius: 20px;
    padding: 25px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    height: 480px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Remove old heading and subtitle */
.cumulative-stats h4,
.stats-subtitle,
.stats-highlights {
    display: none;
}

/* Vertical Stacked Stats */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    flex-grow: 0;
}

.cumulative-stat-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 18px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.cumulative-stat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}
.cumulative-stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    display: block;
    line-height: 1;
    font-family: 'Archivo Black', sans-serif;
    margin-bottom: 6px;
}
.cumulative-stat-item:nth-child(3) .cumulative-stat-number {
    font-size: 1.6rem;
    color: var(--secondary);
    font-weight: 700;
}


.cumulative-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Client Satisfaction Special Style */
.cumulative-stat-item:nth-child(3) .cumulative-stat-number {
    font-size: 2rem; /* Slightly smaller for longer text */
    color: var(--secondary);
    font-weight: 700;
}

/* CTA Button */

.stats-cta {
    margin-top: 15px;
}


.stats-cta .cta-button {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
}

.stats-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.stats-cta .cta-button i {
    font-size: 18px;
}

/* City Dots - More Refined */
.city-dots-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.city-dot {
    position: absolute;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

.dot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.5;
    animation: pulse 2s infinite ease-in-out;
}

.dot-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.9);
    z-index: 2;
    transition: var(--transition);
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

.city-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(10, 10, 15, 0.95);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 20;
    min-width: 150px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.city-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(10, 10, 15, 0.95) transparent transparent transparent;
}

.city-tooltip h4 {
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
}

.city-tooltip p {
    color: var(--text-light);
    font-size: 12px;
    opacity: 0.9;
}

.city-dot:hover .dot-pulse {
    animation: none;
    opacity: 0.8;
    transform: scale(1.3);
}

.city-dot:hover .dot-center {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 25px rgba(0, 212, 255, 1);
}

.city-dot:hover .city-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .map-two-column {
        gap: 30px;
    }
    
    .pakistan-svg-container {
        height: 380px;
    }
    
    .cumulative-stat-number {
        font-size: 2.4rem;
    }
}

@media (max-width: 992px) {
    .map-two-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-right-panel {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pakistan-svg-container {
        height: 400px;
    }
    
    .cumulative-stats {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .pakistan-svg-container {
        height: 350px;
        padding: 20px;
    }
    
    .cumulative-stats {
        padding: 30px 20px;
    }
    
    .stats-grid {
        gap: 20px;
    }
    
    .cumulative-stat-item {
        padding: 22px 18px;
        min-height: 110px;
    }
    
    .cumulative-stat-number {
        font-size: 2.2rem;
    }
    
    .cumulative-stat-item:nth-child(3) .cumulative-stat-number {
        font-size: 1.8rem;
    }
    
    .cumulative-stat-label {
        font-size: 15px;
    }
    
    .city-dot {
        width: 22px;
        height: 22px;
    }
    
    .dot-center {
        width: 10px;
        height: 10px;
    }
    
    .city-tooltip {
        font-size: 12px;
        padding: 10px 14px;
        min-width: 130px;
    }
}

@media (max-width: 576px) {
    .pakistan-svg-container {
        height: 300px;
        padding: 15px;
    }
    
    .cumulative-stats {
        padding: 25px 20px;
    }
    
    .cumulative-stat-item {
        padding: 20px 15px;
        min-height: 100px;
    }
    
    .cumulative-stat-number {
        font-size: 2rem;
    }
    
    .cumulative-stat-item:nth-child(3) .cumulative-stat-number {
        font-size: 1.6rem;
    }
    
    .cumulative-stat-label {
        font-size: 14px;
    }
    
    .stats-cta .cta-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}
/* ===== PADEL TIERS ===== */
/*.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    align-items: start;
}

.tier-card {
    background: rgba(5, 5, 8, 0.45);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tier-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(5, 5, 8, 0.8);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--dark);
    padding: 6px 20px;
    border-radius: 20px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
}
.tier-card.premium {
    transform: translateY(-8px);
    border-color: gold;
}
.tier-card.premium .tier-badge { background: gold; color: #000; }
.tier-card.mid-range .tier-badge { background: var(--primary); }
.tier-card.local .tier-badge { background: var(--secondary); }

.tier-features {
    list-style: none;
    margin-top: 20px;
    flex-grow: 1;
}

.tier-features li {
    color: var(--text-light);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
}

.tier-features li:before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}*/
/* ===== PADEL TIERS - MOBILE SWIPE CAROUSEL ===== */

/* BASE STYLES - Desktop & All Screens */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.tier-card {
    background: rgba(5, 5, 8, 0.45);
    border-radius: 16px;
    padding: 40px 25px 25px; /* Extra top padding for badge */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

/* Badge collision fix - Add space for badge */
.tier-card h4 {
    margin-top: 5px;
    margin-bottom: 15px;
}

.tier-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    background: rgba(5, 5, 8, 0.8);
}

/* FIXED BADGE - Now has space to breathe */
.tier-badge {
    position: absolute;
    top: -12px; /* Moved inside card */
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Archivo Black', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    white-space: nowrap;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.5px;
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.tier-card.premium .tier-badge { 
    background: linear-gradient(135deg, gold, #ffd700);
    color: #000; 
    font-size: 11px;
}
.tier-card.mid-range .tier-badge { 
    background: linear-gradient(135deg, var(--primary), #0099cc);
}
.tier-card.local .tier-badge { 
    background: linear-gradient(135deg, var(--secondary), #ff8535);
}

.tier-card.premium {
    border-color: rgba(255, 215, 0, 0.3);
}

/* ===== TABLET (768px-1024px) - Clean 2-Column Layout ===== */
@media (min-width: 768px) and (max-width: 1024px) {
    .tier-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
        margin: 40px auto 0;
    }
    
    .tier-card.premium {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
        transform: none;
    }
    
    .tier-card {
        min-height: 360px;
        padding: 40px 20px 20px;
    }
}

/* ===== MOBILE (under 768px) - SWIPE CAROUSEL ===== */
@media (max-width: 767px) {
    /* Container with swipe affordances */
    .tier-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 20px;
        padding: 20px 16px 30px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
        scrollbar-width: none; /* Firefox */
    }
    
    /* Hide scrollbar for Chrome/Safari */
    .tier-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Individual cards in carousel */
    .tier-card {
        flex: 0 0 85vw; /* 85% of viewport width */
        min-height: 380px; /* Consistent height */
        scroll-snap-align: start;
        padding: 40px 20px 25px;
        margin-right: 0;
        width: auto;
        max-width: none;
    }
    
    /* Remove last card margin for clean edge */
    .tier-card:last-child {
        margin-right: 16px; /* Extra space at end */
    }
        .tier-card h4 {
        margin-top: 10px;     /* More space after badge */
        margin-bottom: 10px;  /* Less space before features */
        font-size: 1.1rem;    /* Slightly smaller */
        line-height: 1.3;     /* Tighter line spacing */
        min-height: auto;     /* Remove any fixed height */
    }
    
    /* If h4 has explicit height, override it */
    .tier-card h4 {
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
    }
    /* Swipe indicator - Right side only */
    .tier-grid::after {
        content: "→";
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: rgba(0, 212, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-weight: bold;
        font-size: 18px;
        pointer-events: none;
        z-index: 3;
        opacity: 0.8;
        animation: pulse-swipe 2s infinite;
    }
    
    @keyframes pulse-swipe {
        0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(0.95); }
        50% { opacity: 0.9; transform: translateY(-50%) scale(1.05); }
    }
    
    /* Fade indicator on scroll */
    .tier-grid[data-scrolled="true"]::after {
        opacity: 0.3;
        animation: none;
    }
    
    /* Add subtle gradient fade on right edge */
    .tier-grid {
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 10%,
            black 90%,
            transparent 100%
        );
    }
}

/* ===== DESKTOP (above 1024px) - 3 Column Grid ===== */
@media (min-width: 1025px) {
    .tier-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

/* ===== TIER FEATURES STYLING ===== */
.tier-features {
    list-style: none;
    margin-top: 20px;
    flex-grow: 1;
}

.tier-features li {
    color: var(--text-light);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 45px;
}

.tier-features li:before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
}

/* Mobile optimization for tier features */
@media (max-width: 767px) {
    .tier-features li {
        min-height: 40px;
        font-size: 13px;
        padding: 8px 0;
    }
}
/* ===== PADEL PAGE BACKGROUNDS ===== */
.padel-hero-bg {
    background-image: url('assets/images/projects/vamos (6).jpg'); /* Or your preferred image */
}

.padel-testimonials-bg {
    background-image: url('/assets/images/projects/ps\ \(3\).jpg'); /* Testimonials background */
}

/* Adjust section styling for testimonials background */
.padel-testimonials-bg .section {
    max-width: 1200px;
    margin: 0 auto;
}

/* Style testimonials cards for dark background */
.padel-testimonials-bg .tier-card {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff;
}

.padel-testimonials-bg .tier-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--primary) !important;
    transform: translateY(-5px);
}

/* Fix H2 styling in testimonials section */


.padel-testimonials-bg .section-title p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Add gradient underline to testimonials title */
.padel-testimonials-bg .section-title h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto 30px;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .padel-testimonials-bg .section-title h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .padel-testimonials-bg .section-title h2 {
        font-size: 2rem;
    }
    
    .padel-testimonials-bg .section-title p {
        font-size: 1.1rem;
    }
    
    .padel-testimonials-bg .section-title h2::after {
        width: 80px;
        margin: 10px auto 25px;
    }
}

@media (max-width: 480px) {
    .padel-testimonials-bg .section-title h2 {
        font-size: 1.8rem;
    }
    
    .padel-testimonials-bg .section-title p {
        font-size: 1rem;
    }
    
    .padel-testimonials-bg .section-title h2::after {
        width: 60px;
        height: 3px;
    }
}
 /* NEW CSS for surface systems section */
    .surface-systems-section {
        margin: 100px 0;
    }

    .surface-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 50px auto 0;
    }

    .surface-card {
        background: var(--card-bg);
        border-radius: 16px;
        padding: 30px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: var(--transition);
        text-align: left;
    }

    .surface-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 212, 255, 0.1);
    }

    .surface-header {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .surface-icon {
        width: 60px;
        height: 60px;
        background: rgba(0, 212, 255, 0.1);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .surface-icon i {
        font-size: 24px;
        color: var(--primary);
    }

    .surface-header h3 {
        color: var(--white);
        font-size: 1.3rem;
        margin: 0;
        line-height: 1.3;
    }

    .sport-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 15px 0 20px;
    }

    .sport-tag {
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-light);
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 13px;
        font-weight: 500;
    }

    .sport-tag:hover {
        background: rgba(0, 212, 255, 0.2);
        color: var(--primary);
    }

    .surface-features ul {
        list-style: none;
        margin-top: 20px;
    }

    .surface-features li {
        color: var(--text);
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .surface-features li i {
        color: var(--primary);
        font-size: 12px;
    }

    .surface-cta {
        margin-top: 25px;
        text-align: center;
    }

    @media (max-width: 768px) {
        .surface-grid {
            grid-template-columns: 1fr;
            gap: 20px;
            padding: 0 20px;
        }
        
        .surface-card {
            padding: 25px;
        }
        
        .surface-header h3 {
            font-size: 1.2rem;
        }
    }
/* ===== SPORTS SHOWCASE ===== */
.sports-showcase {
    margin-top: 0px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sport-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
}

.sport-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.sport-image {
    height: 220px;
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.sport-info {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.sport-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.feature-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ===== SHARED BACKGROUND SECTION - BASE STYLES ===== */
/*.shared-bg-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 80px 20px;
    position: relative;
    margin: 60px 0;
    isolation: isolate;
    overflow: hidden;
}*/
    .shared-bg-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #fff;
    padding: 100px;              /* 🔑 CRITICAL */
    margin: 0;               /* 🔑 CRITICAL */
    isolation: isolate;
}


/* Overlay for better readability */
.shared-bg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.7); /* Your dark color with 70% opacity */
    z-index: 1;
}

/* Content should be above overlay */
.shared-bg-section > section,
.shared-bg-section > .transparent-section,
.shared-bg-section > .section {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
}
.shared-bg-section > * {
    position: relative;
    z-index: 2;
}

/* Make sections transparent inside the container */
.transparent-section {
    background: transparent !important;
}
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    align-items: center;
}

.partner-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(0%);
    transition: 0.3s ease;
}

.partner-logo img:hover {
    opacity: 1;
    filter: grayscale(0%);
}
.partner-logo.boost img {
    transform: scale(1.5);
}
.partner-logo.boost2 img {
    transform: scale(2);
}

.feature-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 👈 desktop: 1 row */
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: center;
}
@media (max-width: 768px) {
    .feature-icon-grid {
        grid-template-columns: repeat(2, 1fr); /* 👈 2 rows */
        gap: 30px;
    }
}

.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.feature-icon-item i {
    font-size: 36px;
    color: var(--primary);
}

.feature-icon-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.4;
}

.feature-icon-item span {
    color: var(--text);
    font-weight: 500;
}


/* ===== SPECIFIC BACKGROUND IMAGES ===== */

/* Home page hero & specialties */
/*.shared-bg-section:first-of-type {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                      url('/assets/images/projects/vamos\ \(7\).jpg');
}
/* Home page hero & specialties - SPECIFIC TO HOME PAGE ONLY */
.hero-home-bg {
    background-image: url('/assets/images/projects/vamos\ \(7\).jpg');
}
/* Padel page backgrounds */
.padel-hero-bg {
    background-image: url('/assets/images/projects/propadel\ \(2\).webp');
}

/*.padel-testimonials-bg {
    background-image: url('/assets/images/projects/lums.jpg');
}

/* Engineering section */
.engineering-bg-section {
    background-image: url('/assets/images/projects/laying\ down\ sbr.jpg');
}

/* Maps section */
.map-bg-section {
    background-image: url('/assets/images/projects/sitara\ villas\ 2.jpg');
}

/* ===== FIX FOR BACKGROUND OVERLAP ===== */
.shared-bg-section {
    margin-bottom: 0; /* Remove bottom margin */
}

.shared-bg-section + .shared-bg-section {
    margin-top: 0; /* Remove top margin between consecutive background sections */
}

/* Add separation using padding instead of margin */
.shared-bg-section:not(:first-of-type) {
    padding-top: 0px; /* More top padding for sections after first */
}

.shared-bg-section:not(:last-of-type) {
    padding-bottom: 0px; /* More bottom padding for sections before last */
}

/* ===== CONSISTENT HEADER STYLING FOR ALL BACKGROUND SECTIONS ===== */
/* Gradient ONLY for H1 */
.shared-bg-section .section-title h1 {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* H2 must be solid text */
.shared-bg-section .section-title h2 {
    color: #ffffff;
    -webkit-text-fill-color: initial;
    background: none;
}


.shared-bg-section .section-title h2,
.shared-bg-section .image-break-content h2 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.shared-bg-section .section-title p,
.shared-bg-section .map-title p,
.shared-bg-section .image-break-content p {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

/* Add gradient underline to headings */

.shared-bg-section .section-title h2::after,

.shared-bg-section .image-break-content h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto 30px;
    border-radius: 2px;
}

/* ===== TIER CARD STYLING FOR DARK BACKGROUNDS ===== */
.shared-bg-section .tier-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.shared-bg-section .tier-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.shared-bg-section .tier-card h4 {
    color: #fff;
}

.shared-bg-section .tier-card p {
    color: rgba(255, 255, 255, 0.85);
}

.shared-bg-section .tier-features li {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shared-bg-section .consult-cta {
    color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.shared-bg-section .consult-cta:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
    color: #fff;
}

/* ===== SPECIFIC FIXES ===== */

/* Fix for engineering section */
.engineering-bg-section .image-break {
    background: transparent;
    min-height: auto;
    padding: 40px 0;
}

.engineering-bg-section .image-break::before {
    display: none;
}

/* Fix for testimonials section */
.padel-testimonials-bg .tier-grid {
    margin-top: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .shared-bg-section {
        padding: 60px 20px;
    }
    
    .shared-bg-section .section-title h1 {
        font-size: 3rem;
    }
    
    .shared-bg-section .section-title h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .shared-bg-section {
        padding: 50px 20px;
        background-attachment: fixed; /* Disable parallax on mobile */
    }
      .shared-bg-section::before {
        background: rgba(5, 5, 8, 0.2) !important; /* 80% opacity on mobile */
    }
    
    /* Specific fix for hero sections */
    .page-hero::before {
        background: linear-gradient(
            rgba(5, 5, 8, 0.85),
            rgba(5, 5, 8, 0.9)
        ) !important;
    }
    
    /* Fix for image break sections */
    .image-break::before {
        background: rgba(0, 0, 0, 0.5) !important; /* Darker on mobile */
    }
    
    .shared-bg-section .section-title h1 {
        font-size: 2.5rem;
    }
    
    .shared-bg-section .section-title h2 {
        font-size: 2rem;
    }
    
    .shared-bg-section .section-title p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .shared-bg-section {
        padding: 40px 15px;
    }
    
    .shared-bg-section .section-title h1 {
        font-size: 2rem;
    }
    
    .shared-bg-section .section-title h2 {
        font-size: 1.8rem;
    }
    
    .shared-bg-section .section-title p {
        font-size: 1rem;
    }
}

.shared-bg-section .section-title {
    position: relative;
    z-index: 3;
}

.shared-bg-section .section-title h1 {
    position: relative;
    z-index: 2;
}
.shared-bg-section .section-title h2::after {
    position: relative;
    z-index: 1;
}
.shared-bg-section .section-title h1 {
    isolation: isolate;
}

/* ===== SPECIALIZED FLOORING ===== */
.flooring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.flooring-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    cursor: pointer;
}

.flooring-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.flooring-card h4 {
    color: var(--accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flooring-card ul {
    list-style: none;
    margin-top: 12px;
}

.flooring-card li {
    color: var(--text-light);
    padding: 6px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Poppins', sans-serif;
}

.flooring-card li:before {
    content: "•";
    color: var(--accent);
    margin-right: 8px;
}

/* ===== ULTRA-MINIMAL FOOTER ===== */
.footer {
    background: var(--darker);
    color: var(--text-light);
    padding: 50px 24px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Company Info */
.company-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
    opacity: 0.9;
}

.company-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 20px;
    color: var(--white);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.company-legal {
    font-size: 12px;
    color: var(--text-light);
    opacity: 0.8;
}

.company-address,
.company-email {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.company-address i,
.company-email i {
    color: var(--primary);
    margin-top: 2px;
    min-width: 16px;
}

/* Social Links */
.social-links h4 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    background: var(--primary);
    color: var(--dark);
}

/* WhatsApp specific */
.social-link:nth-child(3):hover {
    background: #25D366;
    color: white;
}

/* Phone specific */
.social-link:nth-child(4):hover {
    background: var(--primary);
    color: var(--dark);
}

/* Legal Footer */
.legal-footer {
    max-width: 1200px;
    margin: 30px auto 0;
    text-align: center;
}

.copyright {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
}

.registration {
    color: var(--text-light);
    font-size: 11px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .company-info {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
    
    .company-details {
        align-items: center;
    }
    
    .company-address,
    .company-email {
        justify-content: center;
    }
    
    .social-links {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}
.legal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0;
    font-size: 14px;
}

.legal-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* ===== CONTACT PAGE STYLES ===== */

/* Map Directions Section */
.map-directions {
    margin-top: 80px;
    position: relative;
}

.map-directions .map-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.map-directions iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) contrast(1.1);
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
}

.map-overlay .cta-button {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 20px;
    font-size: 14px;
}

.map-overlay .cta-button:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Contact Section */
.contact-section {
    padding-top: 60px;
    padding-bottom: 80px;
}

.contact-two-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards */
.contact-details-card,
.contact-form-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    height: 100%;
}

.contact-details-card h2,
.contact-form-card h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
    font-family: 'Archivo Black', sans-serif;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Contact Info Items */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-icon i {
    color: var(--primary);
    font-size: 18px;
}

.contact-icon.whatsapp {
    background: rgba(37, 211, 102, 0.1);
}

.contact-icon.whatsapp i {
    color: #25d366;
}

.contact-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.contact-content p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.contact-content a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-content a:hover {
    opacity: 0.8;
}

.contact-note {
    display: block;
    color: var(--text-light);
    font-size: 13px;
    margin-top: 3px;
    font-style: italic;
}

/* Office Hours */
.office-hours {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.office-hours h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.office-hours h4 i {
    color: var(--primary);
}

.hours-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hour-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.hour-row span:first-child {
    color: var(--text);
    font-weight: 500;
}

.hour-row span:last-child {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}

/* Social Contact */
.social-contact {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-contact h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon.whatsapp {
    background: #25d366;
}

.social-icon.phone {
    background: var(--primary);
}

.social-icon.email {
    background: var(--secondary);
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Form Styling */
.contact-form-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-card .form-group {
    margin-bottom: 20px;
}

.contact-form-card label {
    display: block;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea {
    width: 100%;
    background: var(--darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 14px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.contact-form-card select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px;
}

.contact-form-card textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.contact-form-card .form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #0066ff);
    color: var(--dark);
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form-card .form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.contact-form-card .form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .contact-two-panel {
        gap: 30px;
    }
    
    .contact-details-card,
    .contact-form-card {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .map-directions {
        margin-top: 70px;
    }
    
    .map-directions .map-container {
        height: 300px;
    }
    
    .contact-two-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-section {
        padding-top: 40px;
        padding-bottom: 60px;
    }
    
    .contact-details-card h2,
    .contact-form-card h2 {
        font-size: 1.8rem;
    }
    
    .contact-form-card .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-info-item {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .map-directions .map-container {
        height: 250px;
    }
    
    .contact-details-card,
    .contact-form-card {
        padding: 25px 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 16px;
    }
    
    .hour-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
/* ===== GALLERY SLIDESHOW STYLES ===== */
.gallery-slideshow-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-slide {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
    margin-bottom: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.main-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 30px;
    color: white;
}

.slide-info h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: white;
}

.slide-info p {
    color: var(--text-light);
    font-size: 1rem;
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.slideshow-nav {
    display: flex;
    gap: 10px;
}

.slideshow-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.slideshow-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.slide-counter {
    color: var(--text);
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.2rem;
    min-width: 80px;
    text-align: center;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.thumbnail {
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px;
    font-size: 10px;
    text-align: center;
    display: none;
}

.thumbnail:hover .thumbnail-label {
    display: block;
}

/* Category filters */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
}

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Gallery Hero Section */
/* ===== GALLERY HERO (Specific to gallery.html only) ===== */
body[data-page="gallery"] .page-hero {
    background-image: /*linear-gradient(rgba(5, 5, 8, 0.7), rgba(5, 5, 8, 0.7)), */
                      url('/assets/images/projects/vamos\ \(6\).jpg');
    min-height: 50vh; /* Shorter than main page hero */
    height: 50vh;
}

body[data-page="gallery"] .page-hero h1 {
    font-size: 3rem; /* Slightly smaller than main page */
    margin-bottom: 15px;
}

body[data-page="gallery"] .page-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Remove the old gallery-hero styles completely */
/* DELETE THESE IF THEY EXIST: 
.gallery-hero {
    background-image: linear-gradient(rgba(5, 5, 8, 0.7), rgba(5, 5, 8, 0.7)), 
                      url('/assets/images/projects/vamos\ \(6\).jpg');
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 80px 24px 0 24px;
}

.gallery-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(5, 5, 8, 0.85),
        rgba(5, 5, 8, 0.65)
    );
    z-index: 1;
}

.gallery-hero .hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 24px;
    width: 100%;
    text-align: center;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--white), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-hero .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
*/

/* Load More Button */
.load-more-container {
    text-align: center;
    margin: 40px 0 20px;
}

.load-more-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 12px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.load-more-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.load-more-btn .spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.load-more-btn.loading .spinner {
    display: inline-block;
}

.load-more-btn.loading .btn-text {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .gallery-hero {
        min-height: 50vh;
        padding: 60px 20px 0 20px;
    }
    
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    
    .gallery-hero .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .main-slide {
        height: 400px;
    }
    
    .slide-info {
        padding: 20px;
    }
    
    .slide-info h3 {
        font-size: 1.4rem;
    }
    
    .slideshow-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .thumbnail {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-hero {
        min-height: 40vh;
        padding: 50px 15px 0 15px;
    }
    
    .gallery-hero h1 {
        font-size: 2rem;
    }
    
    .gallery-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .main-slide {
        height: 300px;
    }
    
    .slide-info {
        padding: 15px;
    }
    
    .slide-info h3 {
        font-size: 1.2rem;
    }
    
    .slide-info p {
        font-size: 0.9rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
    
    .thumbnail {
        height: 50px;
    }
}
/* ===== CLIENT LOGOS - OPTIMIZED WITH FADE ===== */

/* Fade gradients on edges */
.client-logos-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    
    /* Add fade mask */
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

/* Remove or hide the fade gradients if not needed */
.logos-fade {
    display: none; /* Remove boxes/fades */
}

.logo-track {
    display: flex;
    gap: 10px; /* Slightly reduced for better performance */
    width: max-content;
    animation: slide 200s linear infinite;
    
     /* Minimal performance optimizations */
    will-change: transform;
    transform: translateZ(0);
    
    padding: 0;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 300px;
    
    /* GPU acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.logo-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85;
    transition: all 0.3s ease;
    
    /* Image optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
}

/* Simplified hover for performance */
.logo-item:hover img {
    opacity: 1;
    transform: scale(1.05); /* Reduced from 1.08 */
}


/* INFINITE LOOP - optimized with translate3d */
/*@keyframes slide {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        /* Simplified calculation for better performance */
        /*transform: translate3d(-50%, 0, 0);
    }
}*/
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Calculate based on average logo count */
        /* Formula: -(logo width + gap) × number of logos / 2 */
        transform: translateX(calc(-1 * (400px + 10px) * 24));
        /* 400px logo width + 10px gap × 12 logos (half of 24) */
    }
}

/* Pause on hover */
.client-logos-container:hover .logo-track {
    animation-play-state: paused;
}

/* Loading state to prevent initial jitter */
.logo-track.loading {
    animation: none;
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
    .logo-item {
        width: 320px;
        height: 250px;
    }
    
    .logo-track {
        gap: 35px;
    }
      @keyframes slide {
        100% { transform: translateX(calc(-1 * (320px + 35px) * 24)); }
    }
}

@media (max-width: 1200px) {
    .logo-item {
        width: 280px;
        height: 200px;
    }
    
    .logo-track {
        gap: 30px;
    }

     @keyframes slide {
        100% { transform: translateX(calc(-1 * (280px + 30px) * 24)); }
    }
}

@media (max-width: 992px) {
    .logo-item {
        width: 240px;
        height: 180px;
    }
    
    .logo-track {
        gap: 25px;
    }

    @keyframes slide {
        100% { transform: translateX(calc(-1 * (240px + 25px) * 24)); }
    }
}

@media (max-width: 768px) {
    .logo-item {
        width: 200px;
        height: 200px;
    }
    
    .logo-track {
        gap: 20px;
        animation-duration: 150s;
        animation-delay: 0.3s; /* Shorter delay on mobile */
    }

    @keyframes slide {
        100% { transform: translateX(calc(-1 * (200px + 20px) * 24)); }
    }
}

@media (max-width: 576px) {
    .logo-item {
        width: 160px;
        height: 180px;
    }
    
    .logo-track {
        gap: 15px;
        animation-duration: 100s;
        animation-delay: 0.2s;
    }
    @keyframes slide {
        100% { transform: translateX(calc(-1 * (160px + 15px) * 24)); }
    }
}

@media (max-width: 400px) {
    .logo-item {
        width: 140px;
        height: 150px;
    }
    
    .logo-track {
        gap: 12px;
    }
    @keyframes slide {
        100% { transform: translateX(calc(-1 * (140px + 12px) * 24)); }
    }
}
/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
    color: white;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .tier-grid { gap: 20px; }
    .tier-card { padding: 20px; }
}

@media (max-width: 1024px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.3rem; }
    
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
    
    .page-hero { min-height: 75vh; height: 75vh; }
    
    .image-break { min-height: 50vh; padding: 60px 24px; }
    .image-break-content h2 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    .page-hero { 
        min-height: 70vh; 
        height: 70vh;
        padding: 80px 20px 0 20px; /* Keep top padding on mobile */
    }
    
    .page-hero h1 { font-size: 2.5rem; }
    .page-hero .hero-subtitle { font-size: 1.1rem; }
    
    h2 { font-size: 2rem; }
    .section { padding: 60px 20px; }
    .hero-stats { gap: 30px; }
    .stat-number { font-size: 2.5rem; }
    
    .tier-grid { grid-template-columns: 1fr; gap: 30px; }
    .tier-card { padding: 25px; }
    
    .image-break { 
        min-height: 40vh; 
        padding: 40px 20px;
    }
    
    .image-break-content h2 { font-size: 1.8rem; }
    .image-break-content p { font-size: 1rem; }
    
    .map-section,
    .padel-tiers,
    .flooring-section,
    .clients-section {
        padding: 30px 20px;
        margin: 40px 20px;
        border-radius: 20px;
    }
    
    .pakistan-map { height: 300px; }
}

@media (max-width: 480px) {
    .page-hero { 
        min-height: 60vh; 
        height: 60vh;
    }
    
    .page-hero h1 { font-size: 2rem; }
    .page-hero .hero-subtitle { font-size: 1rem; }
    
    .image-break { 
        min-height: 35vh; 
        padding: 30px 15px;
    }
    
    .image-break-content h2 { font-size: 1.5rem; }
    
    .logo-item {
        width: 150px;
        height: 100px;
    }
}
/* ===== SPORTS PAGE BACKGROUNDS ===== */

/* Hero + Multi-Sports Background */
.sports-hero-bg {
    background-image: url('/assets/images/projects/alpha.jpg');
}

/* Flooring Section Background */
.sports-flooring-bg {
    background-image: url('/assets/images/projects/badminton.jpg');
}

/* ===== SPORTS PAGE SPECIFIC STYLING ===== */

/* Sports showcase cards for dark background */
.sports-hero-bg .sports-showcase {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sports-hero-bg .sport-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.sports-hero-bg .sport-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.sports-hero-bg .sport-card h4 {
    color: #fff;
}

.sports-hero-bg .sport-card p {
    color: rgba(255, 255, 255, 0.85);
}

.sports-hero-bg .sport-image {
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.sports-hero-bg .sport-card:hover .sport-image {
    transform: scale(1.05);
}

.sports-hero-bg .feature-tag {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
}

/* new sports sections */
/* ===== SPORTS SHOWCASE ===== */
.sports-showcase {
    margin-top: 0px;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sport-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Slightly reduced from original but balanced */
}

.sport-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.sport-image {
    height: 220px; /* Increased from 180px, original was 220px */
    background: linear-gradient(135deg, var(--gray), var(--light-gray));
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.sport-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    padding-top: 40px; /* More padding at top of overlay for gradient */
}

.sport-image-overlay h3 {
    color: white;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sport-info {
    padding: 20px;
    position: relative;
    z-index: 2;
    flex-grow: 1; /* Take available space */
    display: flex;
    flex-direction: column;
}

/* Updated Features Grid - 2x2 Layout */
.sport-features-mini {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns */
    grid-template-rows: auto auto; /* 2 rows */
    gap: 8px;
    margin-top: auto; /* Push to bottom of sport-info */
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 84px; /* Fixed height for consistent spacing (2 rows * tag height + gap) */
}

/* Ensure 2x2 layout even with fewer features */
.sport-features-mini:has(:nth-child(1):nth-last-child(1)) {
    /* If only 1 feature, make it span both columns */
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.sport-features-mini:has(:nth-child(2):nth-last-child(2)) {
    /* If exactly 2 features, put them in first row */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
}

.sport-features-mini:has(:nth-child(3):nth-last-child(3)) {
    /* If exactly 3 features, 2 in first row, 1 in second spanning 2 columns */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
}

.sport-features-mini:has(:nth-child(3):nth-last-child(3)) .feature-tag:nth-child(3) {
    grid-column: span 2; /* Make 3rd feature span both columns */
    justify-self: center; /* Center it */
    width: 50%; /* Make it narrower to look centered */
}

.feature-tag {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    padding: 6px 8px; /* Adjusted padding */
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px; /* Fixed height for consistent 2x2 grid */
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

/* Sports showcase cards for dark background */
.sports-hero-bg .sports-showcase {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sports-hero-bg .sport-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.sports-hero-bg .sport-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.sports-hero-bg .sport-card h4 {
    color: #fff;
}

.sports-hero-bg .sport-card p {
    color: rgba(255, 255, 255, 0.85);
}

.sports-hero-bg .sport-image {
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.sports-hero-bg .sport-card:hover .sport-image {
    transform: scale(1.05);
}

.sports-hero-bg .feature-tag {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.sports-hero-bg .sport-card:hover .feature-tag {
    background: rgba(0, 212, 255, 0.25);
    border-color: var(--primary);
}

/* Ensure consistent card heights */
.sports-grid {
    align-items: stretch; /* Make all cards stretch to same height */
}

/* For cards with no features - hide the section */
.sport-features-mini:empty {
    display: none;
    min-height: 0;
    padding-top: 0;
    border-top: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sports-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .sport-card {
        min-height: 340px;
    }
    
    .sport-image {
        height: 190px;
    }
    
    .sport-info {
        padding: 18px;
    }
    
    .sport-features-mini {
        gap: 6px;
        min-height: 78px; /* Slightly smaller on mobile */
    }
    
    .feature-tag {
        font-size: 10px;
        padding: 5px 6px;
        min-height: 30px;
    }
}

@media (max-width: 480px) {
    .sports-grid {
        grid-template-columns: 1fr;
    }
    
    .sport-card {
        min-height: 320px;
    }
    
    .sport-image {
        height: 180px;
    }
    
    .sport-features-mini {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns on mobile */
        min-height: 70px;
    }
}
/* Flooring section styling for dark background */
.sports-flooring-bg .flooring-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sports-flooring-bg .flooring-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: var(--transition);
}

.sports-flooring-bg .flooring-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.sports-flooring-bg .flooring-card h4 {
    color: #fff;
}

.sports-flooring-bg .flooring-card h4 i {
    color: var(--accent);
    margin-right: 10px;
}

.sports-flooring-bg .flooring-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.sports-flooring-bg .flooring-card ul {
    margin-top: 15px;
}

.sports-flooring-bg .flooring-card li {
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 0;
}

.sports-flooring-bg .flooring-card li:before {
    color: var(--accent);
}

/* ===== RESPONSIVE ADJUSTMENTS FOR SPORTS PAGE ===== */
@media (max-width: 1024px) {
    .sports-hero-bg .sports-showcase,
    .sports-flooring-bg .flooring-section {
        padding: 30px;
    }
    
    .sports-grid,
    .flooring-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .sports-hero-bg .sports-showcase,
    .sports-flooring-bg .flooring-section {
        padding: 25px 20px;
    }
    
    .sports-grid,
    .flooring-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .sports-hero-bg .sport-card,
    .sports-flooring-bg .flooring-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .sports-hero-bg .sports-showcase,
    .sports-flooring-bg .flooring-section {
        padding: 20px 15px;
    }
    
    .sports-hero-bg .sport-card,
    .sports-flooring-bg .flooring-card {
        padding: 18px 15px;
    }
    
    .sports-hero-bg .sport-image {
        height: 180px;
    }
}
/* Specific tight spacing for clients section */
.clients-section.tight-spacing {
    padding: 30px 24px 30px !important;
    margin-top: 20px !important; /* Add this - pushes entire container down */
}

.clients-section.tight-spacing .section-title {
    margin-bottom: 30px !important;
}

.clients-section.tight-spacing .section-title h2 {
    margin-bottom: 10px !important;
}

.clients-section.tight-spacing .section-title p {
    margin-bottom: 0 !important;
}
/* ===== CRITICAL FIX: MOBILE MENU ABOVE ALL OVERLAYS ===== */
/* This must be at the end to override all other rules */

@media (max-width: 768px) {
    /* When mobile menu is active, ensure it's above EVERYTHING */
    .nav-links.active {
        z-index: 2147483647 !important; /* Maximum z-index value */
        transform: translateX(0) !important;
    }
    
    /* Force the menu to be visible during debugging */
    .nav-links {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Override any background overlays that might be covering */
    .shared-bg-section::before,
    .page-hero::before,
    .image-break::before,
    .shared-bg-section > *::before {
        z-index: auto !important;
        display: none !important; /* TEMPORARY: Hide overlays to test */
    }
}
/* ===== TESTIMONIALS BACKGROUND ===== */
.testimonials-bg {
    background-image: url('/assets/images/projects/vamos\ \(5\).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    padding: 100px 24px;
    isolation: isolate;
    overflow: hidden;
}

/* Optional: If you want a gradient overlay instead of dark overlay */
.testimonials-bg:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 60, 113, 0.85) 0%, rgba(0, 30, 60, 0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Content should be above overlay */
.testimonials-bg > .section {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure testimonial cards work with background */
.testimonials-bg .section-title h2 {
    color: #ffffff;
}

.testimonials-bg .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

/* Update testimonial card styling for dark background */
.testimonials-bg .testimonial-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 25px;
    transition: var(--transition);
}

.testimonials-bg .testimonial-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.15);
}

.testimonials-bg .testimonial-content p {
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    font-size: 16px;
    line-height: 1.6;
}

.testimonials-bg .testimonial-author strong {
    color: #fff;
    font-size: 16px;
}

.testimonials-bg .testimonial-author span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}
/* Quick Info Grid */
/* Quick Info Grid - Desktop: 2x2, Mobile: Carousel */
.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 on desktop */
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    margin-top: 2.5rem;
}
@media (max-width: 768px) {
    /* Quick info grid swipe container */
    .quick-info-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 25px !important;
        padding: 20px 16px 30px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 40px !important;
        scrollbar-width: none !important;
        grid-template-columns: none !important;
        max-width: none !important;
        text-align: center !important;
    }
    
    /* Hide scrollbar */
    .quick-info-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Quick info items (info cards) */
    .info-card {
        flex: 0 0 70vw !important;
        min-width: 70vw !important;
        max-width: 70vw !important;
        scroll-snap-align: start !important;
        padding: 25px 20px !important;
        background: var(--bg-light) !important;
        border-radius: 16px !important;
        border: 1px solid var(--border) !important;
        border-top: 4px solid var(--primary) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
        margin-right: 0 !important;
    }
    
    /* Remove hover effects on mobile */
    .info-card:hover {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
    }
    
    /* Info icons */
    .info-icon {
        font-size: 32px !important;
        color: var(--primary) !important;
        width: 70px !important;
        height: 70px !important;
        background: rgba(37, 99, 235, 0.1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    
    /* Info content */
    .info-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    .info-content h4 {
        font-size: 16px !important;
        color: var(--text) !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }
    
    .info-content p {
        font-size: 14px !important;
        color: var(--text-light) !important;
        line-height: 1.5 !important;
        margin: 0 !important;
    }
    
    /* Last item extra space */
    .info-card:last-child {
        margin-right: 20px !important;
    }
    /* Arrow removed from here */
}
/* Info Card Styling */
.info-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-top: 4px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top-color: var(--primary-dark);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h4 {
    margin-bottom: 0.8rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
}

.info-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Tech Specs */
.tech-specs {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.tech-specs summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    padding: 0.5rem;
}

.tech-specs ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.tech-specs li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Modal CTA */
.modal-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.quote-prefill-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
}

.quote-prefill-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.cta-note {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .quick-info-grid {
        grid-template-columns: 1fr;
    }
    
    .main-product-image {
        height: 250px;
    }
    
    .product-thumbnails img {
        width: 60px;
        height: 45px;
    }
}
/* ===== WIDE CLEAN TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1400px; /* Same as your other sections */
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 35px 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 50px; /* Make them taller */
}

/* Elegant left border accent */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px 0 0 4px;
    opacity: 0.7;
}

.testimonial-card:hover::before {
    opacity: 1;
    width: 5px;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

/* Quote mark */
.testimonial-content {
    flex-grow: 1;
    margin-bottom: 30px;
    position: relative;
    padding-left: 30px; /* Space for the quote icon */
}

.testimonial-content::before {
    content: "❝";
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 40px;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    font-family: serif;
}

.testimonial-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.7;
    font-style: normal;
    margin: 0;
    font-weight: 400;
}

/* Author - clean and simple */
.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.testimonial-author strong {
    color: var(--primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.testimonial-author span {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    font-weight: 400;
}

/* Rating stars - subtle */
.testimonial-rating {
    display: flex;
    gap: 3px;
    margin-top: 8px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 14px;
    opacity: 0.9;
}

/* For background section */
.testimonials-bg .testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonials-bg .testimonial-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Responsive */
@media (max-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .testimonials-grid {
        max-width: 700px;
    }
    
    .testimonial-card {
        padding: 30px;
        min-height: 200px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 30px 25px;
        min-height: auto;
    }
    
    .testimonial-content {
        padding-left: 15px;
    }
    
    .testimonial-content::before {
        font-size: 35px;
        top: -8px;
    }
    
    .testimonial-content p {
        font-size: 15.5px;
        line-height: 1.65;
    }
}

@media (max-width: 480px) {
    .testimonials-grid {
        max-width: 100%;
    }
    
    .testimonial-card {
        padding: 25px 22px;
        border-radius: 14px;
    }
    
    .testimonial-content {
        padding-left: 0;
        margin-bottom: 25px;
    }
    
    .testimonial-content::before {
        position: relative;
        top: 0;
        display: block;
        margin-bottom: 15px;
        font-size: 32px;
    }
    
    .testimonial-author strong {
        font-size: 16px;
    }
    
    .testimonial-author span {
        font-size: 13px;
    }
}
/* ===== CREDIBILITY STRIP - UPDATED ===== */
.cred-strip {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cred-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    z-index: 1;
    opacity: 0.7;
}

.cred-item {
    text-align: center;
    flex: 1;
    padding: 0 10px;
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.cred-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.08);
}

/* FINAL CTA SECTION - STYLING */
.section.final-cta {
    text-align: center;
    padding: 60px 24px 80px !important;
    margin-top: 20px;
}

.section.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
}

.section.final-cta p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.section.final-cta .cta-button {
    background: linear-gradient(135deg, var(--primary), #0066ff);
    color: var(--dark);
    padding: 16px 36px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.section.final-cta .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .cred-strip {
        max-width: 700px;
        padding: 22px;
    }
    
    .cred-item {
        font-size: 13.5px;
        padding: 0 8px;
    }
    
    .section.final-cta h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .cred-strip {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        max-width: 500px;
        margin: 30px auto;
    }
    
    .cred-item {
        padding: 12px 0;
        font-size: 14px;
        width: 100%;
    }
    
    .cred-item:not(:last-child)::after {
        display: none;
    }
    
    .cred-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 20px;
    }
    
    .section.final-cta {
        padding: 50px 20px 70px !important;
    }
    
    .section.final-cta h2 {
        font-size: 2rem;
    }
    
    .section.final-cta p {
        font-size: 1rem;
        margin-bottom: 35px;
    }
}

@media (max-width: 480px) {
    .cred-strip {
        padding: 18px 16px;
        margin: 25px auto;
        border-radius: 10px;
        gap: 18px;
    }
    
    .cred-item {
        font-size: 13px;
        padding: 10px 0;
        line-height: 1.5;
    }
    
    .cred-item:not(:last-child) {
        padding-bottom: 18px;
    }
    
    .section.final-cta {
        padding: 40px 15px 60px !important;
    }
    
    .section.final-cta h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .section.final-cta p {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    
    .section.final-cta .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}
/* ===== CREDIBILITY STRIP - FIXED FOR INSIDE SHARED BG ===== */

.cred-strip {
    background: rgba(255, 255, 255, 0.08) !important; /* Lighter for better contrast on dark bg */
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 16px !important;
    max-width: 800px !important;
    margin: 40px auto !important; /* Reduced from 60px */
    padding: 25px 30px !important; /* Better proportions */
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
    height: auto !important; /* Ensure it doesn't get constrained */
    min-height: 80px !important; /* Minimum height */
    margin-bottom: 60px !important; /* Space before CTA */
}

.cred-strip::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, var(--primary), transparent) !important;
    z-index: 1 !important;
    opacity: 0.8 !important;
}

.cred-item {
    text-align: center !important;
    flex: 1 !important;
    padding: 10px 15px !important; /* Added vertical padding */
    position: relative !important;
    font-size: 16px !important; /* Slightly larger */
    font-weight: 500 !important;
    color: var(--white) !important; /* White for better contrast */
    letter-spacing: 0.3px !important;
    line-height: 1.5 !important;
    min-height: 60px !important; /* Ensure items have height */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cred-item:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    width: 1px !important;
    height: 40px !important; /* Taller divider */
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Fix for shared background sections specifically */
.shared-bg-section .cred-strip {
    margin: 40px auto !important; /* Even less margin inside shared bg */
}

/* Responsive */
@media (max-width: 1024px) {
    .cred-strip {
        max-width: 700px !important;
        padding: 20px 25px !important;
        min-height: 70px !important;
    }
    
    .cred-item {
        font-size: 15px !important;
        padding: 8px 12px !important;
        min-height: 50px !important;
    }
}

@media (max-width: 768px) {
    .cred-strip {
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        max-width: 500px !important;
        margin: 25px auto !important;
        min-height: auto !important;
    }
    
    .cred-item {
        padding: 12px 0 !important;
        font-size: 15px !important;
        width: 100% !important;
        min-height: 45px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .cred-item:not(:last-child)::after {
        display: none !important;
    }
    
    .cred-item:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-bottom: 15px !important;
    }
    
    .cred-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .cred-strip {
        padding: 18px 16px !important;
        margin: 20px auto !important;
        border-radius: 12px !important;
        gap: 12px !important;
    }
    
    .cred-item {
        font-size: 14px !important;
        padding: 10px 0 !important;
        min-height: 40px !important;
    }
    
    .cred-item:not(:last-child) {
        padding-bottom: 12px !important;
    }
}
/* ===== CRITICAL LAYOUT FIXES FOR PADEL PAGE ===== */

/* FIX 1: Proper section spacing and alignment */
.shared-bg-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* FIX 2: Center all section titles properly */
.section-title {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto 60px;
    padding: 0 24px;
}

/* FIX 3: Fix hero section layout */
.padel-hero-bg .transparent-section {
    width: 100%;
    max-width: 1280px;
    
    margin: 0 auto;
    padding: 0px 24px 40px;
}

.padel-hero-bg .section-title h1 {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 20px;
}

.padel-hero-bg .section-title p {
    font-size: 1.2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

/* FIX 4: Feature comparison grid centering */
.feature-icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: center;
}

.feature-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0px;
    min-height: 180px;
}

.feature-icon-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-icon-item p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-light);
}

.feature-icon-item span {
    font-size: 14px;
    color: var(--text);
    opacity: 0.8;
    display: block;
    margin-top: 5px;
}

/* FIX 5: Gallery grid improvements */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 24px;
}

.gallery-grid .section-title {
    grid-column: 1 / -1;
    margin-bottom: 0px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

/* FIX 6: Partner grid alignment */
/*.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}*/

/* FIX 7: Tier grid improvements */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 24px;
}

.tier-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    text-align: center;
}

.tier-features {
    flex-grow: 1;
    margin: 20px 0;
    text-align: left;
    padding-left: 20px;
}

.tier-features li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
}

.tier-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* FIX 8: Centered CTA button */
.centered-cta {
    text-align: center;
    margin-top: 40px;
    padding: 0 24px;
}

.centered-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

/* FIX 9: Fine note styling */
.fine-note {
    text-align: center;
    margin-top: 0px;
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

.tier-note {
    text-align: center;
    margin-top: 40px;
    color: var(--text);
    font-size: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* FIX 10: Remove duplicate section-title from gallery */
.gallery-grid .section-title {
    display: none; /* Hide the duplicate title */
}

/* Only show the main section title */
.gallery-grid > .section-title:first-child {
    display: block;
}

/* ===== RESPONSIVE FIXES ===== */

@media (max-width: 1024px) {
    .feature-icon-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tier-card.premium {
        grid-column: 1 / -1;
        transform: none;
    }
}

@media (max-width: 768px) {
    /* Mobile adjustments */
    .padel-hero-bg .section-title h1 {
        font-size: 2.5rem;
    }
    
    .padel-hero-bg .section-title p {
        font-size: 1.1rem;
    }
    
    .feature-icon-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 400px;
    }
    
    .feature-icon-item {
        min-height: auto;
        padding: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .partner-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .tier-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .tier-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .padel-hero-bg .section-title h1 {
        font-size: 2rem;
    }
    
    .padel-hero-bg .section-title p {
        font-size: 1rem;
    }
    
    .feature-icon-item i {
        font-size: 32px;
    }
    
    .feature-icon-item p {
        font-size: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* FIX 11: Ensure consistent section widths */
.section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* FIX 12: Properly align content inside shared background sections */
.shared-bg-section > section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* FIX 13: Add proper spacing between sections */
.shared-bg-section > section + section {
    margin-top: 0px;
}

/* FIX 14: Fix text contrast in background sections */
.shared-bg-section .section-title h2 {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.shared-bg-section .section-title p {
    color: rgba(255, 255, 255, 0.9);
}

/* FIX 15: Make sure all text is properly centered */
.section-title h1,
.section-title h2,
.section-title p,
.fine-note,
.tier-note {
    text-align: center;
}

/* FIX 16: Fix padding issues in testimonials background section */
.padel-testimonials-bg .section {
    background: transparent;
    padding: 80px 24px;
}

/* FIX 17: Ensure proper z-index for content */
.shared-bg-section .section,
.shared-bg-section .transparent-section {
    position: relative;
    z-index: 10;
}

/* FIX 18: Fix button alignment in tier cards */
.tier-card .consult-cta {
    margin-top: auto;
    text-align: center;
    padding: 12px 20px;
}

/* ===== CONSISTENT SHARED BACKGROUND SECTIONS ===== */

/* RESET and Standardize all shared background sections */
.shared-bg-section {
    position: relative !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    color: #fff !important;
    padding: 80px 40px !important; /* Standard padding for all */
    margin: 0 !important;
    isolation: isolate !important;
    overflow: hidden !important;
}

/* Override any page-specific padding that might be interfering */
.hero-home-bg,
.hero-padel-bg,
.hero-sports-bg,
.padel-hero-bg,
.padel-testimonials-bg,
.sports-hero-bg,
.sports-flooring-bg,
.engineering-bg-section,
.map-bg-section {
    padding: 200px 40px !important; /* Force same padding for all */
}

/* Ensure consistent content container */
.shared-bg-section > .section,
.shared-bg-section > .transparent-section,
.shared-bg-section > section {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 !important; /* Remove inner padding, let outer container handle it */
    background: transparent !important;
}

/* Reset any specific overrides for padel hero */
.padel-hero-bg .transparent-section {
    padding: 0 !important; /* Remove the problematic padding */
    min-height: auto !important;
}

/* Hero title consistency */
.shared-bg-section .section-title h1 {
    font-size: 3.5rem !important;
    margin-bottom: 25px !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.shared-bg-section .section-title p {
    font-size: 1.3rem !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto 40px !important;
    margin-bottom: 50px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Standardize section spacing inside shared backgrounds */
.shared-bg-section > section + section {
    margin-top: 80px !important;
    padding-top: 0 !important;
}

/* Fix the overlay consistency */
.shared-bg-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(5, 5, 8, 0.7) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* Ensure content is above overlay */
.shared-bg-section > * {
    position: relative !important;
    z-index: 2 !important;
}
/* For ALL shared background sections */
.shared-bg-section > .transparent-section:first-child .section-title {
    margin-bottom: 80px !important; /* Space after hero heading/paragraph */
}
/* Mobile consistency */
/*@media (max-width: 1024px) {
    .shared-bg-section {
        padding: 100px 24px !important;
        background-attachment: scroll !important; /* Disable parallax on tablet 
    }
    
    .shared-bg-section .section-title h1 {
        font-size: 3rem !important;
    }
}*/

@media (max-width: 768px) {
    .shared-bg-section {
        padding: 200px 20px !important;
    }
    
    .shared-bg-section .section-title h1 {
        font-size: 2.5rem !important;
    }
    
    .shared-bg-section .section-title p {
        font-size: 1.1rem !important;
    }
    
    .shared-bg-section > section + section {
        margin-top: 60px !important;
    }
}

@media (max-width: 480px) {
    .shared-bg-section {
        padding: 120px 15px !important;
    }
    
    .shared-bg-section .section-title h1 {
        font-size: 2rem !important;
    }
    
    .shared-bg-section .section-title p {
        font-size: 1rem !important;
    }
}
/* ===== DECREASE SPACE AFTER SHARED BACKGROUND SECTIONS ===== */

/* Remove excessive spacing after shared background sections */
.shared-bg-section {
    margin-bottom: 0 !important; /* Remove default margin */
    padding-bottom: 0 !important; /* Remove default padding */
}

/* Reduce space between shared bg section and next regular section */
.shared-bg-section + .section {
    margin-top: 20px !important; /* Minimal space */
    padding-top: 40px !important; /* Reduced padding */
}

/* If the next section is also a shared background, reduce spacing */
.shared-bg-section + .shared-bg-section {
    margin-top: 20px !important; /* Minimal gap between bg sections */
}

/* Specifically for padel page structure */
.padel-testimonials-bg + .section {
    margin-top: 0 !important;
    padding-top: 60px !important;
}

/* Control the last section inside shared background */
.shared-bg-section > .section:last-child {
    padding-bottom: 60px !important; /* Reduced from 120px */
    margin-bottom: 0 !important;
}

/* Remove any extra padding from the shared bg container itself */
.shared-bg-section {
    padding: 120px 40px 40px !important; /* Top: 120px, sides: 40px, bottom: 40px */
}

/* Mobile adjustments */
@media (max-width: 1024px) {
    .shared-bg-section + .section {
        margin-top: 15px !important;
        padding-top: 30px !important;
    }
    
    .shared-bg-section > .section:last-child {
        padding-bottom: 40px !important;
    }
    
    .shared-bg-section {
        padding: 80px 24px 30px !important;
    }
}

@media (max-width: 768px) {
    .shared-bg-section + .section {
        margin-top: 10px !important;
        padding-top: 25px !important;
    }
    
    .shared-bg-section > .section:last-child {
        padding-bottom: 30px !important;
    }
    
    .shared-bg-section {
        padding: 60px 20px 20px !important;
    }
}

@media (max-width: 480px) {
    .shared-bg-section + .section {
        margin-top: 5px !important;
        padding-top: 20px !important;
    }
    
    .shared-bg-section > .section:last-child {
        padding-bottom: 25px !important;
    }
    
    .shared-bg-section {
        padding: 50px 15px 15px !important;
    }
}
/* Product Gallery */
.product-gallery {
    margin-bottom: 2rem;
}

.main-product-image {
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}




/* ===== NUCLEAR OPTION: FORCE OVERLAY OPACITY ===== */
/* This will force overlays to work on mobile */

/* 1. For shared background sections */
.shared-bg-section::before {
    background: rgba(5, 5, 8, 0.6) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 1 !important;
}

/* 2. For hero sections */
.page-hero::before {
    background: linear-gradient(
        rgba(5, 5, 8, 0.85),
        rgba(5, 5, 8, 0.65)
    ) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 1 !important;
}

/* 3. For image break sections */
.image-break::before {
    background: rgba(0, 0, 0, 0.45) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    z-index: 1 !important;
}

/* 4. MOBILE SPECIFIC OVERRIDE */
@media (max-width: 768px) {
    /* Force all overlays to be visible and correct opacity */
    .shared-bg-section::before,
    .page-hero::before,
    .image-break::before,
    .hero-home-bg::before,
    .hero-padel::before,
    .hero-sports::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(5, 5, 8, 0.6) !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        z-index: 1 !important;
        pointer-events: none !important;
    }
    
    /* Specific darker overlays for certain sections */
    .page-hero::before {
        background: linear-gradient(
            rgba(5, 5, 8, 0.9),
            rgba(5, 5, 8, 0.75)
        ) !important;
    }
    
    .image-break::before {
        background: rgba(0, 0, 0, 0.6) !important;
    }
}
/* Tablet */
@media (max-width: 1024px) {
    .shared-bg-section .section-title h1 {
        margin-top: 80px !important; /* Header height */
    }
}
/* Mobile */
@media (max-width: 768px) {

    /* Target ONLY hero headings inside shared BG sections */
    .shared-bg-section .section-title h1 {
        margin-top: 100px !important; /* 80px header + buffer */
    }

}
/* ===== PRODUCT GALLERY - SINGLE IMAGE CAROUSEL ===== */

.product-gallery {
    margin-top: 30px;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px; /* Fixed height */
}

/* Image slider container */
.image-slider {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* Individual images in slider */
.image-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.image-slider img.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===== DESKTOP: NAVIGATION ARROWS ===== */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
    border: none;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ===== MOBILE: SWIPE CAROUSEL ===== */
@media (max-width: 768px) {
    .main-image-container {
        height: 250px;
        overflow: hidden;
        position: relative;
        touch-action: pan-y pinch-zoom;
    }
    
    /* Hide desktop arrows on mobile */
    .gallery-prev,
    .gallery-next {
        display: none;
    }
    
    /* Mobile dots indicator */
    .gallery-dots {
        position: absolute;
        bottom: 15px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        z-index: 10;
    }
    
    .gallery-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        border: none;
        padding: 0;
        cursor: pointer;
    }
    
    .gallery-dot.active {
        background: var(--primary);
        transform: scale(1.2);
    }
}

/* ===== VERY SMALL MOBILE ===== */
@media (max-width: 480px) {
    .main-image-container {
        height: 200px;
    }
}
/* ===== IMAGE SLIDER - MAKE IT SCROLLABLE LIKE OTHER GRIDS ===== */
@media (max-width: 768px) {
    .image-slider {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        width: 100%;
        height: 100%;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .image-slider::-webkit-scrollbar {
        display: none;
    }
    
    .image-slider img {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        object-fit: cover;
        scroll-snap-align: start;
        position: relative !important; /* Override absolute positioning */
        opacity: 1 !important; /* Always visible in scroll mode */
        pointer-events: auto !important;
    }
    
    /* Remove opacity transitions for mobile */
    .image-slider img.active {
        opacity: 1 !important;
    }
}
/* ===== DESKTOP: KEEP OPACITY TRANSITIONS ===== */
@media (min-width: 769px) {
    .image-slider {
        display: block; /* Not flex on desktop */
        overflow: visible; /* Not scrollable */
    }
    
    .image-slider img {
        position: absolute;
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    
    .image-slider img.active {
        opacity: 1;
    }
}
/* ===== IMAGE SLIDER - SCROLLABLE ON BOTH DESKTOP & MOBILE ===== */
.image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth; /* Smooth scrolling for arrow clicks */
}

/* Hide scrollbar on all devices */
.image-slider::-webkit-scrollbar {
    display: none;
}

.image-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

/* ===== DESKTOP ARROWS ===== */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
    border: none;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
    .gallery-prev,
    .gallery-next {
        display: none;
    }
}
/* ===== IMAGE SLIDER - SCROLLABLE ON BOTH DESKTOP & MOBILE ===== */
.product-gallery {
    margin-top: 30px;
}

.main-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px; /* Fixed height */
}

.image-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

/* Hide scrollbar */
.image-slider::-webkit-scrollbar {
    display: none;
}

.image-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

/* ===== DESKTOP ARROWS ===== */
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0.7;
    border: none;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* ===== MOBILE DOTS ===== */
.gallery-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    cursor: pointer;
}

.gallery-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-image-container {
        height: 250px;
    }
    
    /* Hide arrows on mobile */
    .gallery-prev,
    .gallery-next {
        display: none;
    }
}

@media (max-width: 480px) {
    .main-image-container {
        height: 200px;
    }
}
/* CRITICAL: Make sure image-slider is scrollable on desktop too */
.image-slider {
    display: flex;
    overflow-x: auto !important; /* Force scrollable */
    scroll-snap-type: x mandatory;
    width: 100%;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.image-slider::-webkit-scrollbar {
    display: none;
}
/* ===== IMAGE SLIDER - MUST BE FLEX ON DESKTOP TOO ===== */
.image-slider {
    display: flex !important; /* Force flex on all devices */
    overflow-x: auto !important; /* Force scrollable */
    scroll-snap-type: x mandatory !important;
    width: 100%;
    height: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.image-slider img {
    flex: 0 0 100% !important; /* Each image takes full width */
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    scroll-snap-align: start !important;
    /* REMOVE any absolute positioning */
    position: relative !important;
    opacity: 1 !important;
}

/* Hide scrollbar */
.image-slider::-webkit-scrollbar {
    display: none !important;
}

/* Remove any desktop-only CSS that overrides this */
@media (min-width: 769px) {
    /* DO NOT set images to position: absolute */
    /* DO NOT hide overflow */
    .image-slider {
        /* Keep flex and scrollable */
    }
}
/* ===== GALLERY SECTION ===== */

/* Desktop & Tablet - 3x1 Carousel */
.gallery-section {
    position: relative;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 40px;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.gallery-grid {
    display: flex;
    gap: 25px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing */
    padding: 10px 5px;
    margin: 0 -5px;
    cursor: grab;
    will-change: transform; /* Optimize for animation */
    backface-visibility: hidden; /* Improve performance */
    transform: translate3d(0, 0, 0); /* GPU acceleration */
}

.gallery-grid:active {
    cursor: grabbing;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    flex: 0 0 calc(33.333% - 17px); /* 3 items per view */
    min-width: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Desktop Navigation Controls */
.gallery-nav-desktop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.gallery-dots-desktop {
    display: flex;
    gap: 8px;
}

.gallery-dot-desktop {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.gallery-dot-desktop.active {
    background: var(--primary);
    transform: scale(1.3);
}

.gallery-prev-desktop,
.gallery-next-desktop {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-prev-desktop:hover,
.gallery-next-desktop:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.gallery-prev-desktop:disabled,
.gallery-next-desktop:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Desktop swipe hint */
.gallery-swipe-hint {
    text-align: center;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    animation: fadeInHint 1s ease 2s forwards;
}

@keyframes fadeInHint {
    to { opacity: 0.8; }
}

.gallery-swipe-hint i {
    color: var(--primary);
}

/* ===== MOBILE SWIPE CAROUSELS ===== */
@media (max-width: 768px) {
    .gallery-section {
        padding: 0 16px;
    }
    
    /* Mobile - Single item swipe */
    .gallery-container {
        overflow: visible;
        margin: 30px -16px 10px -16px; /* Added bottom margin for indicator */
        position: relative;
    }
    
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px 16px 25px 16px; /* Increased bottom padding for dots */
        margin-left: 0;
        margin-right: 0;
        -ms-overflow-style: none;
        scrollbar-width: none;
        scroll-behavior: smooth;
        transform: none !important; /* Override desktop transform */
    }
    
    .gallery-grid::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-item {
        flex: 0 0 85vw;
        min-width: 85vw;
        scroll-snap-align: start;
        height: 250px;
        flex-shrink: 0;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    /* Hide desktop navigation on mobile */
    .gallery-nav-desktop,
    .gallery-swipe-hint {
        display: none;
    }
    
    /* Mobile dots indicator - MAKE SURE THIS IS VISIBLE */
    .gallery-dots-mobile {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
        padding-bottom: 10px;
    }
    
    .gallery-dot-mobile {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transition: background 0.3s ease;
    }
    
    .gallery-dot-mobile.active {
        background: var(--primary);
    }
    
    /* Mobile swipe indicator */
    .gallery-grid::after {
        content: "";
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: rgba(0, 212, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        opacity: 0.7;
        animation: pulse-swipe 2s infinite;
    }
    
    .gallery-grid::after::before {
        content: "→";
        color: var(--primary);
        font-weight: bold;
        font-size: 16px;
    }
}

/* Tablet specific - 2 items per view */
@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-item {
        flex: 0 0 calc(50% - 12.5px); /* 2 items with gaps */
    }
    
    .gallery-section {
        padding: 0 30px;
    }
}

/* Small desktop */
@media (min-width: 1025px) and (max-width: 1200px) {
    .gallery-item {
        flex: 0 0 calc(33.333% - 17px); /* Keep 3 items */
    }
}

/* Large desktop */
@media (min-width: 1201px) {
    .gallery-section {
        padding: 0 40px;
    }
}

/* Performance optimization */
.gallery-grid * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

@keyframes pulse-swipe {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}
/* ===== MOBILE SWIPE CAROUSELS ===== */
@media (max-width: 768px) {
    /* 1. GALLERY SWIPE */
    .gallery-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px 16px 10px;
        margin-left: -16px;
        margin-right: -16px;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;     /* Firefox */
    }
    
    .gallery-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .gallery-item {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
        flex-shrink: 0;
        margin: 0;
        height: 250px;
    }
    
    /* 2. TIER CARDS SWIPE */
    .tier-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 20px 16px 30px;
        margin-left: -16px;
        margin-right: -16px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .tier-grid::-webkit-scrollbar {
        display: none;
    }
    
    .tier-card {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
        flex-shrink: 0;
        margin: 0;
        min-height: 380px;
    }
    
    /* Remove vertical stacking */
    .tier-grid {
        flex-direction: row !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* 3. SPORTS CARDS SWIPE */
    .sports-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px 16px 10px;
        margin-left: -16px;
        margin-right: -16px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .sports-grid::-webkit-scrollbar {
        display: none;
    }
    
    .sport-card {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
        flex-shrink: 0;
        margin: 0;
        height: 320px; /* Fixed height */
    }
    
    /* 4. SURFACE CARDS SWIPE */
    .surface-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px 16px 10px;
        margin-left: -16px;
        margin-right: -16px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .surface-grid::-webkit-scrollbar {
        display: none;
    }
    
    .surface-card {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
        flex-shrink: 0;
        margin: 0;
        height: 380px; /* Fixed height for consistency */
    }
    
    /* 5. PROJECT GALLERY SWIPE */
    .project-grid-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 20px 16px 10px;
        margin-left: -16px;
        margin-right: -16px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .project-grid-container::-webkit-scrollbar {
        display: none;
    }
    
    .project-grid-slot {
        min-width: 85vw;
        max-width: 85vw;
        scroll-snap-align: start;
        flex-shrink: 0;
        margin: 0;
        height: 250px;
    }
    
    /* Override grid layouts */
    .project-grid-container {
        grid-template-columns: none !important;
    }
    
    .project-grid-slot:nth-child(3) {
        grid-column: initial !important;
        max-width: 85vw !important;
    }
    
    /* 6. VISUAL INDICATOR FOR SWIPE */
    .sports-grid::after,
    .surface-grid::after,
    .tier-grid::after,
    .gallery-grid::after {
        content: "";
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: rgba(0, 212, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        opacity: 0.7;
        animation: pulse-swipe 2s infinite;
    }
    
    .sports-grid::after::before,
    .surface-grid::after::before,
    .tier-grid::after::before,
    .gallery-grid::after::before {
        content: "→";
        color: var(--primary);
        font-weight: bold;
        font-size: 16px;
    }
    
    @keyframes pulse-swipe {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.8; }
    }
    
    /* 7. IMPROVE SWIPE EXPERIENCE */
    .sports-showcase,
    .surface-systems-section,
    .tier-grid-wrapper,
    .gallery-section {
        position: relative;
        overflow: hidden;
    }
    
    /* Add subtle gradient fade on edges */
    .sports-grid::before,
    .surface-grid::before,
    .tier-grid::before,
    .gallery-grid::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, var(--darker));
        pointer-events: none;
        z-index: 2;
    }
    
    .sports-grid::after,
    .surface-grid::after,
    .tier-grid::after,
    .gallery-grid::after {
        right: 10px;
    }
}

/* ===== TABLET OPTIMIZATION (768px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Keep grid layouts but optimize spacing */
    .sports-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .surface-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* Adjust premium tier for 2-col layout */
    .tier-card.premium {
        grid-column: span 2;
    }
}

/* ===== DOTS INDICATOR (OPTIONAL ENHANCEMENT) ===== */
@media (max-width: 768px) {
    .carousel-indicator {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
        padding-bottom: 10px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: var(--transition);
    }
    
    .carousel-dot.active {
        background: var(--primary);
        transform: scale(1.2);
    }
    
    /* Add indicators to containers that need them */
    .sports-showcase::after {
        content: "";
        display: table;
        clear: both;
    }
    
    .sports-grid-container {
        position: relative;
    }
}
/* ===== MOBILE SWIPE FIXES - CLEAN ARCHITECTURE ===== */

@media (max-width: 768px) {
    /* 1. Create swipe container with proper compensation */
    .gallery-grid,
    .tier-grid,
    .sports-grid,
    .surface-grid,
    .project-grid-container {
        position: relative;
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
        padding-top: 20px;
        padding-bottom: 0px;
    }
    
    /* 2. Fix the swipe track */
    .gallery-grid::before,
    .tier-grid::before,
    .sports-grid::before,
    .surface-grid::before,
    .project-grid-container::before {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to right, transparent, var(--darker));
        pointer-events: none;
        z-index: 2;
    }
    
    /* 3. Remove double padding from items */
    .gallery-item,
    .tier-card,
    .sport-card,
    .quick-info-grid,
    .surface-card,
    .project-grid-slot {
        padding: 0 !important;
        margin: 0 !important;
        min-width: calc(85vw - 32px) !important; /* Account for container padding */
        margin-right: 16px !important;
    }
    
    /* 4. Add swipe indicator (one visual cue only) */
    .gallery-grid::after,
    .tier-grid::after,
    .sports-grid::after,
    .surface-grid::after {
        content: "";
        position: absolute;
        right: 30px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background: rgba(0, 212, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
        animation: pulse-swipe 2s infinite;
        z-index: 3;
    }
    
    .gallery-grid::after::before,
    .tier-grid::after::before,
    .sports-grid::after::before,
    .surface-grid::after::before {
        content: "→";
        color: var(--primary);
        font-weight: bold;
        font-size: 16px;
    }
    
    @keyframes pulse-swipe {
        0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(0.95); }
        50% { opacity: 0.8; transform: translateY(-50%) scale(1.05); }
    }
    
    /* 5. Remove the conflicting arrow indicators */
    .sports-grid::before,
    .surface-grid::before,
    .tier-grid::before,
    .gallery-grid::before {
        display: none; /* Remove gradient fade since we have arrow */
    }
    
    /* 6. Section title spacing fix */
    .section-title {
        margin-bottom: 30px !important;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    /* Keep grid layouts but fix spacing */
    .tier-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
        padding: 0 !important;
        margin: 40px auto 0 !important;
        max-width: 800px !important;
    }
    
    .tier-card.premium {
        grid-column: 1 / -1 !important;
        max-width: 600px !important;
        margin: 0 auto !important;
    }
    
    /* Disable swipe on tablet */
    .gallery-grid,
    .sports-grid,
    .surface-grid {
        
        display: grid !important;
        overflow: visible !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 0 !important;
        margin: 40px auto 0 !important;
    }
}
/* =========================================================
   🔒 TIER SYSTEM HARD LOCK — OPERATIONAL FIX
   ========================================================= */

/* DESKTOP & TABLET: GRID ONLY */
@media (min-width: 769px) {
    .tier-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin: 40px auto 0;
        padding: 0 24px;
        overflow: visible !important;
    }

    .tier-card {
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

/* TABLET REFINEMENT */
@media (min-width: 769px) and (max-width: 1024px) {
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .tier-card.premium {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .tier-card {
        min-height: 360px;
        padding: 30px 25px !important;
    }
}

/* MOBILE: SINGLE SOURCE OF TRUTH (SWIPE ONLY) */
@media (max-width: 768px) {
    /* Reset ALL conflicting tier-grid rules */
    .tier-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding: 30px 16px 40px 16px !important; /* Left: 16px, Right: 16px */
        padding-right: 40px !important; /* Override right padding */
        margin-left: -16px !important;
        margin-right: -16px !important;
        scrollbar-width: none !important;
        width: 100vw !important;
        -ms-overflow-style: none !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
      /* Extra space for last card */
    .tier-card:last-child::after {
        content: "";
        position: absolute;
        right: -24px;
        width: 24px;
        height: 1px;
        display: block;
    }
    /* Hide scrollbar */
    .tier-grid::-webkit-scrollbar {
        display: none !important;
    }

    /* FIXED CARD WIDTH - 40vw (your preference) */
    .tier-card {
        flex: 0 0 60vw !important;
        min-width: 60vw !important;
        max-width: 60vw !important;
        scroll-snap-align: start;
        padding: 35px 20px 25px !important; /* Adjusted for badge */
        margin: 0 !important;
        margin-right: 20px !important;
        min-height: 340px !important; /* Shorter for mobile */
        height: auto !important;
    }
    
    /* Last card spacing */
    .tier-card:last-child {
        margin-right: 16px !important;
    }
    
    /* BADGE POSITION - Above card */
    .tier-badge {
        top: -10px !important; /* Above card */
        padding: 6px 15px !important; /* Thinner badge */
        font-size: 10px !important;
    }
    
    /* HEADER HEIGHT FIX */
    .tier-card h4 {
        margin: 15px 0 10px 0 !important; /* More space after badge */
        font-size: 1rem !important;
        line-height: 1.2 !important;
        text-align: center;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Remove all swipe indicators from tier-grid */
    .tier-grid::before,
    .tier-grid::after {
        display: none !important;
    }
    
    /* Reduce tier features spacing */
    .tier-features li {
        min-height: 35px !important;
        font-size: 12px !important;
        padding: 6px 0 !important;
    }
    
    /* Fix CTA button spacing */
    .tier-card .consult-cta {
        margin-top: 15px !important;
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}
@media (max-width: 768px) {
    .tier-grid {
        /* Add this line to fix cropping */
        scroll-padding-right: 40px !important;
    }
}
@media (max-width: 768px) {
    /* FIX 1: Allow horizontal scrolling beyond content */
    .tier-grid {
        overflow-x: scroll !important; /* Force scroll, not auto */
        overscroll-behavior-x: contain !important; /* Better scrolling */
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* FIX 2: Add "buffer" space after last card */
    .tier-grid::after {
        content: '';
        display: block !important;
        flex: 0 0 40px !important; /* 40px empty space after last card */
        width: 40px !important;
        height: 1px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* FIX 3: Adjust card widths slightly to account for buffer */
    .tier-card {
        flex: 0 0 calc(70vw - 10px) !important; /* Slightly narrower */
        min-width: calc(70vw - 10px) !important;
        max-width: calc(70vw - 10px) !important;
    }
    
    /* FIX 4: Container width adjustment */
    .tier-grid {
        width: calc(100% + 40px) !important; /* Extend container width */
        padding-right: 60px !important; /* Even more right padding */
    }
    
    .tier-features li {
        gap: 10px !important; /* Increase from 10px to 15px */
        padding-left: 5px; /* Add some left padding */
    }
     .tier-features li:before {
        content: "✓";
        color: var(--primary);
        font-weight: bold;
        margin-right: 12px !important; /* Add right margin */
        min-width: 20px; /* Ensure consistent width */
        display: inline-block;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .tier-features li {
        display: flex !important;
        align-items: flex-start !important;
        gap: 5px !important; /* Space between checkmark and text */
        padding: 8px 0 !important;
        position: relative;
    }
    
    .tier-features li:before {
        content: "✓" !important;
        color: var(--primary) !important;
        font-weight: bold !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 10px !important;
        height: 20px !important;
        flex-shrink: 0 !important; /* Prevent shrinking */
        margin: 0 !important; /* Reset margins */
        padding: 0 !important;
        position: static !important; /* NOT absolute */
    }
}
@media (max-width: 768px) {
    .centered-cta .cta-button {
        padding: 14px 24px !important; /* Reduced from 16px 32px */
        font-size: 15px !important; /* Slightly smaller */
        gap: 8px !important; /* Smaller gap between text and arrow */
        white-space: nowrap !important; /* Prevent text wrapping */
        max-width: 90vw !important; /* Limit max width */
        margin: 0 auto !important; /* Center if it wraps */
    }
    
    .centered-cta {
        padding: 0 16px !important; /* Reduce container padding */
    }
}
/* ===== MOBILE SURFACE SECTION FIXES ===== */
@media (max-width: 768px) {
    /* 1. Fix surface grid swipe behavior */
    .surface-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 20px;
        padding: 20px 16px 30px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 40px !important; /* Extra space for last card */
        scrollbar-width: none !important;
        grid-template-columns: none !important;
        max-width: none !important;
    }
    
    /* Hide scrollbar */
    .surface-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    /* 2. Fix surface card sizing */
    .surface-card {
        flex: 0 0 85vw !important;
        min-width: 85vw !important;
        max-width: 85vw !important;
        scroll-snap-align: start !important;
        padding: 25px 20px !important;
        margin-right: 0 !important;
    }
    
    /* Last card extra space */
    .surface-card:last-child {
        position: relative;
        margin-right: 40px !important;
    }
    
    /* 3. Fix surface header (icon + title) */
    .surface-header {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        margin-bottom: 15px !important;
        flex-wrap: nowrap !important;
    }
    
    .surface-icon {
        width: 50px !important;
        height: 50px !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    .surface-icon i {
        font-size: 20px !important;
    }
    
    .surface-header h3 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        flex: 1 !important;
        min-width: 0 !important; /* Allow text wrapping */
        word-break: break-word !important;
    }
    
    /* 4. Fix sport tags */
    .sport-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin: 15px 0 20px !important;
        overflow-x: visible !important;
    }
    
    .sport-tag {
        padding: 5px 10px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    
    /* 5. FIX CHECKMARK POSITIONING (Most important!) */
    .surface-features ul {
        list-style: none !important;
        margin-top: 15px !important;
        padding-left: 0 !important;
    }
    
    .surface-features li {
        color: var(--text) !important;
        padding: 10px 0 10px 25px !important; /* Space for checkmark */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        font-size: 13px !important;
        display: block !important; /* NOT flex */
        position: relative !important;
        min-height: 35px !important;
        line-height: 1.4 !important;
    }
    
    .surface-features li i {
        color: var(--primary) !important;
        font-size: 12px !important;
        position: absolute !important;
        left: 5px !important; /* Position from left */
        top: 10px !important; /* Align with text */
        width: 15px !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* 6. Fix CTA button */
    .surface-cta {
        margin-top: 20px !important;
        text-align: center !important;
    }
    
    .surface-cta .cta-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
        min-width: 200px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
    }
}
@media (max-width: 480px) {
    .surface-card {
        padding: 22px 18px !important;
    }
    
    .surface-header h3 {
        font-size: 1.1rem !important;
    }
    
    .surface-icon {
        width: 45px !important;
        height: 45px !important;
    }
    
    .surface-icon i {
        font-size: 18px !important;
    }
    
    .surface-features li {
        font-size: 12.5px !important;
        padding: 8px 0 8px 22px !important;
    }
    
    .surface-features li i {
        left: 4px !important;
        top: 8px !important;
        font-size: 11px !important;
    }
    
    .surface-cta .cta-button {
        padding: 10px 20px !important;
        font-size: 13px !important;
        min-width: 180px !important;
    }
}
@media (max-width: 768px) {
    /* 1. Reduce surface card height */
    .surface-card {
        min-height: auto !important; /* Remove fixed min-height */
        height: auto !important;
        padding: 22px 18px !important; /* Reduce padding */
    }
    
    /* 2. Increase feature text size */
    .surface-features li {
        font-size: 14px !important; /* Increased from 13px */
        line-height: 1.5 !important; /* Better line spacing */
        padding: 9px 0 9px 25px !important; /* Slightly less padding */
        min-height: 32px !important; /* Reduce min-height */
    }
    
    /* 3. Increase checkmark size */
    .surface-features li i {
        font-size: 13px !important; /* Larger checkmark */
        top: 9px !important;
    }
    
    /* 4. Increase title size */
    .surface-header h3 {
        font-size: 1.3rem !important; /* Increased from 1.2rem */
        line-height: 1.3 !important;
    }
    
    /* 5. Reduce margins to tighten layout */
    .surface-header {
        margin-bottom: 12px !important; /* Reduced from 15px */
    }
    
    .sport-tags {
        margin: 12px 0 15px !important; /* Reduced margins */
    }
    
    .surface-features ul {
        margin-top: 12px !important; /* Reduced from 15px */
    }
    
    /* 6. Reduce vertical padding between cards */
    .surface-grid {
        padding: 15px 16px 25px !important; /* Reduced top/bottom padding */
        gap: 16px !important; /* Reduced gap between cards */
    }
}
/* ===== REDUCE SURFACE SECTION PADDING ===== */

/* TABLET (768px-1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Reduce section padding */
    .surface-systems-section {
        margin: 60px 0 40px !important; /* Reduced from 100px 0 */
        padding: 0 16px !important;
    }
    
    /* Reduce grid padding */
    .surface-grid {
        margin: 30px auto 0 !important; /* Reduced from 50px */
        padding: 0 8px !important;
        gap: 20px !important; /* Reduced from 30px */
    }
    
    /* Reduce card padding */
    .surface-card {
        padding: 22px !important; /* Reduced from 30px */
    }
    
    /* Reduce H2 margin above */
    .surface-systems-section .section-title {
        margin-bottom: 30px !important; /* Reduced from default */
    }
    
    .surface-systems-section .section-title h2 {
        margin-bottom: 12px !important;
    }
}

/* MOBILE (under 768px) */
@media (max-width: 768px) {
    /* Even more reduction for mobile */
    .surface-systems-section {
        margin: 40px 0 30px !important;
        padding: 0 12px !important;
    }
    
    /* Reduce H2 spacing dramatically */
    .surface-systems-section .section-title {
        margin-bottom: 20px !important;
        padding: 0 8px !important;
    }
    
    .surface-systems-section .section-title h2 {
        margin-bottom: 8px !important;
        font-size: 1.8rem !important; /* Slightly smaller on mobile */
    }
    
    .surface-systems-section .section-title p {
        margin-bottom: 20px !important; /* Reduced from default */
        font-size: 1rem !important; /* Smaller subtitle */
    }
    
    /* Reduce grid container padding */
    .surface-grid {
        margin: 20px auto 0 !important;
        padding: 12px 8px 20px !important; /* Reduced padding */
        gap: 16px !important;
    }
    
    /* Reduce card padding further */
    .surface-card {
        padding: 18px 14px !important; /* Very compact */
    }
}

/* VERY SMALL MOBILE */
@media (max-width: 480px) {
    .surface-systems-section {
        margin: 30px 0 20px !important;
    }
    
    .surface-systems-section .section-title h2 {
        font-size: 1.6rem !important;
        margin-bottom: 6px !important;
    }
    
    .surface-systems-section .section-title p {
        font-size: 0.9rem !important;
        margin-bottom: 16px !important;
    }
    
    .surface-grid {
        padding: 10px 6px 16px !important;
        gap: 14px !important;
    }
    
    .surface-card {
        padding: 16px 12px !important;
    }
}
/* ===== CONSISTENT SECTION SPACING REDUCTION ===== */

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Reduce all section margins */
    .section {
        padding-top: 50px !important; /* Reduced from 70px */
        padding-bottom: 50px !important;
    }
    
    /* Reduce H2 spacing in all sections */
    .section-title {
        margin-bottom: 30px !important;
    }
    
    .section-title h2 {
        margin-bottom: 12px !important;
    }
    
    /* Reduce card grid gaps */
    .surface-grid,
    .tier-grid,
    .sports-grid,
    .gallery-grid,
    .quick-info-grid {
        gap: 20px !important;
        margin-top: 30px !important;
    }
    
    /* Reduce card padding */
    .surface-card,
    .tier-card,
    .sport-card,
     .quick-info-grid {
        padding: 22px !important;
    }
}

/* MOBILE */
@media (max-width: 768px) {
    /* Reduce all section margins more */
    .section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Dramatically reduce H2 spacing */
    .section-title {
        margin-bottom: 20px !important;
        padding: 0 !important;
    }
    
    .section-title h2 {
        margin-bottom: 8px !important;
        font-size: 1.8rem !important;
    }
    
    .section-title p {
        margin-bottom: 20px !important;
        font-size: 1rem !important;
    }
    
    /* Reduce all card padding */
    .surface-card,
    .tier-card,
    .sport-card,
    .quick-info-grid {
        padding: 18px 14px !important;
    }
}
/* ===== GENERIC INTRA-SECTION SPACING IMPROVEMENT ===== */

/* Target ALL sections with H2 + P + Grid/Cards pattern */
.section .section-title {
    margin-bottom: 30px !important; /* Space between title and content */
}

.section .section-title h2 {
    margin-bottom: 10px !important; /* Space between H2 and P */
}

.section .section-title p {
    margin-bottom: 20px !important; /* Space between P and grid */
}

/* Apply to specific grids that come after section-title */
.section .gallery-grid,
.section .tier-grid,
.section .sports-grid,
.section .surface-grid,
.section .portfolio-grid,
.section .project-grid-container,
.section .partner-grid,
.section .testimonials-grid,
.section .flooring-grid,
.section .process-grid-compact {
    margin-top: 0 !important; /* Remove default top margin - spacing handled by title */
}

/* TABLET OPTIMIZATION */
@media (min-width: 768px) and (max-width: 1024px) {
    .section .section-title {
        margin-bottom: 24px !important;
    }
    
    .section .section-title h2 {
        margin-bottom: 8px !important;
        font-size: 2.2rem !important; /* Slightly smaller for tablet */
    }
    
    .section .section-title p {
        margin-bottom: 16px !important;
        font-size: 1.1rem !important;
    }
}

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .section .section-title {
        margin-bottom: 20px !important;
    }
    
    .section .section-title h2 {
        margin-bottom: 6px !important;
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .section .section-title p {
        margin-bottom: 14px !important;
        font-size: 1rem !important;
        line-height: 1.4 !important;
    }
}

/* VERY SMALL MOBILE */
@media (max-width: 480px) {
    .section .section-title {
        margin-bottom: 16px !important;
    }
    
    .section .section-title h2 {
        margin-bottom: 4px !important;
        font-size: 1.6rem !important;
    }
    
    .section .section-title p {
        margin-bottom: 12px !important;
        font-size: 0.95rem !important;
    }
}

/* ===== SPECIFIC OVERRIDES FOR DIFFERENT SECTION TYPES ===== */

/* For hero sections (H1 instead of H2) */
.page-hero .hero-inner h1 {
    margin-bottom: 15px !important;
}

.page-hero .hero-subtitle {
    margin-bottom: 30px !important;
}

/* For sections with H3 subtitles */
.section-title h3 {
    margin-top: 8px !important;
    margin-bottom: 15px !important;
}

/* For sections with just H2 (no P) */
.section-title:has(h2:only-child) {
    margin-bottom: 25px !important;
}

.section-title:has(h2:only-child) h2 {
    margin-bottom: 0 !important;
}

/* For sections with H2 + button (no P) */
.section-title:has(.cta-button) {
    margin-bottom: 25px !important;
}

/* ===== CONSISTENT GRID SPACING ===== */

/* Ensure all grids have consistent spacing from titles */
.section > :not(.section-title):first-of-type {
    margin-top: 0 !important; /* First element after title gets no top margin */
}

/* When grid is first after title, it's already handled */
/* When there's something else between title and grid, add spacing */
.section .section-title + *:not(.gallery-grid):not(.tier-grid):not(.sports-grid):not(.surface-grid) {
    margin-top: 15px !important;
}

/* ===== FIX FOR EXISTING OVERLY-SPACIOUS SECTIONS ===== */

/* These might have larger default margins that need overriding */
.map-section .section-title,
.padel-tiers .section-title,
.flooring-section .section-title,
.clients-section .section-title {
    margin-bottom: 25px !important;
}

.map-section .section-title p,
.padel-tiers .section-title p,
.flooring-section .section-title p,
.clients-section .section-title p {
    margin-bottom: 20px !important;
}


/* ===== SMOOTH TRANSITIONS ===== */
.section-title h2,
.section-title p {
    transition: all 0.3s ease;
}
/* ===== MOBILE SWIPE FOR PARTNER & FEATURE GRIDS ===== */

/* PARTNER GRID MOBILE SWIPE */
@media (max-width: 768px) {
    /* Partner grid swipe container */
    .partner-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 30px !important;
        padding: 20px 16px 30px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 40px !important; /* Extra space for last item */
        scrollbar-width: none !important;
        grid-template-columns: none !important;
        max-width: none !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    
    /* Hide scrollbar */
    .partner-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    /* Partner logo items */
    .partner-logo {
        flex: 0 0 120px !important; /* Fixed width for logos */
        min-width: 120px !important;
        max-width: 120px !important;
        height: 70px !important;
        scroll-snap-align: start !important;
        padding: 10px !important;
    }
    
    /* Boost logos slightly larger */
    .partner-logo.boost {
        flex: 0 0 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;
    }
    
    .partner-logo.boost2 {
        flex: 0 0 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;
    }
    
    /* Last logo extra space */
    .partner-logo:last-child {
        margin-right: 20px !important;
    }
    
    /* Logo images */
    .partner-logo img {
        max-height: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
        opacity: 0.9 !important;
    }
    
    /* Remove hover effects on mobile */
    .partner-logo img:hover {
        opacity: 0.9 !important;
        transform: none !important;
    }
    
    /* Swipe indicator */
    .partner-grid::after {
        /*content: "";*/
        position: absolute;
        right: 25px;
        top: 50%;
        transform: translateY(-50%);
        /*width: 36px;
        height: 36px;*/
        background: rgba(0, 212, 255, 0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--primary);
        font-weight: bold;
        font-size: 18px;
        pointer-events: none;
        z-index: 3;
        opacity: 0.8;
    }
}

/* FEATURE ICON GRID MOBILE SWIPE */
@media (max-width: 768px) {
    /* Feature icon grid swipe container */
    .feature-icon-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 25px !important;
        padding: 20px 16px 30px !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding-left: 16px !important;
        padding-right: 40px !important;
        scrollbar-width: none !important;
        grid-template-columns: none !important;
        max-width: none !important;
        text-align: center !important;
    }
    
    
    /* Feature icon items */
    .feature-icon-item {
        flex: 0 0 70vw !important; /* Wider for icon + text */
        min-width: 70vw !important;
        max-width: 70vw !important;
        scroll-snap-align: start !important;
        padding: 20px 15px !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 16px !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }
    
    /* Feature icons */
    .feature-icon-item i {
        font-size: 32px !important; /* Slightly smaller for mobile */
        color: var(--primary) !important;
    }
    
    /* Feature text */
    .feature-icon-item p {
        font-size: 14px !important;
        color: var(--text-light) !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }
    
    .feature-icon-item span {
        color: var(--text) !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        margin-top: 4px !important;
    }
    
    /* Last item extra space */
    .feature-icon-item:last-child {
        margin-right: 20px !important;
    }
}

/* ===== TABLET OPTIMIZATION ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Partner grid tablet - keep grid but adjust */
    .partner-grid {
        gap: 30px !important;
        padding: 0 20px !important;
    }
    
    .partner-logo {
        height: 65px !important;
    }
    
    /* Feature icon grid tablet - 2 columns */
    .feature-icon-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
        max-width: 800px !important;
    }
    
    .feature-icon-item {
        padding: 20px !important;
    }
    
    .feature-icon-item i {
        font-size: 32px !important;
    }
}

/* ===== VERY SMALL MOBILE ADJUSTMENTS ===== */
@media (max-width: 480px) {
    /* Partner grid smaller on very small screens */
    .partner-logo {
        flex: 0 0 100px !important;
        min-width: 100px !important;
        max-width: 100px !important;
        height: 60px !important;
        padding: 8px !important;
    }
    
    .partner-logo.boost {
        flex: 0 0 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }
    
    .partner-logo.boost2 {
        flex: 0 0 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;
    }
    
    /* Feature icon grid smaller */
    .feature-icon-item {
        flex: 0 0 75vw !important;
        min-width: 75vw !important;
        max-width: 75vw !important;
        padding: 18px 12px !important;
        gap: 10px !important;
    }
    
    .feature-icon-item i {
        font-size: 28px !important;
    }
    
    .feature-icon-item p {
        font-size: 13px !important;
    }
    
    .feature-icon-item span {
        font-size: 11px !important;
    }
}

/* ===== SIMPLE CENTER ALIGNMENT FIX ===== */
@media (max-width: 768px) {
    /* Change ALL scroll-snap-align from start to center */
    .gallery-item,
    .tier-card,
    .sport-card,
    .surface-card,
    .quick-info-grid,
    .partner-logo,
    .feature-icon-item,
    .project-grid-slot {
        scroll-snap-align: center !important;
    }
    
    /* Add center padding to containers */
    .gallery-grid,
    .tier-grid,
    .sports-grid,
    .surface-grid,
    .quick-info-grid,
    .partner-grid,
    .feature-icon-grid,
    .project-grid-container {
        scroll-padding-left: 20px !important;
        scroll-padding-right: 20px !important;
    }
}
/* Progressive Form Styles */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

.modal-header {
    text-align: center;
    margin-bottom: 35px;
}

.modal-header h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.modal-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Fork Section */
.fork-section {
    margin-bottom: 35px;
       /* Add if needed for centering */
    width: 100%;
    max-width: 600px; /* Adjust based on your design */
    margin-left: auto;
    margin-right: auto;
}

.fork-label {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.fork-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 35px;
    
}

@media (max-width: 768px) {
    .fork-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/*.fork-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 22px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    min-height: 100px;
}*/
.fork-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 22px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    /* REMOVE min-height: 100px; - This causes inconsistency */
    /* ADD THESE LINES for consistent sizing */
    height: 100%; /* Fill the grid cell completely */
    min-height: 120px; /* Use min-height instead of fixed height */
    box-sizing: border-box; /* Include padding in height calculation */
}

/* Ensure consistent content within each card */
.fork-content {
    flex: 1;
    padding-right: 30px;
    /* Add these for consistent text layout */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically centers content */
    min-height: 60px; /* Minimum height for content area */
}

.fork-option:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.1);
}

.fork-option.active {
    background: rgba(0, 212, 255, 0.12);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
    transform: translateY(-3px);
}

.fork-option.active .fork-check {
    opacity: 1;
    transform: scale(1);
}

.fork-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fork-icon i {
    font-size: 24px;
    color: var(--primary);
}

/*.fork-content {
    flex: 1;
    padding-right: 30px; /* Space for check icon */

.fork-content h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-weight: 700;
    line-height: 1.3;
}

.fork-content p {
    color: var(--text-light);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.fork-check {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 26px;
    height: 26px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.fork-check i {
    color: var(--dark);
    font-size: 13px;
    font-weight: 900;
}

/* Contextual Headers */
.contextual-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contextual-header h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.contextual-header p {
    color: var(--text-light);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
    opacity: 0.9;
}

/* Form Groups - Improved Spacing */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Labels */
.form-group label {
    display: block;
    color: var(--white);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1rem;
    letter-spacing: -0.2px;
}

/* Info Tips */
.info-tip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    position: relative;
    vertical-align: middle;
}

.info-tip i {
    color: var(--primary);
    font-size: 15px;
    cursor: help;
    opacity: 0.8;
}

.tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 15, 0.97);
    color: var(--text);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.info-tip:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -40px;
}

/* Sport Chips */
.sport-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}

.sport-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: -0.2px;
}

.sport-chip:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.5);
    color: var(--primary);
    transform: translateY(-1px);
}

.sport-chip.active {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

/* Timeline Options */
.timeline-group {
    margin-top: 30px;
}

.timeline-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .timeline-options {
        grid-template-columns: 1fr;
    }
}

.timeline-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-option:hover {
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.timeline-option input {
    display: none;
}

.timeline-option input:checked + span {
    color: var(--primary);
    font-weight: 700;
}

.timeline-option span {
    color: var(--text);
    font-size: 14.5px;
    display: block;
    line-height: 1.4;
}

/* Inputs and Selects */
input, select, textarea {
    width: 100%;
    background: var(--darker);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text);
    padding: 14px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    /*background: rgba(0, 212, 255, 0.05);*/
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Placeholder styling */
::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

/* Area Input */
.area-input {
    position: relative;
}

.area-input input {
    padding-right: 70px;
}

.area-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    background: var(--darker);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phone-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.country-code {
    padding: 0 18px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    font-weight: 700;
    height: 52px;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
    min-width: 70px;
}

.phone-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 15px;
    padding-left: 0;
}

.input-hint {
    display: block;
    color: var(--text-light);
    font-size: 12.5px;
    margin-top: 6px;
    font-style: italic;
    opacity: 0.8;
    line-height: 1.4;
}

/* Sport Configurations */
.sport-config, .multi-sport-config, .padel-budget-group, .flooring-use-group {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.sport-config .form-row, 
.multi-sport-config .form-row {
    margin-bottom: 0;
}

/* Trust Block */
.trust-block {
    background: rgba(0, 212, 255, 0.05);
    border-radius: 14px;
    padding: 22px;
    margin: 30px 0;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.trust-item:last-child {
    margin-bottom: 0;
}

.trust-item i {
    color: var(--primary);
    font-size: 20px;
    margin-top: 3px;
    flex-shrink: 0;
}

.trust-item strong {
    color: var(--white);
    font-size: 15px;
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.3;
}

.trust-item small {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.9;
}

/* City Group - Common to all */
.city-group {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    letter-spacing: -0.2px;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-btn {
    margin-left: auto;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), #0066ff);
    color: var(--dark);
    border: none;
    padding: 15px 32px;
    font-size: 16px;
    font-weight: 700;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

/* Final Trust Signals */
.final-trust {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
}

.final-trust p {
    color: var(--text);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.final-trust i {
    color: var(--primary);
    font-size: 15px;
    min-width: 22px;
    margin-top: 2px;
}

.whatsapp-direct {
    background: rgba(37, 211, 102, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 20px !important;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-direct i {
    color: #25D366;
    font-size: 16px;
}

.whatsapp-direct a {
    color: #25D366;
    text-decoration: none;
    font-weight: 700;
    margin-left: 6px;
    transition: all 0.2s ease;
}

.whatsapp-direct a:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(25px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Service Form Animations */
.service-form {
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateX(-25px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Validation Error Styles */
.validation-error {
    color: #ff6b6b;
    font-size: 13.5px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.validation-error i {
    font-size: 14px;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .modal-header {
        margin-bottom: 25px;
    }
    
    .modal-header h2 {
        font-size: 1.7rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    .fork-option {
        padding: 18px 16px;
        min-height: 90px;
        gap: 15px;
    }
    
    .fork-icon {
        width: 48px;
        height: 48px;
    }
    
    .fork-icon i {
        font-size: 22px;
    }
    
    .fork-content h4 {
        font-size: 1.05rem;
    }
    
    .contextual-header h3 {
        font-size: 1.3rem;
    }
    
    .nav-btn {
        padding: 12px 20px;
        font-size: 14.5px;
    }
    
    .submit-btn {
        padding: 13px 24px;
        font-size: 15px;
    }
}

/* Dark mode input improvements */
@media (prefers-color-scheme: dark) {
    input, select, textarea {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .phone-input {
        background: rgba(0, 0, 0, 0.2);
    }
}

/* Hover states for better UX */
.fork-option, .sport-chip, .timeline-option, .nav-btn {
    -webkit-tap-highlight-color: transparent;
}

/* Selection styling */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--white);
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%; /* Ensure full width */
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Specifically for budget form rows */
    .sport-config .form-row,
    .multi-sport-config .form-row,
    .padel-budget-group .form-row {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
/* Quick Fix: Add this to your existing CSS */
.sport-to-quote {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
}

.sport-to-quote:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

/* Make both classes work the same way */
.quote-prefill-btn,
.sport-to-quote {
    /* Common styles */
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    max-width: 400px;
}

.quote-prefill-btn:hover,
.sport-to-quote:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}
/* ===== MODALS - FIXED POSITIONING ===== */

/* Modal overlay - FIXED */
.modal,
.sport-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 8, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding-top: 80px; /* Space for header */
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Active state */
.modal.active,
.sport-modal.active {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Modal content - POSITIONED TO START BELOW HEADER */
.modal-content,
.sport-modal-content {
    background: var(--card-bg);
    margin: 0 auto 40px auto; /* Top margin 0, bottom margin 40px */
    border-radius: 20px;
    padding: 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Remove flex alignment - let it flow naturally */
}

/* Specific widths */
.modal-content {
    max-width: 600px;
}

.sport-modal-content {
    max-width: 900px;
}

/* Animate when active */
.modal.active .modal-content,
.sport-modal.active .sport-modal-content {
    opacity: 1;
    transform: translateY(0);
}

/* Close button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gray);
    color: var(--text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.close-modal:hover {
    background: var(--primary);
    color: var(--dark);
}

/* ===== MOBILE MODAL FIXES - CRITICAL ===== */
@media (max-width: 768px) {
    .modal,
    .sport-modal {
        padding: 70px 15px 20px 15px; /* Top padding for header + small side padding */
        /* Remove the old padding-top since we have it in the shorthand */
    }
    
    .modal-content,
    .sport-modal-content {
        margin: 0 auto 20px auto; /* Reduced bottom margin on mobile */
        padding: 25px 20px;
        width: 100%; /* Full width on mobile */
        max-width: 100%; /* Override max-width */
        border-radius: 16px;
        box-sizing: border-box; /* Include padding in width */
    }
    
    /* For sport modal */
    .sport-modal-content {
        max-width: 100%;
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    
    /* Adjust header height on mobile */
    .modal,
    .sport-modal {
        padding-top: 70px; /* Slightly less on mobile since header might be smaller */
    }
}

/* ===== VERY SMALL MOBILE (iPhone SE etc.) ===== */
@media (max-width: 480px) {
    .modal,
    .sport-modal {
        padding: 65px 10px 15px 10px; /* Even tighter padding */
    }
    
    .modal-content,
    .sport-modal-content {
        padding: 20px 15px;
        margin: 0 auto 15px auto;
        border-radius: 12px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .modal-subtitle {
        font-size: 0.9rem;
    }
    
    /* Fix form elements on very small screens */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    
    .fork-options {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .fork-option {
        padding: 15px 12px !important;
        min-height: auto !important;
    }
    
    .sport-chips {
        gap: 6px !important;
    }
    
    .sport-chip {
        padding: 8px 14px !important;
        font-size: 12px !important;
    }
}

/* ===== TABLET ADJUSTMENTS ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .modal-content {
        max-width: 550px;
        width: 90%;
    }
    
    .sport-modal-content {
        max-width: 800px;
        width: 90%;
    }
}

/* ===== PREVENT BODY SCROLLING WHEN MODAL IS OPEN ===== */
body.modal-open {
    overflow: hidden;
}

/* ===== FIX FOR HEADER HEIGHT ===== */
/* If your header height changes on scroll, adjust this */
.header.scrolled + .modal,
.header.scrolled + .sport-modal {
    padding-top: 60px; /* If header gets smaller on scroll */
}

/* ===== FORM SCROLLING FIX FOR MOBILE ===== */
@media (max-width: 768px) {
    .quote-form {
        max-height: calc(85vh - 100px); /* Account for header and padding */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    /* Custom scrollbar for forms */
    .quote-form::-webkit-scrollbar {
        width: 4px;
    }
    
    .quote-form::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .quote-form::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 2px;
    }
}
/* 1. Make sports modal width match quote modal width */
.sport-modal-content {
    max-width: 60   0px; /* Changed from 900px to match .modal-content */
}
/* 3. INCREASE padding on mobile and reduce width */
@media (max-width: 768px) {
    .modal,
    .sport-modal {
        padding-top: 120px; /* INCREASED from 90px to 120px */
    }
    
    .modal-content,
    .sport-modal-content {
        max-width: 95%; /* Reduced width on mobile (slightly smaller than 100%) */
        width: 95%;
    }
}

/* 4. For very small screens, make width a bit tighter */
@media (max-width: 480px) {
    .modal-content,
    .sport-modal-content {
        max-width: 92%;
        width: 92%;
    }
}


/* 4. Ensure content doesn't get too close to top */
.modal-content,
.sport-modal-content {
    margin-top: 0; /* Remove any top    hat might push it down further */
}

/* 1. Update X close button styling to match hamburger menu */
.close-modal {
    background: transparent !important; /* Changed from var(--gray) */
    border: none;
    width: 30px !important; /* Match hamburger width */
    height: 21px !important; /* Match hamburger height */
    font-size: 0 !important; /* Hide the X character */
}

/* Create the three-line hamburger icon for close button */
.close-modal::before,
.close-modal::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    left: 0;
}

.close-modal::before {
    top: 0;
    transform: rotate(45deg) translate(4px, 4px);
}

.close-modal::after {
    bottom: 0;
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Middle line (hidden) */
.close-modal span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effect */
.close-modal:hover::before,
.close-modal:hover::after {
    background: var(--primary);
}

/* 2. Mobile: Center the close button at bottom of modal */
@media (max-width: 768px) {
    .close-modal {
        position: absolute  !important; /* Changed from absolute */
        top: -25px !important; /* Remove top positioning */
        bottom: auto !important; /* Position from bottom */
        left: 50% !important; /* Center horizontally */
        right: auto !important;
        transform: translateX(-50%) !important; /* Perfect centering */
        margin: 0 auto !important;
        z-index: 10001 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        width: 30px !important;
        height: 30px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Adjust the hamburger lines for circular button */
    .close-modal::before,
    .close-modal::after {
        width: 14px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .close-modal::before {
        top: 50% !important;
        transform: translateX(-50%) translateY(-50%) rotate(45deg) !important;
    }
    
    .close-modal::after {
        bottom: auto !important;
        top: 50% !important;
        transform: translateX(-50%) translateY(-50%) rotate(-45deg) !important;
    }
    
    /* 3. Fix CTA button text on mobile */
    .modal-cta .quote-prefill-btn,
    .modal-cta .sport-to-quote {
        white-space: normal !important; /* Allow text wrapping */
        word-break: keep-all !important; /* Keep words intact */
        hyphens: auto !important; /* Auto hyphenation */
        padding: 12px 16px !important; /* Adjust padding */
        font-size: 14px !important; /* Slightly smaller font */
        line-height: 1.3 !important; /* Tighter line height */
        min-height: auto !important; /* Remove fixed height */
        text-align: center !important;
    }
    
    /* Reduce the CTA note font size */
    .cta-note {
        font-size: 12px !important;
        line-height: 1.4 !important;
        margin-top: 8px !important;
        padding: 0 10px !important;
    }
}

/* 4. Extra fix for very small screens */
@media (max-width: 480px) {
    .modal-cta .quote-prefill-btn,
    .modal-cta .sport-to-quote {
        font-size: 13px !important;
        padding: 10px 14px !important;
        max-width: 100% !important; /* Use full available width */
        width: 100% !important;
    }
    
    /* Adjust modal padding to accommodate bottom-centered close button */
    .modal-content,
    .sport-modal-content {
        padding-bottom: 70px !important; /* Extra space for bottom button */
    }
}
/* Hide the grid controls visually but keep them in DOM */
.grid-controls {
    display: none; /* or use visibility: hidden */
}

/* OR make them invisible but still clickable */
.grid-controls {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.grid-controls {
    display: none; /* This completely removes it from layout */
}
/* Fix mobile gallery section spacing */
@media (max-width: 768px) {
    /* Target the specific gallery section where the CTA is */
    .gallery-section {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Remove bottom padding from gallery container */
    .gallery-section .gallery-container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Remove any bottom margin from the gallery grid */
    .gallery-section .gallery-grid {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Remove extra spacing from the dots container */
    .gallery-section .gallery-dots-mobile {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Target the exact CTA container in gallery */
    .gallery-section > div[style*="text-align: center"] {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 1 !important;
        height: auto !important;
        min-height: 0 !important;
    }
    
    /* Keep CTA button original style */
    .gallery-section .cta-button {
        padding: 12px 30px !important; /* Keep original padding */
        margin: 0 !important;
        display: inline-block !important;
    }
    
    /* Remove any ::after pseudo-elements that might add space */
    .gallery-section::after,
    .gallery-container::after,
    .gallery-grid::after {
        content: none !important;
        display: none !important;
    }
}

/* If there's a specific page with different gallery classes */
@media (max-width: 768px) {
    /* Remove all possible gallery-related padding/margin */
    [class*="gallery"],
    [class*="Gallery"] {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Specifically target the section containing the CTA */
    section:has(.gallery-grid) {
        padding-bottom: 0 !important;
    }
}

/* Nuclear option: Remove all vertical spacing after gallery */
@media (max-width: 768px) {
    /* Find what's after the gallery and reduce its top margin */
    .gallery-section + * {
        margin-top: 0 !important;
    }
    
    /* Remove any flex/grid gap that might create space */
    .gallery-section {
        gap: 0 !important;
        row-gap: 0 !important;
    }
}

@media (max-width: 768px) {
    /* Target specifically the project grid container */
    .project-grid-container {
        padding-bottom: 0px !important; /* Reduced from 30px */
    }
    
    /* Optional: Also reduce the margin on button container */
    .project-grid-rotating > div:last-child {
        margin-top: 10px !important;
    }
}
@media (max-width: 768px) {
    /* Only target the rotating project gallery */
    .project-grid-rotating .project-grid-container {
        /* Keep existing horizontal adjustments */
        margin-left: -24px;
        margin-right: -24px;
        padding-left: 24px;
        padding-right: 24px;
    }
    
    /* Increase the slot height */
    .project-grid-rotating .project-grid-slot {
        height: 300px !important; /* Adjust this value as needed */
        min-height: 280px !important;
    }
    
    /* Make images fill the increased height */
    .project-grid-rotating .project-grid-slot img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
}
/* ===== NAVIGATION INDICATORS FOR ROTATING GALLERY ===== */


/* ===== NAVIGATION INDICATORS FOR ROTATING GALLERY ===== */
@media (max-width: 768px) {
    .project-grid-slot {
        position: relative !important;
        overflow: visible !important; /* Important for indicators */
    }

    /* Force indicators to be visible and persistent */
    .project-grid-slot .nav-indicator {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 40px !important; /* Changed from 32px to match gallery */
        height: 40px !important; /* Changed from 32px to match gallery */
        /*background: rgba(255, 255, 255, 0.1) !important; /* Changed to match gallery */
        /*color: var(--text) !important; /* Changed to match gallery */
        background: var(--primary) !important; /* CHANGED: Blue color by default */
        color: var(--dark) !important; /* CHANGED: Dark text for contrast */
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 18px !important; /* Changed from 14px to match gallery */
        font-weight: 400 !important;
        z-index: 99999 !important; /* EXTREMELY HIGH */
        opacity: 0.7 !important; /* Changed from 0.7 to match gallery */
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        border: none !important; /* Changed to match gallery (removed border) */
        box-shadow: none !important; /* Removed box-shadow to match gallery */
        pointer-events: auto !important;
        visibility: visible !important;
        backdrop-filter: none !important; /* Removed to match gallery */
    }

    /* Hover state - Updated to match gallery style */
    .project-grid-slot .nav-indicator:hover {
        background: var(--primary) !important; /* Changed to match gallery */
        color: var(--dark) !important; /* Changed to match gallery */
        opacity: 1 !important; /* Changed to match gallery */
        transform: translateY(-50%) scale(1.1) !important; /* Changed to match gallery */
    }

    /* Positioning - keep original positioning */
    .project-grid-slot .indicator-left {
        left: 8px !important; /* Original positioning */
    }

    .project-grid-slot .indicator-right {
        right: 8px !important; /* Original positioning */
    }
    
    .project-grid-rotating .project-grid-slot .nav-indicator {
        display: flex !important;
        opacity: 0.7 !important;
        visibility: visible !important;
    }
    
    /* Adjusting for the original media query adjustment */
    .project-grid-slot .nav-indicator {
        width: 40px !important; /* Changed from 30px to match gallery */
        height: 40px !important; /* Changed from 30px to match gallery */
        font-size: 18px !important; /* Changed from 13px to match gallery */
        background: var(--primary) !important; /* ADDED: Blue by default */
        color: var(--dark) !important; /* ADDED: Dark text by default */
        opacity: 0.7 !important; /* ADDED: Full opacity by default */
    }
}

/* Hide specific indicators */
#slot-1 .indicator-left,
#slot-3 .indicator-right {
    display: none !important;
}

/* ===== ULTRA-SUBTLE ARROWS - UPDATED TO MATCH GALLERY STYLE ===== */
@media (max-width: 768px) {
    .project-grid-slot .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px; /* Matched to gallery */
        height: 40px; /* Matched to gallery */
        /*background: rgba(255, 255, 255, 0.1); /* Matched to gallery */
        /*border: none; /* Matched to gallery (removed border) */
        /*color: var(--text); /* Matched to gallery */
        background: var(--primary); /* CHANGED: Blue color by default */
        border: none;
        color: var(--dark); /* CHANGED: Dark text for contrast */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px; /* Matched to gallery */
        font-weight: 400;
        z-index: 10;
        opacity: 0.7; /* Matched to gallery */
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    /* Keep original hover functionality but with gallery styling */
    .project-grid-slot .nav-arrow:hover {
        background: var(--primary); /* Matched to gallery */
        color: var(--dark); /* Matched to gallery */
        opacity: 0.6; /* Matched to gallery */
        transform: translateY(-50%) scale(1.1); /* Matched to gallery */
    }
    
    /* Original positioning preserved */
    .project-grid-slot .arrow-left {
        left: 6px; /* Original positioning */
    }
    
    .project-grid-slot .arrow-right {
        right: 6px; /* Original positioning */
    }
    
    /* Keep hover state for parent container if needed */
    .project-grid-slot:hover .nav-arrow {
        opacity: 0.7; /* Keep gallery opacity */
    }
    
    /* Hide specific arrows */
    #slot-1 .arrow-left,
    #slot-3 .arrow-right {
        display: none !important;
    }
    
    @media (hover: none) and (pointer: coarse) {
        .project-grid-slot .nav-arrow {
            opacity: 0.7; /* Adjusted to match gallery */
            width: 40px; /* Matched to gallery */
            height: 40px; /* Matched to gallery */
        }
    }
}
/* ===== CENTERED SWIPE INDICATOR WITH TEXT (WRAPPER VERSION) ===== */
[data-swipe-hint] {
    position: relative !important;
}

.swipe-hint-overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 15px 25px !important;
    border-radius: 25px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    z-index: 100 !important;
    opacity: 0 !important;
    animation: fadeInOut 7s ease-in-out forwards !important;
    pointer-events: none !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    min-width: 180px !important;
}

.swipe-hint-icon {
    width: 60px !important;
    height: 40px !important;
    position: relative !important;
}

.swipe-hint-hand {
    width: 30px !important;
    height: 40px !important;
    background: linear-gradient(135deg, var(--primary, #3b82f6), var(--accent, #8b5cf6)) !important;
    border-radius: 15px !important;
    position: absolute !important;
    left: 0 !important;
    animation: handSwipe 2s ease-in-out infinite !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
}

.swipe-hint-finger {
    width: 12px !important;
    height: 18px !important;
    background: white !important;
    border-radius: 6px !important;
    position: absolute !important;
    top: 6px !important;
    left: 9px !important;
}

.swipe-hint-text {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--dark, #222) !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    85% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

@keyframes handSwipe {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .swipe-hint-overlay {
        display: none !important;
    }
}

/* Optional: Add to your existing tier card styles */
.tier-card-wrapper {
    position: relative;
    /* Add any spacing you need between cards */
    margin: 0 10px;
}

.tier-grid-wrapper {
    position: relative;
    width: 100%;
}