/* Hero Section - Unity Through Truth */

:root {
    --vibrant-green: #00FF00;
    --calm-green: #4CAF50;
    --vibrant-red: #FF0000;
    --calm-red: #E53935;
    --vibrant-blue: #0080FF;
    --calm-blue: #1976D2;
    --unity-gradient: linear-gradient(135deg, #4CAF50 0%, #1976D2 50%, #E53935 100%);
}

/* Hero Container */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Urban Cityscape Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(to top, #000428 0%, #004e92 50%, #ff6b6b 85%, #feca57 100%);
    animation: sunrise 20s ease-in-out infinite alternate;
}

@keyframes sunrise {
    0% {
        filter: brightness(0.3) hue-rotate(0deg);
    }
    100% {
        filter: brightness(1) hue-rotate(10deg);
    }
}

/* Cityscape Silhouette */
.cityscape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-image: 
        linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%),
        repeating-linear-gradient(90deg, #111 0px, #111 20px, transparent 20px, transparent 40px),
        repeating-linear-gradient(0deg, #111 0px, #111 60%, transparent 60%, transparent 100%);
    background-size: 100% 100%, 200px 100%, 40px 100%;
    background-position: bottom;
    opacity: 0.8;
}

/* International Flags Container */
.flags-container {
    position: absolute;
    top: 20%;
    left: -100%;
    width: 300%;
    height: 100px;
    z-index: 2;
    opacity: 0.3;
    animation: flags-flow 30s linear infinite;
}

@keyframes flags-flow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-66.666%);
    }
}

.flag {
    display: inline-block;
    width: 60px;
    height: 40px;
    margin: 0 20px;
    background: var(--unity-gradient);
    border-radius: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
}

/* Main Title Animation */
.hero-title {
    font-family: 'Bebas Neue', 'Anton', sans-serif;
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 0.9;
    position: relative;
    display: block;
    word-spacing: 100vw; /* Forces line break after first word */
}

.hero-title span {
    display: inline-block;
    animation: letter-pop 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
    animation-delay: calc(var(--index) * 0.1s);
    background: var(--unity-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
}

@keyframes letter-pop {
    0% {
        transform: translateY(100px) scale(0);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Subtitle */
.hero-subtitle {
    font-family: 'Inter', 'Poppins', sans-serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: #fff;
    margin: 20px 0 40px;
    opacity: 0;
    animation: fade-in-up 1s ease-out 1s forwards;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chinese Characters */
.truth-characters {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--vibrant-green);
    writing-mode: vertical-rl;
    text-shadow: 0 0 30px var(--vibrant-green),
                 0 0 60px var(--calm-green),
                 0 0 90px var(--vibrant-green);
    animation: glow-pulse 3s ease-in-out infinite alternate,
               float 6s ease-in-out infinite;
    z-index: 5;
}

@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 30px var(--vibrant-green),
                     0 0 60px var(--calm-green),
                     0 0 90px var(--vibrant-green);
    }
    100% {
        text-shadow: 0 0 40px var(--vibrant-green),
                     0 0 80px var(--calm-green),
                     0 0 120px var(--vibrant-green);
    }
}

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

/* CTA Button */
.hero-cta {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000;
    background: linear-gradient(45deg, var(--vibrant-green), var(--calm-green));
    border: none;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fade-in-up 1s ease-out 1.5s forwards;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.3);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 0, 0.5);
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 0;
    animation: fade-in 1s ease-out 2s forwards;
}

.scroll-indicator::before {
    content: '';
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 2s infinite;
}

@keyframes scroll-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(15px);
    }
    60% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes fade-in {
    to {
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(4rem, 20vw, 8rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.5rem);
        padding: 0 20px;
    }
    
    .truth-characters {
        font-size: clamp(2rem, 10vw, 4rem);
        right: 5%;
    }
    
    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .cityscape {
        height: 30%;
    }
}

/* Parallax Effect */
.hero-section[data-scroll] .hero-background {
    transform: translateY(calc(var(--scroll) * -0.5));
}

.hero-section[data-scroll] .cityscape {
    transform: translateY(calc(var(--scroll) * -0.3));
}

.hero-section[data-scroll] .truth-characters {
    transform: translateY(calc(-50% + var(--scroll) * -0.2));
}