/* =========================================
   ICE MAN RECOVERY - MASTER STYLESHEET
   Table of Contents:
   1. Variables & Resets
   2. Typography & Utilities
   3. Layout Structure
   4. Header & Navigation
   5. Buttons & Forms
   6. Cards & UI Components
   7. Package Colors
   8. Page Specifics (Hero, Benefits, Dashboard, Modals)
   9. Sexy Fire & Ice Footer
  10. E-Commerce Shop & Filters
   ========================================= */

/* =========================================
   1. VARIABLES & RESETS
   ========================================= */
:root {
    /* Brand Colors */
    --ice-blue: #0A84C6;
    --ice-blue-hover: #076496;
    --heat-red: #D32F2F;
    --dark-bg: #111111;
    --dark-surface: #1A1A1A;
    --white: #FFFFFF;
    --off-white: #F9F9F9;
    --light-grey: #E0E0E0;
    --text-main: #333333;
    --text-muted: #666666;

    /* Package Colors */
    --pkg-single: white;
    --pkg-starter: #0A84C6;
    --pkg-popular: #D32F2F;
    --pkg-bronze: #CD7F32;
    --pkg-elite: #A9A9A9;
    --pkg-premium: #D4AF37;

    /* Layout & UI */
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease-in-out;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--ice-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--ice-blue-hover);
}

ul {
    list-style: none;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-bg);
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 15px; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--ice-blue); }
.text-red { color: var(--heat-red); }
.font-bold { font-weight: 700; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mt-auto { margin-top: auto; }

/* =========================================
   3. LAYOUT STRUCTURE
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-off-white {
    background-color: var(--off-white);
}

/* Responsive CSS Grid */
.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.main-navbar {
    /* 1. Deep charcoal/black with 90% opacity */
    background-color: rgba(10, 10, 10, 0.9); 
    
    /* 2. The Apple-style Frosted Glass Blur */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    
    /* 3. A razor-thin glowing line to separate it from the page */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

/* Base (Mobile & Tablet View - up to 1199px) */
.nav-container {
    display: flex;
    justify-content: center; /* This perfectly centers the logo */
    align-items: center;
    position: relative; /* Allows the menu button to be pinned to the right */
}

.brand-logo img {
    height: 80px;
    display: block;
    margin: 0; /* Resetting the desktop margin so it centers properly */
}

/* 1. The Entrance Animation (Simplified for JS Control) */
@keyframes cinematicLogoReveal {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 2. Logo Base Styling */
.brand-logo img {
    height: 80px;
    display: block;
    margin: 0; 
    
    /* Only run the entrance drop-in on load */
    animation: cinematicLogoReveal 1.2s ease-out forwards;
    
    /* Matches the exact 1.5s cross-fade speed of your hero slides */
    transition: filter 1.5s ease-in-out, transform 0.4s ease-in-out;
}

/* 3. The Sync Classes (Controlled by JS) */
.logo-glow-blue {
    filter: drop-shadow(0 0 8px rgba(7, 100, 150, 1.0)) 
            drop-shadow(0 0 25px rgba(10, 132, 198, 0.9))
             drop-shadow(0 0 40px rgba(10, 132, 198, 0.7)); 
}

.logo-glow-red {
    filter: drop-shadow(0 0 8px rgba(160, 20, 20, 1.0)) 
            drop-shadow(0 0 25px rgba(211, 47, 47, 0.9))
             drop-shadow(0 0 40px rgba(211, 47, 47, 0.7)); 
}

/* 4. The Interactive Hover Effect */
.brand-logo a:hover img {
    transform: scale(1.08) translateY(-2px); 
    filter: drop-shadow(0 8px 15px rgba(10, 132, 198, 0.7)) !important; 
}

.nav-links {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%; /* Pushes it exactly to the bottom edge of the nav bar */
    left: 0;
    
    /* Matches the main navbar dark frosted glass exactly */
    background-color: rgba(10, 10, 10, 0.9); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    
    flex-direction: column;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    padding: 20px 0;
    z-index: 999;
}

.nav-links.active {
    display: flex;
}

/* 1. Base Link Styling (Sleek Silver) */
.nav-links a {
    color: #cccccc; /* Soft silver/grey for depth */
    font-weight: 600;
    padding: 10px 20px;
    display: block;
    text-transform: uppercase; /* Gives it that high-end app feel */
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

/* 2. The Hover State (Cinematic Ice Blue Glow) */
.nav-links a:hover, 
.nav-links a.active {
    color: var(--white); /* Snaps to pure white */
    text-shadow: 0 0 15px rgba(10, 132, 198, 0.8); /* Emits the blue aura */
}

/* 3. CRITICAL: Update the Mobile Hamburger Icon for Dark Mode */
.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white); /* Changed from dark-bg so it is visible on the dark glass! */
    background: none;
    border: none;
    position: absolute;
    right: 20px; 
}

/* Desktop View (1200px and up) */
@media (min-width: 1200px) {
    .nav-container {
        justify-content: space-between; /* Pushes logo left, nav right */
    }
    
    .menu-toggle { 
        display: none; 
    }
    
    .nav-links {
        display: flex;
        background: transparent !important; /* CRITICAL: Removes the dark box so it blends with the main nav */
        backdrop-filter: none; /* Removes the double blur */
        border: none;
        position: static;
        flex-direction: row;
        width: auto;
        box-shadow: none;
        padding: 0;
        align-items: center;
        gap: 20px;
        margin-right: 20px;
    }
}

/* =========================================
   5. BUTTONS & FORMS
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--ice-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--ice-blue-hover);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--heat-red);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--ice-blue);
    color: var(--ice-blue);
}

.btn-outline:hover {
    background-color: var(--ice-blue);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-bg);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--light-grey);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--ice-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 198, 0.2);
}

/* POPIA Toggle Switch */
.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--ice-blue); }
input:checked + .slider:before { transform: translateX(26px); }

