/**
 * AIU Dance - Web Features Styles
 * Stiluri pentru funcționalitățile interactive
 */

/* ========================================
   1. SMOOTH SCROLLING
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* ========================================
   2. FADE IN ANIMATIONS
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   3. MOBILE NAVIGATION
   ======================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    padding-top: 80px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    border-bottom: 1px solid #eee;
}

.mobile-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.mobile-menu a:hover {
    background: #f5f5f5;
}

.menu-open {
    overflow: hidden;
}

/* ========================================
   4. PARALLAX EFFECT
   ======================================== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* ========================================
   5. COUNTER ANIMATION
   ======================================== */
.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e74c3c;
    text-align: center;
    margin: 20px 0;
}

.counter-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   6. TESTIMONIALS SLIDER
   ======================================== */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
    padding: 40px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 10px;
    margin: 20px;
}

.testimonial-slide.active {
    display: block;
    animation: fadeInSlide 0.5s ease;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.testimonial-content {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    font-weight: bold;
    color: #333;
}

.testimonial-prev,
.testimonial-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.testimonial-prev {
    left: 10px;
}

.testimonial-next {
    right: 10px;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background: #c0392b;
}

/* ========================================
   7. FORM VALIDATION
   ======================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e74c3c;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.btn-submit {
    background: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #c0392b;
}

/* ========================================
   8. NOTIFICĂRI (TOAST MESSAGES)
   ======================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #27ae60;
}

.notification-error {
    background: #e74c3c;
}

.notification-info {
    background: #3498db;
}

/* ========================================
   9. LAZY LOADING
   ======================================== */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}

/* ========================================
   10. DARK MODE
   ======================================== */
.dark-mode {
    background: #1a1a1a;
    color: #e0e0e0;
}

.dark-mode .hero-section {
    background: #2c2c2c;
}

.dark-mode .mobile-menu {
    background: #2c2c2c;
}

.dark-mode .mobile-menu a {
    color: #e0e0e0;
}

.dark-mode .mobile-menu a:hover {
    background: #3c3c3c;
}

.dark-mode .testimonial-slide {
    background: #2c2c2c;
    color: #e0e0e0;
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background: #3c3c3c;
    border-color: #555;
    color: #e0e0e0;
}

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #333;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: background 0.3s ease;
}

.dark-mode-toggle:hover {
    background: #555;
}

/* ========================================
   11. RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .testimonial-slide {
        padding: 20px;
        margin: 10px;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
    }
    
    .counter {
        font-size: 1.5rem;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
}

/* ========================================
   12. LOADING ANIMATIONS
   ======================================== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ========================================
   13. HOVER EFFECTS
   ======================================== */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* ========================================
   14. ACCESSIBILITY
   ======================================== */
.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 keyboard navigation */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid #e74c3c;
    outline-offset: 2px;
}

/* ========================================
   15. PRINT STYLES
   ======================================== */
@media print {
    .mobile-menu,
    .hamburger,
    .dark-mode-toggle,
    .notification {
        display: none !important;
    }
    
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */
.hero {
    position: relative;
    background: linear-gradient(135deg, #9c0033 0%, #c00055 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

/* Animation and overlay removed for gradient background */

.hero-content {
    position: relative;
}

/* ========================================
   INSTRUCTORS SECTION STYLES
   ======================================== */
.instructors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.instructor-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.instructor-card:hover {
    transform: translateY(-5px);
}

.instructor-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #9c0033, #c00055);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(156, 0, 51, 0.2);
    transition: transform 0.3s ease;
}

.instructor-card:hover .instructor-icon {
    transform: scale(1.1);
}

