/* Joel Strickland - Shared Styles
   ================================
   Design tokens and shared components used across all pages
*/

/* ============================================
   CSS VARIABLES / DESIGN TOKENS
   ============================================ */
:root {
    /* Core */
    --bg: #F7F9FB;
    --surface: #FFFFFF;
    --surface-2: #EEF1F5;
    --border: rgba(11,31,58,.12);
    
    /* Text */
    --text: #111827;
    --text-2: #4B5563;
    --text-3: #6B7280;
    
    /* Brand colors */
    --primary: #0B1F3A;
    --secondary: #3A506B;
    --accent: #2FA4A9;
    --accent-hover: #268A8E;
    
    /* Legacy accent names (for gradients) */
    --accent-2: #2FA4A9;
    --glow-teal: rgba(47,164,169,.25);
    --glow-navy: rgba(11,31,58,.15);
    
    /* Effects */
    --shadow: 0 4px 20px rgba(11,31,58,.08);
    --shadow-lg: 0 10px 40px rgba(11,31,58,.12);
    --radius: 16px;
    --radius-sm: 10px;
    
    /* Spacing */
    --spacing-section: 100px;
    --spacing-section-mobile: 64px;
    --max-width-text: 70ch;
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    background: var(--bg);
    scroll-padding-top: 60px;
    overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    margin: 0;
    padding: 60px 0 0 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image: 
        radial-gradient(ellipse at 20% 0%, rgba(47,164,169,.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(11,31,58,.03) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Subtle grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(11,31,58,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11,31,58,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 { 
    letter-spacing: -0.03em;
    color: var(--text);
}

p, li { 
    max-width: var(--max-width-text);
    color: var(--text-2);
}

strong {
    color: var(--text);
}

a { 
    color: var(--accent); 
    text-decoration: none; 
}

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

/* Focus states */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container { 
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 24px;
    --bs-gutter-x: 24px;
    position: relative; 
    z-index: 1; 
}

@media (max-width: 768px) {
    body .container,
    body .container-fluid,
    body .container-sm,
    body .container-md,
    body .container-lg,
    body .container-xl,
    body .container-xxl,
    .container.section {
        --bs-gutter-x: 40px;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
}

@media (max-width: 576px) {
    body .container,
    body .container-fluid,
    body .container-sm,
    body .container-md,
    body .container-lg,
    body .container-xl,
    body .container-xxl,
    .container.section {
        --bs-gutter-x: 32px;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }
}

/* Scroll offset for sticky nav */
[id] {
    scroll-margin-top: 60px;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.main-nav {
    background: rgba(247, 249, 251, 0.92);
    padding: 14px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(11,31,58,.05);
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.main-nav .brand:hover {
    color: var(--text);
    background: transparent;
}

.main-nav .nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav .nav-links a {
    color: var(--text-2);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}

.main-nav .nav-links a:hover {
    background: rgba(11,31,58,.06);
    color: var(--primary);
}

.main-nav .nav-links a.active {
    color: var(--primary);
    background: rgba(11,31,58,.08);
}

.main-nav .nav-links .btn-contact {
    color: white;
    padding: 10px 20px;
    background: var(--accent);
    font-weight: 700;
    box-shadow: 0 2px 8px var(--glow-teal);
}

.main-nav .nav-links .btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--glow-teal);
    background: var(--accent-hover);
    color: white;
}

/* Dropdown menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    color: var(--text-2);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.nav-dropdown-toggle:hover {
    background: rgba(11,31,58,.06);
    color: var(--primary);
}

.nav-dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text-2);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    font-weight: 500;
}

.nav-dropdown-menu a:hover {
    background: rgba(11,31,58,.06);
    color: var(--primary);
}

/* Tighter nav on medium screens */
@media (min-width: 901px) and (max-width: 1200px) {
    .main-nav .nav-links {
        gap: 2px;
    }
    .main-nav .nav-links a,
    .nav-dropdown-toggle {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    .main-nav .nav-links .btn-contact {
        padding: 8px 14px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px var(--glow-teal), 0 0 20px var(--glow-navy); }
    50% { box-shadow: 0 0 15px var(--glow-navy), 0 0 30px var(--glow-teal); }
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.section-label {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    z-index: 9999;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 650;
}

/* ============================================
   MOBILE NAVIGATION
   ============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    left: 0;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

/* Hamburger to X animation */
.nav-toggle.active span {
    background: transparent;
}

.nav-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 85vw);
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 16px 32px;
        gap: 4px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 40px rgba(0,0,0,.5);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .main-nav .nav-links.active {
        right: 0;
    }
    
    .main-nav .nav-links a {
        padding: 14px 12px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .main-nav .nav-links .btn-contact {
        margin-top: 12px;
        text-align: center;
    }
    
    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(11,31,58,.4);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Dropdown on mobile - grouped section */
    .nav-dropdown {
        display: flex;
        flex-direction: column;
        margin-top: 8px;
        padding-top: 12px;
        border-top: 1px solid var(--border);
    }
    
    .nav-dropdown-toggle {
        display: flex;
        color: var(--text-3);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 8px 12px;
        pointer-events: none;
    }
    
    .nav-dropdown-toggle svg {
        display: none;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
    }
    
    .nav-dropdown-menu a {
        padding: 14px 12px;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: var(--bg);
    color: var(--text);
    padding: 100px 0 80px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(closest-side, rgba(47,164,169,.12), rgba(11,31,58,.08), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
    pointer-events: none;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.1;
    color: var(--text);
}
.hero .credentials {
    font-size: 0.9rem;
    color: var(--text-3);
    margin-bottom: 8px;
}
.hero p {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-2);
}
.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-2);
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--text-2), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content {
    display: flex;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 2;
}
.hero-text {
    text-align: left;
    max-width: 720px;
}
.hero-photo {
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .hero { padding: 64px 0 56px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .hero-text {
        text-align: center;
    }
    .hero-text p, .hero-text .tagline {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
@media (max-width: 768px) {
    .hero-buttons {
        justify-content: center;
    }
}

#contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 20px;
    align-items: center;
    justify-content: center;
}

.btn-custom {
    background: var(--surface);
    color: var(--text);
    padding: 14px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.btn-custom::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.25s ease;
}
.btn-custom:hover {
    background: var(--surface-2);
    border-color: transparent;
    color: var(--text);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--glow-teal);
}
.btn-custom:hover::before {
    opacity: 0.15;
}

.btn-primary-custom {
    background: var(--accent);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--glow-teal);
    position: relative;
}
.btn-primary-custom:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 8px 25px var(--glow-teal);
    background: var(--accent-hover);
    color: white;
}
.btn-primary-custom:active {
    transform: translateY(-2px);
}

/* Bootstrap button overrides */
.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    border-width: 2px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--glow-teal);
}
.btn-primary {
    background: var(--accent);
    border: none;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    padding: 14px 28px;
    box-shadow: 0 4px 15px var(--glow-teal);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-teal);
    color: white;
    background: var(--accent-hover);
}
.btn-outline-secondary {
    color: var(--text-2);
    border-color: var(--border);
    border-width: 2px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline-secondary:hover {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
    transform: translateY(-2px);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
}
.card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    background: var(--surface-2);
    border-color: transparent;
    box-shadow: var(--shadow-lg), 0 0 20px var(--glow-teal);
}
.card:hover::before {
    opacity: 0.15;
}
.card-title {
    color: var(--text);
    font-weight: 700;
}
.card-text {
    color: var(--text-2);
}
.card-subtitle {
    color: var(--accent) !important;
    font-weight: 600;
}
a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
a.card-link:hover {
    text-decoration: none;
    color: inherit;
}
a.card-link .card {
    cursor: pointer;
}
.card-body {
    padding: 20px;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */
.highlight {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius);
    margin: 24px 0;
    position: relative;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 768px) {
    .highlight {
        padding: 28px 24px;
    }
}
.highlight::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.25s ease;
}
.highlight:hover {
    background: var(--surface-2);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--glow-teal);
}
.highlight:hover::before {
    opacity: 0.15;
}
.highlight p, .highlight li {
    max-width: var(--max-width-text);
    color: var(--text-2);
}
.highlight strong {
    color: var(--text);
}
.highlight .lead {
    color: var(--text);
    font-size: 1.15rem;
    line-height: 1.7;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 60px 0 80px;
    scroll-margin-top: 60px;
}
@media (max-width: 768px) {
    .section { padding: 40px 0 60px; }
}
.section h2 {
    font-size: 2rem;
    margin-bottom: 28px;
    color: var(--text);
    font-weight: 700;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}
