/* Sunshine Preschool - Custom Styles */
/* Modern, sophisticated design inspired by leading preschools */

:root {
    /* Primary Colors - Deep Teal Blue */
    --primary-color: #4A8FA8;
    --primary-dark: #3A7286;
    --primary-light: #D9EDF4;
    
    /* Secondary Colors - Rich Coral */
    --secondary-color: #E8936B;
    --secondary-dark: #D17854;
    --secondary-light: #FFEEE7;
    
    /* Accent Colors - Vibrant Pastels */
    --success-color: #6FB583;
    --warning-color: #F0BA4D;
    --danger-color: #EB8A9E;
    --info-color: #5E9FCC;
    --teal-color: #5DBFB8;
    --pink-color: #E88FAD;
    
    /* Neutral Colors */
    --text-primary: #1F3440;
    --text-secondary: #3A5260;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', 'Nunito', 'Poppins', 'Trebuchet MS', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Bootstrap Color Overrides */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(74, 143, 168, 0.45);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.text-warning {
    color: var(--secondary-color) !important;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
}

.navbar.shadow-sm {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #D9EDF4 0%, #FFEEE7 50%, #FFF4E0 100%);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(217, 237, 244, 0.7) 0%, rgba(255, 238, 231, 0.7) 50%, rgba(255, 244, 224, 0.7) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(232, 147, 107, 0.25) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(74, 143, 168, 0.2) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
}

.hero-section h1 {
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section p {
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-section .btn {
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

.hero-section img {
    object-fit: cover;
    height: 100%;
    min-height: 450px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.6s ease;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-section img:hover {
    transform: scale(1.02) translateY(-5px);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Trust Badges */
.trust-badge {
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.trust-badge i {
    transition: transform 0.4s ease;
    display: inline-block;
}

.trust-badge:hover {
    transform: translateY(-8px);
}

.trust-badge:hover i {
    transform: scale(1.15) rotate(5deg);
}

.trust-badge::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.trust-badge:hover::after {
    width: 60%;
}

/* Feature Cards */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 143, 168, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 143, 168, 0.3) !important;
    border-color: var(--primary-light);
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
    border-left: 4px solid var(--secondary-color);
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 90px;
    color: var(--secondary-color);
    font-family: Georgia, serif;
    opacity: 0.3;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(232, 147, 107, 0.3) !important;
    border-left-color: var(--primary-color);
    border-color: var(--primary-light);
}

.avatar {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Opening Hours Badge */
.opening-hours-badge {
    background-color: var(--secondary-light);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    border: 2px solid var(--secondary-color);
}

.opening-hours-highlight {
    border-left: 4px solid var(--secondary-color);
}

/* Contact Form */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

.form-control-lg,
.form-select-lg {
    border-radius: 0.5rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.min-vh-75 {
    min-height: 75vh;
}

.rounded-4 {
    border-radius: 1rem !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section img {
        min-height: 300px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .display-6 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations for cards */
.feature-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }
.feature-card:nth-child(5) { animation-delay: 0.5s; }
.feature-card:nth-child(6) { animation-delay: 0.6s; }

.testimonial-card {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

/* Smooth reveal on scroll effect */
@keyframes revealSection {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: revealSection 0.8s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none;
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #4A8FA8 0%, #6FB583 50%, #5DBFB8 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}
