/* ============================================================
   1. FONT IMPORTS & DEFINITIONS
   ============================================================ */

/* Import 'Outfit' Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* Define Custom 'Bestoom' Font (Local File) */
@font-face {
    font-family: 'MyUniqueFont';
    src: url('../fonts/BestoomBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ============================================================
   2. GLOBAL RESET & CSS VARIABLES
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- Brand Colors --- */
    --brand-color: #4c3c83;
    --brand-accent: #F8C62F;
    --brand-dark: #2a085e;

    /* --- Text Colors --- */
    --text-dark: #1F263B;
    --text-gray: #555;
    --white: #ffffff;

    /* --- Fonts --- */
    --font-primary: 'Outfit', sans-serif;
    --font-heading: 'MyUniqueFont', sans-serif;

    /* --- Layout --- */
    --nav-height: 80px;

    /* --- Page Background --- */
    --page-bg: #ffffff;

    /* --- Footer --- */
    --footer-text-muted: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   3. GLOBAL BODY STYLES (IMPORTANT FIX HERE)
   ============================================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--page-bg);
    overflow-x: hidden;

    /* 🔥 CRITICAL FIX FOR HEADER JUMP */
    padding-top: var(--nav-height);
}

/* ============================================================
   4. GLOBAL SECTION SAFETY (OPTIONAL BUT RECOMMENDED)
   ============================================================ */

section {
    position: relative;
}

/* ============================================================
   END OF MAIN GLOBAL STYLES
   ============================================================ */





/* ======================================================================================================
=================================== HOME TOP SCROLL START ===============================================
====================================================================================================== */