.social-links a {
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 14px;
    font-size: 0.95rem;
    transition: all 0.18s ease;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}
.social-links a:hover {
    background: rgba(11,31,58,.06);
    border-color: var(--border);
    color: var(--text);
}
@media (max-width: 768px) {
    .social-links { justify-content: center; }
}

/* ============================================
   STATS
   ============================================ */
.stats-number {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--accent);
    position: relative;
    display: inline-block;
}
.stats-number::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    opacity: 0.6;
}
.stats-number + p {
    color: var(--text-2);
    margin-top: 16px;
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--text-2);
    padding: 48px 0;
    margin-top: 100px;
    position: relative;
    text-align: center;
}
footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}
footer a {
    color: var(--text-2);
    transition: color 0.2s ease;
}
footer a:hover {
    color: var(--accent);
}

/* ============================================
   CV PAGE STYLES
   ============================================ */
.cv-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}
.cv-content h1, 
.cv-content h2, 
.cv-content h3 { 
    letter-spacing: -0.03em; 
}
.cv-content h1 {
    color: var(--text);
    border-bottom: 3px solid;
    padding-bottom: 16px;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.cv-content h2 {
    color: var(--text);
    margin-top: 56px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}
.cv-content h2::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}
.cv-content h3 {
    color: var(--text);
    margin-top: 32px;
    font-size: 1.2rem;
    font-weight: 700;
}
.cv-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

