/* === Custom CSS for Sunshine Elementary School === */

/* Root Variables */
:root {
    --primary-blue: #4285f4;
    --success-green: #34a853;
    --warning-yellow: #fbbc05;
    --danger-red: #ea4335;
    --light-blue: #e3f2fd;
    --light-green: #e8f5e8;
    --light-yellow: #fffbf0;
    --gradient-1: linear-gradient(135deg, #4285f4, #34a853);
    --gradient-2: linear-gradient(135deg, #fbbc05, #ea4335);
    --gradient-3: linear-gradient(135deg, #e3f2fd, #e8f5e8);
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 50%, #e8f5e8 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 2rem 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
}

.school-name {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.display-4 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Floating Background Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    color: var(--primary-blue);
    animation: float var(--duration, 4s) ease-in-out infinite var(--delay, 0s);
}

.floating-icon:nth-child(1) { top: 10%; left: 10%; color: var(--primary-blue); }
.floating-icon:nth-child(2) { top: 20%; right: 20%; color: var(--success-green); }
.floating-icon:nth-child(3) { top: 60%; left: 15%; color: var(--warning-yellow); }
.floating-icon:nth-child(4) { bottom: 30%; right: 10%; color: var(--danger-red); }
.floating-icon:nth-child(5) { bottom: 20%; left: 20%; color: var(--primary-blue); }
.floating-icon:nth-child(6) { top: 40%; right: 15%; color: var(--success-green); }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
    75% { transform: translateY(-25px) rotate(3deg); }
}

/* Header Styles */
.school-logo i {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Construction Badge */
.construction-badge .badge {
    font-size: 1rem;
    animation: bounce 2s ease-in-out infinite;
    box-shadow: var(--shadow-light);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Feature Items */
.feature-item {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
    border-color: var(--primary-blue);
}

/* Cards */
.timeline-card, .contact-card, .progress-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.timeline-card:hover, .progress-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--success-green);
}

.contact-card {
    background: var(--gradient-1) !important;
    box-shadow: var(--shadow-medium);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Image Sections */
.image-section {
    position: relative;
}

.hero-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.hero-image-container:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.main-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
}

.excitement-badge .badge {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.secondary-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.secondary-image-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.secondary-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

/* Progress Bar */
.progress-bar {
    background: var(--gradient-1) !important;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-medium);
    color: white;
}

.social-link:nth-child(2) { background: var(--gradient-2); }
.social-link:nth-child(3) { background: linear-gradient(135deg, #e91e63, #9c27b0); }
.social-link:nth-child(4) { background: linear-gradient(135deg, #ff5722, #f44336); }

/* Content Animations */
.content-wrapper > * {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.content-wrapper > *:nth-child(1) { animation-delay: 0.1s; }
.content-wrapper > *:nth-child(2) { animation-delay: 0.2s; }
.content-wrapper > *:nth-child(3) { animation-delay: 0.3s; }
.content-wrapper > *:nth-child(4) { animation-delay: 0.4s; }
.content-wrapper > *:nth-child(5) { animation-delay: 0.5s; }
.content-wrapper > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .school-name {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .main-container {
        padding: 1rem 0.5rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .main-hero-img {
        height: 250px;
    }
    
    .secondary-img {
        height: 120px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 576px) {
    .school-name {
        font-size: 1.75rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .feature-item {
        padding: 0.5rem;
    }
    
    .timeline-card, .contact-card, .progress-card {
        padding: 1rem !important;
    }
    
    .floating-icon {
        font-size: 1.2rem;
        opacity: 0.05;
    }
}

/* High-contrast mode support */
@media (prefers-contrast: high) {
    .floating-icon {
        opacity: 0.2;
    }
    
    .feature-item {
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid var(--primary-blue);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-icon {
        animation: none;
    }
}

/* Custom Bootstrap Color Overrides */
.text-primary {
    color: var(--primary-blue) !important;
}

.text-success {
    color: var(--success-green) !important;
}

.bg-primary {
    background: var(--gradient-1) !important;
}

.btn-primary {
    background: var(--gradient-1);
    border: none;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}