/* --- VARIABLES --- */
:root {
    --primary: #D32F2F;      /* Crimson Red */
    --primary-dark: #b71c1c; 
    --accent: #FBC02D;       /* Golden Yellow */
    --glass-nav: rgba(255, 255, 255, 0.9); 
    --card-glass-bg: rgba(255, 255, 255, 0.95); 
    --dark-text: #212121;
    --footer-bg: #212121;
    
    --font-main: 'Poppins', sans-serif;
    --font-bangla: 'Hind Siliguri', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    color: var(--dark-text);
    background: #f0f2f5;
    overflow-x: hidden;
}

/* --- BACKGROUND PATTERN --- */
.global-doodle-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('all bg.png'); 
    background-repeat: repeat;
    background-size: 300px;
    opacity: 0.15;
    z-index: -10;
    pointer-events: none;
}

/* --- TOP NAV --- */
.top-nav-bar {
    background: #111;
    padding: 10px 0;
    color: #fff;
    font-size: 0.85rem;
    border-bottom: 3px solid var(--accent);
}
.nav-content {
    max-width: 1200px; margin: 0 auto; padding: 0 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-location-btn a { 
    color: #fff; text-decoration: none; 
    display: flex; align-items: center; gap: 6px;
    background: #333; padding: 5px 12px; border-radius: 20px;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #ddd; text-decoration: none; font-weight: 500; transition: 0.3s; display: flex; gap: 5px; align-items: center; }
.nav-links a:hover { color: var(--accent); }
.btn-meeting {
    background: #25D366; color: #fff; padding: 5px 15px; border-radius: 4px; 
    text-decoration: none; font-weight: 600; font-size: 0.8rem;
}

/* --- HEADER --- */
.sticky-header {
    position: sticky; top: 0; width: 100%; z-index: 1000;
    padding: 10px 5%;
    background: var(--glass-nav);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.header-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.logo-area { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-circle {
    width: 55px; height: 55px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--primary); background: #fff;
}
.logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.logo-text h1 { font-size: 1.2rem; color: #000; font-weight: 800; margin: 0; text-transform: uppercase; line-height: 1.1; }
.highlight-text { color: var(--primary); }
.btn-neon-nav {
    border: 2px solid var(--primary); padding: 6px 20px;
    border-radius: 50px; color: var(--primary); font-weight: 700;
    text-decoration: none; transition: var(--transition);
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
.btn-neon-nav:hover { background: var(--primary); color: #fff; }

/* --- HERO SECTION (PC Default Style) --- */
.hero-section {
    position: relative;
    min-height: auto;
    padding: 60px 15px;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden;
}

/* On PC, the image acts as an absolute layer covering the section */
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.hero-bg-image img { width: 100%; height: 100%; object-fit: cover; }

/* Animation for the card */
@keyframes popUpDrop {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.pop-up-animation { animation: popUpDrop 0.8s ease-out forwards; }

.hero-content {
    position: relative; z-index: 10;
    background: #f4e3e3; 
    border-radius: 20px;
    padding: 40px 20px; 
    text-align: center;
    max-width: 520px; width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-top: 6px solid var(--primary); 
}

.hero-content h1 { font-size: 2.5rem; font-weight: 800; margin: 15px 0; color: #111; line-height: 1.2; }
.bangla-tagline { font-family: var(--font-bangla); color: var(--primary); font-size: 1.3rem; margin-bottom: 15px; font-weight: 600; }
.text-highlight { background: var(--accent); padding: 0 8px; border-radius: 4px; color: #000; }
.badge-pill { background: #000; color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

.hero-btns { margin-top: 25px; display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn-primary-glow {
    background: var(--primary); color: #fff; border: none; padding: 12px 30px; 
    border-radius: 6px; font-weight: 700; cursor: pointer; transition: 0.3s;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4); text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-secondary-glass {
    background: #fff; border: 2px solid #333; color: #333;
    padding: 10px 25px; border-radius: 6px; font-weight: 700; cursor: pointer;
}

/* --- MAIN CONTENT & CARDS --- */
.container-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 15px; position: relative; z-index: 5;}

.card-glass {
    background: rgba(255, 255, 255, 0.92); 
    backdrop-filter: blur(15px);
    border-radius: 20px; padding: 30px; margin: 30px 0;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.scroll-animate { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

/* Mentor Circle */
.flex-row-center { display: flex; align-items: center; gap: 30px; justify-content: center; flex-wrap: wrap; }
.image-wrapper { 
    width: 180px; height: 180px; 
    border-radius: 50%; 
    border: 5px solid var(--accent); 
    overflow: hidden; background: #fff; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); margin: 0 auto;
}
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.exp-badge { 
    margin-top: -20px; background: var(--primary); color: #fff; 
    padding: 6px 18px; border-radius: 20px; font-weight: 700; 
    position: relative; display: table; margin-left: auto; margin-right: auto;
}
.mentor-details { text-align: left; max-width: 600px;}
.mentor-details h3 { font-size: 2rem; margin-bottom: 5px; }

/* Stats */
.stats-section {
    display: flex; gap: 15px; margin-bottom: 40px; flex-wrap: wrap;
}
.stat-box {
    flex: 1; min-width: 140px; background: #fff; padding: 20px 15px; 
    text-align: center; border-radius: 15px; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-bottom: 4px solid var(--primary);
}
.stat-box i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.stat-box h3 { font-size: 1.8rem; font-weight: 800; color: #333; margin: 0; }
.stat-box p { font-size: 0.9rem; color: #666; font-weight: 500;}

/* Course Card */
#courseList { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.course-card-modern {
    background: #fff; padding: 25px; border-radius: 12px;
    border: 1px solid #f0f0f0; 
    display: flex; justify-content: space-between; align-items: center;
    transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.course-card-modern:hover { transform: translateY(-5px); border-color: var(--accent); }
.highlight-card { background: #fffde7; border: 1px solid var(--accent); }
.icon-sq { font-size: 1.6rem; color: var(--primary); margin-right: 15px; }
.card-left { display: flex; align-items: center; }
.batch-preview { color: #666; font-size: 0.85rem; margin-top: 5px; }
.btn-book-seat { 
    background: #0D2137; color: #fff; border: none; padding: 8px 16px; 
    border-radius: 6px; cursor: pointer; font-weight: 600; white-space: nowrap;
}

/* Contact List */
.jims-contact-grid { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 25px; }
.contact-item a {
    text-decoration: none; background: #fff; color: #333; 
    padding: 10px 20px; border-radius: 30px; border: 1px solid #ddd;
    display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem;
    transition: 0.3s;
}
.contact-item a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.address-box { margin-top: 25px; text-align: center; font-size: 0.95rem; line-height: 1.6; }

/* Classroom Gallery */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 15px;
}
.gallery-item {
    overflow: hidden; border-radius: 10px; height: 200px;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* --- FOOTER --- */
footer { background: var(--footer-bg); color: #ccc; margin-top: 60px; text-align: center; font-size: 0.85rem;}
.footer-wave svg { display: block; }
.footer-body { padding: 0 5% 30px; }
.footer-extra-info p { font-family: var(--font-bangla); font-size: 1.1rem; color: #fff; margin-bottom: 10px;}
.footer-separator { height: 1px; background: #333; margin: 20px auto; max-width: 400px; }
.dev-company-bold { font-weight: 800; color: #fff; font-size: 1rem; margin: 4px 0; letter-spacing: 0.5px; }
.dev-name-normal { font-size: 0.85rem; color: #aaa; margin: 2px 0; }
.logo-wrapper-fix { display: flex; justify-content: center; margin-top: 15px; }
.dev-footer-logo { max-width: 140px; height: auto; display: block; }
.footer-socials { display: flex; justify-content: center; gap: 15px; margin-top: 20px; }
.footer-socials a {
    width: 32px; height: 32px; background: #333; color: #fff; font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center; border-radius: 50%;
}

/* Floating Elements */
.float-wa { 
    position: fixed; bottom: 20px; left: 20px; z-index: 1000; background: #25D366; 
    color: white; width: 45px; height: 45px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); 
}
#scrollTopBtn {
    position: fixed; bottom: 20px; right: 20px; z-index: 1000; width: 45px; height: 45px;
    background: var(--primary); color: #fff; border: none; border-radius: 50%;
    cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.2); visibility: hidden; opacity: 0; transition: 0.3s;
}
#scrollTopBtn.visible { visibility: visible; opacity: 1; }

/* Modal */
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.8); z-index: 2000; display: none; justify-content:center; align-items:center; }
.modal-overlay.active { display: flex; }
.modal-box { background: #fff; width: 90%; max-width: 350px; padding: 20px; border-radius: 10px; border-top: 4px solid var(--accent); }
.modal-header { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 700; color: #333; }
.close-modal { font-size: 1.5rem; background: none; border: none; cursor: pointer; }
.floating-label input { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 5px; }
.btn-confirm-booking { width: 100%; background: #25D366; color: white; padding: 10px; border: none; border-radius: 5px; font-weight: 700; cursor: pointer; }

/* --- MOBILE SPECIFIC CSS (Requirement 1 & 2) --- */
@media (max-width: 768px) {
    /* Stack Nav Content specifically for mobile view */
    .top-nav-bar .nav-content { 
        flex-direction: column; 
        gap: 8px; 
    }
    .nav-links { display: none; } /* Hide mid links on mobile to save space */
    .nav-location-btn a, .btn-meeting {
        width: 100%; text-align: center; justify-content: center;
        font-size: 0.8rem;
    }

    /* Course Cards: Stack vertically on mobile */
    .course-card-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .btn-book-seat { width: 100%; margin-top: 5px; }

    /* Mentor Section Alignment */
    .flex-row-center { flex-direction: column; text-align: center; }
    .mentor-details { text-align: center; }

    /* Hero Text Adjust */
    .hero-content h1 { font-size: 2rem; }
    .bangla-tagline { font-size: 1.1rem; }
    
    .sticky-header { padding: 8px 15px; }
    .logo-text h1 { font-size: 1rem; }

    /* Contact grid mobile */
    .jims-contact-grid { gap: 10px; }
    .contact-item a { padding: 10px 15px; font-size: 0.9rem; }
    
    /* THE MAGIC FOR MOBILE HERO IMAGE: STACKED */
    .hero-section {
        flex-direction: column;
    }
    /* Reset background positioning so it acts like a normal block below */
    .hero-bg-image {
        position: relative; 
        order: 2; /* Shows AFTER the text */
        height: 200px; /* Specific height for mobile image strip */
        border-radius: 15px;
        overflow: hidden;
        margin-top: 20px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    /* Text goes first */
    .hero-content {
        order: 1;
        border-radius: 20px;
    }
}