/* --- Main Button Container (Responsive Base) --- */
    .top {
        position: fixed;
        /* Default Position (Desktop) */
        bottom: 90px;
        right: 40px;
        z-index: 9999;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        cursor: pointer;
        
        /* Initial State: Hidden */
        opacity: 0;
        visibility: hidden;
        transform: translateY(100px);
        transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        
        /* Mobile Touch Optimization */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    /* Active State (Visible) */
    .top.active-scroll {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* --- THE DOTTED LINE (Responsive) --- */
    .top::before {
        content: '';
        position: absolute;
        bottom: 100%; 
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        
        /* Desktop Height */
        height: 150px; 
        
        border-left: 2px dashed #b0bec5;
        z-index: -1;
        -webkit-mask-image: linear-gradient(to top, black 20%, transparent 100%);
        mask-image: linear-gradient(to top, black 20%, transparent 100%);
    }

    /* --- Rocket Image (Responsive) --- */
    .top img {
        /* Desktop Size */
        width: 50px; 
        height: auto;
        position: relative;
        z-index: 2;
        animation: rocketHover 3s ease-in-out infinite;
    }

    /* --- Fire Container (Responsive) --- */
    .css_prefix-fire {
        position: absolute;
        top: 80%; 
        left: 50%;
        transform: translateX(-50%);
        
        /* Desktop Size */
        width: 30px;
        height: 40px;
        
        z-index: 1;
        display: flex;
        justify-content: center;
        pointer-events: none;
    }

    /* --- Fire Particles --- */
    .css_prefix-fire-element {
        width: 4px; /* Fixed width looks best for particles */
        background: linear-gradient(to bottom, #ffeb3b, #ff5722);
        margin: 0 1px;
        border-radius: 4px;
        opacity: 0;
        animation: fireBurn 0.4s infinite linear alternate;
    }

    /* Randomize Fire */
    .css_prefix-fire-element:nth-child(1) { height: 60%; animation-delay: 0.1s; }
    .css_prefix-fire-element:nth-child(2) { height: 80%; animation-delay: 0.2s; }
    .css_prefix-fire-element:nth-child(3) { height: 100%; animation-delay: 0s; }
    .css_prefix-fire-element:nth-child(4) { height: 70%; animation-delay: 0.3s; }
    .css_prefix-fire-element:nth-child(5) { height: 50%; animation-delay: 0.15s; }

    /* --- Animations --- */
    @keyframes fireBurn {
        0% { transform: scaleY(1); opacity: 0.8; }
        100% { transform: scaleY(1.3); opacity: 1; box-shadow: 0 0 8px #ff5722; }
    }
    @keyframes rocketHover {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-8px); }
    }

    /* Click Animation */
    .top.flying {
        transform: translateY(-120vh) !important;
        transition: transform 1s ease-in;
    }
    .top.flying::before { opacity: 0; transition: opacity 0.2s; }


    /* =========================================
       RESPONSIVE MEDIA QUERIES
    ========================================= */

    /* Tablet (Max Width 1024px) */
    @media (max-width: 1024px) {
        .top {
            bottom: 90px;
            right: 30px;
        }
        .top img {
            width: 45px; /* Slightly smaller rocket */
        }
        .css_prefix-fire {
            width: 26px;
            height: 35px; /* Smaller fire */
        }
        .top::before {
            height: 120px; /* Shorter line */
        }
    }

    /* Mobile (Max Width 600px) */
    @media (max-width: 600px) {
        .top {
            bottom: 90px;
            right: 20px;
        }
        .top img {
            width: 35px; /* Smallest rocket for mobile */
        }
        .css_prefix-fire {
            width: 20px;
            height: 25px; /* Smallest fire */
            top: 75%;
        }
        .css_prefix-fire-element {
            width: 3px; /* Thinner particles */
            margin: 0;
        }
        .top::before {
            height: 100px; /* Shortest line */
        }
    }



/* ======================================================================================================
=================================== HOME TOP SCROLL END =================================================
====================================================================================================== */

/* ======================================================================================================
=================================== POPUP FORM START ====================================================
====================================================================================================== */

/* ============================= */
/* -------- ANIMATIONS --------- */
/* ============================= */

@keyframes btnHighlightPulse {
    0% { transform: translateY(0) scale(1); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
    50% { transform: translateY(0) scale(1.05); box-shadow: 0 8px 30px rgba(106, 90, 205, 0.6); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes floatParticle {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-600px) translateX(var(--drift)); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================= */
/* ------ ENROLL BUTTON -------- */
/* ============================= */

.enquire-trigger-btn {
    position: fixed;
    bottom: 20px;
    right: 25px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #4c3c83 0%, #6a5acd 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    z-index: 9998;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    animation: btnHighlightPulse 2s infinite ease-in-out;
}

.enquire-trigger-btn:hover {
    transform: translateY(-4px) scale(1.05);
    animation: none;
    box-shadow: 0 15px 35px rgba(106, 90, 205, 0.6);
}

.enquire-trigger-btn i {
    color: white;
    font-size: 18px;
}

.enquire-trigger-btn .btn-label {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* ============================= */
/* ------- POPUP OVERLAY ------- */
/* ============================= */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active { 
    display: flex; 
    opacity: 1; 
}

/* ============================= */
/* -------- POPUP CARD --------- */
/* ============================= */

.kids-popup-wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.kids-popup-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    background-color: #4c3c83;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    display: flex;
    overflow: hidden;
    min-height: 520px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.popup-overlay.active .kids-popup-card { 
    transform: scale(1); 
}

/* ============================= */
/* ------- CLOSE BUTTON -------- */
/* ============================= */

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.2s;
}

.close-popup-btn:hover { 
    background: rgba(0, 0, 0, 0.6); 
    transform: rotate(90deg); 
}

/* ============================= */
/* ------ ANIMATION LAYER ------ */
/* ============================= */

.kids-anim-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.k-particle {
    position: absolute;
    bottom: -10px;
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

.kp1 { left: 10%; animation-duration: 8s; --drift: 20px; }
.kp2 { left: 25%; animation-duration: 12s; animation-delay: 2s; --drift: -15px; }
.kp3 { left: 40%; animation-duration: 10s; animation-delay: 1s; --drift: 25px; }
.kp4 { left: 15%; animation-duration: 14s; animation-delay: 3s; --drift: -20px; }

/* ============================= */
/* -------- LEFT SECTION ------- */
/* ============================= */

.k-left-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.k-left-logo {
    width: 200px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.k-left-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 28px;
}

/* ============================= */
/* ---------- INPUTS ----------- */
/* ============================= */

.k-input-group {
    margin-bottom: 18px;
}

.k-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.k-input::placeholder { 
    color: rgba(255, 255, 255, 0.7); 
}

.k-input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.9);
}

textarea.k-input { 
    resize: none; 
    height: 90px; 
}

/* Error */
.k-input.error-border {
    border-color: #ff8888;
    animation: shakeError 0.4s ease-in-out;
}

.error-msg-text {
    color: #ffadad;
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.error-msg-text.visible { 
    display: block; 
}

/* ============================= */
/* -------- SUBMIT BTN --------- */
/* ============================= */

.k-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #6a5acd, #7b6be6);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.k-btn:hover { 
    transform: translateY(-2px); 
}

/* ============================= */
/* -------- RIGHT IMAGE -------- */
/* ============================= */

.k-right-section {
    flex: 1;
    display: flex;
}

.k-group-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================= */
/* --------- RESPONSIVE -------- */
/* ============================= */

@media (max-width: 768px) {

    .kids-popup-card { 
        flex-direction: column; 
        border-radius: 15px; 
    }

    .k-left-section { 
        padding: 30px 25px; 
    }

    .k-right-section { 
        height: 220px; 
    }

    .enquire-trigger-btn {
        right: 15px;
        bottom: 15px;
        padding: 8px 14px;
    }

    .enquire-trigger-btn .btn-label {
        font-size: 12px;
    }

    .enquire-trigger-btn i {
        font-size: 16px;
    }
}


/* ======================================================================================================
=================================== POPUP FORM END ======================================================
====================================================================================================== */


/* ======================================================================================================
=================================== WEBSITE PENCIL CURSOR START =========================================
====================================================================================================== */

/* --- CUSTOM PENCIL CURSOR (Purple #4c3c83) --- */

/* Apply to the entire body/html */
body, html {
    /* 1. URL: An SVG Data URI with fill='%234c3c83' (Your color).
       2. 0 24: The hotspot is at x=0, y=24 (Bottom-Left tip of the pencil).
    */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%234c3c83'><path d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/></svg>") 0 24, auto;
}

/* Force the pencil cursor even on links and buttons */
a, button, .view-more-btn, .top, .bento-card {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='%234c3c83'><path d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/></svg>") 0 24, pointer;
}

/* Ensure everything inherits it */
* {
    cursor: inherit;
}

/* ======================================================================================================
=================================== WEBSITE PENCIL CURSOR END ===========================================
====================================================================================================== */

/* ========================================= */
/* HEROYUGM SECTION START */
/* ========================================= */

/* Force same font everywhere */
.heroyugm-slider,
.heroyugm-slider * {
    font-family: 'Baloo 2', cursive !important;
}

.heroyugm-slider {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
}

.heroyugm-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Background Image */
.heroyugm-bg {
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero_banner/hero-bg-4-1.png') center bottom no-repeat;
    background-size: cover;
    z-index: 1;
}

/* Dark Overlay for Text Visibility */
.heroyugm-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.35) 40%,
        rgba(0,0,0,0.55) 100%
    );
    z-index: 2;
}

/* Foreground Mask */
.heroyugm-front {
    position: absolute;
    inset: 0;
    background: url('/assets/images/hero_banner/yug.jpeg') center bottom no-repeat;
    background-size: cover;
    z-index: 3;

    /* -webkit-mask-image: linear-gradient(to top, black 85%, transparent 100%);
    mask-image: linear-gradient(to top, black 85%, transparent 100%); */
}

/* Content */
.heroyugm-content {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 4;
    width: 90%;
    max-width: 900px;
}

/* Decorative PNG */
.heroyugm-text-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* Heading */
.heroyugm-content h1 {
    font-weight: 700;
    font-size: 3.3rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

.heroyugm-content h1 span {
    display: block;
}

/* ========================================= */
/* PARAGRAPH WITH PATCH (FIXED VERSION) */
/* ========================================= */

.heroyugm-content p {
    font-weight: 400;
    font-size: 1.45rem;
    color: #ffffff;
    margin: 0 auto 5px auto;
    text-shadow: 0 3px 15px rgba(0,0,0,0.6);

    display: block;           /* Forces button below */
    width: fit-content;       /* Keeps patch tight */
    padding: 0px 10px;
    background: rgb(70, 60, 131);
    border-radius: 40px;
}

/* Button */
.heroyugm-btn {
    display: inline-block;
    padding: 5px 20px;
    background: #ffffff;
    color: #4c3c83;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;   
    transition: 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.heroyugm-btn:hover {
    background: #ffffff;
    transform: translateY(-3px);
}

/* ========================================= */
/* RESPONSIVE */
/* ========================================= */

@media (max-width: 1200px) {
    .heroyugm-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .heroyugm-slider {
        height: 75vh;
        min-height: 520px;
    }

    .heroyugm-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .heroyugm-slider {
        height: 65vh;
        min-height: 450px;
    }

    .heroyugm-content h1 {
        font-size: 2rem;
    }

    .heroyugm-content p {
        font-size: 1rem;
        padding: 8px 18px;
    }

    .heroyugm-text-bg {
        width: 220px;
    }
}

@media (max-width: 576px) {
    .heroyugm-slider {
        height: 60vh;
        min-height: 380px;
    }

    .heroyugm-content h1 {
        font-size: 1.6rem;
    }

    .heroyugm-content p {
        font-size: 0.9rem;
    }

    .heroyugm-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* ========================================= */
/* HEROYUGM SECTION END */
/* ========================================= */
