﻿html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg: #f4f7ff;
    --card: rgba(255,255,255,0.85);
    --text: #0f172a;
    --primary: #4f46e5;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --accent: #ffca28;
    --brand: #4f46e5;
    --mnc-blue: #0d47a1;
    --mnc-orange: #f97316;
    --light-bg: #f8fafc;
}

body.dark {
    --bg: #0b0f1a;
    --card: rgba(20,20,30,0.75);
    --text: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.4);
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Arial;
    background: var(--bg);
    color: var(--text);
    transition: 0.25s ease;
    min-height: 2000px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    background: white;
    text-align: center;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--card);
    backdrop-filter: blur(18px);
    border-radius: 0 0 20px 20px;
    -webkit-backdrop-filter: blur(18px); /* For Safari/iOS support */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: 0.3s;
}

    .header.hide {
        transform: translateY(-100%);
    }

.left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    font-size: 22px;
    cursor: pointer;
}

.logo img {
    height: 32px;
    max-width: 100%;
    object-fit: contain;
}

.logo2 img {
    height: 100px;
    max-width: 100%;
    object-fit: contain;
}

.icon {
    cursor: pointer;
    font-size: 18px;
    transition: 0.2s;
}

    .icon:hover {
        transform: scale(1.1);
    }

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    border-radius: 0 20px 20px 0;
    background: var(--card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding-top: 70px;
    transition: 0.35s ease;
    z-index: 1200;
    box-shadow: var(--shadow);
}

    .sidebar.active {
        left: 0;
    }

    .sidebar a {
        display: block;
        padding: 14px 18px;
        text-decoration: none;
        color: var(--text);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        transition: 0.2s;
    }

        .sidebar a:hover {
            background: rgba(79,70,229,0.1);
            padding-left: 22px;
        }

.menu-item {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.submenu {
    display: none;
    flex-direction: column;
    padding-left: 10px;
    background: rgba(0,0,0,0.03);
}

    .submenu.active {
        display: flex;
    }

    .submenu a {
        padding: 10px 20px;
        font-size: 14px;
        border-bottom: none;
    }

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1100;
    backdrop-filter: blur(2px);
}

    .overlay.active {
        display: block;
    }

.open-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff3b3b);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255,0,0,0.4);
    transition: 0.3s;
}

    .open-btn:hover {
        transform: scale(1.05);
    }

.hero {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url("https://lh3.googleusercontent.com/p/AF1QipM1GBK8Xdc0vO3Gry4hztrenyfAvEwD_Pj8IETX=s1360-w1360-h1020-rw");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 80vh;
    border-radius: 30px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    color: #fff22;
    text-align: center;
    margin-bottom: 0;
}

    .hero h1 {
        font-size: clamp(26px, 5vw, 52px); /* Lower limit reduced for smaller devices */
        max-width: 900px;
        margin: 0 auto 10px;
        line-height: 1.2;
        font-weight: 800;
        text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }

    .hero p {
        max-width: 720px;
        margin: 0 auto 40px;
        color: #000000;
        font-size: clamp(15px, 2vw, 18px);
        line-height: 1.6;
    }

.content {
    background: #f3f4f6;
    position: relative;
    z-index: 10;
    margin-top: -30px;
    border-radius: 30px 30px 30px 30px;
    padding: 60px 20px;
    min-height: 500px;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 0.8s ease-out;
}

.h2-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(22px, 4vw, 32px);
    color: var(--mnc-blue);
    margin-bottom: 20px;
    border-left: 5px solid var(--mnc-orange);
    padding-left: 15px;
    text-align: left;
}

.section-padding {
    padding: clamp(40px, 8vw, 80px) 0;
}

.bg-light {
    background: var(--light-bg);
}
/* Home Tutor Section */
.home-tutor {
    background: #fef9f0;
    padding: clamp(30px, 6vw, 60px) 15px;
    text-align: center;
    border-radius: 20px;
    margin: 40px 0;
}

    .home-tutor h2 {
        font-size: clamp(22px, 4vw, 32px);
        margin-bottom: 15px;
    }

    .home-tutor p {
        font-size: clamp(14px, 2vw, 16px);
        margin-bottom: 20px;
    }

    .home-tutor a {
        background: var(--accent);
        color: #111;
        padding: 14px 34px;
        border-radius: 30px;
        font-weight: 500;
        display: inline-block;
        text-decoration: none;
    }

