/* style.css */

/* ==================== */
/* CSS Reset & Base     */
/* ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #e91e8c;
    --color-secondary: #666;
    --color-dark: #1a2332;
    --color-overlay: rgba(26, 35, 50, 0.7);
    --color-white: #ffffff;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                   'Helvetica Neue', Arial, sans-serif;
    
    /* Spacing */
    --spacing-small: 1rem;
    --spacing-medium: 2rem;
    --spacing-large: 4rem;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-dark);
}

/* ==================== */
/* Container            */
/* ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-small);
}

/* ==================== */
/* Header               */
/* ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--spacing-medium) 0;
    background: linear-gradient(to bottom, 
                rgba(26, 35, 50, 0.95) 0%, 
                rgba(26, 35, 50, 0) 100%);
}

.logo {
    height: 50px;
    width: auto;
    display: block;
    margin: 0 auto;
    animation: fadeInDown 1s ease-out;
}

/* ==================== */
/* Hero Section         */
/* ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 35, 50, 0.4) 0%,
        rgba(26, 35, 50, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-medium);
    animation: fadeInUp 1.2s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    margin-bottom: var(--spacing-small);
    letter-spacing: 2px;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==================== */
/* Animated Stars       */
/* ==================== */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--color-white);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle linear infinite;
}

/* ==================== */
/* Footer               */
/* ==================== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-small);
    text-align: center;
    z-index: 100;
    background: linear-gradient(to top, 
                rgba(26, 35, 50, 0.95) 0%, 
                rgba(26, 35, 50, 0) 100%);
}

.footer p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    animation: fadeIn 1.5s ease-out;
}

/* ==================== */
/* Animations           */
/* ==================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== */
/* Responsive Design    */
/* ==================== */
@media (max-width: 768px) {
    .header {
        padding: var(--spacing-small) 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .hero-title {
        letter-spacing: 1px;
    }
    
    .footer {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 35px;
    }
    
    .hero-content {
        padding: var(--spacing-small);
    }
}

/* ==================== */
/* Accessibility        */
/* ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero {
        background-attachment: scroll;
    }
}