/* =========================================
   6. CARDS & UI COMPONENTS
   ========================================= */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 25px;
    border: 1px solid var(--light-grey);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ice-blue);
    margin-bottom: 15px;
}

/* Update for Service Cards with Full-Width Images */
.service-card {
    padding: 0; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.card-img-header {
    width: 100%;
    height: 180px; 
    overflow: hidden;
}

.card-img-header img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .card-img-header img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1; 
}

/* =========================================
   7. PACKAGE SPECIFIC COLORS
   ========================================= */
.pkg-single-dark { border-top-color: var(--white); }
.pkg-single { border-top-color: var(--pkg-single); }
.pkg-starter { border-top-color: var(--pkg-starter); }
.pkg-popular { border-top-color: var(--pkg-popular); }
.pkg-bronze { border-top-color: var(--pkg-bronze); }
.pkg-elite { border-top-color: var(--pkg-elite); }
.pkg-premium { border-top-color: var(--pkg-premium); }

.pkg-single h3 { color: var(--pkg-single); }
.pkg-starter h3 { color: var(--pkg-starter); }
.pkg-popular h3 { color: var(--pkg-popular); }
.pkg-bronze h3 { color: var(--pkg-bronze); }
.pkg-elite h3 { color: var(--pkg-elite); }
.pkg-premium h3 { color: var(--pkg-premium); }

/* =========================================
   8. PAGE SPECIFICS (CINEMATIC CAROUSEL HERO)
   ========================================= */
.hero-carousel {
    position: relative;
    width: 100%;
    min-height: 85vh;
    overflow: hidden;
    background-color: var(--dark-bg);
}

/* Individual Slides */
.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: top 10% right 15%; /* Anchors image properly */
    opacity: 0; /* Hidden by default */
    transition: opacity 1.5s ease-in-out; /* Super smooth 1.5s cinematic fade */
    z-index: 0;
}

.hero-slide.active {
    opacity: 1; /* Reveals the active slide */
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 45%, rgba(17,17,17,0) 100%);
    z-index: 1;
}

.hero-slide .container {
    display: flex;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    text-align: left; 
    padding: 40px 15px; 
    margin: 0; 
}

