/* ========== HERO SECTION ========== */

.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.logo-container {
    position: relative;
    perspective: 1000px;
    margin-bottom: 1rem;
}

.logo {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    letter-spacing: 0.2em;
    animation:
        logoFloat 6s ease-in-out infinite,
        glowPulse 3s ease-in-out infinite;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 30px rgba(138, 100, 255, 0.5)) drop-shadow(0 0 60px rgba(255, 100, 180, 0.3)) drop-shadow(0 0 90px rgba(138, 100, 255, 0.2));
}

/* Logo letter with vertical word */
.logo-letter {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg,
            #ffffff 0%,
            #b8b8ff 25%,
            #ffffff 50%,
            #ffb8d9 75%,
            #ffffff 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s ease-in-out infinite;
}

.letter-word {
    position: absolute;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 0.09em;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg,
            rgba(255, 100, 180, 1) 0%,
            rgba(180, 160, 255, 1) 50%,
            rgba(100, 200, 255, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 100, 180, 0.5);
    animation: wordGlow 3s ease-in-out infinite;
}

/* Position words inside the first vertical stroke of each letter */
.letter-m .letter-word {
    left: 8%;
    top: 50%;
    transform: rotate(180deg) translateY(50%);
}

.letter-l .letter-word {
    left: 11%;
    top: 50%;
    transform: rotate(180deg) translateY(50%);
}

.letter-k .letter-word {
    left: 9%;
    top: 50%;
    transform: rotate(180deg) translateY(50%);
}

.logo:hover {
    transform: scale(1.05) rotateX(5deg) rotateY(-5deg);
    filter: drop-shadow(0 0 40px rgba(138, 100, 255, 0.8)) drop-shadow(0 0 80px rgba(255, 100, 180, 0.5)) drop-shadow(0 0 120px rgba(138, 100, 255, 0.4));
}

/* Glitch effect on logo letters */
.logo-letter {
    animation: shimmer 4s ease-in-out infinite, letterGlitch 4s ease-in-out infinite;
}

.logo-letter:nth-child(1) {
    animation-delay: 0s, 0s;
}

.logo-letter:nth-child(2) {
    animation-delay: 0.1s, 1.3s;
}

.logo-letter:nth-child(3) {
    animation-delay: 0.2s, 2.6s;
}

.logo:hover .logo-letter {
    animation: shimmer 4s ease-in-out infinite, letterGlitchIntense 0.5s ease-in-out infinite;
}

/* Animated underline */
.logo-underline {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent,
            rgba(138, 100, 255, 0.8),
            rgba(255, 100, 180, 0.8),
            rgba(138, 100, 255, 0.8),
            transparent);
    border-radius: 2px;
    animation: underlineExpand 2s ease-out forwards;
    animation-delay: 1.5s;
}

/* Sparkle particles around logo */
.logo-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkle 2s ease-in-out infinite;
}

.logo-sparkle:nth-child(1) {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.logo-sparkle:nth-child(2) {
    top: 20%;
    right: 10%;
    animation-delay: 0.4s;
}

.logo-sparkle:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 0.8s;
}

.logo-sparkle:nth-child(4) {
    bottom: 20%;
    right: 5%;
    animation-delay: 1.2s;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 2rem;
}

.hero-description {
    max-width: 700px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(20px);
}

.line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 2rem auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: bounce 2s ease-in-out infinite;
    text-decoration: none;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
}

/* ========== RESPONSIVE HERO ========== */
@media (max-width: 480px) {
    .hero {
        padding: 1.5rem;
    }
}