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

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --text-dark: #1a202c;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --accent-color: #48bb78;

    /* Dynamic multi-color gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 25%, #4facfe 50%, #00f2fe 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 33%, #43e97b 66%, #38f9d7 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 25%, #fa709a 50%, #fee140 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 20%, #a8edea 40%, #fed6e3 60%, #ff9a9e 80%, #fecfef 100%);
    --gradient-6: linear-gradient(135deg, #a8edea 0%, #fed6e3 33%, #fbc2eb 66%, #a18cd1 100%);
    --gradient-7: linear-gradient(135deg, #ff9a9e 0%, #fecfef 25%, #fad0c4 50%, #ffd1ff 75%, #667eea 100%);
    --gradient-8: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 20%, #ffecd2 40%, #fcb69f 60%, #f093fb 80%, #764ba2 100%);
    --gradient-9: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 16%, #4facfe 32%, #43e97b 48%, #fa709a 64%, #a8edea 80%, #ff9a9e 100%);
    --gradient-10: linear-gradient(135deg, #ffecd2 0%, #fcb69f 14%, #667eea 28%, #f5576c 42%, #00f2fe 56%, #38f9d7 70%, #fecfef 84%, #a18cd1 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Hero Section with elegant background */
.hero {
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 70%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    animation: aura-float 6s ease-in-out infinite alternate;
}

@keyframes aura-float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-10px) rotate(2deg);
    }
}

.hero-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    margin-bottom: 3rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
    cursor: pointer;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    margin: 0 auto 1rem;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 0.5rem;
}

/* Translation Sections */
.translation-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: background 0.6s ease;
}

/* Dynamic gradient backgrounds */
.translation-section[data-bg="1"] {
    background: var(--gradient-1);
}

.translation-section[data-bg="2"] {
    background: var(--gradient-2);
}

.translation-section[data-bg="3"] {
    background: var(--gradient-3);
}

.translation-section[data-bg="4"] {
    background: var(--gradient-4);
}

.translation-section[data-bg="5"] {
    background: var(--gradient-5);
}

.translation-section[data-bg="6"] {
    background: var(--gradient-6);
}

.translation-section[data-bg="7"] {
    background: var(--gradient-7);
}

.translation-section[data-bg="8"] {
    background: var(--gradient-8);
}

.translation-section[data-bg="9"] {
    background: var(--gradient-9);
}

.translation-section[data-bg="10"] {
    background: var(--gradient-10);
}

.translation-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.translation-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hide elements initially */
.translation-content [data-aos] {
    opacity: 0;
    visibility: hidden;
}

.translation-content [data-aos="fly-from-left"] {
    transform: translateX(-200px);
}

.translation-content [data-aos="fly-from-right"] {
    transform: translateX(200px);
}

.translation-content [data-aos="fly-from-top"] {
    transform: translateY(-100px);
}

/* Show with sequential animations when visible */
.translation-content.visible [data-aos="fly-from-left"] {
    animation: slideFromLeft 0.8s ease-out 0.2s forwards;
}

.translation-content.visible [data-aos="fly-from-top"] {
    animation: slideFromTop 0.8s ease-out 0.8s forwards;
}

.translation-content.visible [data-aos="fly-from-right"] {
    animation: slideFromRight 0.8s ease-out 1.4s forwards;
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(-200px);
    }
    1% {
        visibility: visible;
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

@keyframes slideFromTop {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100px);
    }
    1% {
        visibility: visible;
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(200px);
    }
    1% {
        visibility: visible;
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

.translation-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.lang-box {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    color: #1a202c;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    overflow: hidden;
}

.lang-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.lang-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.lang-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.arrow-container {
    font-size: 2.5rem;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    animation: arrow-pulse 2s infinite;
}

.arrow-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -50%;
    width: 200%;
    height: calc(100% + 4px);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: arrow-shine 3s infinite;
}

@keyframes arrow-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    }
}

@keyframes arrow-shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

/* Enhanced Section Backgrounds with floating elements */
.translation-section::before,
.translation-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

.translation-section::before {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 70%, transparent 100%);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.translation-section::after {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 70%, transparent 100%);
    bottom: -125px;
    left: -125px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}

