/* 
 * UX Laws Applied:
 * - Aesthetic-Usability Effect: Beautiful design with smooth animations
 * - Fitts's Law: Large, accessible touch targets with proper spacing
 * - Hick's Law: Minimal choices, simplified navigation
 * - Jakob's Law: Familiar patterns and conventions
 * - Law of Common Region: Clear grouping with borders and backgrounds
 * - Chunking: Visual grouping of related information
 * - Cognitive Load: Reduced clutter, clear hierarchy
 * - Doherty Threshold: <400ms transitions for responsiveness
 * - Flow: Smooth, immersive experience
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

.page-wrapper {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography - Aesthetic-Usability Effect */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Header and Navigation - Fitts's Law: Large touch targets */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

/* Hick's Law: Simplified navigation (only 3 items) */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

/* Fitts's Law: Large, easy-to-click targets with spacing */
.nav-link {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease; /* Doherty Threshold: <400ms */
    min-width: 44px; /* Fitts's Law: Minimum touch target */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

/* Hero Section - Aesthetic-Usability Effect */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

/* Fitts's Law: Large, accessible CTA button */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem; /* Large touch target */
    min-width: 160px;
    min-height: 56px; /* Fitts's Law: Generous touch target */
    background: white;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease; /* Doherty Threshold */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Styles - Chunking & Law of Common Region */
.section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-dark {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

/* Chunking: Clear section headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #667eea;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
}

.section-dark .section-label {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.2);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.section-dark .section-title {
    color: white;
}

/* Law of Common Region: Cards with clear boundaries */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.story-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease; /* Doherty Threshold */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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

.story-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.story-card p {
    color: #4a5568;
    line-height: 1.7;
}

/* Feature Content */
.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: inherit;
}

.section-dark .lead-text {
    color: rgba(255, 255, 255, 0.95);
}

/* Stats Grid - Visual grouping */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Highlight Cards - Law of Common Region */
.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.highlight-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(8px);
}

.highlight-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fbbf24;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Hobby Section */
.hobby-content {
    max-width: 900px;
    margin: 0 auto;
}

.hobby-main {
    margin-bottom: 3rem;
}

/* Quote Box - Law of Common Region */
.quote-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left: 4px solid #667eea;
    padding: 2.5rem;
    margin-top: 2rem;
    border-radius: 12px;
    position: relative;
}

.quote-icon {
    width: 40px;
    height: 40px;
    color: #667eea;
    opacity: 0.3;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.quote-text {
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.8;
    color: #2d3748;
    padding-left: 2rem;
}

/* Hobby Benefits */
.hobby-benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.benefit-icon {
    font-size: 3rem;
}

.benefit-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #4a5568;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Contact Badges - Fitts's Law: Clear, spaced touch targets */
.contact-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-height: 48px; /* Fitts's Law */
    display: flex;
    align-items: center;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2.5rem 0;
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive Design - Cognitive Load reduction on mobile */
@media (max-width: 968px) {
    .feature-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.95rem;
    }

    .hero {
        min-height: 70vh;
    }

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

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .badge {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 3rem 0;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .story-card {
        padding: 2rem;
    }

    .quote-box {
        padding: 2rem;
    }

    .quote-text {
        font-size: 1.15rem;
        padding-left: 0;
    }
    
    .hobby-benefits {
        gap: 2rem;
    }
}
