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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

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

/* Language Bar - Top */
.lang-bar {
    background: linear-gradient(90deg, #0f0c29 0%, #302b63 100%);
    color: white;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.lang-bar-content {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.lang-label {
    font-size: 0.9em;
    font-weight: 500;
    opacity: 0.9;
    color: #b0b5ff;
}

.language-switcher {
    display: flex;
    gap: 4px;
    background: rgba(102, 126, 234, 0.2);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.4);
}

.lang-btn {
    background: transparent;
    color: #b0b5ff;
    border: none;
    padding: 5px 11px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.75em;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    color: white;
    transform: scale(1.05);
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
        background: white !important;
}

/* Navbar */
.navbar {
    background: rgba(102, 126, 234, 0.95);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.navbar-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    justify-self: center;
}

.logo-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

.navbar .logo {
    font-size: 1.8em;
    font-weight: bold;
    letter-spacing: 1px;
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    opacity: 0.8;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    color: white;
    border: 2px solid transparent;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.8em;
}

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

.lang-btn.active {
    background: white;
    color: #667eea;
}

.login-link {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 500;
    font-size: 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-link:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-start {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.95em;
    border: 2px solid rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.btn-start:hover {
    background: white;
    color: #667eea;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.user-name {
    color: #b0b5ff;
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
}

.profile-btn {
    color: white;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 0.8;
}

.profile-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.logout-btn {
    background: rgba(255, 100, 100, 0.8);
    color: white;
    border: 1px solid rgba(255, 100, 100, 1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9em;
    white-space: nowrap;
}

.logout-btn:hover {
    background: rgba(255, 100, 100, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 100, 100, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: 600px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    text-align: center;
}

.emoji-large {
    font-size: 10em;
    animation: float 3s ease-in-out infinite;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 60px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #feca57, #ee5a24, #00d2d3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step-icon {
    font-size: 4em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.step-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    font-weight: 700;
}

.step-card p {
    font-size: 1em;
    line-height: 1.6;
    opacity: 0.95;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2d3436;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.3em;
    margin-bottom: 12px;
    color: #2d3436;
}

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

/* Tenses Section */
.tenses {
    padding: 80px 0;
    background: white;
}

.tenses h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2d3436;
}

.tenses-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.tense-group h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.tense-group ul {
    list-style: none;
}

.tense-group li {
    padding: 10px 0;
    font-size: 1.05em;
    color: #555;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.tense-group li:hover {
    padding-left: 10px;
    color: #667eea;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.about h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #2d3436;
}.about-text h4 {
    color: #667eea;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.about-text p {
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-text ol, .about-text ul {
    margin-left: 20px;
    color: #555;
}

.about-text li {
    margin: 10px 0;
    line-height: 1.6;
}.stat {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #667eea;
}.stat-label {
    color: #666;
    font-size: 0.95em;
}/* Footer */
.footer {
    background: #2d3436;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.footer-section p {
    opacity: 0.8;
    font-size: 0.95em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #667eea;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9em;
}

.footer-creators {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #b0b5ff;
}

.footer-creators p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-content {
        flex-wrap: wrap;
    }

    .nav-links {
        gap: 15px;
        flex: none;
        order: 3;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.9em;
    }

    .navbar-right {
        gap: 10px;
    }

    .language-switcher {
        gap: 4px;
        padding: 4px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75em;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .emoji-large {
        font-size: 5em;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features h2, .tenses h2, .about h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .navbar-content {
        flex-direction: column;
        gap: 10px;
    }

    .navbar-right {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .nav-links {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        order: 3;
    }

    .nav-links a {
        padding: 8px;
        text-align: center;
        font-size: 0.9em;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
    }

    .login-link,
    .btn-start {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 40px 0;
        min-height: 500px;
    }

    .hero-content h2 {
        font-size: 1.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .emoji-large {
        font-size: 3em;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
