/* ===== css variables ===== */
:root {
    /* dark mode (default) */
    --bg-primary: #0b0c10;
    --bg-secondary: #12131a;
    --bg-tertiary: #181a22;
    
    --text-primary: #f5f6fa;
    --text-secondary: #b4b7c5;
    --text-muted: #8a8ea3;
    
    --border-subtle: rgba(255,255,255,0.06);
    --border-soft: rgba(255,255,255,0.10);
    
    --accent-primary: #7b7cff;
    --accent-secondary: #ff85c2;
    --accent-tertiary: #6fe7c8;
    
    --glow-indigo: rgba(123,124,255,0.35);
    --glow-pink: rgba(255,133,194,0.25);
    --glow-mint: rgba(111,231,200,0.25);
    
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(123,124,255,0.15);
    
    /* spacing */
    --container-max: 1200px;
    --section-padding: 6rem;
    
    /* typography */
    --font-display: 'Montserrat Alternates', sans-serif;
    --font-body: 'Montserrat Alternates', sans-serif;
}

/* ===== global content protection ===== */
img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* allow clicks to pass through to parent for card interactions */
.illustration-card,
.case-study-card {
    cursor: pointer;
}

.illustration-image,
.case-study-image {
    pointer-events: none;
}

/* light mode */
[data-theme="light"] {
    --bg-primary: #f7f8fc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f0f2f8;
    
    --text-primary: #0f1222;
    --text-secondary: #3d405b;
    --text-muted: #7a7e9a;
    
    --border-subtle: rgba(15,18,34,0.06);
    --border-soft: rgba(15,18,34,0.10);
    
    --accent-primary: #6a6cff;
    --accent-secondary: #ff6fb1;
    --accent-tertiary: #3fd1a2;
    
    --glow-indigo: rgba(106,108,255,0.15);
    --glow-pink: rgba(255,111,177,0.1);
    --glow-mint: rgba(63,209,162,0.1);
    
    --shadow-deep: 0 20px 60px rgba(15,18,34,0.08);
    --shadow-glow: 0 0 40px rgba(106,108,255,0.1);
}

/* light mode specific overrides */
[data-theme="light"] .btn-primary {
    color: #ffffff;
}

[data-theme="light"] .filter-tab.active {
    color: #ffffff;
}

[data-theme="light"] .section-alt {
    background: var(--bg-tertiary);
}

[data-theme="light"] .section-cta {
    background: var(--bg-tertiary);
}

[data-theme="light"] .hero-bg {
    background: 
        radial-gradient(circle at 20% 20%, var(--glow-indigo), transparent 50%),
        radial-gradient(circle at 80% 0%, var(--glow-pink), transparent 45%),
        var(--bg-primary);
}

[data-theme="light"] .footer {
    background: var(--bg-tertiary);
}

[data-theme="light"] .stat-number {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .cta-title,
[data-theme="light"] .cta-description {
    color: var(--text-primary);
}

[data-theme="light"] .cta-description {
    color: var(--text-secondary);
}

[data-theme="light"] .philosophy-title,
[data-theme="light"] .subsection-title,
[data-theme="light"] .section-title {
    color: var(--text-primary);
}

[data-theme="light"] .work-card {
    background: var(--bg-secondary);
    border-color: var(--border-soft);
}

[data-theme="light"] .work-title {
    color: var(--text-primary);
}

[data-theme="light"] .philosophy-item {
    background: var(--bg-secondary);
}

[data-theme="light"] .tag {
    color: var(--text-primary);
    border-color: var(--border-soft);
}

[data-theme="light"] .skill-item {
    color: var(--text-primary);
}

[data-theme="light"] .experience-grid,
[data-theme="light"] .stats-grid {
    background: transparent;
}

[data-theme="light"] .section:not(.section-alt):not(.section-cta) {
    background: var(--bg-primary);
}

[data-theme="light"] .logo {
    color: var(--text-primary);
}

[data-theme="light"] .footer-brand .logo {
    color: var(--text-primary);
}

[data-theme="light"] .hero-title {
    color: var(--text-primary);
}

[data-theme="light"] .hero-description {
    color: var(--text-secondary);
}

[data-theme="light"] .hero-tag {
    color: var(--accent-primary);
}

/* ===== reset & base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat Alternates', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== utilities ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

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

.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: inline-flex;
    }
}

/* ===== buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 9999px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s ease,
                box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    border: none;
    font-weight: 500;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
}

.btn-glow {
    box-shadow: 0 0 30px var(--glow-indigo), 0 0 60px var(--glow-pink);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-soft);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-primary);
}

/* ===== theme toggle ===== */
.theme-toggle {
    position: relative;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.theme-toggle:hover {
    background: var(--border-soft);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: none;
}

/* ===== header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
    background-color: rgba(11, 12, 16, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

[data-theme="light"] .header.scrolled {
    background-color: rgba(247, 248, 252, 0.9);
}

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

.logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

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

.nav {
    display: none;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 767px) {
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-actions .btn-primary {
        display: none;
    }
}

/* mobile menu toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* mobile menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(12px);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 99;
    border-bottom: 1px solid var(--border-subtle);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-link {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .mobile-menu {
        display: none;
    }
}

/* ===== hero section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, var(--glow-indigo), transparent 50%),
        radial-gradient(circle at 80% 0%, var(--glow-pink), transparent 45%),
        var(--bg-primary);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero-glow-1 {
    top: 20%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: var(--glow-indigo);
}

.hero-glow-2 {
    bottom: 30%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: var(--glow-pink);
    animation-delay: 2s;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.hero-tag {
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

@media (min-width: 640px) {
    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

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

/* scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: float 3s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll-pulse 2s ease-in-out infinite;
}

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

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(4px); }
}

/* ===== sections ===== */
.section {
    padding: var(--section-padding) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-header {
    max-width: 600px;
    margin-bottom: 3rem;
}

.section-header-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.section-tag {
    color: var(--accent-primary);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== work grid ===== */
.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-card {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-color: var(--accent-primary);
}

.work-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent 60%);
    opacity: 0.4;
}

/* gradient background for work cards without images */
.work-image-gradient {
    position: relative;
    background: var(--bg-tertiary);
    aspect-ratio: 4/3;
}

.work-gradient-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(123, 124, 255, 0.2), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(111, 231, 200, 0.15), transparent 50%),
        var(--bg-tertiary);
}