.hero-content h1,
.hero-content .hero-sub,
.hero-content .hero-buttons,
.hero-content .hero-quote {
    max-width: 650px;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}
/* NEW: Blue Glow for Kiera's Slide */
.hero-content .text-glow {
    color: var(--ice-blue);
    text-shadow: 0 0 20px rgba(10, 132, 198, 0.7);
}

/* NEW: Red Glow for Kiera's Slide */
.hero-content .text-glow-red {
    color: var(--heat-red);
    text-shadow: 0 0 20px rgba(211, 47, 47, 0.7);
}

.hero-content .hero-sub {
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-start; 
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-buttons .btn-primary {
    box-shadow: 0 0 20px rgba(10, 132, 198, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .hero-carousel {
        min-height: 90vh;
    }
    .hero-slide {
        background-position: top 10% center; 
    }
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(17,17,17,0.1) 0%, rgba(17,17,17,0.9) 50%, rgba(17,17,17,1) 100%);
    }
    .hero-slide .container {
        justify-content: center;
    }
    .hero-content {
        text-align: center; 
        margin-top: 150px; 
        padding: 20px 15px 80px 15px; 
        width: 100%;
    }
    .hero-content h1 {
        font-size: 2.6rem; 
        margin-bottom: 10px;
    }
    .hero-content .hero-sub {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .hero-content h1,
    .hero-content .hero-sub,
    .hero-content .hero-buttons,
    .hero-content .hero-quote {
        max-width: 100%; 
    }
    .hero-buttons {
        flex-direction: column;
        justify-content: center;
    }
    .hero-buttons .btn {
        width: 100%;
    }
}

.inline-heading {
  display: flex; 
  align-items: center; /* Vertically centers the text and the image */
  flex-wrap: nowrap; /* Forces them to stay on the same line */
  gap: 12px; /* Adds a nice gap between "WHY" and the logo */
}

.inline-heading img {
  display: block; /* Prevents weird spacing issues inside the flex container */
  max-height: 1.2em; /* Adjust this number to make the logo match the text height */
  width: auto; /* Ensures the logo doesn't stretch out of proportion */
  margin-top: 5px;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
  .inline-heading {
    justify-content: center; /* Horizontally centers the text and image on smaller screens */
  }
}

/* =========================================
   3D RUBIK'S CUBE ANIMATION
   ========================================= */
.cube-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px; /* Gives the 3D depth effect */
    padding: 60px 0;
}

.rubiks-cube {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    animation: spinCube 20s infinite linear; /* Continuous smooth rotation */
}



/* The faces of the cube */
.cube-face {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(10, 132, 198, 0.3); /* Soft blue glow */
    overflow: hidden;
    border-radius: 10px; /* Slight rounding for a premium feel */
}

/* Ensure the image fills the face completely */
.cube-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Positioning the 6 faces in 3D space */
/* Half of 280px is 140px, so we translate Z by 140px */
.cube-front  { transform: rotateY(  0deg) translateZ(140px); }
.cube-right  { transform: rotateY( 90deg) translateZ(140px); }
.cube-back   { transform: rotateY(180deg) translateZ(140px); }
.cube-left   { transform: rotateY(-90deg) translateZ(140px); }

/* Top and bottom caps (Fire & Ice themed) */
.cube-top    { 
    transform: rotateX( 90deg) translateZ(140px); 
    background: linear-gradient(135deg, var(--ice-blue), black); 
}
.cube-bottom { 
    transform: rotateX(-90deg) translateZ(140px); 
    background: linear-gradient(135deg, var(--heat-red), black); 
}

/* The Keyframe Animation */
@keyframes spinCube {
    0% { transform: rotateX(25deg) rotateZ(15deg) rotateY(0deg); }
    100% { transform: rotateX(-25deg) rotateZ(15deg) rotateY(360deg); }
}

