/* =========================================
   David Hudman - Personal Website Styles
   ========================================= */

/* =========================================
   CSS Custom Properties (Design Tokens)
   ========================================= */
:root {
    /* Color Palette - Dark Professional Theme */
    --primary-color: #004d99;
    --primary-color-hover: #003d7a;
    --secondary-color: #1a1a2e;
    --accent-color: #0073b3;
    --accent-color-hover: #005c8f;

    /* Background Colors */
    --background-dark: #0f0f23;
    --background-darker: #0a0a18;
    --background-card: rgba(26, 26, 46, 0.6);
    --background-card-hover: rgba(26, 26, 46, 0.8);
    --background-glass: rgba(255, 255, 255, 0.05);
    --background-glass-hover: rgba(255, 255, 255, 0.08);

    /* Text Colors */
    --text-color: #ffffff;
    --text-color-muted: rgba(255, 255, 255, 0.7);
    --text-color-subtle: rgba(255, 255, 255, 0.5);

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-hero: linear-gradient(180deg, var(--background-dark) 0%, var(--background-darker) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(15, 15, 35, 0) 0%, rgba(15, 15, 35, 0.8) 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */
    --font-size-6xl: 3.75rem;     /* 60px */

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;

    /* Spacing Scale */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 3rem;      /* 48px */
    --spacing-3xl: 4rem;      /* 64px */
    --spacing-4xl: 6rem;      /* 96px */
    --spacing-5xl: 8rem;      /* 128px */

    /* Border Radius */
    --radius-sm: 0.25rem;     /* 4px */
    --radius-md: 0.5rem;      /* 8px */
    --radius-lg: 0.75rem;     /* 12px */
    --radius-xl: 1rem;        /* 16px */
    --radius-2xl: 1.5rem;     /* 24px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 102, 204, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(0, 212, 255, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
    --header-height: 80px;

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* =========================================
   Light Mode Theme
   ========================================= */
[data-theme="light"] {
    /* Background Colors */
    --background-dark: #ffffff;
    --background-darker: #f5f5f5;
    --background-card: rgba(255, 255, 255, 0.8);
    --background-card-hover: rgba(255, 255, 255, 0.95);
    --background-glass: rgba(0, 0, 0, 0.03);
    --background-glass-hover: rgba(0, 0, 0, 0.05);

    /* Text Colors */
    --text-color: #1a1a1a;
    --text-color-muted: rgba(26, 26, 26, 0.7);
    --text-color-subtle: rgba(26, 26, 26, 0.5);

    /* Adjust secondary color for light mode */
    --secondary-color: #f0f0f5;

    /* Lighter blue colors for light mode */
    --primary-color: #4da6ff;
    --primary-color-hover: #3399ff;
    --accent-color: #66b3ff;
    --accent-color-hover: #4da6ff;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 100%);

    /* Shadows - lighter for light mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(51, 153, 255, 0.2);
    --shadow-glow-accent: 0 0 30px rgba(51, 221, 255, 0.2);
}

/* Light Mode Specific Component Overrides */
[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .header--scrolled {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .project-card__overlay {
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.7) 70%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

[data-theme="light"] .project-card__category {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-color);
}

/* =========================================
   CSS Reset / Normalize
   ========================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Remove default list styles */
ul,
ol {
    list-style: none;
}

/* Prevent font size inflation */
html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--background-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Body state when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: var(--line-height-tight);
    font-weight: var(--font-weight-bold);
    text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   Base Styles
   ========================================= */

/* Typography Base */
h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-color-muted);
}

p:last-child {
    margin-bottom: 0;
}

strong,
b {
    font-weight: var(--font-weight-semibold);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Section Base */
section {
    padding: var(--spacing-4xl) 0;
}

/* Selection Highlight */
::selection {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* =========================================
   Button Base Styles
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--text-color);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn--secondary {
    background: var(--background-glass);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: var(--background-glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn--large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-size-lg);
}

/* =========================================
   Utility Classes
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   Header / Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: var(--z-fixed);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    letter-spacing: -0.02em;
    transition: color var(--transition-fast);
}

.nav__logo:hover,
.nav__logo:focus {
    color: var(--accent-color);
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav__item {
    position: relative;
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-color-muted);
    padding: var(--spacing-sm) 0;
    transition: color var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link:focus {
    color: var(--text-color);
}

.nav__link:hover::after,
.nav__link:focus::after,
.nav__link--active::after {
    width: 100%;
}

.nav__link--active {
    color: var(--text-color);
}

.nav__link--cta {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover,
.nav__link--cta:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    color: var(--text-color);
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background-glass);
    border: 1px solid var(--background-glass-hover);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: var(--spacing-md);
}

.theme-toggle:hover {
    background: var(--background-glass-hover);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-color);
}

/* Hide sun icon in dark mode, moon icon in light mode */
[data-theme="dark"] .theme-toggle__sun {
    display: none;
}

[data-theme="light"] .theme-toggle__moon {
    display: none;
}

/* Mobile Navigation Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
    z-index: calc(var(--z-fixed) + 1);
}

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: var(--radius-full);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Toggle active state */
.nav__toggle--active .nav__toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav__toggle--active .nav__toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active .nav__toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    background-image: url('resources/img/backgrounds/jaxbeach-sunset-dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Dark overlay for better text visibility on photo background */
.hero__background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 15, 35, 0.75) 0%,
        rgba(10, 10, 24, 0.65) 50%,
        rgba(15, 15, 35, 0.75) 100%
    );
    z-index: 1;
}

/* Light mode hero background */
[data-theme="light"] .hero__background {
    background-image: url('resources/img/backgrounds/jaxbeach-sunset-light.png');
}

/* Remove overlay in light mode to show full photo */
[data-theme="light"] .hero__background::before {
    display: none;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    padding: var(--spacing-3xl) 0;
}

.hero__text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.hero__greeting {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero__title {
    font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* Light mode title - white text with soft dark outline for visibility on photo */
[data-theme="light"] .hero__title {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: white;
    background-clip: text;
    filter:
        drop-shadow(0 0 2px rgba(0, 0, 0, 0.9))
        drop-shadow(0 0 4px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 6px rgba(0, 0, 0, 0.7))
        drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Light mode subtitle - white text with soft dark outline for visibility on photo */
[data-theme="light"] .hero__subtitle {
    color: white;
    text-shadow:
        0 0 2px rgba(0, 0, 0, 0.9),
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 6px rgba(0, 0, 0, 0.7),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__skills {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    max-width: 600px;
}

.hero__skill {
    font-size: var(--font-size-base);
    color: var(--text-color);
    background: var(--background-glass);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: var(--font-weight-medium);
    transition: all var(--transition-base);
}

.hero__skill a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.hero__skill:hover {
    background: var(--background-glass-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    cursor: pointer;
}

.hero__cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

.hero__social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.hero__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    width: 44px;
    height: 44px;
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-color-muted);
    transition: all var(--transition-base);
}

.hero__social-link span {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.hero__social-link:has(span) {
    width: auto;
    padding: 0 var(--spacing-lg);
}

.hero__social-link:hover,
.hero__social-link:focus {
    background: var(--background-glass-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

/* Hero Image */
.hero__image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__image {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 1;
    content: url('resources/img/david/black-canyon.png');
}

[data-theme="light"] .hero__image {
    content: url('resources/img/david/jax-river-flipped.png');
}

.hero__image-decoration {
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    opacity: 0.2;
    filter: blur(40px);
    z-index: 0;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-color-subtle);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-color-subtle), transparent);
}

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

/* =========================================
   Mobile Navigation Responsive
   ========================================= */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .theme-toggle {
        position: fixed;
        top: 20px;
        right: 70px;
        z-index: calc(var(--z-fixed) + 1);
        margin-left: 0;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--background-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
        transition: right var(--transition-base);
    }

    .nav__menu--open {
        right: 0;
    }

    .nav__link {
        font-size: var(--font-size-xl);
    }

    .nav__link::after {
        display: none;
    }

    .nav__link--cta {
        margin-top: var(--spacing-md);
    }

    /* Hero Responsive */
    .hero__content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .hero__text {
        order: 2;
        align-items: center;
    }

    .hero__image-wrapper {
        order: 1;
    }

    .hero__image {
        max-width: 300px;
    }

    .hero__skills {
        max-width: 100%;
        justify-content: center;
    }

    .hero__cta {
        justify-content: center;
    }

    .hero__social {
        justify-content: center;
    }

    .hero__scroll-indicator {
        display: none;
    }
}

/* =========================================
   GitHub Activity Section
   ========================================= */
.github-activity {
    background: var(--background-dark);
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.github-activity__content {
    max-width: 900px;
    margin: 0 auto;
}

.github-activity__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.github-activity__chart {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.github-activity__chart:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.github-activity__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

.github-activity__tags {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

/* Tech Tag Buttons */
.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

.tech-tag svg {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-tag--ai {
    border-color: rgba(139, 92, 246, 0.3);
}

.tech-tag--ai:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.tech-tag--ai:hover svg {
    transform: scale(1.1);
    color: rgb(167, 139, 250);
}

.tech-tag--fullstack {
    border-color: rgba(34, 197, 94, 0.3);
}

.tech-tag--fullstack:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.tech-tag--fullstack:hover svg {
    transform: scale(1.1);
    color: rgb(74, 222, 128);
}

.tech-tag--cloud {
    border-color: rgba(0, 102, 204, 0.3);
}

.tech-tag--cloud:hover {
    background: rgba(0, 102, 204, 0.15);
    border-color: rgba(0, 102, 204, 0.6);
    box-shadow: 0 0 20px rgba(0, 102, 204, 0.3);
}

.tech-tag--cloud:hover svg {
    transform: scale(1.1);
    color: rgb(56, 189, 248);
}

@media (max-width: 768px) {
    .github-activity {
        padding: var(--spacing-2xl) 0;
    }

    .github-activity__tags {
        gap: var(--spacing-sm);
    }

    .tech-tag {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
    }

    .tech-tag svg {
        width: 16px;
        height: 16px;
    }

    .github-activity__title {
        font-size: var(--font-size-xl);
    }

    .github-activity__chart {
        padding: var(--spacing-md);
    }
}

/* =========================================
   About Section
   ========================================= */
.about {
    background: var(--background-darker);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.about__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.about__header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about__label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.about__title {
    font-size: var(--font-size-4xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about__image-wrapper {
    position: relative;
}

.about__image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about__image-decoration {
    position: absolute;
    inset: -15px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0.15;
    filter: blur(30px);
    z-index: -1;
}

.about__text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about__bio {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
}

.about__stats {
    display: flex;
    gap: var(--spacing-2xl);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: var(--spacing-md) 0;
    justify-content: center;
}

.about__stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: center;
    text-align: center;
}

.about__stat-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about__stat-label {
    font-size: var(--font-size-sm);
    color: var(--text-color-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about__cta {
    align-self: flex-start;
    margin-top: var(--spacing-md);
}

/* Secondary Image */
.about__secondary-image-wrapper {
    width: 100%;
    margin: var(--spacing-lg) 0;
}

@media (min-width: 969px) {
    .about__grid {
        position: relative;
    }

    .about__image-wrapper {
        max-width: 500px;
    }
}

.about__secondary-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   Personal Photo Section
   ========================================= */
.personal-photo {
    padding: var(--spacing-3xl) 0;
}

.personal-photo__content {
    max-width: 1200px;
    margin: 0 auto;
}

.personal-photo__wrapper {
    max-width: 500px;
    margin: 0 auto;
}

.personal-photo__image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

/* Personal Photo Gallery */
.about__gallery {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

.about__gallery-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.about__gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.about__gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about__gallery-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.about__gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.about__gallery-item:hover .about__gallery-image {
    transform: scale(1.1);
}

/* Work Experience Styles */
.work-experience {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.work-experience__item {
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.work-experience__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.work-experience__header {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.work-experience__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.work-experience__info {
    flex: 1;
}

.work-experience__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.work-experience__company {
    font-size: var(--font-size-base);
    color: var(--accent-color);
    font-weight: var(--font-weight-medium);
    margin: 0;
}

.work-experience__highlights {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0 0;
}

.work-experience__highlights li {
    font-size: var(--font-size-base);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
    padding-left: var(--spacing-lg);
    position: relative;
    margin-bottom: var(--spacing-xs);
}

.work-experience__highlights li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

/* About Section Responsive */
@media (max-width: 968px) {
    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about__image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .about__stats {
        justify-content: center;
    }

    .about__cta {
        align-self: center;
    }

    .about__gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 576px) {
    .about__title {
        font-size: var(--font-size-3xl);
    }

    .about__stats {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .about__gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

/* =========================================
   Services Section
   ========================================= */
.services {
    background: var(--background-dark);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 30% at 0% 50%, rgba(0, 102, 204, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 100% 50%, rgba(0, 212, 255, 0.05), transparent);
    z-index: 0;
}

.services__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.services__header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.services__label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.services__title {
    font-size: var(--font-size-4xl);
    color: var(--text-color);
}

.services__subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

/* Service Card */
.service-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-2xl);
    background: var(--background-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    scroll-margin-top: calc(var(--header-height) + var(--spacing-xl));
}

.service-card:hover {
    background: var(--background-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card:target {
    background: var(--background-card-hover);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    animation: service-card-highlight 1s ease-out;
}

@keyframes service-card-highlight {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.7);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(0, 102, 204, 0);
    }
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent-color);
}

.service-card__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.service-card__description {
    font-size: var(--font-size-base);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
}

.service-card__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: auto;
}

.service-card__features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
}

.service-card__features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.services__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
    padding-top: var(--spacing-xl);
}

.services__cta-text {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
}

/* Services Section Responsive */
@media (max-width: 968px) {
    .services__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .services__title {
        font-size: var(--font-size-3xl);
    }

    .service-card {
        padding: var(--spacing-xl);
    }
}

/* =========================================
   Projects Section
   ========================================= */
.projects {
    background: var(--background-darker);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.projects__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.projects__header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.projects__label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.projects__title {
    font-size: var(--font-size-4xl);
    color: var(--text-color);
}

.projects__subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
}

/* =========================================
   Projects Gallery Grid - CSS Grid Layout
   ========================================= */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* Gallery Masonry-style layout for larger screens */
.projects__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    grid-auto-flow: dense;
}

/* Gallery item that spans 2 columns on larger screens */
.projects__gallery--featured .project-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    aspect-ratio: 4/3;
    cursor: pointer;
    isolation: isolate;
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow-accent);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-card__logo-wrapper {
    position: absolute;
    top: var(--spacing-lg);
    left: var(--spacing-lg);
    z-index: 3;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.project-card:hover .project-card__logo-wrapper {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-card__logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow), filter var(--transition-base);
    will-change: transform;
}

.project-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: var(--spacing-lg);
    opacity: 1;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.project-card__category {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--background-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateY(0);
    transition: transform var(--transition-base), background var(--transition-fast);
}

/* Gallery Hover Effects */
.project-card:hover .project-card__image {
    transform: scale(1.05);
    filter: brightness(0.9);
}

.project-card:hover .project-card__category {
    background: rgba(0, 102, 204, 0.8);
}

/* Gallery Image Loading State */
.project-card__image[loading="lazy"] {
    background: var(--background-card);
}

/* Gallery Focus States for Accessibility */
.project-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

.project-card:focus-visible .project-card__category {
    background: rgba(0, 102, 204, 0.8);
}

/* Gallery Shine Animation on Hover */
.project-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 30%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 70%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: none;
    z-index: 3;
    pointer-events: none;
}

.project-card:hover .project-card__shine {
    animation: gallery-shine 0.6s ease-out;
}

@keyframes gallery-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Gallery Entrance Animation */
.project-card {
    animation: gallery-fade-in 0.6s ease-out backwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.25s; }
.project-card:nth-child(5) { animation-delay: 0.3s; }
.project-card:nth-child(6) { animation-delay: 0.35s; }
.project-card:nth-child(7) { animation-delay: 0.4s; }
.project-card:nth-child(8) { animation-delay: 0.45s; }
.project-card:nth-child(9) { animation-delay: 0.5s; }

@keyframes gallery-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Gallery Lightbox Modal Styles
   ========================================= */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.gallery-lightbox__image {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.gallery-lightbox.active .gallery-lightbox__image {
    transform: scale(1);
}

.gallery-lightbox__close {
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-lightbox__close:hover {
    background: var(--background-glass-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: rotate(90deg);
}

.gallery-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-lightbox__nav:hover {
    background: var(--background-glass-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.gallery-lightbox__nav--prev {
    left: var(--spacing-xl);
}

.gallery-lightbox__nav--next {
    right: var(--spacing-xl);
}

.gallery-lightbox__caption {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.projects__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
    padding-top: var(--spacing-xl);
}

.projects__cta-text {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
}

/* Projects Section Responsive */
@media (max-width: 968px) {
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .projects__gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects__gallery--featured .project-card:first-child {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-lightbox__nav {
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox__nav--prev {
        left: var(--spacing-md);
    }

    .gallery-lightbox__nav--next {
        right: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .projects__title {
        font-size: var(--font-size-3xl);
    }

    .projects__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

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

    .project-card {
        aspect-ratio: 16/10;
    }

    .project-card:hover {
        transform: translateY(-4px);
    }

    .project-card__logo-wrapper {
        top: var(--spacing-md);
        left: var(--spacing-md);
        padding: var(--spacing-sm);
    }

    .project-card__logo {
        width: 48px;
        height: 48px;
    }

    .gallery-lightbox {
        padding: var(--spacing-md);
    }

    .gallery-lightbox__close {
        top: var(--spacing-md);
        right: var(--spacing-md);
        width: 40px;
        height: 40px;
    }

    .gallery-lightbox__nav {
        display: none;
    }

    .gallery-lightbox__caption {
        bottom: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-lg);
    }
}

/* =========================================
   Contact Section
   ========================================= */
/* Contact page specific styles */
body.contact-page .contact {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + var(--spacing-4xl)) 0 var(--spacing-4xl);
    background: transparent;
}

/* Contact page full-page sunset background - dark mode */
body.contact-page .contact::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url('resources/img/backgrounds/jaxbeach-sunset-dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Contact page sunset background - light mode */
[data-theme="light"] body.contact-page .contact::before {
    background-image: url('resources/img/backgrounds/jaxbeach-sunset-light.png');
}

/* Default contact section styles for other pages */
.contact {
    background: var(--background-dark);
    position: relative;
}

.contact__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.contact__header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact__label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact__title {
    font-size: var(--font-size-4xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact__subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
}

.contact__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

/* Contact Link Card */
.contact__link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-2xl);
    background: var(--background-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    text-align: center;
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

/* Light mode contact cards - semi-transparent */
[data-theme="light"] .contact__link-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.contact__link-card:hover {
    background: var(--background-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* Light mode hover */
[data-theme="light"] .contact__link-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.6);
}

.contact__link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--accent-color);
    transition: all var(--transition-base);
}

.contact__link-card:hover .contact__link-icon {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-color);
}

/* QR Code section */
.contact__qr-code {
    margin: var(--spacing-md) 0;
}

/* Crypto logo styling - larger and without box */
.contact__crypto-logo {
    width: 180px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

/* Dark background for crypto logos in light mode for visibility */
[data-theme="light"] .contact__crypto-logo {
    background: rgba(0, 0, 0, 0.85);
    padding: var(--spacing-lg);
}


/* QR Modal specific styling - styled like payment cards */
.qr-modal__body {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    margin: var(--spacing-3xl) 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 400px;
    position: relative;
}

[data-theme="light"] .qr-modal__body {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Position close button inside the modal card */
#qr-modal .modal__close,
#btc-qr-modal .modal__close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
}

.qr-modal__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin: 0;
}

.qr-modal__code {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: inline-block;
    margin: var(--spacing-lg) 0;
}

.qr-modal__instruction {
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
    line-height: var(--line-height-base);
    margin: 0;
}

.qr-modal__body .btn {
    margin-top: auto;
    width: 100%;
}

.contact__link-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.contact__link-description {
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
    line-height: var(--line-height-base);
}

.contact__link-cta {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--accent-color);
    margin-top: auto;
    transition: color var(--transition-fast);
}

.contact__link-card:hover .contact__link-cta {
    color: var(--text-color);
}

/* Dark mode opacity boost for better readability */
[data-theme="dark"] .contact__link-card {
    background: rgba(26, 26, 46, 0.85);
}

[data-theme="dark"] .contact__link-card:hover {
    background: rgba(26, 26, 46, 0.95);
}

[data-theme="dark"] .contact__link-description {
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .contact__link-cta {
    opacity: 1;
}

.contact__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
    padding-top: var(--spacing-xl);
}

.contact__cta-text {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
}

/* Contact Section Responsive */
@media (max-width: 968px) {
    .contact__links {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .contact__title {
        font-size: var(--font-size-3xl);
    }

    .contact__link-card {
        padding: var(--spacing-xl);
    }
}

/* =========================================
   Bio Section
   ========================================= */
.bio {
    background: var(--background-dark);
    padding: var(--spacing-3xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-color);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

.about-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.about-btn svg {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.about-btn:hover svg {
    transform: scale(1.1);
}

.bio__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
}

.bio__text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.bio__paragraph {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
}

@media (max-width: 768px) {
    .bio {
        padding: var(--spacing-2xl) 0;
    }

    .about-btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .about-btn svg {
        width: 20px;
        height: 20px;
    }

    .bio__title {
        font-size: var(--font-size-2xl);
    }

    .bio__paragraph {
        font-size: var(--font-size-base);
    }
}

/* =========================================
   Light Speed Pacing Page
   ========================================= */

/* Hero Section */
.project-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--spacing-4xl)) 0 var(--spacing-4xl);
    text-align: center;
    overflow: hidden;
}

.project-hero__background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-darker) 100%);
    opacity: 0.9;
}


.project-hero__content {
    position: relative;
    z-index: 1;
}

.project-hero__label {
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.project-hero__title {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.project-hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-color-muted);
    max-width: 600px;
    margin: 0 auto var(--spacing-3xl);
}

.project-hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    flex-wrap: wrap;
}

.project-hero__stat {
    text-align: center;
}

.project-hero__stat-number {
    display: block;
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
}

.project-hero__stat-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Featured Hero Variant */
.project-hero--featured {
    text-align: center;
}

.project-hero__featured-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-3xl);
    max-width: 1000px;
    margin: 0 auto;
}

.project-hero__branding {
    width: 100%;
}

.project-hero__brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.project-hero__logo {
    height: 60px;
    width: auto;
    display: block;
}

.project-hero__brand-name {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin: 0;
    line-height: var(--line-height-tight);
}

.project-hero__brand-tagline {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    margin: 0;
    font-weight: var(--font-weight-medium);
}

.project-hero__story-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: var(--spacing-2xl);
    background: var(--background-card);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    width: 100%;
    align-items: center;
}

.project-hero__featured-image {
    position: relative;
    height: 100%;
}

.project-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.project-hero__story-container:hover .project-hero__image {
    transform: scale(1.05);
}

.project-hero__featured-story {
    padding: var(--spacing-2xl);
    text-align: left;
}

.project-hero__featured-story .project-hero__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-md);
}

.project-hero__featured-story .project-hero__subtitle {
    margin: 0 0 var(--spacing-2xl);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

.project-hero__featured-story .project-hero__stats {
    justify-content: flex-start;
}

.project-hero__featured-story .project-hero__stat-number {
    font-size: var(--font-size-2xl);
}

.project-hero__featured-story .project-hero__stat-label {
    font-size: var(--font-size-xs);
}

/* Overview Section */
.project-overview {
    background: var(--background-darker);
    padding: var(--spacing-4xl) 0;
    position: relative;
}

.project-overview__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    align-items: center;
}

.project-overview__label {
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.project-overview__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
}

.project-overview__description {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-3xl);
}

.project-overview__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.project-overview__feature {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--background-glass);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.project-overview__feature:hover {
    background: var(--background-glass-hover);
    border-color: var(--accent-color);
    transform: translateX(8px);
}

.project-overview__image-wrapper {
    position: relative;
    isolation: isolate;
}

.project-overview__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    display: block;
    transition: transform var(--transition-base);
}

.project-overview__image-wrapper:hover .project-overview__image {
    transform: translateY(-8px);
}

.project-overview__image-decoration {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 80%;
    height: 80%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0.2;
}

.project-overview__feature-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

.project-overview__feature-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--spacing-xs);
}

