/* ==================================================
   INDIA CHAT LOL - PREMIUM UI
   ================================================== */

:root{
    --saffron:#FF9933;
    --white:#ffffff;
    --green:#138808;
    --chakra:#000080;

    --dark:#0f172a;
    --dark2:#1e293b;

    --glass:rgba(255,255,255,.15);
    --glass-border:rgba(255,255,255,.25);

    --shadow:0 10px 30px rgba(0,0,0,.15);

    --radius:18px;

    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f8fafc;
    color:#222;
    overflow-x:hidden;
    line-height:1.7;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#f1f1f1;
}

::-webkit-scrollbar-thumb{
    background:linear-gradient(
        to bottom,
        var(--saffron),
        var(--green)
    );
    border-radius:50px;
}

/* =========================
   HEADER
========================= */

header{
    position:relative;
    top:0;
    left:0;
    width:100%;
    z-index:999;
    transition:.4s;
}

header.scrolled{
    background:rgba(255,255,255,.95);
    backdrop-filter:blur(12px);
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.navbar{
    max-width:1300px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 25px;
}

.logo{
    font-size:1.8rem;
    font-weight:700;
    color:var(--chakra);
}

.nav-links{
    display:flex;
    gap:30px;
    list-style:none;
}

.nav-links a{
    text-decoration:none;
    color:#222;
    font-weight:500;
    transition:var(--transition);
}

.nav-links a:hover{
    color:var(--saffron);
}

.menu-toggle{
    display:none;
    font-size:2rem;
    cursor:pointer;
}

/* =========================
   HERO SECTION
========================= */

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:120px 20px;
    position:relative;
    overflow:hidden;

    background:
    linear-gradient(
        135deg,
        rgba(255,153,51,.95),
        rgba(255,255,255,.95),
        rgba(19,136,8,.95)
    );

    background-size:400% 400%;

    animation:flagMove 12s ease infinite;
}

@keyframes flagMove{
    0%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
    100%{background-position:0% 50%;}
}

.hero-content{
    max-width:900px;
    z-index:2;
}

.hero h1{
    font-size:4rem;
    margin-bottom:20px;
    color:var(--chakra);
}

.hero p{
    font-size:1.3rem;
    margin-bottom:35px;
}

/* =========================
   ASHOKA CHAKRA
========================= */

.hero::after{
    content:"☸";
    position:absolute;
    font-size:500px;
    color:rgba(0,0,128,.08);
    animation:spin 35s linear infinite;
}

@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

/* =========================
   BUTTONS
========================= */

.btn{
    display:inline-block;
    padding:15px 35px;
    background:linear-gradient(
        45deg,
        var(--saffron),
        var(--green)
    );
    color:#fff;
    text-decoration:none;
    border-radius:50px;
    font-weight:600;
    transition:.3s;
    box-shadow:var(--shadow);
}

.btn:hover{
    transform:translateY(-4px);
}

/* =========================
   SECTIONS
========================= */

section{
    padding:90px 20px;
}

.container{
    max-width:1300px;
    margin:auto;
}

.section-title{
    text-align:center;
    margin-bottom:50px;
}

.section-title h2{
    font-size:2.5rem;
    color:var(--chakra);
}

/* =========================
   FEATURES
========================= */

.feature-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:30px;
}

.card{
    background:var(--glass);
    backdrop-filter:blur(10px);
    border:1px solid var(--glass-border);
    border-radius:var(--radius);
    padding:30px;
    transition:.3s;
    box-shadow:var(--shadow);
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    color:var(--chakra);
    margin-bottom:15px;
}

/* =========================
   COUNTERS
========================= */

.stats{
    background:#fff;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.stat{
    text-align:center;
}

.stat h3{
    font-size:2.5rem;
    color:var(--saffron);
}

/* =========================
   CITY GRID
========================= */

.city-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.city-grid div{
    background:white;
    border-radius:15px;
    padding:25px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.3s;
}

.city-grid div:hover{
    transform:translateY(-5px);
}

/* =========================
   FAQ
========================= */

.faq-item{
    margin-bottom:15px;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
}

.faq-question{
    padding:20px;
    cursor:pointer;
    font-weight:600;
}

.faq-answer{
    display:none;
    padding:20px;
    border-top:1px solid #eee;
}

.faq-item.active .faq-answer{
    display:block;
}

/* =========================
   CTA SECTION
========================= */

.cta{
    background:
    linear-gradient(
        135deg,
        var(--saffron),
        var(--green)
    );

    color:#fff;
    text-align:center;
    border-radius:20px;
}

.cta h2{
    font-size:3rem;
    margin-bottom:20px;
}

/* =========================
   CHAT PAGE
========================= */

.chat-wrapper{
    margin-top:100px;
}

.chat-frame{
    width:100%;
    height:750px;
    border:none;
    border-radius:15px;
    box-shadow:var(--shadow);
}