/* Mobile adjustments for the cube */
@media (max-width: 767px) {
    .rubiks-cube {
        width: 200px;
        height: 200px;
    }
    .cube-face {
        width: 200px;
        height: 200px;
    }
    .cube-front  { transform: rotateY(  0deg) translateZ(100px); }
    .cube-right  { transform: rotateY( 90deg) translateZ(100px); }
    .cube-back   { transform: rotateY(180deg) translateZ(100px); }
    .cube-left   { transform: rotateY(-90deg) translateZ(100px); }
    .cube-top    { transform: rotateX( 90deg) translateZ(100px); }
    .cube-bottom { transform: rotateX(-90deg) translateZ(100px); }
    
    .cube-container {
        padding: 20px 0 40px 0;
    }
    .benefits-content {
        text-align: center;
    }
}
.premium-benefits-section {
    background-color: var(--dark-surface); 
    color: var(--white);
    position: relative;
}

.premium-benefits-section h2 {
    color: var(--white);
    font-size: 2.5rem;
    text-transform: uppercase;
}

.text-light-muted {
    color: #A0A0A0;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 25px;
    border-radius: 50px; 
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: default;
}

.benefit-item:hover {
    background: rgba(10, 132, 198, 0.1);
    border-color: var(--heat-red);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(10, 132, 198, 0.2);
}

.check-icon {
    background: var(--heat-red);
    color: var(--white);
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px var(--heat-red);
}

.check-icon-ice {
    background-image: url('../img/icons/ice-icon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    color: var(--white);
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px var(--ice-blue); 
}

.check-icon-fire {
    background-image: url('../img/icons/fire-icon.webp');
    background-size: contain;
    background-repeat: no-repeat;
    color: var(--white);
    width: 28px;
    height: 28px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 0.85rem;
    box-shadow: 0 0 10px var(--heat-red); 
}

/* Dashboard / Profile / Admin */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.sidebar {
    background: var(--off-white);
    padding: 20px;
    border-radius: var(--border-radius);
}

.sidebar-menu li a {
    display: block;
    padding: 10px;
    color: var(--text-main);
    border-bottom: 1px solid var(--light-grey);
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    color: var(--ice-blue);
    font-weight: 600;
    border-bottom-color: var(--ice-blue);
}

.dashboard-content {
    flex: 1;
}

@media (min-width: 992px) {
    .dashboard-layout {
        flex-direction: row;
    }
    .sidebar {
        width: 250px;
        flex-shrink: 0;
    }
}

/* Data Tables (Admin / Profile Bookings) */
.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-grey);
}

table th {
    background-color: var(--off-white);
    color: var(--dark-bg);
    font-weight: 600;
}

/* Modals */
#modal-body {
    width: 100%;
}

#modal-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* Modern way to keep perfect video proportions */
    height: auto; /* Overrides the hardcoded 315px so it fits mobile perfectly */
    display: block; /* Removes the weird gap at the bottom */
    margin: 0 auto; /* Centers it perfectly */
    border-radius: var(--border-radius); /* Gives the video smooth rounded corners */
}

.modal {
    display: none; 
    position: fixed; /* Fixed the typo here */
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease-out forwards;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px; 
    right: 15px;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10; /* Ensures it always sits on top of the video */
    background: var(--white); /* Adds a tiny background so it's visible if it overlaps */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
} /* Added the missing closing bracket here */

.close-btn:hover {
    color: var(--heat-red);
}

/* =========================================
   9. SEXY FIRE & ICE FOOTER
   ========================================= */
.fire-accent-footer {
    background-color: #111111; 
    color: var(--white);
    position: relative;
    padding-top: 60px;
    margin-top: 60px;
}

.fire-accent-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ice-blue) 0%, var(--heat-red) 50%, #FF5722 80%, #FF9800 100%);
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4); 
}