.project-overview__feature-text {
    font-size: var(--font-size-base);
    color: var(--text-color-muted);
    line-height: var(--line-height-base);
}

/* Results Section */
.project-results {
    background: var(--background-darker);
    padding: var(--spacing-4xl) 0;
}

.project-results__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.project-results__label {
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.project-results__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
}

.project-results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}

.project-results__card {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.project-results__card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-results__image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.project-results__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.project-results__card:hover .project-results__image img {
    transform: scale(1.05);
}

.project-results__card-content {
    padding: var(--spacing-xl);
}

.project-results__card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

.project-results__card-text {
    font-size: var(--font-size-base);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
}

/* Technology Section */
.project-tech {
    background: var(--background-dark);
    padding: var(--spacing-4xl) 0;
}

.project-tech__content {
    max-width: 800px;
}

.project-tech__label {
    display: inline-block;
    font-size: var(--font-size-sm);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
}

.project-tech__title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-lg);
}

.project-tech__description {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-xl);
}

.project-tech__list {
    list-style: none;
    padding: 0;
}

.project-tech__list li {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
    padding-left: var(--spacing-xl);
    position: relative;
    margin-bottom: var(--spacing-md);
}

.project-tech__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: var(--font-weight-bold);
}

/* CTA Section */
.project-cta {
    background: var(--background-darker);
    padding: var(--spacing-4xl) 0;
    text-align: center;
}

