/* ============================================
   TechBasi Design System
   Warm, modern, refined - Light/Dark mode
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CSS Variables - Light Mode (Default)
   ============================================ */
:root {
    --bg-primary: #FAFAF8;
    --bg-secondary: #F5F3EF;
    --bg-tertiary: #ECEAE4;
    --bg-card: #FFFFFF;

    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #78716C;

    --border-light: #E7E5E4;
    --border-medium: #D6D3D1;

    --accent-primary: #B45309;
    --accent-secondary: #D97706;
    --accent-hover: #92400E;
    --accent-light: #FEF3C7;

    --shadow-sm: 0 1px 2px 0 rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(28, 25, 23, 0.07), 0 2px 4px -2px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(28, 25, 23, 0.08), 0 4px 6px -4px rgba(28, 25, 23, 0.04);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --header-height: 70px;
}

/* ============================================
   Dark Mode Variables
   ============================================ */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: #1C1917;
        --bg-secondary: #292524;
        --bg-tertiary: #3D3835;
        --bg-card: #292524;

        --text-primary: #FAFAF9;
        --text-secondary: #D6D3D1;
        --text-muted: #A8A29E;

        --border-light: #3D3835;
        --border-medium: #57534E;

        --accent-primary: #F59E0B;
        --accent-secondary: #FBBF24;
        --accent-hover: #D97706;
        --accent-light: #451A03;

        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
    }
}

[data-theme="dark"] {
    --bg-primary: #1C1917;
    --bg-secondary: #292524;
    --bg-tertiary: #3D3835;
    --bg-card: #292524;

    --text-primary: #FAFAF9;
    --text-secondary: #D6D3D1;
    --text-muted: #A8A29E;

    --border-light: #3D3835;
    --border-medium: #57534E;

    --accent-primary: #F59E0B;
    --accent-secondary: #FBBF24;
    --accent-hover: #D97706;
    --accent-light: #451A03;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35), 0 2px 4px -2px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.35), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] {
    --bg-primary: #FAFAF8;
    --bg-secondary: #F5F3EF;
    --bg-tertiary: #ECEAE4;
    --bg-card: #FFFFFF;

    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #78716C;

    --border-light: #E7E5E4;
    --border-medium: #D6D3D1;

    --accent-primary: #B45309;
    --accent-secondary: #D97706;
    --accent-hover: #92400E;
    --accent-light: #FEF3C7;

    --shadow-sm: 0 1px 2px 0 rgba(28, 25, 23, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(28, 25, 23, 0.07), 0 2px 4px -2px rgba(28, 25, 23, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(28, 25, 23, 0.08), 0 4px 6px -4px rgba(28, 25, 23, 0.04);
}

/* ============================================
   Base Styles
   ============================================ */
body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============================================
   Skip to Content Link
   ============================================ */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    padding: 1rem 2rem;
    background: var(--accent-primary);
    color: #FAFAF8;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    overflow: visible;
}

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

:focus:not(:focus-visible) {
    outline: none;
}

.app-card:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-color: var(--accent-primary);
}

#theme-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-color: var(--accent-primary);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.cta-button:focus-visible {
    outline: 2px solid #FAFAF9;
    outline-offset: 2px;
}

.email-link:focus-visible {
    outline: 2px solid #FAFAF9;
    outline-offset: 2px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Header
   ============================================ */
header {
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}

[data-theme="dark"] header {
    background: rgba(28, 25, 23, 0.85);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) header {
        background: rgba(28, 25, 23, 0.85);
    }
}

header.scrolled {
    height: 60px;
    box-shadow: 0 1px 0 var(--border-light);
}

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

.logo h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
}

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

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

#theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--border-medium);
    color: var(--text-primary);
}

#theme-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#theme-toggle:hover svg {
    transform: rotate(15deg);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sun-icon { display: block; }
    :root:not([data-theme="light"]) .moon-icon { display: none; }
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 8px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-toggle:hover {
    color: var(--text-primary);
}

/* Prevent fixed header from covering content */
section {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 180px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #1C1917;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1480714378408-67cf0d13bc1b?w=1920&q=80&fit=crop&auto=format') center/cover no-repeat;
    opacity: 0.35;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.4) 0%, rgba(28, 25, 23, 0.85) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #FAFAF9;
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-content .highlight {
    color: #F59E0B;
    position: relative;
}

.hero-content .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #F59E0B;
    opacity: 0.4;
    border-radius: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: #D6D3D1;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #F59E0B;
    color: #1C1917;
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.cta-button:hover {
    background: #FBBF24;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* ============================================
   Apps Section
   ============================================ */
.apps {
    padding: 100px 0;
    background: var(--bg-primary);
}

.apps h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3.5rem;
}

