/* ========================================
   SEAN SMITH PORTFOLIO - SHARED STYLES
   Updated: 2025-08-10 - New mobile menu design from Figma
   ======================================== */

/* ========================================
   DESIGN TOKENS & VARIABLES
   ======================================== */

:root {
    /* Colors - Light Theme */
    --bg-primary: #FAF9F5;
    --bg-secondary: #FFFFFF;
    --text-primary: #2c1810;
    --text-secondary: #8b6f47;
    --text-light: #a0845c;
    --accent: #c44b00;
    --accent-hover: #a03900;
    --accent-alpha-25: rgba(196, 75, 0, 0.33);
    --text-primary-alpha20: rgba(44, 24, 16, 0.20);
    --border-light: #e8e2d8;
    --border-medium: #d4c4a8;
    
    /* Mobile Menu Colors - New Design */
    --menu-bg: #2A2018;
    --menu-border: #3B3128;
    --menu-text: #D4B896;
    --menu-resume-bg: #E7823E;
    --menu-resume-border: #E7823E;
    --menu-resume-text: #FFFFFF;
    
    /* Light Mode Menu Colors */
    --menu-bg-light: #FFFFFF;
    --menu-border-light: #E8E2D8;
    --menu-text-light: #2C1810;
    --menu-resume-bg-light: #C44B00;
    --menu-resume-border-light: #C44B00;
    --menu-resume-text-light: #FFFFFF;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08);
    --shadow-md: 0 4px 20px rgba(44, 24, 16, 0.12);
    --shadow-lg: 0 10px 40px rgba(44, 24, 16, 0.15);
    --menu-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Gradients */
    --gradient-1: linear-gradient(135deg, #c44b00 0%, #e6823e 100%);
    --gradient-2: linear-gradient(135deg, #8b6f47 0%, #d4b896 100%);
    --gradient-3: linear-gradient(135deg, #2c1810 0%, #8b6f47 100%);
    
    /* Typography */
    --font-primary: 'Lora', Georgia, serif;
    --font-secondary: 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 80px;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --menu-border-radius: 16px;
}

/* Dark Theme - System Preference */
@media (prefers-color-scheme: dark) {
    :root:not(.light-mode) {
        --bg-primary: #1a1612;
        --bg-secondary: #242018;
        --text-primary: #ffffff;
        --text-secondary: #d4b896;
        --text-light: #b8956f;
        --accent: #e6823e;
        --accent-hover: #ff9652;
        --accent-alpha-25: rgba(230, 130, 62, 0.33);
        --text-primary-alpha20: rgba(255, 255, 255, 0.20);
        --border-light: #3a3128;
        --border-medium: #4a3f32;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
        
        /* Dark Mode Menu Colors */
        --menu-bg: #2A2018;
        --menu-border: #3B3128;
        --menu-text: #D4B896;
        --menu-resume-bg: #E7823E;
        --menu-resume-border: #E7823E;
        --menu-resume-text: #FFFFFF;
    }
}

/* Manual Dark Mode */
body.dark-mode {
    --bg-primary: #1a1612 !important;
    --bg-secondary: #242018 !important;
    --text-primary: #ffffff !important;
    --text-secondary: #d4b896 !important;
    --text-light: #b8956f !important;
    --accent: #e6823e !important;
    --accent-hover: #ff9652 !important;
    --accent-alpha-25: rgba(230, 130, 62, 0.33) !important;
    --text-primary-alpha20: rgba(255, 255, 255, 0.20) !important;
    --border-light: #3a3128 !important;
    --border-medium: #4a3f32 !important;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    
    /* Dark Mode Menu Colors */
    --menu-bg: #2A2018 !important;
    --menu-border: #3B3128 !important;
    --menu-text: #D4B896 !important;
    --menu-resume-bg: #E7823E !important;
    --menu-resume-border: #E7823E !important;
    --menu-resume-text: #FFFFFF !important;
}

/* Manual Light Mode */
body.light-mode {
    --bg-primary: #FAF9F5 !important;
    --bg-secondary: #FFFFFF !important;
    --text-primary: #2c1810 !important;
    --text-secondary: #8b6f47 !important;
    --text-light: #a0845c !important;
    --accent: #c44b00 !important;
    --accent-hover: #a03900 !important;
    --accent-alpha-25: rgba(196, 75, 0, 0.33) !important;
    --text-primary-alpha20: rgba(44, 24, 16, 0.20) !important;
    --border-light: #e8e2d8 !important;
    --border-medium: #d4c4a8 !important;
    --shadow-sm: 0 2px 8px rgba(44, 24, 16, 0.08) !important;
    --shadow-md: 0 4px 20px rgba(44, 24, 16, 0.12) !important;
    --shadow-lg: 0 10px 40px rgba(44, 24, 16, 0.15) !important;
    
    /* Light Mode Menu Colors */
    --menu-bg: #FFFFFF !important;
    --menu-border: #E8E2D8 !important;
    --menu-text: #2C1810 !important;
    --menu-resume-bg: #C44B00 !important;
    --menu-resume-border: #C44B00 !important;
    --menu-resume-text: #FFFFFF !important;
}

/* ========================================
   BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none !important;
    outline: none !important;
}

*:not(.nav-divider):not(.mobile-menu):not(.theme-toggle):not(.toggle-track):not(.toggle-thumb):not(.border):not(.border-medium):not(.border-accent) {
    box-shadow: none !important;
}

html {
    scroll-behavior: smooth;
    border: none;
    outline: none;
    box-shadow: none;
}

body {
    font-family: var(--font-primary);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

/* 12-Column Grid System */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 100vw;
    padding: 0 16px;
}

.grid-item {
    grid-column: span 1;
}

/* TEMPORARY: Grid visualization - remove when done */
.container-grid {
    position: relative;
}

.container-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        to right,
        rgba(196, 75, 0, 0.08) 0px,
        rgba(196, 75, 0, 0.08) calc((100% - 11 * 16px) / 12),
        transparent calc((100% - 11 * 16px) / 12),
        transparent calc((100% - 11 * 16px) / 12 + 16px)
    );
    pointer-events: none;
    z-index: -1;
}

