/* Custom CSS for School Website */

/* Global Styles */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
}

/* Header Animations */
#header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #EC4899, #BE185D);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Active Menu Styles */
.nav-link.active-menu {
    color: #EC4899;
    font-weight: 600;
}

.nav-link.active-menu::after {
    width: 100%;
}

/* Hero Section */
.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-text:nth-child(2) {
    animation-delay: 0.3s;
}

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

/* Button Animations */
.cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::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;
    z-index: -1;
}

.cta-button:hover::before {
    left: 100%;
}

/* Card Hover Effects */
.about-card, .program-card, .testimonial-card, .news-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 119, 6, 0.15);
}

.about-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
}

/* Testimonials */
.testimonial-card {
    border-left: 4px solid #D97706;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* News Cards */
.news-card:hover {
    transform: translateY(-4px);
}

/* Form Styles */
input, textarea, select {
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.2);
}

/* Loading Animation */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #FEF3C7;
    border-top: 3px solid #D97706;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Pulse Animation for Hero Elements */
@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(45deg, #D97706, #92400E, #DC2626);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

/* Mobile Menu Animation */
#mobile-menu {
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Navigation Link Styles */
.mobile-nav-link {
    display: block !important;
    padding: 16px !important;
    font-weight: 500 !important;
    color: #831843 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
    border-bottom: 1px solid #FCE7F3 !important;
    font-family: 'Noto Sans KR', sans-serif !important;
}

.mobile-nav-link:hover {
    color: #EC4899 !important;
    background-color: #FCE7F3 !important;
}

.mobile-nav-link:last-child {
    border-bottom: none !important;
}

.mobile-nav-link.mobile-nav-cta {
    font-weight: 600 !important;
    color: white !important;
    background: linear-gradient(135deg, #EC4899, #BE185D) !important;
    border-bottom: none !important;
}

.mobile-nav-link.mobile-nav-cta:hover {
    background: linear-gradient(135deg, #BE185D, #831843) !important;
    color: white !important;
}

.mobile-nav-link.active-mobile {
    background: linear-gradient(135deg, #EC4899, #BE185D) !important;
    color: white !important;
    font-weight: 600 !important;
}

.mobile-nav-link.active-mobile:hover {
    background: linear-gradient(135deg, #BE185D, #831843) !important;
    color: white !important;
}

/* Section Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Action Button */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #D97706, #92400E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(217, 119, 6, 0.4);
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem !important;
    }
    
    .program-card, .about-card {
        margin-bottom: 1rem;
    }
    
    .floating-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: 2rem !important;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .floating-btn,
    #header,
    #mobile-menu {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .about-card, .program-card, .testimonial-card, .news-card {
        border: 2px solid #451A03;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FCE7F3;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #EC4899, #BE185D);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #BE185D, #831843);
}