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

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    position: relative;
}


/* Main Container */
.container {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content {
    text-align: center;
    max-width: 600px;
    animation: fadeIn 2s ease-out;
}

/* Main Title */
.title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 700;
    line-height: 0.8;
    margin-bottom: 2rem;
    position: relative;
}

.word {
    display: inline-block;
    margin: 0 0.2em;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.word::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.word:hover::before {
    transform: translateX(100%);
}

.word:hover {
    transform: translateY(-10px);
    text-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

/* Subtitle */
.subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.6;
    margin-bottom: 4rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    animation: fadeIn 2s ease-out 0.5s both;
}



/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .title {
        font-size: clamp(3rem, 15vw, 8rem);
    }
    .subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }   
}

@media (max-width: 480px) {
    .title {
        font-size: clamp(2.5rem, 18vw, 6rem);
        line-height: 0.9;
    }
    .word {
        margin: 0 0.1em;
    }
}

/* 404 Error Page Styles */
.error-page .title .word:first-child {
    color: #ff6b6b;
    font-weight: 900;
}

.home-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    animation: fadeIn 2s ease-out 1s both;
}

.home-button:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .word::before {
        display: none;
    }
}