.art-class-section {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    padding: 30px;
    background: var(--light-bg);
    border-radius: 15px;
    transition: 0.3s;
}

    .feature-box i {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 15px;
    }

.tutor-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border-bottom: 4px solid var(--mnc-blue);
    transition: 0.3s;
    box-shadow: var(--shadow);
}

    .tutor-card:hover {
        transform: translateY(-10px);
    }

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid var(--mnc-blue);
    overflow: hidden;
}

    .avatar-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.stars {
    color: #ffca28;
    margin: 10px 0;
}

.gallery-grid, .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 8px;
}

    .gallery-item img, .gallery img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: 0.5s;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

.gallery-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(13, 71, 161, 0.9);
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.program {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    text-align: center;
}

    .program a {
        margin-top: 15px;
        display: inline-block;
        background: var(--brand);
        color: #fff;
        padding: 12px 28px;
        border-radius: 30px;
        font-weight: 500;
        text-decoration: none;
    }

.locations-section {
    padding: 50px 20px;
    text-align: center;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.location-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.location-strip {
    display: flex;
    gap: 12px;
    width: max-content;
    white-space: nowrap;
    animation: scrollLocations 35s linear infinite;
    will-change: transform;
}

    .location-strip span {
        background: #f3f4f6;
        padding: 10px 18px;
        border-radius: 30px;
        font-size: 14px;
        color: #111827;
        flex-shrink: 0;
    }

.contact-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #000;
    color: #fff565;
    text-align: center;
    padding: 12px;
    z-index: 99999;
    transform: translateY(-120%);
    transition: transform 0.35s ease;
}

    .contact-bar.show {
        transform: translateY(0);
    }