.footer-grid {
    display: grid;
    gap: 40px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid.grid-3 {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

.footer-logo {
    height: 65px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.fire-accent-footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.fire-accent-footer a {
    color: var(--light-grey);
    text-decoration: none;
    transition: all 0.3s ease;
}

.fire-accent-footer a:hover {
    color: #FF5722; 
    text-shadow: 0 0 8px rgba(255, 87, 34, 0.5); 
    padding-left: 5px; 
}

.footer-contact p {
    color: var(--light-grey);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    background-color: #080808; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin-bottom: 5px;
    font-size: 0.85rem;
    color: #888888;
}

.developer-credit a {
    color: var(--ice-blue);
}

.developer-credit a:hover {
    color: var(--ice-blue-hover);
    text-shadow: none;
    padding-left: 0;
}

/* =========================================
   10. E-COMMERCE SHOP & FILTERS
   ========================================= */
.shop-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Changed from space-between */
    gap: 30px; /* Adds nice spacing between the filters and the sort dropdown */
    align-items: center;
    background: var(--white);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--light-grey);
}

.filter-group {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--ice-blue);
    color: var(--white);
}

.sort-group label {
    font-weight: 600;
    margin-right: 10px;
    color: var(--dark-bg);
}

/* Dark Package Cards (Matching the Flyer) */
.dark-pkg {
    background-color: var(--dark-bg);
    color: var(--white);
    border: 1px solid var(--text-muted);
    position: relative;
    padding-top: 40px; /* Room for the top badge */
}

.pkg-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ice-blue);
    color: var(--white);
    padding: 5px 30px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.pkg-single-dark .pkg-badge { background: var(--white); color: var(--dark-bg);}
