:root {
    /* PlaySphere Brand Colors - From Logo */
    /* --primary: #0052CC;
    --primary-light: #0066FF;
    --primary-dark: #003999;
    --secondary: #FF6B35;
    --secondary-light: #FF8C5A;
    --accent: #FFA500; */
    --dark: #1A1A2E;
    --light: #F5F7FA;
    --white: #ffffff;
    --gray: #6B7280;
    --gray-light: #E5E7EB;
    --primary: #0047FF;
    /* Vibrant blue from logo text */
    --primary-light: #336CFF;
    --primary-dark: #0036C2;
    --secondary: #FF6B35;
    /* Warm orange from logo accents */
    --secondary-light: #FF8C5A;
    --accent: #FF9100;
    /* Star/highlight orange */

    /* Gradients updated with the new brand blue */
    --primary-gradient: linear-gradient(135deg, #0047FF 0%, #0066FF 100%);
    /* Gradients */
    --bg-gradient: linear-gradient(135deg, #F5F7FA 0%, #EFF0F5 100%);
    /* --primary-gradient: linear-gradient(135deg, #0052CC 0%, #0066FF 100%); */
    --secondary-gradient: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    --blend-gradient: linear-gradient(135deg, #0052CC 0%, #FF6B35 100%);

    /* Shadows */
    --card-shadow: 0 10px 30px rgba(0, 82, 204, 0.08);
    --card-shadow-hover: 0 20px 40px rgba(0, 82, 204, 0.12);
    --btn-shadow: 0 4px 15px rgba(0, 82, 204, 0.15);
    --btn-shadow-hover: 0 8px 25px rgba(0, 82, 204, 0.25);
}

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

html {
    scroll-behavior: smooth;
    /* JS smooth-scroll is preferred on low-end devices */
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

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

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 82, 204, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

header.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 82, 204, 0.1));
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 6px 12px rgba(0, 82, 204, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--primary);
    /* This makes "Play Sphere" the brand blue */
    font-weight: 700;
    /* Ensures it looks bold like the logo */
}

.logo-text::first-line {
    font-weight: 700;
}

.logo span {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin-left: auto;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
    display: block;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
    background: rgba(0, 82, 204, 0.05);
}

nav ul li a:hover::before {
    width: 80%;
}

/* ==================== HERO SECTION ==================== */
.hero {
    margin-top: 80px;
    min-height: 100vh;
    min-height: 100svh;
    /* prevents mobile address-bar resize jank */
    background: linear-gradient(rgba(245, 247, 250, 0.8), rgba(239, 240, 245, 0.8)),
        url('../assets/images/hero-bg.jpg');
    /* background: var(--bg-gradient), url('../assets/images/hero-bg.jpg'); */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(30px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--gray);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
    box-shadow: var(--btn-shadow);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--btn-shadow-hover);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.95rem 2.65rem;
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--btn-shadow-hover);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

/* ==================== SECTIONS ==================== */
section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: -0.01em;
}

section>.container>.section-title {
    margin-bottom: 3rem;
}

/* ==================== PACKAGES SECTION ==================== */
.packages {
    background: var(--white);
}

.category-grid {
    display: flex;
    /* Changed from grid to flex for easier centering */
    flex-wrap: wrap;
    justify-content: center;
    /* This centers the items in the row */
    gap: 2.5rem;
}

/* Ensure cards don't shrink too much */
.category-card-link {
    text-decoration: none;
    color: inherit;
    flex: 0 1 300px;
    /* Adjust 300px based on your preferred card width */
}

.category-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-light);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.4s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    background-color: #f0f0f0;
    display: block;
    transition: transform 0.4s ease;
    will-change: transform;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.category-card:hover h3 {
    color: var(--primary);
}