.project-cta__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

.project-cta__text {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    margin-bottom: var(--spacing-xl);
}

.project-cta__buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .project-hero {
        padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }

    .project-hero__title {
        font-size: var(--font-size-4xl);
    }

    .project-hero__subtitle {
        font-size: var(--font-size-lg);
    }

    .project-hero__stats {
        gap: var(--spacing-xl);
    }

    .project-hero__stat-number {
        font-size: var(--font-size-3xl);
    }

    .project-hero__featured-layout {
        gap: var(--spacing-2xl);
    }

    .project-hero__brand-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .project-hero__logo {
        height: 50px;
    }

    .project-hero__brand-name {
        font-size: var(--font-size-4xl);
    }

    .project-hero__brand-tagline {
        font-size: var(--font-size-base);
    }

    .project-hero__story-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .project-hero__featured-image {
        height: 250px;
    }

    .project-hero__featured-story {
        padding: var(--spacing-xl);
        text-align: center;
    }

    .project-hero__featured-story .project-hero__stats {
        justify-content: center;
    }

    .project-overview,
    .project-results,
    .project-tech,
    .project-cta {
        padding: var(--spacing-2xl) 0;
    }

    .project-overview__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .project-overview__image-wrapper {
        order: -1;
    }

    .project-overview__title,
    .project-results__title,
    .project-tech__title {
        font-size: var(--font-size-2xl);
    }

    .project-results__grid {
        grid-template-columns: 1fr;
    }

    .project-cta__title {
        font-size: var(--font-size-2xl);
    }

    .project-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================
   Footer Section
   ========================================= */