/* Category */
.category {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.category.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon svg {
    stroke: var(--accent-primary);
}

/* Apps Grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   App Card
   ============================================ */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.app-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(28, 25, 23, 0.12);
    border-color: var(--border-medium);
}

[data-theme="dark"] .app-card:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .app-card:hover {
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    }
}

/* App Icons */
.app-icon {
    min-width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    background: var(--accent-primary);
}

.games-icon { background: #4338CA; }
.biteprep-icon { background: #047857; }
.motivare-icon { background: #6D28D9; }
.warranty-icon { background: #D97706; }
.steadly-icon { background: #BE185D; }
.poise-icon { background: #0F766E; }
.lockstepper-icon { background: #000000; }

.icon-text {
    color: white;
}

.icon-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* App Info */
.app-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* Feature Tags */
.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature {
    background: var(--bg-tertiary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.app-card:hover .feature {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* App Link */
.app-link-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.app-link-text .arrow {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.app-card:hover .app-link-text .arrow {
    transform: translateX(6px);
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: #1C1917;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80&fit=crop&auto=format') center/cover no-repeat;
    opacity: 0.25;
}

.about::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.5) 0%, rgba(28, 25, 23, 0.8) 100%);
}

.about .container {
    position: relative;
    z-index: 1;
}

.about h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 3rem;
    color: #FAFAF9;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 3.5rem;
}

.about-text .lead {
    font-size: 1.2rem;
    color: #FAFAF9;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.about-text p {
    font-size: 1.05rem;
    color: #D6D3D1;
    line-height: 1.7;
}

/* Values Grid */
.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.value-item {
    text-align: left;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}

.value-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(28, 25, 23, 0.1);
    border-color: var(--border-medium);
}

[data-theme="dark"] .value-item:hover {
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .value-item:hover {
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
    }
}

.value-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 0 1.25rem 0;
    background: var(--accent-light);
    border-radius: 12px;
}

.value-icon svg {
    stroke: var(--accent-primary);
}

.value-item h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    background: #1C1917;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=1920&q=80&fit=crop&auto=format') center/cover no-repeat;
    opacity: 0.30;
}

.contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(28, 25, 23, 0.5) 0%, rgba(28, 25, 23, 0.75) 100%);
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 2rem;
    color: #FAFAF9;
}

.contact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-content p {
    color: #D6D3D1;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #FAFAF9;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 1.5px solid rgba(250, 250, 249, 0.3);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #FAFAF8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(180, 83, 9, 0.25);
}

[data-theme="dark"] .email-link:hover {
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.25);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .email-link:hover {
        box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.25);
    }
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--bg-primary);
    padding: 3rem 0;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s ease;
}

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

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        padding: 1.5rem 32px;
        z-index: 999;
    }

    nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 1.25rem;
        align-items: flex-start;
    }

    nav a {
        font-size: 0.9rem;
    }

    /* Keep theme toggle in the header bar */
    nav li:last-child {
        display: none;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-content h2 {
        font-size: 2.4rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

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

    .app-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .app-features {
        justify-content: center;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .category-title {
        justify-content: center;
    }

    .apps, .about, .contact {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo .tagline {
        display: none;
    }

    .apps, .about, .contact {
        padding: 60px 0;
    }

    .apps h2, .about h2, .contact h2 {
        font-size: 2rem;
    }

    .app-card {
        padding: 1.5rem;
    }

    .about-text .lead {
        font-size: 1.05rem;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 0.9rem;
    }

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

    .value-icon {
        margin: 0 auto 1.25rem;
    }
}

/* ============================================
   Apps Portfolio Page — Header & Overrides
   (relocated app showcase: /apps/)
   ============================================ */
header.apps-page-header {
    position: static;
    height: auto;
    display: block;
    padding: 1.75rem 0 2.5rem;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

header.apps-page-header .container {
    display: block;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
    transition: color 0.15s ease, transform 0.2s ease;
}

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

.back-link .arrow-back {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-link:hover .arrow-back {
    transform: translateX(-4px);
}

.apps-page-title {
    margin-top: 1.5rem;
}

.apps-page-title h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
}

/* The relocated portfolio leads the page, so trim the top padding */
.apps-page-section {
    padding-top: 64px;
}

@media (max-width: 480px) {
    .apps-page-title h1 {
        font-size: 1.9rem;
    }
}