.price {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.btn-text {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.category-card:hover .btn-text {
    color: var(--secondary);
    transform: translateX(5px);
}

.category-card:hover .btn-text::after {
    width: 100%;
}

/* ==================== HOW IT WORKS ==================== */
/* content-visibility: auto defers rendering of off-screen sections */
.how-it-works {
    background-color: var(--light);
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step:hover {
    transform: translateY(-8px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary);
}

.step-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    box-shadow: var(--btn-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover .step-icon {
    transform: translateY(-8px) scale(1.08);
    box-shadow: var(--btn-shadow-hover);
}

.step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.step p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==================== HYGIENE SECTION ==================== */
.hygiene {
    background: var(--bg-gradient);
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.promise-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.promise-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--gray-light);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.promise-item:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
}

.promise-item h4 {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.promise-item p {
    color: var(--gray);
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info .logo {
    color: var(--white);
    margin-bottom: 2rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    /* Matches header alignment */
    align-items: center;
    gap: 0.8rem;
}

.footer-info .logo img {
    filter: none;
    /* Shows the logo in its original brand colors */
    height: 65px;
    width: auto;
}

/* Ensure "Play Sphere" in footer is bright enough to read */
.footer-info .logo-text {
    color: var(--white);
}

.footer-info .logo:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.footer-info p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.footer-contact h4,
.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-contact p {
    color: #bdc3c7;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
}

.social-links a {
    color: #bdc3c7;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-4px) rotate(5deg);
}

.footer-bottom {
    border-top: 1px solid #3d4a4d;
    padding: 2rem 0;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ==================== CATEGORY CARD DETAILS ==================== */
.category-card .price {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* ==================== WHATSAPP BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--btn-shadow);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.4s ease, box-shadow 0.4s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #128c7e;
    box-shadow: var(--btn-shadow-hover);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-float .tooltip {
    visibility: hidden;
    width: 120px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    right: 130%;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: var(--btn-shadow);
    pointer-events: none;
}

.whatsapp-float:hover .tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none;
    }

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

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        padding: 1rem 2rem;
        width: 100%;
        max-width: 300px;
    }

    .promise-list {
        flex-direction: column;
        align-items: center;
    }

    .promise-item {
        max-width: 100%;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    nav {
        height: 70px;
    }

    .hero {
        margin-top: 70px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step {
        padding: 1.5rem;
    }

    .footer-contact p {
        font-size: 0.85rem;
    }
}

/* ==================== SCROLL REVEAL ANIMATIONS (moved from JS) ==================== */
.category-card,
.step,
.promise-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
        transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.category-card.visible,
.step.visible,
.promise-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.category-card:nth-child(2) {
    transition-delay: 0.1s;
}

.category-card:nth-child(3) {
    transition-delay: 0.2s;
}

.category-card:nth-child(4) {
    transition-delay: 0.3s;
}

.step:nth-child(2) {
    transition-delay: 0.1s;
}

.step:nth-child(3) {
    transition-delay: 0.2s;
}

.step:nth-child(4) {
    transition-delay: 0.3s;
}

.promise-item:nth-child(2) {
    transition-delay: 0.1s;
}

.promise-item:nth-child(3) {
    transition-delay: 0.2s;
}

/* ==================== CAROUSEL PERF ==================== */
.details-page {
    background-color: var(--light);
}

.detail-container {
    margin-top: 120px;
    margin-bottom: 60px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
    background: var(--white);
    padding: 2rem;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #f0f0f0;
    aspect-ratio: 4/3;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    will-change: transform;
}

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

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s ease, color 0.3s ease;
}

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

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease, transform 0.3s ease;
}

.dot.active {
    background: var(--white);
    transform: scale(1.4);
}

/* Package Info Styles */
.detail-info h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.pkg-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.pkg-description {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.pkg-highlights {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.pkg-highlights span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.inventory-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 2.5rem;
}

.inventory-list li::before {
    content: "✓";
    color: var(--secondary);
    font-weight: bold;
    margin-right: 10px;
}

.booking-box {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px dashed var(--primary-light);
    text-align: center;
    /* This centers the text and the button */
    margin-top: 2rem;
}

/* Responsive Fixes for Details Page */
@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .detail-container {
        margin-top: 100px;
    }
}

.btn-whatsapp {
    background-color: #25D366 !important;
    color: white !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
    background-color: #128C7E !important;
    /* Darker WhatsApp green on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* Ensures the icon inside remains white */
.btn-whatsapp svg {
    fill: white;
}

/* ==================== GALLERY SECTION ==================== */
.gallery {
    background: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.gallery-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 3rem;
}

.gallery-video-heading {
    margin-top: 4rem;
}

.gallery h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--secondary);
    padding-left: 15px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.media-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    background: var(--gray-light);
    /* Place-holder color while loading */
    display: block;
    /* Prevents alignment issues */
}

.media-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: scale(1.03);
    box-shadow: var(--card-shadow-hover);
}

video.media-item {
    cursor: pointer;
}

/* Ensure videos specifically don't show a play icon overlay on some mobile browsers */
video.media-item::-webkit-media-controls {
    display: none !important;
}

@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .media-item {
        height: 180px;
    }
}

/* ==================== MOTION-SAFE ANIMATIONS ==================== */
@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: float 6s ease-in-out infinite;
    }

    .hero::after {
        animation: float 8s ease-in-out infinite reverse;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::after {
        animation: none;
    }

    .category-card,
    .step,
    .promise-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
}