@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-primary: #050505;
    --bg-secondary: #121212;
    --bg-tertiary: #1C1C1E;
    --accent-red: #FF3B30;
    --accent-red-hover: #E2231A;
    --text-primary: #FFFFFF;
    --text-secondary: #8E8E93;
    --whatsapp-green: #25D366;
    
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: clip; /* Fixes position: sticky bug on iOS/Safari */
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.text-accent { color: var(--accent-red) !important; }
.text-muted { color: var(--text-secondary) !important; }

/* ====================== */
/*        BUTTONS          */
/* ====================== */
.btn-primary {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    font-size: 14px;
}
.btn-primary:hover {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 59, 48, 0.4);
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    background: rgba(0,0,0,0.4);
    font-size: 14px;
}
.btn-outline-light:hover {
    background: #fff;
    color: #000;
}

.btn-whatsapp {
    background-color: var(--whatsapp-green);
    color: white;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}
.btn-whatsapp:hover {
    background-color: #1ebe56;
    color: white;
}

/* ====================== */
/*        NAVBAR           */
/* ====================== */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1050;
}
.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar-brand {
    font-family: var(--font-heading);
    color: var(--accent-red) !important;
    font-size: 28px;
    letter-spacing: 2px;
}
.nav-link {
    color: var(--text-primary) !important;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-red) !important;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-red);
}

/* Hamburger Toggle */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 10px;
    outline: none !important;
    box-shadow: none !important;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    width: 24px;
    height: 24px;
}

/* ====================== */
/*      HERO SECTION       */
/* ====================== */
.scroll-hero {
    position: relative;
    height: 400vh; /* creates the scrollable height for animation */
    background-color: var(--bg-primary);
}

.scroll-hero-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(0deg, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.4) 30%, rgba(0,0,0,0.1) 100%);
    pointer-events: none; /* Let scroll pass through */
}

.hero-content {
    pointer-events: auto; /* Re-enable clicks for buttons */
    max-width: 800px;
    z-index: 3;
    opacity: 1;
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
    margin-top: 100px; /* Offset for navbar */
}

.hero-content p.lead {
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
}

/* Stats Panel */
.stat-panel {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px 30px;
    margin-top: 40px;
}
.stat-item {
    padding: 5px 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
    text-align: center;
}
.stat-item:last-child {
    border-right: none;
}
.stat-val {
    color: var(--accent-red);
    font-family: var(--font-heading);
    font-size: 24px;
    display: block;
    line-height: 1;
}
.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ====================== */
/*       CARDS             */
/* ====================== */
.bg-secondary-card {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.bg-tertiary {
    background-color: var(--bg-tertiary);
}

.glow-card {
    border-color: var(--accent-red) !important;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.35);
}

.feature-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(255, 59, 48, 0.1);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.transform-hover {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.transform-hover:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

/* Utility */
.super-title {
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

/* Mobile Bottom Tab Bar */
.mobile-sticky-cta {
    display: none;
}

.mobile-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: rgba(5,5,5,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 6px 0 env(safe-area-inset-bottom, 4px);
}
.mobile-tab-bar .tab-nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0 5px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    -webkit-overflow-scrolling: touch;
}
.mobile-tab-bar .tab-nav::-webkit-scrollbar {
    display: none;
}
.mobile-tab-bar .tab-item {
    flex: 0 0 16.666%; /* Default fallback */
    min-width: 65px; /* Ensures they don't squish */
    text-align: center;
}
.mobile-tab-bar .tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 2px;
    transition: color 0.2s ease;
}
.mobile-tab-bar .tab-link .tab-icon {
    font-size: 20px;
    margin-bottom: 2px;
    line-height: 1;
}
.mobile-tab-bar .tab-link.active,
.mobile-tab-bar .tab-link:hover {
    color: var(--accent-red);
}