/* Grid span utilities */
.grid-span-1 { grid-column: span 1; }
.grid-span-2 { grid-column: span 2; }
.grid-span-3 { grid-column: span 3; }
.grid-span-4 { grid-column: span 4; }
.grid-span-5 { grid-column: span 5; }
.grid-span-6 { grid-column: span 6; }
.grid-span-7 { grid-column: span 7; }
.grid-span-8 { grid-column: span 8; }
.grid-span-9 { grid-column: span 9; }
.grid-span-10 { grid-column: span 10; }
.grid-span-11 { grid-column: span 11; }
.grid-span-12 { grid-column: span 12; }

/* Grid start utilities */
.grid-start-1 { grid-column-start: 1; }
.grid-start-2 { grid-column-start: 2; }
.grid-start-3 { grid-column-start: 3; }
.grid-start-4 { grid-column-start: 4; }
.grid-start-5 { grid-column-start: 5; }
.grid-start-6 { grid-column-start: 6; }
.grid-start-7 { grid-column-start: 7; }
.grid-start-8 { grid-column-start: 8; }
.grid-start-9 { grid-column-start: 9; }
.grid-start-10 { grid-column-start: 10; }
.grid-start-11 { grid-column-start: 11; }
.grid-start-12 { grid-column-start: 12; }

/* Container with grid alignment */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    border: none;
    outline: none;
    box-shadow: none;
}

.container-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

.section-lg {
    padding: var(--space-2xl) 0;
}

.section {
    padding: var(--space-3xl) 0;
}

.section-sm {
    padding: var(--space-xl) 0;
}

.section-lg {
    padding: var(--space-2xl) 0;
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-primary { font-family: var(--font-primary); }
.font-secondary { font-family: var(--font-secondary); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent); }

/* Font Sizes */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 32px; }
.text-4xl { font-size: 48px; }
.text-5xl { font-size: 64px; }

/* Font Weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ========================================
   SPACING UTILITIES
   ======================================== */

