* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
}

.lang-current:hover {
    background: rgba(255,255,255,0.15);
}

.lang-current .flag {
    font-size: 1rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 80px;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.lang-link:hover {
    background: #f8f9fa;
}

.lang-link .flag {
    font-size: 1rem;
}

.logo h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2px;
}

.logo .tagline {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-style: italic;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
    color: #f0f0f0;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
        url('https://images.pexels.com/photos/3280559/pexels-photo-3280559.jpeg?auto=compress&cs=tinysrgb&w=2000&h=1200&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 120px 0 60px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-text h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.cta-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.speech-bubble {
    width: 100%;
    max-width: 400px;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

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

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #666;
}

.politeness-meter {
    width: 100%;
    max-width: 300px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Lessons Section */
.lessons {
    padding: 80px 0;
    background: white;
}

.lessons h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.lesson-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

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

.lesson-icon {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.lesson-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
}

.lesson-card:hover .lesson-icon {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.lesson-content {
    padding: 2rem;
}

.lesson-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.lesson-card p {
    color: #666;
    line-height: 1.6;
}

/* Examples Section */
.examples {
    padding: 80px 0;
    background: #f8f9fa;
}

.examples h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.examples-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.example-pair {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: stretch;
}

.example-separator {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
}

.separator-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    flex: 1;
}

.separator-text {
    background: #f8f9fa;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid #ddd;
}

.example-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    border-left: 5px solid;
}

.example-card.wrong {
    border-left-color: #ff6b6b;
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
}

.example-card.right {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #fff 0%, #f5fff5 100%);
}

.example-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.example-card p {
    font-style: italic;
    color: #555;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.highlight {
    font-size: 1.5rem !important;
    font-weight: bold;
    color: #4CAF50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.contact-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mom {
    width: 100%;
    max-width: 350px;
    animation: ring 2s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 1rem 20px;
    }
    
    .nav-right {
        flex-direction: column;
        gap: 1rem;
    }
    
    .language-selector {
        order: -1;
    }
    
    .nav-links {
        margin-top: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        padding-top: 140px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h3 {
        font-size: 2rem;
    }
    
    .about-content, .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .example-pair {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .example-separator {
        justify-content: center;
        padding: 1rem 0;
    }
    
    .separator-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-text h3 {
        font-size: 1.8rem;
    }
    
    .lesson-card, .example-card {
        padding: 1.5rem;
    }
    
    .contact-text, .about-text {
        padding: 0 1rem;
    }
}