/* 
    JEEFRULES PREMIUM DESIGN SYSTEM
    Aesthetic: Carbon, High-Energy Orange, Deep Navy.
    Focus: Professionalism, Trust, High-Impact Results.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@400;700;900&display=swap');

:root {
    /* Color Palette */
    --primary: #FF5722; /* Vibrant Orange from Logo */
    --primary-dark: #E64A19;
    --secondary: #0A192F; /* Deep Navy for trust/depth */
    --bg-pure: #000000;
    --bg-carbon: #0D0D0D;
    --bg-glass: rgba(20, 20, 20, 0.7);
    
    /* Text */
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --text-soft: #D1D1D1;
    
    /* Spacing & Borders */
    --section-padding: 100px 0;
    --border-radius: 12px;
    --border-soft: 1px solid rgba(255, 255, 255, 0.1);
    
    /* Shadows & Glows */
    --glow-orange: 0 0 20px rgba(255, 87, 34, 0.3);
    --shadow-deep: 0 20px 40px rgba(0, 0, 0, 0.6);
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-pure);
}

body {
    background-color: transparent; /* Let HTML background and fixed animated-bg show through */
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- ANIMATED BACKGROUND --- */
.animated-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* So it doesn't block clicks */
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.25; /* Increased opacity for better visibility */
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.blob-1 {
    width: 600px; height: 600px;
    background: var(--primary); /* Orange */
    top: -100px; left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px; height: 500px;
    background: #E64A19; /* Darker orange */
    bottom: -100px; right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 450px; height: 450px;
    background: #8A0000; /* Deep red */
    top: 40%; left: 60%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(150px, 100px) scale(1.1); }
    66% { transform: translate(-50px, 200px) scale(0.9); }
    100% { transform: translate(-100px, -50px) scale(1); }
}

@media (max-width: 768px) {
    .blob {
        filter: blur(40px); /* Reduce blur to save GPU */
        opacity: 0.1;
    }
    .blob-1 { width: 300px; height: 300px; }
    .blob-2 { width: 250px; height: 250px; }
    .blob-3 { width: 200px; height: 200px; }
}

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-pure); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* SELECTION */
::selection { background: var(--primary); color: #fff; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-title span {
    display: block;
    color: var(--text-muted);
    font-size: 0.4em;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    .stats-row h4 {
        font-size: 2.5rem !important; /* Make stat numbers smaller on mobile */
    }
}

/* LAYOUT */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.bg-carbon { 
    /* Glassy, translucent carbon bg to let the animated blobs show through */
    background: radial-gradient(circle at 50% 100%, rgba(26, 10, 0, 0.6) 0%, rgba(17, 17, 17, 0.6) 70%);
    position: relative;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: none;
    letter-spacing: 1px;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--glow-orange);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 87, 34, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100svh;
        padding-top: 100px;
        padding-bottom: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-container video, 
.hero-video-container .hero-fallback {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
    background: radial-gradient(circle at center, #1a0a00 0%, #000 100%); /* Fallback color */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-pure) 5%, transparent 50%, rgba(0,0,0,0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.hero-h1 {
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 2rem;
    letter-spacing: -4px;
}

@media (max-width: 768px) {
    .hero-h1 {
        font-size: clamp(2.5rem, 12vw, 4rem);
        letter-spacing: -2px;
        margin-bottom: 1.5rem;
    }
}

.hero-h1 .accent,
.section-title .accent {
    color: var(--primary);
    -webkit-text-stroke: 1px var(--primary);
    -webkit-text-fill-color: transparent;
    display: inline;
    font-size: 1em;
}

.hero-p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-soft);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* LEAD MAGNET SECTION */
.lead-magnet {
    background: var(--bg-carbon);
    padding: 3rem 0;
    border-top: var(--border-soft);
    border-bottom: var(--border-soft);
}

.lead-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.lead-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lead-text p {
    color: var(--text-muted);
}

.lead-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
    max-width: 600px;
}

.lead-form input {
    flex: 1;
    min-width: 250px;
    background: #000;
    border: 1px solid #333;
    padding: 1rem 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    border-radius: 4px;
}

.lead-form input:focus {
    border-color: var(--primary);
    outline: none;
}

/* CARDS COMMON */
.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: visible;
}

@media (max-width: 768px) {
    .glass-card {
        padding: 2rem 1.5rem;
    }
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    opacity: 0;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 150%;
    opacity: 1;
}

.glass-card:hover {
    border-color: rgba(255, 69, 0, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 69, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ICON GLOW (METHODOLOGY) */
.icon-glow {
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.15) 0%, rgba(255, 69, 0, 0) 70%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: inset 0 0 20px rgba(255, 69, 0, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.2);
    transition: all 0.4s ease;
}

.icon-glow i {
    font-size: 2.8rem;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(255, 69, 0, 0.6);
    transition: all 0.4s ease;
}

.glass-card:hover .icon-glow {
    transform: scale(1.1);
    box-shadow: inset 0 0 30px rgba(255, 69, 0, 0.3), 0 0 20px rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 69, 0, 0.5);
}

.glass-card:hover .icon-glow i {
    text-shadow: 0 0 25px rgba(255, 69, 0, 1);
}

/* ABOUT & PNL SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Custom Content Grids */
.method-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-top: 4rem;
    gap: 2rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.partners-grid .glass-card {
    max-width: 100%;
}

.payments-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    opacity: 0.8;
}

