/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* Color Palette - Light Theme */
    --color-primary: #0066CC;          /* Pixar blue style accent */
    --color-secondary: #FF6F61;        /* Coral accent */
    --color-background: #FFFFFF;       /* White background */
    --color-surface: #F8F9FA;          /* Light surface for sections */
    --color-text-primary: #1A1A1A;     /* Dark text */
    --color-text-secondary: #4A4A4A;   /* Secondary text */
    --color-border: #E0E0E0;           /* Border color */
    
    /* Typography */
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ============================================
   HEADER & NAVIGATION (SIMPLIFIED)
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation List (Simplified) */
.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-md);
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    position: relative;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* ============================================
   HERO SECTION (Name + Role Layout with About Me)
   ============================================ */
.hero-section {
    padding-top: 120px; /* Account for fixed header */
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.hero-container {
    max-width: 800px;
}

/* Name Title - Large and Bold (like Mark Oftedal, Yuhki Demers) */
.name-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    line-height: 1.2;
}

/* Role Title - Smaller than name (like example sites) */
.role-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* About Me Section (Tagline Style - Compact & Impactful) */
.about-section {
    margin-bottom: var(--space-md);
    padding-left: 12px;
    border-left: 3px solid var(--color-primary);
}

.about-section h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
}

.about-section p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xs);
}

/* Highlight the Open for Opportunities text */
.about-section p strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Social Links with Icons */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: white;
    border-radius: 50%;
    text-decoration: none;
    color: var(--color-primary);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-icon:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

/* ============================================
   DEMO REEL SECTION (Fixed Aspect Ratio) */
.demo-reel-section {
    padding: var(--space-lg) 0;
    background-color: var(--color-background);
}

.demo-container {
    max-width: 1000px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* Featured Video Card - Fixed Aspect Ratio */
.video-card.featured {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Fix for video aspect ratio - ensures no cropping */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio maintained */
    height: 0;
    background-color: #000;
    width: 100%;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.reel-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0052A3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-primary);
    color: white;
}

/* ============================================
   FEATURED WORK SECTION (Fixed Dino Image) */
.featured-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-surface);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Fixed Image Container - Ensures consistent crop */
.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills space without black stripes */
    object-position: center; /* Centers the crop */
    transition: transform var(--transition-normal);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info {
    padding: var(--space-md);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.project-description {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.project-tags {
    display: inline-block;
    background-color: #E3F2FD;
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Work CTA at bottom */
.work-cta {
    text-align: center;
    padding: var(--space-lg);
    background-color: white;
    border-radius: 8px;
}

.work-cta h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.work-cta p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

/* ============================================
   FOOTER (Simplified) */
.site-footer {
    padding: var(--space-lg) 0;
    background-color: var(--color-text-primary);
    color: white;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
    list-style: none;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity var(--transition-fast);
}

.footer-link:hover,
.footer-link:focus {
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN (Mobile-First) */
@media screen and (max-width: 768px) {
    .nav-list {
        gap: var(--space-sm);
        font-size: 0.9rem;
    }

    .hero-container {
        text-align: center;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
        gap: var(--space-sm);
    }

    /* Adjust About section for mobile */
    .about-section {
        padding-left: 0;
        border-left: none;
        text-align: center;
    }

    .about-section h3,
    .about-section p {
        font-size: 1rem;
    }

    .about-section p strong {
        color: var(--color-primary);
    }
}

/* ============================================
   ACCESSIBILITY - FOCUS STYLES */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* Reduced Motion for Users Who Prefer It */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .project-card:hover,
    .btn-icon:hover {
        transform: none;
    }
}

/* ============================================
   CUSTOM SCROLLBAR STYLES (Added) */
::-webkit-scrollbar {
    width: 6px; /* Much thinner than default */
}

::-webkit-scrollbar-track {
    background: transparent; /* Or match your page background */
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); /* Very subtle - only 20% opacity */
    border-radius: 3px; /* Slightly rounded edges */
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.4); /* Lighter on hover */
}

* {
    scrollbar-width: thin; /* Makes it thinner */
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* Thumb color, track color */
}

body {
    overflow-y: scroll; /* Ensures scrollbar appears when needed */
}
