/* ============================================
   MUKTHA PRESCHOOL - Custom Styles
   Kids Theme | Colorful | Professional
============================================ */

/* ============================================
   CSS Variables
============================================ */
:root {
    --color-primary:    #f97316;
    --color-secondary:  #8b5cf6;
    --color-accent:     #ec4899;
    --color-yellow:     #fbbf24;
    --color-green:      #34d399;
    --color-blue:       #60a5fa;
    --color-kids-bg:    #fff8f0;
    --font-kids:        'Fredoka One', cursive;
    --font-body:        'Nunito', sans-serif;
    --font-heading:     'Poppins', sans-serif;
    --radius-card:      1.25rem;
    --shadow-card:      0 4px 24px rgba(249,115,22,0.10);
    --shadow-hover:     0 8px 32px rgba(249,115,22,0.18);
    --transition:       all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ============================================
   Base Styles
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: #374151;
    background-color: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Ticker Animation
============================================ */
.ticker-wrapper { overflow: hidden; }

@keyframes ticker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-ticker {
    animation: ticker 30s linear infinite;
}
.animate-ticker:hover {
    animation-play-state: paused;
}

/* ============================================
   Float Animation
============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-12px); }
}
.animate-float { animation: float 3s ease-in-out infinite; }

/* ============================================
   Bounce Slow
============================================ */
@keyframes bounce-slow {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
.animate-bounce-slow { animation: bounce-slow 2s ease-in-out infinite; }

/* ============================================
   Fade Up Animation
============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s ease-out forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ============================================
   Section Dividers & Backgrounds
============================================ */
.kids-bg {
    background-color: #fff8f0;
    background-image: radial-gradient(circle, #f9731615 1px, transparent 1px);
    background-size: 24px 24px;
}

.section-wave {
    position: relative;
    overflow: hidden;
}
.section-wave::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0 0v60l600-40 600 40V0z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/cover;
}

/* ============================================
   Hero Section
============================================ */
.hero-section {
    background: linear-gradient(135deg, #fff8f0 0%, #fce7f3 50%, #ede9fe 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(249,115,22,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139,92,246,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-emoji {
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 1;
    filter: drop-shadow(0 8px 24px rgba(249,115,22,0.3));
}

/* ============================================
   Cards
============================================ */
.card {
    background: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-kids {
    border-radius: 1.5rem;
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #f97316, #ec4899, #8b5cf6) border-box;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 2px solid #fed7aa;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #f97316, #ec4899);
}
.feature-card:hover {
    border-color: #f97316;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(249,115,22,0.15);
}

/* ============================================
   Navbar Styles
============================================ */
.site-header {
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ============================================
   Buttons
============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: white;
    font-weight: 700;
    font-family: var(--font-body);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(249,115,22,0.35);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(249,115,22,0.45);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #f97316;
    font-weight: 700;
    font-family: var(--font-body);
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    border: 2px solid #f97316;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-secondary:hover {
    background: #f97316;
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Section Title Styles
============================================ */
.section-title {
    font-family: var(--font-kids);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    color: #1f2937;
}
.section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Title Decoration */
.title-decoration {
    display: inline-block;
    position: relative;
}
.title-decoration::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #f97316, #ec4899, #8b5cf6);
    border-radius: 9999px;
}

/* ============================================
   Gallery Grid
============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ============================================
   Lightbox
============================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}
.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}
.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 0.5rem;
    object-fit: contain;
}

/* ============================================
   Stats Counter Section
============================================ */
.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease;
}
.stat-card:hover { transform: translateY(-4px); }

.stat-number {
    font-family: var(--font-kids);
    font-size: 3rem;
    line-height: 1;
    background: linear-gradient(135deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Testimonials
============================================ */
.testimonial-card {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem;
    position: relative;
    border: 2px solid #f3f4f6;
    transition: var(--transition);
}
.testimonial-card:hover {
    border-color: #fed7aa;
    box-shadow: 0 8px 32px rgba(249,115,22,0.12);
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 5rem;
    color: #f97316;
    font-family: Georgia, serif;
    line-height: 1;
    opacity: 0.3;
}

/* ============================================
   Page Hero Banner
============================================ */
.page-hero {
    background: linear-gradient(135deg, #fff8f0, #fce7f3, #ede9fe);
    padding: 4rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(249,115,22,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ============================================
   Breadcrumb
============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #d1d5db; }

/* ============================================
   Forms
============================================ */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #374151;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.form-input.error {
    border-color: #ef4444;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ============================================
   Alert / Notification
============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 0.875rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   Fun Colorful Badges
============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-orange  { background: #fff7ed; color: #ea580c; }
.badge-pink    { background: #fdf2f8; color: #be185d; }
.badge-purple  { background: #faf5ff; color: #7c3aed; }
.badge-green   { background: #f0fdf4; color: #15803d; }
.badge-blue    { background: #eff6ff; color: #1d4ed8; }
.badge-yellow  { background: #fefce8; color: #a16207; }

/* ============================================
   Timeline (for programs)
============================================ */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #f97316, #ec4899, #8b5cf6);
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.35rem;
    width: 14px;
    height: 14px;
    background: #f97316;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #f97316;
}

/* ============================================
   Scroll Progress Bar
============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #f97316, #ec4899, #8b5cf6);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   Page Loader
============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}
.loader-emoji {
    font-size: 3rem;
    animation: bounce-slow 1s infinite;
}

/* ============================================
   Responsive Tables
============================================ */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; }
th, td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}
th {
    background: linear-gradient(135deg, #fff7ed, #fce7f3);
    font-weight: 700;
    color: #374151;
    font-family: var(--font-heading);
}
tr:hover td { background: #fff8f0; }

/* ============================================
   Utility Classes
============================================ */
.text-gradient {
    background: linear-gradient(135deg, #f97316, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-kids-pattern {
    background-color: #fff8f0;
    background-image: radial-gradient(circle, rgba(249,115,22,0.08) 1px, transparent 1px);
    background-size: 20px 20px;
}

.rounded-kids { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }

/* ============================================
   Smooth Scroll Reveal (via JS IntersectionObserver)
============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Mobile Optimizations
============================================ */
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; }
    .hero-emoji    { font-size: 4rem; }
    .page-hero     { padding: 2.5rem 1rem; }
    .card          { border-radius: 1rem; }

    /* Better touch targets */
    a, button { min-height: 44px; }
    .nav-link  { padding: 0.75rem 1rem; }
}

/* ============================================
   Print Styles
============================================ */
@media print {
    .site-header,
    .announcement-bar,
    footer,
    .whatsapp-float,
    #scroll-top { display: none !important; }
    body { font-size: 12pt; }
}

/* ============================================
   Dark Mode (Optional - Future)
============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}