@media (max-width: 992px) {
    .about-grid { grid-template-columns: 1fr; }
    .method-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
    .stats-row {
        gap: 1.5rem;
        justify-content: center;
        text-align: center;
    }
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-deep);
}

.about-badge {
    position: absolute;
    bottom: -20px; right: -20px;
    background: var(--primary);
    padding: 2rem;
    border-radius: 50%;
    width: 150px; height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--glow-orange);
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .about-badge {
        width: 100px; height: 100px;
        padding: 1rem;
        bottom: -10px; right: -10px;
    }
    .badge-year { font-size: 1.1rem; }
}

.badge-year { font-weight: 900; font-size: 1.5rem; display: block; }
.badge-txt { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }

/* PROGRAMS SECTION (JEEFRULES) */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Mobile Carousel Container */
.plans-carousel-container {
    position: relative;
    width: 100%;
}

.carousel-nav-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; /* Let clicks pass through empty space */
    z-index: 100;
}

.carousel-btn {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: auto; /* Buttons keep clickability */
}

/* Position adjustments for outside of cards if needed */
#prevPlan { margin-left: -10px; }
#nextPlan { margin-right: -10px; }

.carousel-btn:hover {
    background: rgba(255, 87, 34, 0.8);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    /* Convert grid to horizontal scrolling carousel */
    .programs-grid { 
        display: flex; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        scroll-snap-type: x mandatory; 
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none; /* Firefox */
        padding-top: 1.5rem; /* Prevent recommended tag cutoff */
        padding-bottom: 2rem; /* space for scrolling / shadow */
        gap: 1.5rem;
    }
    
    .programs-grid::-webkit-scrollbar { 
        display: none; /* Chrome, Safari */
    }
    
    .plan-card { 
        min-width: 85%; /* Shows a bit of the next card */
        scroll-snap-align: center; 
    }
    
    /* Remove scale from recommended on mobile to avoid layout bugs when scrolling */
    .plan-card.recommended {
        transform: scale(1);
    }
    
    .carousel-nav-wrapper {
        display: flex;
    }
    
    /* Mobile Gallery Slider - Scrollable */
    .desktop-gallery { display: none !important; }
    
    .gallery-grid {
        display: none; /* Default for non-mobile if inside media, but let's be explicit */
    }
    
    .mobile-gallery { 
        display: flex !important; 
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1.5rem;
        padding-top: 1.5rem;
        padding-bottom: 2rem;
    }
    
    .mobile-gallery::-webkit-scrollbar { 
        display: none; 
    }
    
    .mobile-gallery .gallery-item {
        position: relative;
        top: auto; left: auto;
        width: 85%;
        min-width: 85%;
        height: auto;
        opacity: 1;
        pointer-events: auto;
        scroll-snap-align: center;
        border-radius: 12px;
        flex-shrink: 0;
        animation: none !important;
        margin-bottom: 0;
    }

    .gallery-item img {
        width: 100%; height: 100%;
        object-fit: cover; /* Fill the whole container to avoid grey bars */
        background: transparent;
    }
}

.plan-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.plan-card.recommended {
    border: 2px solid var(--primary);
    position: relative;
    transform: scale(1.05);
}

.recommended-tag {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 20px;
}

.plan-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    margin: 1.5rem 0;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-btns {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
}

.plan-btns .btn {
    padding: 1rem;
    font-size: 0.85rem;
    width: 100%;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.plan-features li i {
    color: var(--primary);
    margin-right: 15px;
}

/* GALLERY GRID - MASONRY STYLE */
.gallery-grid {
    columns: 4;
    column-gap: 20px;
}

.mobile-gallery {
    display: none;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.gallery-item img {
    width: 100%;
    display: block;
    object-fit: contain; /* Don't crop important text */
    background: #111;
}

@media (max-width: 1100px) and (min-width: 1025px) { .gallery-grid { columns: 3; } }
/* 1024px and below is handled by the Mobile Gallery Slider now */

/* VIDEO SECTION */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

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

.video-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-wrapper video {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* VIDEO CONTAINER */
.video-container {
    position: relative;
}

/* CUSTOM HOVER VIDEO / COLLAGE PIECE */
.sales-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 4px;
    background: #000;
    aspect-ratio: 1 / 1; /* Makes the grid a perfect square */
}

.sales-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom; /* As requested, show the bottom half of the images */
}

.hover-video {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    max-height: 80vh;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    border: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hover-video {
        max-width: 100%;
        margin-top: 2rem;
    }
}

.hover-video:hover {
    transform: scale(1.02);
}

.hover-video::-webkit-media-controls-play-button,
.hover-video::-webkit-media-controls-timeline,
.hover-video::-webkit-media-controls-current-time-display,
.hover-video::-webkit-media-controls-time-remaining-display,
.hover-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* PARTNERS & FOOTER */
.partners-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    opacity: 0.6;
    filter: grayscale(1);
    transition: all 0.3s;
}

.partners-flex:hover { opacity: 1; filter: grayscale(0); }

.partner-logo { height: 60px; object-fit: contain; }

footer {
    padding: 80px 0 40px 0;
    border-top: var(--border-soft);
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-link:hover { color: var(--primary); }

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* RENDERBYTE FOOTER */
.renderbyte-footer {
    margin-top: 2.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 1.5px;
}

.renderbyte-link {
    background: linear-gradient(90deg, #8A2BE2, #FF69B4, #87CEEB);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

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