/* ========================================
   QUEST TO SHOOT MY AGE - DESIGN SYSTEM
   Created by Juri Gregg
   ======================================== */

/* ========================================
   DESIGN SYSTEM - VARIABLES
   ======================================== */
:root {
    /* Colors */
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #cccccc;
    --color-text-tertiary: #999999;
    --color-text-muted: #666666;
    
    --color-metal-light: #ffffff;
    --color-metal-mid: #cccccc;
    --color-metal-dark: #999999;
    
    --color-accent: #ffffff;
    --color-accent-dim: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    --font-display: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.5rem;      /* 40px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 4rem;        /* 64px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.8;
    
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.05em;
    --letter-spacing-wider: 0.1em;
    
    /* Spacing System */
    --space-xs: 0.5rem;    /* 8px */
    --space-sm: 1rem;      /* 16px */
    --space-md: 1.5rem;    /* 24px */
    --space-lg: 2rem;      /* 32px */
    --space-xl: 3rem;      /* 48px */
    --space-2xl: 4rem;     /* 64px */
    --space-3xl: 6rem;     /* 96px */
    --space-4xl: 8rem;     /* 128px */
    
    /* Border Radius */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(255, 255, 255, 0.05);
    --shadow-md: 0 4px 16px rgba(255, 255, 255, 0.1);
    --shadow-lg: 0 10px 40px rgba(255, 255, 255, 0.15);
    --shadow-metal: 0 0 20px rgba(255, 255, 255, 0.3);
    
    /* Layout */
    --max-width-container: 1400px;
    --max-width-content: 800px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */
.heading-1 {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-wide);
}

.heading-2 {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-light);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-wide);
}

.heading-3 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-normal);
}

.heading-4 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
}

.body-lg {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.body-base {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

.body-sm {
    font-size: var(--font-size-sm);
    line-height: var(--line-height-normal);
}

/* ========================================
   REUSABLE COMPONENTS
   ======================================== */

/* Metal Gradient Text */
.metal-text {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e0e0e0 25%,
        #ffffff 50%,
        #e0e0e0 75%,
        #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    position: relative;
    display: inline-block;
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 0.4),
        0 0 10px rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.metal-text-animated {
    animation: shimmer 3s linear infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) brightness(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.9)) brightness(1.2);
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) brightness(1);
    }
}

/* Metal Divider */
.metal-divider {
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-metal-light) 20%, 
        var(--color-metal-mid) 50%, 
        var(--color-metal-light) 80%, 
        transparent 100%);
    margin: 0 auto;
    width: 80%;
    max-width: var(--max-width-content);
    opacity: 0.6;
    box-shadow: var(--shadow-metal);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Button */
.btn-metal {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    background: linear-gradient(135deg, 
        var(--color-metal-light), 
        var(--color-metal-mid));
    color: var(--color-bg-primary);
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    transition: all var(--transition-base);
    text-transform: uppercase;
    font-size: var(--font-size-sm);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-metal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s;
}

.btn-metal:hover::before {
    left: 100%;
}

.btn-metal:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.4);
}

/* Section Container */
.section {
    padding: var(--space-3xl) 5%;
    max-width: var(--max-width-container);
    margin: 0 auto;
}

.section-title {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-light);
    margin-bottom: var(--space-2xl);
    text-align: center;
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
}

/* Fade-in animation for scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   CUSTOM CURSOR EFFECT
   ======================================== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: var(--space-md) 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: padding var(--transition-base);
}

nav.scrolled {
    padding: var(--space-sm) 5%;
    box-shadow: var(--shadow-md);
}

.nav-content {
    max-width: var(--max-width-container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: var(--letter-spacing-wide);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    letter-spacing: var(--letter-spacing-wide);
    transition: all var(--transition-base);
    position: relative;
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--color-metal-light), 
        var(--color-metal-mid));
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--color-text-secondary);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-4xl) 5% var(--space-2xl);
    position: relative;
    background: radial-gradient(ellipse at center, 
        var(--color-bg-tertiary) 0%, 
        var(--color-bg-primary) 70%);
}

.hero-logo {
    width: 250px;
    height: 250px;
    margin-bottom: var(--space-xl);
    filter: drop-shadow(var(--shadow-metal));
}

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

.hero h1 {
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

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

.hero-definition {
    max-width: 700px;
    margin: var(--space-xl) auto;
    padding: var(--space-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

.hero-definition h3 {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
    font-style: italic;
    margin-bottom: var(--space-xs);
    text-transform: lowercase;
    font-weight: var(--font-weight-normal);
}

.hero-definition p {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.scroll-indicator::before {
    content: '↓';
    font-size: var(--font-size-3xl);
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   FEATURED POST
   ======================================== */
.featured-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    cursor: pointer;
}

.featured-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.03), 
        transparent);
    transition: left 0.6s;
} */

.featured-post:hover::before {
    left: 100%;
}

.featured-post:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.featured-post h2 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    line-height: var(--line-height-tight);
}

.post-meta {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

.featured-post p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-xl);
}

/* ========================================
   THREE COLUMN GRID
   ======================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.grid-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.grid-item:hover::after {
    opacity: 1;
}

.grid-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.grid-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    transition: transform var(--transition-base);
}

.grid-item:hover .grid-icon { 
    transform: scale(1.1);
}

.grid-item h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-sm);
    letter-spacing: var(--letter-spacing-normal);
    font-weight: var(--font-weight-normal);
}

.grid-item p {
    color: var(--color-text-tertiary);
    line-height: var(--line-height-relaxed);
}

/* ========================================
   PROGRESS TRACKER
   ======================================== */
.progress-section {
    padding: var(--space-3xl) 5%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.progress-tracker {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin: var(--space-xl) 0;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.stat {
    text-align: center;
    transition: transform var(--transition-base);
}

.stat:hover {
    transform: scale(1.1);
}

.stat-number {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, 
        var(--color-metal-light), 
        var(--color-metal-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
    margin-top: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-xl) 0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        var(--color-metal-light) 0%, 
        var(--color-metal-mid) 50%, 
        var(--color-metal-light) 100%);
    width: 0;
    animation: fillProgress 2s ease-out forwards 0.5s, 
               shimmer 3s linear infinite 2.5s;
    box-shadow: var(--shadow-metal);
    background-size: 200% 100%;
}

@keyframes fillProgress {
    to { width: 45%; }
}

.quest-tagline {
    color: var(--color-text-tertiary);
    font-style: italic;
    font-size: var(--font-size-lg);
    margin-top: var(--space-md);
    line-height: var(--line-height-relaxed);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--color-bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2xl) 5%;
    text-align: center;
}

footer p {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    :root {
        --font-size-6xl: 2.5rem;
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --space-3xl: 4rem;
    }

    .nav-links {
        gap: var(--space-md);
    }

    .nav-links a {
        font-size: var(--font-size-xs);
    }

    .hero-logo {
        width: 250px;
        height: 250px;
        margin-bottom: var(--space-xl);
        filter: drop-shadow(var(--shadow-metal));
    }

    .featured-post {
        padding: var(--space-lg);
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .stats-container {
        flex-direction: column;
    }
}