/* PROJECT: Kids Pride Play School
   FILE: style.css (Fully Updated & Optimized)
*/

/* --- 1. RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00bcd4; /* Cyan/Sky Blue */
    --accent: #ffeb3b;  /* Yellow */
    --dark: #111111;
    --grey: #f4f4f4;
    --text: #333333;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. HEADER & NAVIGATION --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img{
  height: 70px;
}

@media(max-width:768px){
  .logo img{
    height: 50px;
  }
}
.header h2 { color: var(--primary); font-size: 24px; }

nav { display: flex; gap: 25px; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: 0.3s;
}
nav a:hover { color: var(--primary); }

.menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary);
}

/* --- 3. HERO SECTION --- */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { font-size: 56px; font-weight: 800; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 22px; margin: 15px 0 25px; font-weight: 300; }

/* --- 4. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover { background: #0097a7; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,188,212,0.4); }

/* --- 5. COMMON SECTIONS --- */
.section { padding: 80px 5%; max-width: 1200px; margin: auto; text-align: center; }
.section h2 { font-size: 36px; margin-bottom: 40px; position: relative; padding-bottom: 10px; }
.section h2::after {
    content: ''; width: 60px; height: 4px; background: var(--primary);
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.4s;
}
.card:hover { transform: translateY(-10px); }

/* --- 6. CAROUSEL --- */
.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    scrollbar-width: none; /* Hidden for Firefox */
}
.carousel-track::-webkit-scrollbar { display: none; } /* Hidden for Chrome */
.carousel-track img {
    width: 350px;
    height: 250px;
    border-radius: 20px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- 7. FOOTER (FIXED ALIGNMENT) --- */

/* =========================
   FOOTER - COMPLETE FIX
   ========================= */
footer {
    background: #111111;
    color: #ffffff;
    padding: 60px 5% 20px;
    margin-top: 50px;
    clear: both; /* Isse upar ka floating element disturb nahi karega */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Isse columns barabar rahenge */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 40px;
    /* Sabse important: Isse headings ek hi horizontal line mein rahengi */
    align-items: flex-start; 
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h3 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    height: 30px; /* Sab headings ko same height di hai taaki alignment na bigde */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Heading ke niche ki line */
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
}

.footer-col p, .footer-col ul li {
    font-size: 14px;
    color: #aaaaaa;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    color: #aaaaaa;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* SOCIAL SECTION */
.footer-social {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid #222;
}

.footer-social a {
    font-size: 22px;
    margin: 0 15px;
    text-decoration: none;
    color: #fff;
    display: inline-block;
    transition: 0.3s;
}

.footer-social a:hover {
    transform: translateY(-5px);
    color: var(--primary);
}

/* COPYRIGHT */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #666;
}

/* MOBILE VIEW FIX */
@media (max-width: 768px) {
    .footer-container {
        text-align: center;
        grid-template-columns: 1fr; /* Mobile par ek ke niche ek */
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-col h3 {
        margin-bottom: 35px;
    }
}
/* --- 8. MOBILE RESPONSIVE --- */

@media (max-width: 768px) {
    .menu-btn { display: block; }
    
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px; left: 0; width: 100%;
        background: var(--white);
        padding: 30px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    nav.show { display: flex; }

    .hero h1 { font-size: 34px; }
    .hero p { font-size: 18px; }
    
    .footer-container { text-align: center; }
    .footer-col h3::after { left: 50%; transform: translateX(-50%); }
    .footer-col h3 { margin-bottom: 35px; }
}

.popup{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

.box{
  width:320px;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 15px 40px rgba(0,0,0,0.3);
}

.tabs{
  display:flex;
}

.tabs button{
  flex:1;
  padding:10px;
  border:none;
  background:#eee;
  cursor:pointer;
  font-weight:bold;
}

.tabs button.active{
  background:#007bff;
  color:#fff;
}

.form{
  display:none;
  padding:15px;
}

.form.active{
  display:block;
}

.form h2{
  text-align:center;
}

.form input{
  width:100%;
  padding:9px;
  margin-bottom:8px;
  border:1px solid #ccc;
  border-radius:7px;
}

.form button{
  width:100%;
  padding:10px;
  background:#007bff;
  color:#fff;
  border:none;
  border-radius:7px;
  cursor:pointer;
}

/* --- 9. UTILITIES --- */
.wa {
    position: fixed;
    bottom: 25px; right: 25px;
    background: #25D366;
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 999;
    text-decoration: none;
}