.badge-red { background: var(--heat-red); }
.badge-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); color: #111; }
.badge-silver { background: linear-gradient(135deg, #e0e0e0, #888888); color: #111; }
.badge-gold { background: linear-gradient(135deg, #F3E5AB, #D4AF37); color: #111; }

.pkg-single-dark .pkg-title { 
    color: var(--white); 
}

.pkg-title {
    font-size: 1.6rem;
    margin-bottom: 5px;
    text-align: center;
    color: var(--white);
}

.pkg-single-dark .pkg-price { 
    color: var(--white); 
}
.pkg-price {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--ice-blue);
    margin-bottom: 10px;
}

.pkg-subtitle {
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.pkg-features {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.pkg-features li {
    margin-bottom: 8px;
    align-items: flex-start;
}

.pkg-features span {
    margin-right: 10px;
    font-size: 1.1rem;
}

.check-blue { color: var(--ice-blue); }
.check-red { color: var(--heat-red); }
.check-bronze { color: #CD7F32; }
.check-silver { color: #A9A9A9; }
.check-gold { color: #D4AF37; }

.pkg-target {
    font-size: 0.8rem;
    text-align: center;
    font-weight: 700;
    color: var(--ice-blue);
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* Metallic Text Utilities */
.text-red { color: var(--heat-red); }
.text-silver { color: #A9A9A9; }
.text-gold { color: #D4AF37; }
.text-bronze { color: #CD7F32; }

/* Custom Borders for Dark Packages */
.pkg-single { border-color: var(--pkg-single); }
.pkg-starter { border-color: var(--ice-blue); }
.pkg-popular { border-color: var(--heat-red); }
.pkg-bronze { border-color: #CD7F32; }
.pkg-elite { border-color: #A9A9A9; }
.pkg-premium { border-color: #D4AF37; }

/* Custom White Button */
.btn-white {
    background-color: var(--white);
    color: var(--dark-bg);
    border: 2px solid var(--white);
    font-weight: 700;
}

.btn-white:hover {
    background-color: transparent;
    color: var(--white);
}

/* =========================================
   11. HOMEPAGE PREMIUM OVERHAUL (DARK THEME)
   ========================================= */

/* Scrolling Sports Ticker */
.ticker-tape {
    background: linear-gradient(90deg, var(--ice-blue) 0%, #054a70 100%);
    color: var(--white);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(10, 132, 198, 0.4);
    position: relative;
    z-index: 10;
}

.ticker-tape p {
    display: inline-block;
    margin: 0;
    padding-left: 100%;
    animation: scrollTicker 25s linear infinite;
}

@keyframes scrollTicker {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Dark Section Background */
.bg-dark-section {
    background-color: var(--dark-bg);
    color: var(--white);
}

.bg-dark-section h2 {
    color: var(--white);
}

/* Premium Dark Service Cards */
.service-card-premium {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    color: var(--white);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* ADD THIS LINE */
}

.service-card-premium:hover {
    transform: translateY(-10px);
    border-color: var(--ice-blue);
    box-shadow: 0 15px 40px rgba(10, 132, 198, 0.3);
}

.service-card-premium .card-img-header {
    position: relative;
}

/* Adds a dark fade over the bottom of the image to blend into the card */
.service-card-premium .card-img-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
}

.service-card-premium .card-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-top: 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.service-card-premium .text-muted {
    color: #aaaaaa;
}

/* =========================================
   12. INTERACTIVE CARD EFFECTS (COLOR BURST & GLOW)
   ========================================= */

/* Container sizing for the 800x800 icons */
.service-card-premium .card-img-header {
    height: 200px; 
    background-color: #080808; 
}

/* Base State: Perfectly sized AND Grayscale */
.service-card-premium .card-img-header img {
    object-fit: contain; 
    padding: 25px; 
    filter: grayscale(100%) contrast(120%); 
    transition: all 0.5s ease-in-out;
}

/* Hover State (Desktop) OR In-View State (Mobile Scroll) */
.service-card-premium:hover .card-img-header img,
.service-card-premium.in-view .card-img-header img {
    filter: grayscale(0%) contrast(100%); 
    transform: scale(1.1); 
}

/* 2. Thematic Neon Glows (Triggers on Hover or Mobile Scroll) */

/* Ice Bath - Freezing Blue */
.glow-ice:hover, .glow-ice.in-view {
    border-color: var(--ice-blue);
    box-shadow: 0 15px 40px rgba(10, 132, 198, 0.5);
}

/* Sauna - Fiery Red */
.glow-fire:hover, .glow-fire.in-view {
    border-color: var(--heat-red);
    box-shadow: 0 15px 40px rgba(211, 47, 47, 0.5);
}

/* Oxygen - Neon Cyan */
.glow-oxygen:hover, .glow-oxygen.in-view {
    border-color: #00E5FF;
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.4);
}

/* IV Drip - Pure White/Silver */
.glow-iv:hover, .glow-iv.in-view {
    border-color: #FFFFFF;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* =========================================
   13. PRICING TEASER & SOCIAL PROOF
   ========================================= */
.pricing-teaser-card {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-teaser-card:hover {
    border-color: var(--ice-blue);
    transform: translateY(-5px);
}

.social-proof-box {
    background: linear-gradient(135deg, rgba(10, 132, 198, 0.1), transparent);
    border-left: 4px solid var(--ice-blue);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.social-proof-box2 {
    background: linear-gradient(135deg, rgba(10, 132, 198, 0.1), transparent);
    border-left: 4px solid var(--heat-red);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
}

.social-proof-box p,
.social-proof-box2 p {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--white);
    line-height: 1.6;
}

/* =========================================
   14. FLOATING ACTION BUTTON (FAB)
   ========================================= */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fab-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    background: var(--dark-bg);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--ice-blue);
    white-space: nowrap;
}

.fab-item:hover {
    background: var(--ice-blue);
    color: var(--white);
}

.fab-item.whatsapp {
    border-color: #25D366;
    color: #25D366;
}

.fab-item.whatsapp:hover {
    background: #25D366;
    color: var(--dark-bg);
}

.fab-toggle {
    width: 65px;
    height: 65px;
    background: var(--ice-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(10, 132, 198, 0.6);
    border: none;
    transition: transform 0.3s ease, background 0.3s ease;
}

.fab-toggle.active {
    transform: rotate(45deg); /* Turns the + into an X */
    background: var(--heat-red);
    box-shadow: 0 4px 20px rgba(211, 47, 47, 0.6);
}

@media (max-width: 767px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    .social-proof-box {
        padding: 25px;
    }
    .social-proof-box p {
        font-size: 1.1rem;
    }
}