
/* Motivating banner animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.animate-pulse {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* Mobile menu styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.mobile-menu:not(.hidden) {
    display: block;
}

.mobile-menu ul {
    padding: 1rem 0;
}

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

.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    transition: background-color 0.2s;
}

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

.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-button i {
    width: 24px;
    height: 24px;
    color: #374151;
}
/* Mobile-first responsive styles */
@media (max-width: 768px) {
    /* Base styles */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Header and navigation */
    nav {
        padding: 0.5rem 0;
    }
    
    .mobile-menu-button {
        padding: 0.5rem;
    }
    
    /* Layout adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    h1, h2, h3 {
        line-height: 1.3;
    }
    
    .text-4xl {
        font-size: 1.75rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-xl {
        font-size: 1.25rem;
    }
    
    /* Spacing */
    .py-20, .py-16 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Grid and flex layouts */
    .flex-col.md\:flex-row {
        flex-direction: column;
    }
    
    .grid-cols-1.md\:grid-cols-2, 
    .grid-cols-1.md\:grid-cols-3 {
        grid-template-columns: 1fr;
    }
    
    /* Cards and containers */
    .p-8 {
        padding: 1.25rem;
    }
    
    .rounded-xl {
        border-radius: 0.75rem;
    }
    
    /* Buttons */
    .btn, .service-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Images and media */
    img, video {
        max-width: 100%;
        height: auto;
    }
    
    /* Hide desktop elements */
    .hidden-mobile {
        display: none;
    }
    
    /* Show mobile elements */
    .mobile-only {
        display: block;
    }
    
    /* Service buttons */
    .service-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .service-btn {
        width: 100%;
        height: auto;
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    /* Testimonials */
    .review-buttons-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Contact section */
    .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Videos grid */
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    /* Forms */
    form input, 
    form select, 
    form textarea {
        width: 100%;
    }
}
/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom styles for feather icons */
.feather {
    stroke-width: 1.5;
}
/* Button hover effects */
.btn-hover-effect {
    transition: all 0.3s ease;
}

.btn-hover-effect:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(239, 68, 68, 0.3);
}
/* Services section with background image */
#services {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://huggingface.co/spaces/arturvarezhkin/russian-grammar-whiz-academy/resolve/main/images/photo_2025-12-06_17-48-50%20(2).jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
}

#services .text-gray-900,
#services .text-gray-700 {
    color: white !important;
}

#services .bg-white {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
}

#services .bg-gray-50 {
    background-color: rgba(247, 247, 247, 0.9) !important;
    backdrop-filter: blur(5px);
}

/* Service buttons styles */
.service-btn {
    display: inline-block;
    width: 200px;
    height: 200px;
    padding: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 18px;
    line-height: 1.3;
    margin: 10px;
    transition: all 0.3s ease;
}

.service-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}
/* Service buttons container */
.service-buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

/* Card hover effects */
.card-hover-effect {
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
/* Form input focus styles */
.input-focus:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Messengers section styles */
.messengers-section {
    background-color: #ef4444;
    padding: 2rem;
    border-radius: 0.5rem;
    color: white;
}

.messengers-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.messengers-section .messenger-btn {
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.messengers-section .messenger-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.messengers-section .feather {
    color: white;
    stroke-width: 2;
}
/* Video grid styles */
.video-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video-grid video {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-grid video:hover {
    transform: scale(1.02);
}
/* Review form button styles */
.review-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.review-btn, .all-reviews-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-btn {
    background-color: #ef4444;
    color: white;
    border: 2px solid #ef4444;
}

.all-reviews-btn {
    background-color: white;
    color: #ef4444;
    border: 2px solid #ef4444;
    line-height: 1.2;
}
.review-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.all-reviews-btn:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
/* Testimonial card styles */
.testimonial-card {
    position: relative;
}

/* Adjust review form styles */
.review-form {
    margin: 0;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 80px;
    color: rgba(239, 68, 68, 0.1);
    font-family: serif;
    line-height: 1;
}
/* Target audience icons */
.audience-icon {
    transition: transform 0.3s ease;
}

.audience-icon:hover {
    transform: scale(1.1);
}
/* Benefit list items */
.benefit-item {
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background-color: rgba(239, 68, 68, 0.05);
    padding-left: 8px;
}
/* About section images */
.about-images img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Grid image styling */
.grid img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
}

.grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* About section education box */
.border-l-4 {
    transition: all 0.3s ease;
}

.border-l-4:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.1);
}
/* Popup styles */
.popup-overlay {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section padding for responsiveness */
@media (max-width: 768px) {
    .section-padding {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}