.m-0 { margin: 0; }
.m-xs { margin: var(--space-xs); }
.m-sm { margin: var(--space-sm); }
.m-md { margin: var(--space-md); }
.m-lg { margin: var(--space-lg); }
.m-xl { margin: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.p-0 { padding: 0; }
.p-xs { padding: var(--space-xs); }
.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.pt-0 { padding-top: 0; }
.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }
.pt-2xl { padding-top: var(--space-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }
.pb-2xl { padding-bottom: var(--space-2xl); }

/* ========================================
   FLEXBOX UTILITIES
   ======================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ========================================
   GRID UTILITIES
   ======================================== */

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   BORDER & SHADOW UTILITIES
   ======================================== */

.border { border: 1px solid var(--border-light); }
.border-medium { border: 1px solid var(--border-medium); }
.border-accent { border: 1px solid var(--accent); }

.border-radius-sm { border-radius: var(--border-radius-sm); }
.border-radius-md { border-radius: var(--border-radius-md); }
.border-radius-lg { border-radius: var(--border-radius-lg); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ========================================
   BACKGROUND UTILITIES
   ======================================== */

.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-accent { background: var(--accent); }

.bg-gradient-1 { background: var(--gradient-1); }
.bg-gradient-2 { background: var(--gradient-2); }
.bg-gradient-3 { background: var(--gradient-3); }

/* ========================================
   TRANSITION UTILITIES
   ======================================== */

.transition { transition: all 0.3s ease; }
.transition-fast { transition: all 0.2s ease; }
.transition-slow { transition: all 0.5s ease; }

/* ========================================
   SCROLL ANCHOR ADJUSTMENTS
   ======================================== */

/* Adjust scroll position for fixed navbar */
html {
  scroll-padding-top: 80px; /* Account for fixed navbar height */
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100vw;
    }
    
    .container {
        padding: 0 var(--space-sm);
        max-width: 100vw;
        overflow-x: hidden;
        width: 100%;
    }
    
    .section {
        padding: var(--space-xl) 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero {
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .text-5xl { font-size: 48px; }
    .text-4xl { font-size: 36px; }
    .text-3xl { font-size: 28px; }
    
    /* Mobile navigation - New Figma Design */
    .nav-container .mobile-menu-toggle {
        display: flex !important;
        width: 32px !important;
        height: 32px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 1002 !important;
        position: relative !important;
        margin-left: auto !important;
        /* Ensure visibility */
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Navigation structure for mobile */
    .nav-container .nav-links {
        display: flex !important;
        align-items: center !important;
        gap: var(--space-sm) !important;
        margin-left: auto !important;
    }
    
    /* Hide desktop navigation on mobile */
    .nav-container .desktop-nav {
        display: none !important;
    }
    
    /* Mobile Menu - Separate expanding menu */
    .mobile-menu {
        width: 100%;
        background: var(--menu-bg);
        backdrop-filter: blur(64px);
        border-bottom: 1px solid var(--menu-border);
        border-radius: 0px;
        overflow: hidden;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        max-height: 0;
        transition: max-height 0.3s ease, box-shadow 0.3s ease;
        box-shadow: none;
    }
    
    /* Prevent body scroll when mobile menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }
    
    .mobile-menu.active {
        max-height: 500px;
        box-shadow: 0 16px 16px 4px rgba(0, 0, 0, 0.05);
        overflow: visible;
    }
    
    /* Mobile menu items */
    .mobile-menu-item {
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 16px;
        gap: 10px;
        width: 100%;
        height: 56px;
        border-bottom: 1px solid var(--menu-border);
    }
    
    .mobile-menu-item:last-of-type {
        border-bottom: none;
    }
    
    .mobile-menu-link {
        width: 100%;
        height: 24px;
        font-family: 'Inter', sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
        display: flex;
        align-items: center;
        color: var(--menu-text) !important;
        text-decoration: none;
        transition: color 0.2s ease;
    }
    
    .mobile-menu-link:hover {
        color: var(--accent);
    }
    
    /* Bottom section with social icons and theme toggle */
    .mobile-bottom-section {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        gap: 10px;
        width: 100%;
        height: 64px;
    }
    
    .mobile-social-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0px;
        gap: 16px;
        width: 80px;
        height: 32px;
    }
    
    .mobile-social-link {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 2px;
        gap: 10px;
        width: 32px;
        height: 32px;
        color: var(--menu-text) !important;
        transition: color 0.2s ease;
    }
    
    .mobile-social-link:hover {
        color: var(--accent);
    }
    
    .mobile-social-link svg {
        width: 24px;
        height: 24px;
    }
    
    .mobile-theme-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .text-5xl { font-size: 36px; }
    .text-4xl { font-size: 28px; }
    .text-3xl { font-size: 24px; }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-links {
        width: 280px !important;
        top: 12px !important;
        border-radius: var(--menu-border-radius) !important;
    }
    
    .nav-links a {
        font-size: 16px !important;
        padding: var(--space-sm) var(--space-md) !important;
    }
    
    /* Mobile menu adjustments for smaller screens */
    
    .theme-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: var(--space-sm) !important;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-links {
        width: 240px !important;
        top: 12px !important;
        border-radius: var(--menu-border-radius) !important;
    }
    
    .nav-links a {
        font-size: 16px !important;
        padding: var(--space-xs) var(--space-sm) !important;
    }
    
    /* Mobile menu adjustments for very small screens */
    
    .theme-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-left: var(--space-sm) !important;
        transform: scale(0.9) !important;
    }
    
    .text-5xl { font-size: 32px; }
    .text-4xl { font-size: 24px; }
    .text-3xl { font-size: 20px; }
    .text-2xl { font-size: 18px; }
    .text-xl { font-size: 16px; }
}

/* ========================================
   COMPONENT STYLES
   ======================================== */

/* Navigation */
nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    background: rgba(250, 249, 245, 0.95) !important;
    backdrop-filter: blur(10px);
    z-index: 99999 !important;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    height: 80px; /* Fixed height for consistent spacing */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

/* Hide mobile menu content on desktop */
.mobile-menu {
    display: none;
}

/* Show mobile menu on mobile */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }
}