/* =========================
   FORMS
========================= */

form{
    max-width:700px;
    margin:auto;
}

input,
textarea{
    width:100%;
    padding:15px;
    margin-bottom:20px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:1rem;
}

textarea{
    min-height:180px;
}

/* =========================
   FOOTER
========================= */

footer{
    background:var(--dark);
    color:white;
    padding:60px 20px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:40px;
}

footer h4{
    margin-bottom:15px;
}

footer a{
    color:#ddd;
    text-decoration:none;
    display:block;
    margin-bottom:10px;
}

footer a:hover{
    color:var(--saffron);
}

.copyright{
    text-align:center;
    margin-top:40px;
    border-top:1px solid rgba(255,255,255,.1);
    padding-top:20px;
}

/* =========================
   WHATSAPP BUTTON
========================= */

.whatsapp{
    position:fixed;
    bottom:25px;
    right:25px;
    z-index:999;
    width:60px;
    height:60px;
    border-radius:50%;
    background:#25d366;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:1.8rem;
    text-decoration:none;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:991px){

    .hero h1{
        font-size:3rem;
    }

    .stats-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .nav-links{
        position:fixed;
        top:80px;
        right:-100%;
        width:280px;
        height:100vh;
        background:white;
        flex-direction:column;
        padding:40px;
        transition:.4s;
        box-shadow:-10px 0 30px rgba(0,0,0,.1);
    }

    .nav-links.active{
        right:0;
    }

    .menu-toggle{
        display:block;
    }
}

@media(max-width:768px){

    .hero h1{
        font-size:2.3rem;
    }

    .hero p{
        font-size:1rem;
    }

    .section-title h2{
        font-size:2rem;
    }

    .cta h2{
        font-size:2rem;
    }

    .stats-grid{
        grid-template-columns:1fr;
    }

    .chat-frame{
        height:600px;
    }
}

@media(max-width:480px){

    .hero{
        padding-top:140px;
    }

    .btn{
        width:100%;
        text-align:center;
    }

    .logo{
        font-size:1.3rem;
    }
}

/* Back To Top */

.back-to-top{
    position:fixed;
    bottom:100px;
    right:25px;
    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:#000080;
    color:#fff;
    font-size:20px;
    opacity:0;
    visibility:hidden;
    transition:.3s;
    z-index:999;
}

.back-to-top.visible{
    opacity:1;
    visibility:visible;
}

/* Slider */

.slider{
    position:relative;
    overflow:hidden;
}

.slide{
    display:none;
}

.slide.active{
    display:block;
}

.slide img{
    width:100%;
    border-radius:20px;
}

/* Scroll Reveal */

.hidden{
    opacity:0;
    transform:translateY(40px);
    transition:.8s ease;
}

.show{
    opacity:1;
    transform:translateY(0);
}

/* Preloader */

.preloader{
    position:fixed;
    inset:0;
    background:#fff;
    z-index:99999;
    display:flex;
    align-items:center;
    justify-content:center;
}

.loader{
    width:60px;
    height:60px;
    border:5px solid #eee;
    border-top:5px solid #FF9933;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

.fade-out{
    opacity:0;
    transition:.5s;
}

/* Particles */

.particles{
    position:absolute;
    inset:0;
    overflow:hidden;
}

.particle{
    position:absolute;
    width:10px;
    height:10px;
    border-radius:50%;
    background:rgba(255,255,255,.5);
    bottom:-20px;
    animation:floatUp linear infinite;
}

@keyframes floatUp{
    from{
        transform:translateY(0);
    }
    to{
        transform:translateY(-120vh);
    }
}

.footer-tagline{
    margin-top:10px;
    opacity:.9;
}

.footer-credit{
    margin-top:12px;
    font-size:.95rem;
    opacity:.9;
}

.footer-credit a{
    color:var(--primary-color);
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.footer-credit a:hover{
    text-decoration:underline;
}

.chat-container{
    width:100%;
    height:calc(100vh - 80px); /* Adjust 80px to your header height */
    overflow:hidden;
}

:root{
    --header-height:70px;
}

.chat-frame{
    width:100%;
    height:100%;
    border:none;
    display:block;
}

/* Tablets */
@media (max-width:1024px){
    .chat-container{
        height:calc(100vh - 70px);
    }
}
/* Full screen chat container */
.chat-container{
    width: 100%;
    height: 100vh;      /* Fallback */
    height: 100dvh;     /* Modern mobile browsers */
    overflow: hidden;
}

/* Tablet & Mobile */
@media (max-width:768px){
    .chat-container{
        width:100%;
        height:50dvh;
        min-height:100dvh;
    }
}

/* Small Mobile */
@media (max-width:480px){
    .chat-container{
        width:100%;
        height:50dvh;
        min-height:100dvh;
    }
}

/* Fixed Header */
header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:80px;
    z-index:9999;
}