.cta-bar {
    position: fixed;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 540px;
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
    background: var(--card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    z-index: 999;
}

.cta-btn, .cta-btn2 {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    padding: 11px;
    border-radius: 14px;
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}

.cta-btn {
    color: #fff;
    font-weight: 600;
}

.cta-btn2 {
    color: #f97316;
    font-weight: 300;
}

.cta-btn:hover {
    transform: translateY(-3px);
}

.call {
    background: linear-gradient(135deg,#2563eb,#06b6d4);
}

.wa {
    background: linear-gradient(135deg,#22c55e,#16a34a);
}

.act {
    background: linear-gradient(135deg,#f97316,#ef4444);
}

.enq-btn {
    position: fixed;
    right: 2px;
    bottom: 210px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(#);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 2000;
    box-shadow: var(#);
    animation: pulse 2s infinite;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 15px;
}

.modal-box {
    width: 100%;
    max-width: 360px;
    background: var(--card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 18px;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--shadow);
    animation: pop 0.25s ease;
}

    .modal-box input, .modal-box select {
        width: 100%;
        padding: 11px;
        margin: 6px 0;
        border-radius: 10px;
        border: 1px solid rgba(0,0,0,0.1);
        outline: none;
    }

    .modal-box button {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg,#22c55e,#16a34a);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.2s;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
}

.floating-btn {
    position: fixed;
    bottom: 80px;
    right: 10px;
    width: 60px;
    height: 60px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: transform 0.2s ease, background-color 0.2s;
}

    .floating-btn:hover {
        transform: scale(1.05);
        background-color: #1557b0;
    }

.floating-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-width: calc(100% - 40px); /* Screen limits support */
    max-height: 75vh;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    padding: 20px;
    z-index: 1000;
    overflow-y: auto;
    box-sizing: border-box;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

    .floating-widget.active {
        opacity: 1;
        transform: scale(1) translateY(0);
        pointer-events: auto;
    }

.discount-banner {
    background: linear-gradient(135deg, #ea4335, #c5221f);
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.search-row {
    display: flex;
    gap: 8px;
}

input, select2 {
    width: 100%;
    padding: 12px 20px;
    background: #yellow;
    border: 2px solid #dfe1e5;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

    input:focus2 {
        border-color: #1a73e8;
    }

.search-row2 input {
    flex: 1;
}

.search-box button {
    padding: 12px 20px;
    color: white;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 14px;
}

.btn-search {
    background: #1a73e8;
    flex: 1;
}

    .btn-search:hover {
        background: #1557b0;
    }

.btn-ai-image {
    background: #9c27b0;
    width: 100%;
    margin-top: 2px;
}

    .btn-ai-image:hover {
        background: #7b1fa2;
    }

.welcome-chat-box {
    background: #e8f0fe;
    padding: 15px;
    border-radius: 12px;
    color: #1a73e8;
    font-size: 14px;
    text-align: left;
    line-height: 1.5;
    margin-bottom: 15px;
    font-weight: 500;
}

.quick-menu-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.quick-btn {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    padding: 12px 15px;
    border-radius: 20px;
    cursor: pointer;
    text-align: left;
    font-size: 12px; /* Increased slightly for clear view */
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .quick-btn:hover {
        background: #f1f3f4;
        border-color: #1a73e8;
        color: #1a73e8;
        transform: translateX(3px);
    }

.ai-form-container {
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    text-align: left;
    display: none;
}

    .ai-form-container h4 {
        margin: 0 0 10px 0;
        color: #1a73e8;
    }

.form-group {
    display: none;
}

    .form-group.active {
        display: block;
    }

    .form-group label {
        display: block;
        font-size: 13px;
        font-weight: bold;
        margin-bottom: 5px;
        color: #3c4043;
    }

    .form-group input, .form-group select {
        margin-bottom: 10px;
    }

.form-nav-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    float: right;
    margin-top: 5px;
}

.back-menu-btn {
    background: #dadce0;
    color: #3c4043;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-bottom: 10px;
}

.otp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 15px;
}

    .otp-modal-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.otp-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

    .otp-card h3 {
        margin: 0 0 10px;
        color: #1a73e8;
    }

    .otp-card p {
        font-size: 13px;
        color: #5f6368;
        margin-bottom: 15px;
    }

.otp-display-box {
    background: #e8f0fe;
    padding: 10px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #1a73e8;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border: 1px dashed #1a73e8;
}

#result {
    width: 100%;
    margin-top: 15px;
    display: none;
}

.description-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #dadce0;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #3c4043;
    text-align: left;
}

    .description-box h3 {
        margin: 0 0 8px 0;
        color: #1a73e8;
    }

.ai-generated-box {
    background: #f3e5f5;
    border: 2px dashed #9c27b0;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    text-align: center;
}

    .ai-generated-box h4 {
        margin: 0 0 8px 0;
        color: #7b1fa2;
        font-size: 14px;
    }

    .ai-generated-box img {
        width: 100%;
        max-height: 250px;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        background: white;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

    .gallery-grid img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        border: 1px solid #dadce0;
    }

.typing-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 20px auto;
    background: #f1f3f4;
    padding: 12px 20px;
    border-radius: 20px;
    width: fit-content;
}

    .typing-loader span {
        width: 8px;
        height: 8px;
        background: #1a73e8;
        border-radius: 50%;
        display: inline-block;
        animation: bounce 1.3s infinite ease-in-out;
    }

        .typing-loader span:nth-child(2) {
            animation-delay: 0.15s;
        }

        .typing-loader span:nth-child(3) {
            animation-delay: 0.3s;
        }

.site-footer {
    background: #111827;
    color: #d1d5db;
    padding: 50px 20px 20px;
    font-size: 14px;
    margin-top: 90px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 14px;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        color: #d1d5db;
        text-decoration: none;
        transition: .3s;
    }

        .footer-links a:hover {
            color: #caa75c;
        }

.footer {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
    font-size: 14px;
}

/* --- KEYFRAMES (Keep original) --- */
@keyframes bounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-8px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes pop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scrollLocations {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {

    .hero {
        background-attachment: scroll;
        padding: 80px 15px;
    }

    .cta-bar {
        width: 95%;
        bottom: 10px;
    }

    .content {
        padding: 40px 15px;
        margin-top: -20px;
    }
}

@media (max-width: 600px) {

    .logo img {
        height: 26px;
    }

    .logo2 img {
        height: 60px;
    }

    .cta-btn {
        font-size: 11px;
        padding: 9px;
    }

    .cta-btn2 {
        font-size: 11px;
        padding: 9px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .location-strip {
        animation-duration: 18s;
    }

        .location-strip span {
            font-size: 12px;
            padding: 8px 14px;
        }

    .features-grid, .gallery-grid, .gallery, .programs {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        gap: 15px;
    }
}

@media (max-width: 450px) {
    /* Extra Small Devices & Micro Machines */
    .floating-widget {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
        bottom: 85px;
        max-height: 70vh;
        padding: 15px;
    }

    .header {
        padding: 10px 10px;
    }

    .cta-bar {
        width: 96%;
        padding: 8px;
        gap: 6px;
        border-radius: 15px;
    }

    .modal-box {
        padding: 15px;
    }
}