@media (prefers-color-scheme: dark) {
    nav {
        background: rgba(26, 22, 18, 0.95);
    }
    
    .mobile-menu {
        background: var(--menu-bg) !important;
    }
}

body.dark-mode nav {
    background: rgba(26, 22, 18, 0.95) !important;
}

body.dark-mode .mobile-menu {
    background: var(--menu-bg) !important;
}

/* Dark mode hero image adjustments */
body.dark-mode .hero-image-bg {
    background: linear-gradient(180deg, rgba(26, 22, 18, 0.4) 0%, rgba(26, 22, 18, 0.1) 50%, rgba(26, 22, 18, 0) 100%);
}

body.dark-mode .hero-profile-image {
    opacity: 0.5;
    mix-blend-mode: soft-light;
}

body.dark-mode .hero-blur-overlay {
    background: radial-gradient(100% 100% at 50.4% 100%, rgba(26, 22, 18, 0.3) 0%, rgba(26, 22, 18, 0.1) 50%, rgba(26, 22, 18, 0) 100%);
    backdrop-filter: blur(2px);
}

body.light-mode nav {
    background: rgba(250, 249, 245, 0.95) !important;
}

nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .nav-container {
        padding: var(--space-md) var(--space-sm);
    }
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-container .theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    /* component vars for fine tuning */
    --bar-h: 2px;
    --offset: 6px; /* distance from center to top/bottom bars */
    --duration: 240ms;
    --ease: cubic-bezier(.4,0,.2,1);

    display: none;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: var(--bar-h);
    background: var(--text-primary);
    border-radius: 1px;
    transform-origin: 50% 50%;
    transition: transform var(--duration) var(--ease),
                opacity var(--duration) var(--ease);
    /* base centered */
    transform: translate(-50%, -50%);
}

/* Hamburger (closed) state: slide top/bottom out from center */
.mobile-menu-toggle:not(.active) span:nth-child(1) {
    transform: translate(-50%, calc(-50% - var(--offset)));
}
.mobile-menu-toggle:not(.active) span:nth-child(2) {
    transform: translate(-50%, -50%);
}
.mobile-menu-toggle:not(.active) span:nth-child(3) {
    transform: translate(-50%, calc(-50% + var(--offset)));
}

/* X (open) state */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    transform: translate(-50%, -50%) scaleX(0.2);
    opacity: 0;
}

/* Prep class to always start animation FROM center */
.mobile-menu-toggle.prep span {
    transition: none !important;
}
.mobile-menu-toggle.prep span:nth-child(1),
.mobile-menu-toggle.prep span:nth-child(2),
.mobile-menu-toggle.prep span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(0) !important;
    opacity: 1 !important;
}

