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

:root {
    /* Colors */
    --color-bg-dark: #0a0a0f;
    --color-bg-darker: #050508;
    --color-bg-light: #f8f9fa;
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-accent: #f59e0b;
    --color-text-light: #f8f9fa;
    --color-text-dark: #1f2937;
    --color-text-muted: #9ca3af;
    --color-border: #1f2937;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-size-base: 16px;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text-light);
    background: var(--color-bg-dark);
    overflow-x: hidden;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, #1a1a2e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.logo {
    width: 200px;
    max-width: 80%;
    margin-bottom: var(--spacing-xl);
    animation: fadeInUp 0.8s ease;
}

.hero-headline {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subheadline {
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta-container {
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-cta-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl) var(--spacing-2xl);
    background: var(--color-primary);
    color: var(--color-text-light);
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

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

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4);
}

.cta-main-text {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.cta-sub-text {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    font-weight: 400;
    max-width: 350px;
}

.hero-cta-button svg {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-base);
}

.hero-cta-button:hover svg {
    transform: translateX(4px);
}

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

/* Desktop Hero Layout */
@media (min-width: 768px) {
    .hero-headline {
        font-size: var(--font-size-4xl);
    }
    
    .logo {
        width: 280px;
    }
    
    .hero-content {
        padding: var(--spacing-2xl);
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: var(--font-size-5xl);
    }
    
    .logo {
        width: 320px;
    }
    
    .cta-main-text {
        font-size: var(--font-size-3xl);
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--spacing-3xl) var(--spacing-md);
    position: relative;
}

.section-dark {
    background: var(--color-bg-dark);
}

.section-light {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: var(--font-size-lg);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

.section-light .section-header p {
    color: var(--color-text-muted);
}

/* ============================================
   RESOURCE GRID
   ============================================ */
.resource-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

@media (min-width: 640px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .resource-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.resource-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.section-light .resource-card {
    background: white;
    border-color: #e5e7eb;
    color: var(--color-text-dark);
}

.resource-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.section-dark .resource-card:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.2);
}

.section-light .resource-card:hover {
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.resource-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.resource-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.resource-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.resource-card p {
    opacity: 0.8;
    line-height: 1.5;
}

/* ============================================
   PODCAST SECTION
   ============================================ */
.podcast-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.podcast-player {
    max-width: 800px;
    margin: 0 auto;
}

.audio-player {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.play-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    margin: 0 auto;
}

.play-button:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.play-button svg {
    width: 28px;
    height: 28px;
}

.audio-progress {
    flex: 1;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s linear;
}

.audio-time {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    justify-content: center;
}

.volume-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.volume-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.volume-button svg {
    width: 20px;
    height: 20px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    cursor: pointer;
    border: none;
}

@media (min-width: 768px) {
    .audio-player {
        flex-direction: row;
        align-items: center;
    }
    
    .play-button {
        margin: 0;
    }
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
}

.cta-content {
    margin-top: var(--spacing-xl);
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-xl);
    font-weight: 600;
    transition: all var(--transition-base);
}

.cta-button-large:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.cta-button-large svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-darker);
    padding: var(--spacing-2xl) var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    width: 150px;
    margin-bottom: var(--spacing-md);
}

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

.footer-contact {
    text-align: center;
}

.footer-contact h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: var(--spacing-sm);
}

.contact-link:hover {
    color: var(--color-primary);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-brand,
    .footer-contact {
        text-align: left;
    }
    
    .contact-links {
        align-items: flex-start;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.hidden {
    display: none !important;
}

/* Smooth scrolling offset for fixed headers */
html {
    scroll-padding-top: 80px;
}

/* Touch-friendly tap targets */
@media (hover: none) and (pointer: coarse) {
    button,
    a,
    .resource-card {
        min-height: 48px;
        min-width: 48px;
    }
}