.quick-nav {
    background: rgba(247, 249, 251, 0.95);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: 1px solid var(--border);
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 999;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(11,31,58,.08);
}
@media (min-width: 700px) {
    .quick-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: auto;
        max-width: calc(100% - 32px);
    }
}
.quick-nav strong {
    color: var(--text-3);
}
.quick-nav a {
    color: var(--accent);
    text-decoration: none;
    margin-left: 16px;
    transition: color 0.18s ease;
}
.quick-nav a:hover {
    color: var(--accent-hover);
}

.cv-content [id] {
    scroll-margin-top: 140px;
}

.cta-footer {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.cta-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
}
.cta-footer p {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}
.cta-footer a.btn-primary-cv {
    background: var(--accent);
    color: white;
    padding: 14px 36px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px var(--glow-teal);
}
.cta-footer a.btn-primary-cv:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--glow-teal);
    background: var(--accent-hover);
}

@media (max-width: 900px) {
    .quick-nav {
        top: 60px;
        padding: 10px 16px;
        gap: 6px;
        flex-wrap: wrap;
    }
    .quick-nav a {
        margin-left: 8px;
        font-size: 0.85rem;
    }
    .cv-content {
        padding-top: 120px;
    }
    .cv-content [id] {
        scroll-margin-top: 180px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.row { 
    --bs-gutter-x: 24px; 
    --bs-gutter-y: 24px; 
}

.text-muted {
    color: var(--text-3) !important;
}

.toggle-divider {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: 8px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .main-nav, .skip-link { display: none !important; }
    body { 
        background: white !important;
        color: #1a1a1a !important;
    }
    body::before { display: none !important; }
    * {
        color: #1a1a1a !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    a { color: #1a1a1a !important; }
}