.nav-logo {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
    /* Ensure visibility on all screen sizes */
    opacity: 1;
    visibility: visible;
    display: block;
}

    .nav-links {
        display: flex;
        gap: var(--space-sm);
        align-items: center;
        margin-left: auto;
    }
    
    /* Show desktop navigation on desktop */
    .desktop-nav {
        display: flex !important;
        align-items: center;
        gap: var(--space-sm);
    }

.nav-links a {
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 19px;
    margin: 0;
}

.nav-text-link {
    margin: 0 var(--space-xs);
}

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

/* Resume link is now a standard link, no special styling needed */

/* Navigation Divider */
.nav-divider {
    width: 1px;
    height: 32px;
    background: var(--border-light);
    margin: 0;
}

body.dark-mode .nav-divider {
    background: var(--border-medium);
}

/* Theme Toggle Switch */
.theme-toggle-container {
    display: flex;
    align-items: center;
    margin: 0 var(--space-xs) 0 0;
    height: 32px;
}

.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 32px;
    position: relative;
}

.toggle-track {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 4px;
    gap: 4px;
    width: 56px;
    height: 32px;
    background: #E8E2D8;
    border: 1px solid #D4C4A8;
    border-radius: 40px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode .toggle-track {
    background: #3A3128 !important;
    border: 1px solid #4A3F32 !important;
}

.toggle-thumb {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2px;
    width: 24px;
    height: 24px;
    border-radius: 40px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    left: 4px;
    top: 4px;
}

.sun-thumb {
    background: #FAF9F5;
    border: 1px solid #D4C4A8;
    opacity: 1;
    transform: translateX(0) rotate(0deg);
    order: 0;
    flex-grow: 0;
}

.moon-thumb {
    background: transparent;
    border: none;
    opacity: 0;
    transform: translateX(0) rotate(0deg);
    order: 1;
    flex-grow: 0;
}

body.dark-mode .sun-thumb {
    background: transparent;
    border: none;
    opacity: 0;
    transform: translateX(0) rotate(720deg);
}

body.dark-mode .moon-thumb {
    background: #1A1612;
    border: 1px solid #4A3F32;
    opacity: 1;
    transform: translateX(22px) rotate(720deg);
}

/* Sun Icon */
.sun-icon {
    width: 16px;
    height: 16px;
    stroke: #2C1810;
    stroke-width: 2px;
    transition: stroke 0.3s ease;
    margin: auto;
}

/* Moon Icon */
.moon-icon {
    width: 16px;
    height: 16px;
    stroke: #D4B896;
    stroke-width: 2px;
    transition: stroke 0.3s ease;
    margin: auto;
}

body.dark-mode .sun-icon {
    stroke: rgba(255, 255, 255, 0.2);
}

body.dark-mode .moon-icon {
    stroke: #D4B896;
}

/* Sun Icon */
.sun-icon {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

/* Moon Icon */
.moon-icon {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
    transition: opacity 0.3s ease;
}

body.dark-mode .sun-icon {
    color: var(--text-primary);
}

body.dark-mode .moon-icon {
    color: var(--text-primary);
}

/* Theme Toggle Hover Effect */
.theme-toggle:hover .toggle-track {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .theme-toggle:hover .toggle-track {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Theme Toggle Icon Spin Animation */
.theme-toggle .sun-icon.spinning,
.theme-toggle .moon-icon.spinning {
    animation: iconSpin 0.6s ease-out;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Theme Toggle Background Color Shift on Hover */
.theme-toggle:hover .toggle-track {
    background: #F0E8D8 !important;
    border-color: #C4B498 !important;
}

body.dark-mode .theme-toggle:hover .toggle-track {
    background: #4A3F32 !important;
    border-color: #5A4F42 !important;
}

/* Social Icons */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    margin: 0;
}

.social-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

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

.social-link.linkedin svg {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========================================
   ANIMATION UTILITIES
   ======================================== */

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    nav, .theme-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */

/* Hero Container */
.hero {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  width: 100%;
  height: calc(100vh - 80px);
  min-height: 889px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-medium);
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 80px; /* Account for navigation height */
}

/* Hero Image Container */
.hero-image-container {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  z-index: 0;
}

/* Hero Image Background */
.hero-image-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
}

/* Hero Profile Image */
.hero-profile-image {
  position: absolute;
  width: 1871px;
  height: 1871px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% + 101px));
  background: url('../images/imgProfile_sean 3.png');
  background-size: cover;
  background-position: center;
  mix-blend-mode: hard-light;
  opacity: 0.6;
}

/* Blur Overlay */
.hero-blur-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: radial-gradient(100% 100% at 50.4% 100%, rgba(247, 232, 223, 0.25) 0%, rgba(247, 232, 223, 0) 100%);
  backdrop-filter: blur(2px);
  z-index: 1;
}

