/* Custom CSS for EnglsihUtopia Academy */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Button animations */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Mobile menu animations */
#mobile-menu {
    transition: all 0.3s ease;
    max-height: 0;
    overflow: hidden;
}

#mobile-menu.show {
    max-height: 300px;
}

/* Feature cards animation */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* WhatsApp button animation */
.whatsapp-float {
    animation: pulse 2s infinite;
}

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

/* Subtle pulse animation for buttons */
.animate-pulse-subtle {
    animation: pulseSubtle 3s ease-in-out infinite;
}

@keyframes pulseSubtle {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(193, 18, 31, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(193, 18, 31, 0.4);
    }
}

/* Animated ray/light effect for mission statement */
.mission-ray {
    position: relative;
    overflow: hidden;
}

.mission-ray::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.2) 45%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0.2) 55%,
        transparent 70%
    );
    animation: rayRotate 4s linear infinite;
    transform: rotate(0deg);
}

@keyframes rayRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Accessibility improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.focus-visible:focus {
    outline: 2px solid #C1121F;
    outline-offset: 2px;
}

.top-contact-bar a,
.social-links a {
    transition: transform 0.25s ease, filter 0.25s ease, color 0.25s ease;
}

.top-contact-bar a:hover,
.social-links a:hover {
    transform: translateY(-2px) scale(1.06);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

.top-contact-bar a:active,
.social-links a:active {
    transform: translateY(0) scale(0.98);
}

.top-contact-bar svg,
.social-links svg {
    transition: transform 0.35s ease;
}

.top-contact-bar a:hover svg,
.social-links a:hover svg {
    transform: rotate(-6deg) scale(1.08);
}

.top-contact-bar a svg,
.social-links a svg {
    animation: iconFloat 3.5s ease-in-out infinite;
}

.top-contact-bar a:nth-child(2) svg,
.social-links a:nth-child(2) svg {
    animation-delay: 0.25s;
}

.top-contact-bar a:nth-child(3) svg,
.social-links a:nth-child(3) svg {
    animation-delay: 0.5s;
}

.top-contact-bar a:nth-child(4) svg,
.social-links a:nth-child(4) svg {
    animation-delay: 0.75s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/* Print styles */
@media print {
    nav, .whatsapp-float, footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
