/* ===================================
   CSS Reset & Base Styles
   =================================== */

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

/* ===================================
   CSS Custom Properties
   =================================== */

:root {
    /* Colors */
    --color-primary: #1a2332;
    --color-secondary: #d4af37;
    --color-text: #f5f5f5;
    --color-text-secondary: #c9c9c9;
    --color-accent: #c49a2e;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s ease-in-out;
    --transition-fast: all 0.2s ease-in-out;
}

/* ===================================
   Body & Container
   =================================== */

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #0f1419 0%, var(--color-primary) 50%, #1e2b3d 100%);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: var(--spacing-md);
    position: relative;
    z-index: 10;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    text-align: center;
    max-width: 900px;
    width: 100%;
}

/* Logo Styles */
.hero__logo {
    margin-bottom: var(--spacing-lg);
    opacity: 0;
    animation: scaleIn 1s ease-out forwards;
}

.logo {
    max-width: 350px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.3));
    transition: var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(212, 175, 55, 0.5));
}

/* Title Styles */
.hero__title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

/* Subtitle with Typing Effect */
.hero__subtitle-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    min-height: 60px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
}

.hero__subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--color-secondary);
    margin: 0;
    display: inline-block;
}

.cursor {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--color-secondary);
    margin-left: 4px;
    animation: blink 0.8s infinite;
}

/* Decorative Divider */
.hero__divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
    margin: var(--spacing-lg) auto 0;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.5s forwards;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* ===================================
   Footer
   =================================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    text-align: center;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.8s forwards;
}

.footer__text {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    letter-spacing: 0.5px;
}

/* ===================================
   Particles Canvas
   =================================== */

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ===================================
   Keyframe Animations
   =================================== */

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* ===================================
   Responsive Design
   =================================== */

/* Tablets */
@media screen and (max-width: 768px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .container {
        padding: var(--spacing-sm);
    }

    .logo {
        max-width: 280px;
    }

    .hero__title {
        letter-spacing: 1px;
    }

    .hero__message {
        font-size: 1.1rem;
    }

    .footer {
        padding: var(--spacing-sm);
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    :root {
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }

    .logo {
        max-width: 220px;
    }

    .hero__logo {
        margin-bottom: var(--spacing-md);
    }

    .hero__title {
        margin-bottom: var(--spacing-sm);
        letter-spacing: 0.5px;
    }

    .hero__subtitle-wrapper {
        margin-bottom: var(--spacing-md);
        min-height: 50px;
    }

    .hero__message {
        font-size: 1rem;
        margin-bottom: var(--spacing-md);
    }

    .hero__divider {
        width: 80px;
        margin-top: var(--spacing-md);
    }

    .footer__text {
        font-size: 0.8rem;
    }
}

/* ===================================
   Performance Optimizations
   =================================== */

.logo,
.hero__title,
.hero__subtitle,
.hero__message,
.hero__divider,
.footer {
    will-change: transform, opacity;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
