/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #000000;
    --text-color: #FFFFFF;
    --accent-color: #FFFFFF;
    --transition-speed: 0.05s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Container */
.hero-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Hero Content */
.hero-content {
    max-width: 1400px;
    width: 100%;
    text-align: center;
}

/* Logo Container */
.logo-container {
    margin-bottom: 3rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.logo-container.visible {
    opacity: 1;
}

.logo-container img {
    max-width: 200px;
    height: auto;
}

/* Text Container */
.text-container {
    position: relative;
    display: inline-block;
    min-height: 300px;
}

/* Animated Text */
.animated-text {
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    display: inline-block;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-text.typing {
    opacity: 1;
}

.animated-text.definition {
    font-size: clamp(1.5rem, 3.5vw, 3.5rem);
    font-weight: 400;
    text-transform: none;
    font-style: italic;
    letter-spacing: 0;
}

.animated-text.phonetic {
    font-size: clamp(1.8rem, 4vw, 4rem);
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0.05em;
}

.animated-text.quote {
    font-size: clamp(1.3rem, 3vw, 3rem);
    font-weight: 300;
    text-transform: none;
    font-style: italic;
    letter-spacing: 0;
    line-height: 1.5;
}

/* Cursor */
.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent-color);
    margin-left: 5px;
    vertical-align: text-bottom;
    opacity: 0;
}

.cursor.active {
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Fade Out Animation */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-out {
    animation: fadeOut 1s ease forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        padding: 1.5rem;
    }

    .text-container {
        min-height: 200px;
    }

    .logo-container {
        min-height: 100px;
        margin-bottom: 2rem;
    }

    .logo-container img {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 1rem;
    }

    .text-container {
        min-height: 150px;
    }

    .animated-text {
        font-size: clamp(1.5rem, 8vw, 3rem);
    }

    .animated-text.definition,
    .animated-text.quote {
        font-size: clamp(1rem, 6vw, 2rem);
    }

    .animated-text.phonetic {
        font-size: clamp(1.2rem, 7vw, 2.5rem);
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cursor {
        animation: none;
    }
    
    .animated-text {
        transition: none;
    }
}