[data-theme="light"] .work-gradient-bg {
    background: 
        radial-gradient(circle at 30% 30%, rgba(106, 108, 255, 0.15), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(63, 209, 162, 0.1), transparent 50%),
        var(--bg-tertiary);
}

.work-gradient-harman {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 191, 105, 0.2), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(123, 124, 255, 0.15), transparent 45%),
        var(--bg-tertiary);
}

[data-theme="light"] .work-gradient-harman {
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 166, 43, 0.15), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(106, 108, 255, 0.1), transparent 45%),
        var(--bg-tertiary);
}

.work-gradient-verizon {
    background: 
        radial-gradient(circle at 30% 40%, rgba(238, 0, 0, 0.2), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.15), transparent 50%),
        var(--bg-tertiary);
}

[data-theme="light"] .work-gradient-verizon {
    background: 
        radial-gradient(circle at 30% 40%, rgba(238, 0, 0, 0.15), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.05), transparent 50%),
        var(--bg-tertiary);
}

.work-content {
    padding: 1.5rem;
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.work-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.work-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.work-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.work-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.work-card:hover .work-title {
    color: var(--accent-primary);
}

.work-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.work-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.work-card:hover .work-cta {
    color: var(--accent-primary);
}

.work-cta svg {
    transition: transform 0.3s ease;
}

.work-card:hover .work-cta svg {
    transform: translate(3px, -3px);
}

/* ===== philosophy ===== */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
    }
}

.philosophy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.philosophy-item {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.philosophy-item:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

.philosophy-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.philosophy-item:hover .philosophy-title {
    color: var(--accent-primary);
}

.philosophy-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== experience ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
}

@media (min-width: 1024px) {
    .stat-item {
        text-align: left;
    }
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .experience-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.subsection-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-soft);
    border-radius: 9999px;
    transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(123,124,255,0.1);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.skill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* ===== cta section ===== */
.section-cta {
    position: relative;
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--glow-indigo);
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse-glow 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 10;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ===== footer ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 300px;
    line-height: 1.7;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social svg {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-social:hover svg {
    color: var(--accent-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== mobile responsiveness ===== */
@media (max-width: 767px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero {
        padding: 5rem 0 4rem;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-header-row {
        gap: 1.5rem;
    }
    
    .section-header-row .btn {
        align-self: flex-start;
    }
    
    .work-grid {
        gap: 1.5rem;
    }
    
    .work-card {
        border-radius: 0.75rem;
    }
    
    .work-content {
        padding: 1.25rem;
    }
    
    .work-title {
        font-size: 1.125rem;
    }
    
    .philosophy-grid {
        gap: 2rem;
    }
    
    .philosophy-item {
        padding: 1.25rem;
    }
    
    .stats-grid {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .experience-grid {
        gap: 2.5rem;
    }
    
    .subsection-title {
        font-size: 1.25rem;
    }
    
    .tags-list {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .section-cta {
        padding: 5rem 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        gap: 0.75rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-tag {
        font-size: 0.6875rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 4px;
}

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

/* ===== selection ===== */
::selection {
    background: rgba(123,124,255,0.3);
    color: var(--text-primary);
}

/* ===== focus states ===== */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
