/* Echoes of Joy School - Premium Stylesheet */
/* Built with Bootstrap 5 and custom enhancements */

:root {
    /* Brand Colors */
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #059669;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-spacing: 5rem;
    --card-spacing: 2rem;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon i {
    color: white;
    font-size: 1.2rem;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-section .lead {
    font-size: 1.25rem;
    color: #4b5563;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    z-index: -1;
}

/* Stats Counter */
.stats-section {
    margin-top: -2rem;
    position: relative;
    z-index: 1;
}

.counter h2 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.counter p {
    font-size: 1.1rem;
    color: #6b7280;
}

/* Cards */
.card {
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.academic-icon {
    width: 80px;
    height: 80px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.staff-card {
    overflow: hidden;
}

.staff-card img {
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.staff-card:hover img {
    transform: scale(1.05);
}

/* Testimonials */
.testimonials {
    background: linear-gradient(rgba(30, 64, 175, 0.05), rgba(30, 64, 175, 0.05));
}

.testimonial-card {
    max-width: 700px;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.testimonial-text {
    font-size: 1.25rem;
    font-style: italic;
    color: #4b5563;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-author h5 {
    margin-bottom: 0.25rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.carousel-control-prev {
    left: -25px;
}

.carousel-control-next {
    right: -25px;
}

/* Admissions Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-number {
    position: absolute;
    left: -24px;
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Event Cards */
.event-card {
    position: relative;
}

.event-date {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.event-day {
    line-height: 1;
}

.event-month {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Gallery */
.gallery a {
    display: block;
    overflow: hidden;
    border-radius: 10px;
}

.gallery img {
    transition: transform 0.3s ease;
}

.gallery a:hover img {
    transform: scale(1.05);
}

/* Downloads */
.download-card {
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
}

.download-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contact Form */
.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-control.bg-dark {
    background: rgba(255,255,255,0.1) !important;
    border-color: rgba(255,255,255,0.2);
}

.form-control.bg-dark:focus {
    background: rgba(65, 62, 62, 0.15) !important;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background: #111827;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: none;
    z-index: 1000;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .counter h2 {
        font-size: 2.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-image::before {
        display: none;
    }
}