.footer {
    background: var(--background-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

.footer__main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    transition: color var(--transition-fast);
}

.footer__logo:hover {
    color: var(--accent-color);
}

.footer__tagline {
    font-size: var(--font-size-sm);
    color: var(--text-color-subtle);
}

.footer__nav {
    display: flex;
}

.footer__links {
    display: flex;
    gap: var(--spacing-xl);
}

.footer__link {
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--accent-color);
}

.footer__social {
    display: flex;
    gap: var(--spacing-md);
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    width: 40px;
    height: 40px;
    background: var(--background-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-color-muted);
    transition: all var(--transition-base);
}

.footer__social-link span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.footer__social-link:has(span) {
    width: auto;
    padding: 0 var(--spacing-md);
}

.footer__social-link:hover {
    background: var(--background-glass-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer__bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer__copyright {
    font-size: var(--font-size-sm);
    color: var(--text-color-subtle);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer__main {
        flex-direction: column;
        text-align: center;
    }

    .footer__brand {
        align-items: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-lg);
    }

    .footer__social {
        justify-content: center;
    }
}

/* =========================================
   Modal
   ========================================= */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.modal.is-active {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 24, 0.95);
    backdrop-filter: blur(8px);
    animation: modal-fade-in 0.3s ease-out;
}

/* Light mode modal overlay */
[data-theme="light"] .modal__overlay {
    background: rgba(255, 255, 255, 0.95);
}

.modal__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    animation: modal-slide-up 0.4s ease-out;
}

.modal__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 2;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

.modal__body {
    padding: 0;
}

.service-card--modal {
    margin: 0;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes modal-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: var(--spacing-md);
    }

    .modal__close {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .service-card--modal {
        padding: var(--spacing-xl);
    }
}

/* Bio Modal Specific Styles */
.modal__content--bio {
    max-width: 700px;
}

.bio-modal {
    background: var(--background-card);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
}

.bio-modal__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.bio-modal__text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.bio-modal__paragraph {
    font-size: var(--font-size-lg);
    color: var(--text-color-muted);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

@media (max-width: 768px) {
    .modal__content--bio {
        max-width: 100%;
    }

    .bio-modal {
        padding: var(--spacing-xl);
    }

    .bio-modal__title {
        font-size: var(--font-size-2xl);
    }

    .bio-modal__paragraph {
        font-size: var(--font-size-base);
    }
}

/* =========================================
   Flylert Deal Caption
   ========================================= */
.flylert-deal-caption {
    font-size: var(--font-size-sm);
    font-style: italic;
    color: var(--text-color-muted);
    margin-top: var(--spacing-sm);
    text-align: center;
}