/* Translation counter */
.translation-counter {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    pointer-events: none;
    z-index: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    font-family: 'Arial Black', Arial, sans-serif;
    line-height: 1;
}

/* Enhanced celebration animation */
.lang-box.celebrating {
    animation: enhanced-celebrate 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

@keyframes enhanced-celebrate {
    0% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }
    15% {
        transform: scale(1.15) rotate(-3deg);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    }
    30% {
        transform: scale(1.25) rotate(3deg);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    }
    45% {
        transform: scale(1.2) rotate(-2deg);
        box-shadow: 0 28px 65px rgba(0, 0, 0, 0.23);
    }
    60% {
        transform: scale(1.3) rotate(2deg);
        box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3);
    }
    75% {
        transform: scale(1.15) rotate(-1deg);
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    }
    85% {
        transform: scale(1.1) rotate(1deg);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }
    95% {
        transform: scale(1.05) rotate(0deg);
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    }
}

/* Confetti particles */
.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ff69b4;
    border-radius: 50%;
    pointer-events: none;
    animation: confetti-fall 3s ease-out forwards;
    box-shadow: 0 0 6px currentColor;
}

.confetti:nth-child(2n) {
    background: #4facfe;
    width: 8px;
    height: 12px;
    border-radius: 0;
}

.confetti:nth-child(3n) {
    background: #43e97b;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.confetti:nth-child(4n) {
    background: #fa709a;
    border-radius: 2px;
}

.confetti:nth-child(5n) {
    background: #a8edea;
    width: 12px;
    height: 4px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-30px) rotate(0deg) scale(0);
        opacity: 1;
    }
    10% {
        transform: translateY(-20px) rotate(90deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(150px) rotate(720deg) scale(0);
        opacity: 0;
    }
}

/* Floating hearts */
.heart {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    animation: heart-float 3s ease-out forwards;
    user-select: none;
    filter: drop-shadow(0 0 8px currentColor);
}

@keyframes heart-float {
    0% {
        transform: translateY(0) scale(0) rotate(0deg);
        opacity: 1;
    }
    20% {
        transform: translateY(-20px) scale(1.3) rotate(15deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-60px) scale(1.5) rotate(-10deg);
        opacity: 0.8;
    }
    80% {
        transform: translateY(-100px) scale(1.2) rotate(5deg);
        opacity: 0.4;
    }
    100% {
        transform: translateY(-140px) scale(0.8) rotate(0deg);
        opacity: 0;
    }
}

/* Rainbow border effect for easter egg */
.rainbow-border {
    animation: rainbow-border 2s linear infinite;
}

@keyframes rainbow-border {
    0% {
        border-color: #ff0000;
    }
    16.67% {
        border-color: #ff8000;
    }
    33.33% {
        border-color: #ffff00;
    }
    50% {
        border-color: #00ff00;
    }
    66.67% {
        border-color: #0080ff;
    }
    83.33% {
        border-color: #8000ff;
    }
    100% {
        border-color: #ff0000;
    }
}

/* Simple Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        height: 100dvh; /* Use dynamic viewport height */
    }

    .translation-section,
    .coming-soon-section {
        min-height: 100dvh; /* Use dynamic viewport height */
    }

    .translation-pair {
        flex-direction: column;
    }

    .arrow-container {
        transform: rotate(90deg);
    }

    .lang-box {
        min-width: 100%;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .scroll-indicator {
        bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .translation-counter {
        font-size: 4rem;
        top: 1rem;
        right: 1rem;
    }
}

/* Coming Soon Section */
.coming-soon-section {
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #0f0f23 0%, #1a1a2e 30%, #2d1b69 70%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.coming-soon-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    opacity: 0.3;
    animation: cosmic-rotate 20s linear infinite;
}

@keyframes cosmic-rotate {
    from {
        transform: rotate(0deg) scale(1.5);
    }
    to {
        transform: rotate(360deg) scale(1.5);
    }
}

.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.coming-soon-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    animation: fade-up 1s ease-out;
}

.coming-soon-main {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 900;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 25%, #4facfe 50%, #43e97b 75%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: gradient-text 3s ease infinite, pulse-size 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    position: relative;
}

@keyframes gradient-text {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse-size {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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