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

:root {
    --primary-dark: #0a0e27;
    --primary: #1a1a3e;
    --accent: #c9a84c;
    --text-light: #e0e0ff;
    --text-muted: #a0a0c0;
    --card-bg: rgba(255, 255, 255, 0.05);
    --gradient-1: linear-gradient(135deg, #0a0e27 0%, #1a1a3e 50%, #0a0e27 100%);
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header & Navigation */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--accent);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(201, 168, 76, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.moon-visual {
    margin: 3rem auto;
    display: flex;
    justify-content: center;
}

.moon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #f5f5dc, #c9a84c, #8b7a3e);
    box-shadow: 0 0 60px rgba(201, 168, 76, 0.4), 0 0 120px rgba(201, 168, 76, 0.2);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

.moon::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 20%;
    width: 20%;
    height: 20%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #f5f5dc, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Facts Section */
.facts {
    padding: 5rem 2rem;
    background: var(--primary);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto;
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.fact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.fact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.fact-card h3 {
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.fact-card p {
    color: var(--text-muted);
}

/* Phases Section */
.phases {
    padding: 5rem 2rem;
    background: var(--primary-dark);
}

.phases-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.phase-item {
    text-align: center;
    width: 100px;
}

.phase-item p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.phase-moon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto;
    background: #1a1a3e;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.new-moon {
    background: #1a1a3e;
}

.crescent {
    background: linear-gradient(to right, #c9a84c 15%, #1a1a3e 15%);
}

.quarter {
    background: linear-gradient(to right, #c9a84c 50%, #1a1a3e 50%);
}

.gibbous {
    background: linear-gradient(to right, #c9a84c 75%, #1a1a3e 75%);
}

.full-moon {
    background: radial-gradient(circle at 40% 40%, #f5f5dc, #c9a84c);
    box-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
}

.waning-gibbous {
    background: linear-gradient(to left, #c9a84c 75%, #1a1a3e 75%);
}

.last-quarter {
    background: linear-gradient(to left, #c9a84c 50%, #1a1a3e 50%);
}

.old-moon {
    background: linear-gradient(to left, #c9a84c 15%, #1a1a3e 15%);
}

/* Footer */
footer {
    background: var(--primary-dark);
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .moon {
        width: 150px;
        height: 150px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .phases-container {
        gap: 1rem;
    }
    
    .phase-item {
        width: 80px;
    }
    
    .phase-moon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .phases-container {
        justify-content: center;
    }
}