/* Header Content */
.hero-header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 76px 380px 96px;
  gap: 32px;
  width: 100%;
  height: 100%;
  z-index: 2;
  position: relative;
  padding-top: 20px;
}

/* Hero Text Container */
.hero-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  gap: 8px;
  width: 752px;
  max-width: 1200px;
  opacity: 0.8;
  backdrop-filter: blur(4px);
}

/* Hero Text Lines */
.hero-text-line {
  width: 100%;
  max-width: 1200px;
  font-family: var(--font-secondary);
  font-style: normal;
  font-weight: 900;
  line-height: 0.725;
  text-align: center;
  letter-spacing: -0.03em;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0.8;
  backdrop-filter: blur(2px);
}

.hero-text-line.crafting {
  font-size: clamp(69px, 10vw, 148px);
  margin-bottom: 0;
}

.hero-text-line.human {
  font-size: clamp(90px, 13vw, 194px);
  margin-bottom: 0;
}

.hero-text-line.centered {
  font-size: clamp(67px, 10vw, 144px);
  margin-bottom: 0;
}

.hero-text-line.design {
  font-size: clamp(95px, 14vw, 206px);
  margin-bottom: 0;
}

.hero-text-line.at-scale {
  font-size: clamp(74px, 12vw, 158px);
  margin-bottom: 0;
}

/* Hero Description */
.hero-description-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0px;
  gap: 8px;
  width: 752px;
  max-width: 1200px;
}

.hero-subtitle {
  width: 100%;
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 500;
  font-size: 22px;
  line-height: 36px;
  color: var(--text-secondary);
}

.hero-description {
  width: 100%;
  height: 92px;
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  line-height: 23px;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-header-content {
    padding: 76px 200px 96px;
  }
  
  .hero-text-container,
  .hero-description-container {
    width: 100%;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .hero {
    height: 90vh;
    min-height: 700px;
  }
  
  .hero-header-content {
    padding: 48px 100px 96px;
  }
  
  .hero-text-container,
  .hero-description-container {
    width: 100%;
    max-width: 600px;
  }
  
  .hero-text-line {
    line-height: 0.675 !important;
  }
  
  .hero-text-line.crafting { 
    font-size: clamp(60px, 7vw, 69px) !important; 
    margin-bottom: 0 !important; 
  }
  .hero-text-line.human { 
    font-size: clamp(80px, 9vw, 90px) !important; 
    margin-bottom: 0 !important; 
  }
  .hero-text-line.centered { 
    font-size: clamp(60px, 10vw, 67px) !important; 
    margin-bottom: 0 !important; 
  }
  .hero-text-line.design { 
    font-size: clamp(85px, 9vw, 95px) !important; 
    margin-bottom: 0 !important; 
  }
  .hero-text-line.at-scale { 
    font-size: clamp(60px, 8vw, 74px) !important; 
    margin-bottom: 0 !important; 
  }
  
  .hero-subtitle {
    font-size: 24px;
    line-height: 30px;
  }
  
  .hero-description {
    font-size: 16px;
    line-height: 20px;
  }
}

@media (max-width: 480px) {
  .hero-header-content {
    padding: 76px 24px 96px;
  }
  
  .hero-text-line {
    line-height: 0.675;
  }
  
  .hero-text-line.crafting { font-size: clamp(50px, 6vw, 60px); margin-bottom: 0; }
  .hero-text-line.human { font-size: clamp(70px, 8vw, 80px); margin-bottom: 0; }
  .hero-text-line.centered { font-size: clamp(50px, 10vw, 60px); margin-bottom: 0; }
  .hero-text-line.design { font-size: clamp(75px, 8vw, 80px); margin-bottom: 0; }
  .hero-text-line.at-scale { font-size: clamp(50px, 6vw, 70px); margin-bottom: 0; }
  
  .hero-subtitle {
    font-size: 20px;
    line-height: 26px;
  }
  
  .hero-description {
    font-size: 14px;
    line-height: 18px;
  }
}
