/* Common CSS styles for The English Studio website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Base styles */
:root {
    --primary-color: #1D4B3B;
    --secondary-color: #D4A933;
    --accent-color: #2D5A47;
    --text-color: #333333;
    --light-bg: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: white;
}

.font-primary {
    font-family: 'Inter', sans-serif;
}

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

.text-text {
    color: var(--text-color);
}

/* Common component styles */
.hero-section {
    background-color: var(--primary-color);
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.cta-button {
    background-color: var(--secondary-color);
    color: #333;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #e0b52e;
    transform: scale(1.05);
}

/* Card styles */
.card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-0.5rem);
}

.teacher-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.teacher-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-0.5rem);
}

.course-card {
    background: linear-gradient(135deg, var(--gradient-start, #e0f2fe) 0%, var(--gradient-mid, #bae6fd) 50%, var(--gradient-end, #7dd3fc) 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-0.5rem);
}

/* Navigation styles */
.nav-link {
    font-weight: bold;
    font-size: 1.25rem;
    color: black;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    opacity: 0.8;
    background-color: #f1f5f9;
}

/* Language toggle */
.language-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.language-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Footer styles */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 5rem 0;
}

.footer-link {
    color: white;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--secondary-color);
}

/* Utility classes */
.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

.border-secondary {
    border-color: var(--secondary-color);
}

/* Animation classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.stagger-delay-1 {
    transition-delay: 0.1s;
}

.stagger-delay-2 {
    transition-delay: 0.2s;
}

.stagger-delay-3 {
    transition-delay: 0.3s;
}

.stagger-delay-4 {
    transition-delay: 0.4s;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .card, .teacher-card, .course-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 3rem 0;
    }
    
    .language-toggle {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Loading animation */
/* Animation Keyframes */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes shimmer-slow {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(300%) rotate(45deg);
    }
}

@keyframes gradient {
    0%, 100% {
        background-size: 200% 200%;
        background-position: 0% 50%;
    }
    50% {
        background-size: 200% 200%;
        background-position: 100% 50%;
    }
}

@keyframes gradient-reverse {
    0%, 100% {
        background-size: 200% 200%;
        background-position: 100% 50%;
    }
    50% {
        background-size: 200% 200%;
        background-position: 0% 50%;
    }
}

@keyframes sweep {
    0% {
        transform: translateX(-100%) skewX(-25deg);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateX(200%) skewX(-25deg);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0) scale(1.1);
    }
    40%, 43% {
        transform: translate3d(0,-8px,0) scale(1.1);
    }
    70% {
        transform: translate3d(0,-4px,0) scale(1.1);
    }
    90% {
        transform: translate3d(0,-2px,0) scale(1.1);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Animation Classes */
.animate-shimmer {
    animation: shimmer 2s infinite;
}

.animate-shimmer-slow {
    animation: shimmer-slow 3s infinite;
}

.animate-gradient {
    animation: gradient 3s ease infinite;
}

.animate-gradient-reverse {
    animation: gradient-reverse 3s ease infinite;
}

.animate-sweep {
    animation: sweep 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient backgrounds */
.gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #e0b52e 100%);
}

.gradient-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