/* Flow link (next page CTA) */
.flow-next {
    display: block;
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(255,59,48,0.05) 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0;
}
.flow-next a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.flow-next a:hover {
    color: var(--accent-red);
}
.flow-next .flow-arrow {
    font-size: 20px;
    animation: bounceDown 1.5s infinite;
}
@keyframes bounceDown {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ====================== */
/*   RESPONSIVE (Mobile)   */
/* ====================== */
@media (max-width: 991.98px) {
    /* Navbar Mobile */
    .navbar {
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(10px);
        padding: 12px 0;
    }
    .navbar-collapse {
        background: rgba(5, 5, 5, 0.98);
        margin-top: 15px;
        padding: 20px;
        border-radius: 12px;
        border: 1px solid rgba(255,255,255,0.1);
    }
    .nav-link {
        margin: 8px 0;
        font-size: 16px;
        padding: 8px 0;
    }
    .nav-link.active::after {
        bottom: 0px;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 100px 0 60px;
    }
    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 5rem) !important;
    }
    .hero p {
        font-size: 14px;
        padding: 0 10px;
    }

    /* Stat Panel */
    .stat-panel {
        border-radius: 16px;
        padding: 15px 10px;
    }
    .stat-item {
        padding: 8px 12px;
    }
    .stat-val { font-size: 20px; }
    .stat-label { font-size: 8px; }

    /* Display typography scale-down */
    .display-1 { font-size: clamp(2.5rem, 8vw, 5rem) !important; }
    .display-2 { font-size: clamp(2rem, 7vw, 4.5rem) !important; }
    .display-3 { font-size: clamp(1.8rem, 6vw, 3.5rem) !important; }
    .display-4 { font-size: clamp(1.6rem, 5.5vw, 3rem) !important; }
    .display-5 { font-size: clamp(1.4rem, 5vw, 2.5rem) !important; }
    .display-6 { font-size: clamp(1.2rem, 4.5vw, 2rem) !important; }

    /* Buttons */
    .btn-primary, .btn-outline-light, .btn-whatsapp {
        padding: 10px 22px;
        font-size: 13px;
    }

    /* Hero Buttons Stack */
    .hero .d-flex.gap-3 {
        flex-direction: column;
        align-items: center;
        gap: 10px !important;
    }
    .hero .d-flex.gap-3 .btn {
        width: 80%;
        max-width: 300px;
    }

    /* Mobile Tab Bar */
    .mobile-tab-bar {
        display: block;
    }
    body {
        padding-bottom: 65px;
    }

    /* General spacing tweaks */
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .container.py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

    /* Contact details stack */
    .d-flex.justify-content-center.gap-4.text-muted.small.mt-2 {
        flex-direction: column;
        align-items: center;
        gap: 8px !important;
    }

    /* Pricing card scale fix */
    .glow-card {
        transform: none !important;
    }
}

/* ====================== */
/*   RESPONSIVE (Tablet)   */
/* ====================== */
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero h1 { font-size: clamp(3rem, 6vw, 4rem) !important; }
    .stat-panel { border-radius: 30px; padding: 15px 20px; }
}

/* ====================== */
/*  RESPONSIVE (Small)     */
/* ====================== */
@media (max-width: 575.98px) {
    .navbar-brand { font-size: 22px; }
    
    .hero { min-height: 100dvh; }
    .hero h1 { font-size: 2.2rem !important; line-height: 1.1; }
    .hero p  { font-size: 13px; }

    /* Stat panel vertical on very small */
    .stat-panel {
        flex-direction: column;
        border-radius: 16px;
        padding: 15px 20px;
        gap: 5px;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 10px 0;
    }
    .stat-item:last-child { border-bottom: none; }

    /* Gallery images */
    .gallery-section img, 
    section img[style*="height: 500px"],
    section img[style*="height: 480px"],
    section img[style*="height: 400px"] {
        height: 250px !important;
    }

    /* Footer */
    .d-flex.justify-content-center.gap-4 {
        flex-wrap: wrap;
        gap: 8px !important;
    }

    /* Section Padding */
    .pt-5.mt-5 { padding-top: 1.5rem !important; margin-top: 4rem !important; }
    
    /* Feature icon boxes */
    .feature-icon-box { width: 42px; height: 42px; font-size: 20px; }
}

/* Global utility for preventing word breaking overflow */
.text-wrap-break { word-break: break-word; overflow-wrap: break-word; }


