/* =========================================
   MaatInICT - House Style (Light Theme)
   Brand Colors from Logo:
   - Blue: #2196F3 / #1565C0
   - Purple: #9C27B0
   - Orange: #FF5722
   - Green: #4CAF50
   ========================================= */

/* CSS Variables */
:root {
    /* Colors - Light Theme with Brand Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --bg-card: #ffffff;

    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;

    /* Brand Colors */
    --brand-blue: #2196F3;
    --brand-blue-dark: #1565C0;
    --brand-purple: #9C27B0;
    --brand-orange: #FF5722;
    --brand-green: #4CAF50;

    /* Accent uses brand blue as primary */
    --accent-primary: #2196F3;
    --accent-secondary: #9C27B0;
    --accent-green: #4CAF50;
    --accent-orange: #FF5722;

    /* Terminal/Code colors (dark for contrast) */
    --terminal-bg: #1e1e1e;
    --terminal-header: #323232;
    --terminal-text: #d4d4d4;
    --terminal-green: #4EC9B0;
    --terminal-blue: #569CD6;
    --terminal-orange: #CE9178;
    --terminal-yellow: #DCDCAA;
    --terminal-purple: #C586C0;

    --border-color: #e2e8f0;
    --border-dark: #cbd5e0;
    --shadow-sm: 0 1px 3px 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.1);

    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide the fixed-bg-logo div (not used anymore) */
.fixed-bg-logo {
    display: none;
}

/* Container */
.container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: 1.125rem; }

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

a:hover {
    color: var(--brand-blue-dark);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--hd-nav-bg, rgba(10, 14, 23, 0.9));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(var(--hd-accent-rgb, 255, 255, 255), 0.1);
    box-shadow: var(--shadow-sm);
    transition: background 0.5s ease;
}

.navbar.scrolled {
    background: var(--hd-nav-scrolled-bg, rgba(10, 14, 23, 0.98));
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
    align-items: center;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--hd-text-muted, rgba(255, 255, 255, 0.8));
    padding: var(--spacing-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent-primary);
    color: white !important;
    padding: var(--spacing-sm) var(--spacing-lg) !important;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.nav-cta:hover {
    background: var(--brand-blue-dark);
    color: white !important;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-lg);
    padding-left: var(--spacing-lg);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.5;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.lang-link:hover {
    opacity: 0.8;
}

.lang-link.active {
    opacity: 1;
    border-color: var(--accent-primary);
}

.flag-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-sm);
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--hd-text, rgba(255, 255, 255, 0.9));
    position: relative;
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--hd-text, rgba(255, 255, 255, 0.9));
    left: 0;
    transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--hd-nav-scrolled-bg, var(--terminal-bg));
        flex-direction: column;
        justify-content: center;
        gap: var(--spacing-xl);
        transition: right var(--transition-normal);
        border-left: 1px solid rgba(var(--hd-accent-rgb, 255, 255, 255), 0.1);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        padding: var(--spacing-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        font-size: 1.1rem;
        padding: var(--spacing-md) 0;
    }

    .language-switcher {
        margin-left: 0;
        padding-left: 0;
        padding-top: var(--spacing-lg);
        border-left: none;
        border-top: 1px solid rgba(var(--hd-accent-rgb, 255, 255, 255), 0.1);
        justify-content: center;
    }

    .nav-toggle.active .hamburger {
        background: transparent;
    }

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

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

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-3xl) var(--spacing-lg);
    position: relative;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1200px;
    width: 100%;
}

/* Terminal Window - Dark for contrast */
.terminal-window {
    background: var(--terminal-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid #333;
}

.terminal-header {
    background: var(--terminal-header);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-bottom: 1px solid #444;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
    margin-left: auto;
}

.terminal-body {
    padding: var(--spacing-lg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.typing-line {
    margin-bottom: var(--spacing-xs);
}

.prompt {
    color: var(--terminal-green);
    margin-right: var(--spacing-sm);
}

.command {
    color: var(--terminal-blue);
}

.output {
    color: var(--terminal-text);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.output.highlight {
    color: var(--terminal-orange);
    font-weight: 500;
}

.output.blink::after {
    content: '|';
    color: var(--terminal-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Text */
.hero-text h1 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.hero-text .subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

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

.tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Scroll Indicator */
.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);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0; top: 20px; }
}

@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .terminal-window {
        order: 2;
    }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon {
    font-family: var(--font-mono);
    font-weight: 700;
}

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

.btn-primary:hover {
    background: var(--brand-blue-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(33, 150, 243, 0.3);
}

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

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

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =========================================
   Section Styles
   ========================================= */
section {
    padding: var(--spacing-3xl) 0;
}

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

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: var(--spacing-sm);
    background: var(--bg-secondary);
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Stats Section
   ========================================= */
.stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.stat-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-md);
    color: var(--accent-primary);
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
}

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

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Services Preview
   ========================================= */
.services-preview {
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.code-symbol {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Color variations for service icons */
.service-card:nth-child(1) .service-icon { background: rgba(33, 150, 243, 0.1); }
.service-card:nth-child(1) .code-symbol { color: var(--brand-blue); }

.service-card:nth-child(2) .service-icon { background: rgba(156, 39, 176, 0.1); }
.service-card:nth-child(2) .code-symbol { color: var(--brand-purple); }

.service-card:nth-child(3) .service-icon { background: rgba(76, 175, 80, 0.1); }
.service-card:nth-child(3) .code-symbol { color: var(--brand-green); }

.service-card:nth-child(4) .service-icon { background: rgba(255, 87, 34, 0.1); }
.service-card:nth-child(4) .code-symbol { color: var(--brand-orange); }

.service-card:nth-child(5) .service-icon { background: rgba(33, 150, 243, 0.1); }
.service-card:nth-child(5) .code-symbol { color: var(--brand-blue); }

.service-card:nth-child(6) .service-icon { background: rgba(156, 39, 176, 0.1); }
.service-card:nth-child(6) .code-symbol { color: var(--brand-purple); }

/* Apple icon in service cards */
.code-symbol.apple-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.code-symbol.apple-icon svg {
    fill: currentColor;
}

/* Experience Badge for Service Cards */
.service-card {
    position: relative;
}

.experience-badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* Experience Badge for Service Detail Sections */
.experience-badge-detail {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.service-tags {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.services-cta {
    text-align: center;
    margin-top: var(--spacing-2xl);
}

@media (max-width: 700px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   About Preview
   ========================================= */
.about-preview {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.about-content .section-tag {
    text-align: left;
}

.about-content h2 {
    margin-bottom: var(--spacing-lg);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.skills-list {
    list-style: none;
    margin: var(--spacing-lg) 0;
}

.skills-list li {
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.check {
    color: var(--accent-green);
    font-weight: 700;
}

/* Code Block - Dark theme for contrast */
.code-block {
    background: var(--terminal-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    background: var(--terminal-header);
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 1px solid #444;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.code-header::before {
    content: '';
    display: flex;
    gap: 6px;
}

.file-name {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #888;
}

.code-block pre {
    padding: var(--spacing-lg);
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--terminal-text);
}

.code-block .keyword { color: var(--terminal-purple); }
.code-block .property { color: var(--terminal-blue); }
.code-block .string { color: var(--terminal-orange); }
.code-block .number { color: #b5cea8; }
.code-block .method { color: var(--terminal-yellow); }

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-visual {
        order: -1;
    }
}

/* Framework Logo */
.framework-logo {
    text-align: left;
    margin-bottom: var(--spacing-lg);
}

.framework-logo img {
    max-width: 200px;
    height: auto;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-section {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.contact-icon {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-counter {
    float: right;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .contact-card {
        flex: 1;
        min-width: 150px;
    }
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: var(--hd-footer-bg, var(--terminal-bg));
    color: var(--hd-text-muted, var(--terminal-text));
    padding: var(--spacing-xl) 0;
    transition: background 0.5s ease;
}

.footer-content {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: space-between;
    align-items: start;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

.footer-brand .logo {
    margin-bottom: 0;
}

.footer-brand .logo img {
    height: 78px;
    width: auto;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
}

.footer-social h4 {
    color: var(--terminal-text);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.footer-links h4 {
    color: var(--terminal-text);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: start;
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: #888;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--terminal-header);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
}

.site-theme[data-theme="light"] .social-link {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

.site-theme[data-theme="light"] .social-link:hover {
    background: #7c3aed;
    color: #ffffff;
}

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

.footer-bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: #666;
    font-size: 0.875rem;
}

.footer-tagline {
    font-family: var(--font-mono);
    color: var(--terminal-green);
}

@media (max-width: 700px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

/* =========================================
   Utility Classes
   ========================================= */
.accent {
    color: var(--accent-primary);
}

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

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* =========================================
   Brand Gradient Text
   ========================================= */
.brand-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple), var(--brand-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =========================================
   Page Header (for subpages)
   ========================================= */
.page-header {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    min-height: 154px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    clip-path: inset(0);
}

.page-header::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background-image: url('../pics/FinalLogoMaatInICT.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

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

.page-header h1 {
    margin-bottom: var(--spacing-sm);
}

.page-header .tagline {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.page-header-logo {
    display: block;
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* =========================================
   About Main Section
   ========================================= */
.about-main {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.about-main .about-content h2 {
    margin-bottom: var(--spacing-lg);
}

.about-main .about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* About story cards (two-column glass tiles) */
.about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: stretch;
}

.about-story-card {
    padding: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.about-story-card h2 {
    color: var(--hd-text, var(--text-primary));
    font-size: clamp(1.3rem, 2.5vw, 1.6rem);
    margin-bottom: var(--spacing-lg);
    transition: color 0.5s ease;
}

.about-story-card h2 .accent {
    color: var(--hd-accent, var(--accent-primary));
}

.about-story-card p {
    color: var(--hd-text-muted, var(--text-secondary));
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    font-size: 0.92rem;
    transition: color 0.5s ease;
}

.about-story-card .hd-btn-primary {
    margin-top: var(--spacing-md);
}

.about-story-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--hd-icon-bg, rgba(120, 80, 255, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--hd-accent, var(--accent-primary));
    transition: background 0.5s ease, color 0.5s ease;
}

.about-story-icon svg {
    width: 24px;
    height: 24px;
}

/* Robot Framework logo styling */
.rf-logo-icon {
    background: transparent !important;
    width: 64px !important;
    height: 64px !important;
}

.rf-logo-svg {
    width: 64px !important;
    height: 64px !important;
    stroke: rgba(255, 255, 255, 0.75);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
    transition: all 0.4s ease;
}

.rf-card:hover .rf-logo-svg {
    stroke: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5))
           drop-shadow(0 0 20px rgba(255, 255, 255, 0.25))
           drop-shadow(0 0 40px rgba(255, 255, 255, 0.1));
}

/* One Identity logo styling */
.oi-logo-icon {
    background: transparent !important;
    width: 64px !important;
    height: 64px !important;
}

.oi-logo-svg {
    width: 64px !important;
    height: 64px !important;
    stroke: rgba(80, 160, 255, 0.8);
    filter: drop-shadow(0 0 4px rgba(80, 160, 255, 0.3));
    transition: all 0.4s ease;
}

.oi-card:hover .oi-logo-svg {
    stroke: rgba(80, 180, 255, 1);
    filter: drop-shadow(0 0 8px rgba(80, 160, 255, 0.6))
           drop-shadow(0 0 20px rgba(80, 160, 255, 0.35))
           drop-shadow(0 0 40px rgba(80, 160, 255, 0.15));
}

@media (max-width: 768px) {
    .about-story-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Hexagon Roadmap (Services)
   ========================================= */
.hex-roadmap-section {
    padding: var(--spacing-3xl) 0;
}

/* ---- Test Automation Showcase Tile ---- */
.ta-showcase-section {
    padding: var(--spacing-2xl, 3rem) 0 var(--spacing-xl);
}

.ta-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 280px;
    max-width: 900px;
    margin: 0 auto;
}

/* Scrolling code background */
.ta-code-scroll {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.ta-code {
    margin: 0;
    padding: var(--spacing-lg);
    font-family: var(--font-mono, 'Courier New', monospace);
    font-size: 0.78rem;
    line-height: 1.7;
    white-space: pre;
    animation: ta-scroll 25s linear infinite;
}

.ta-code code {
    display: block;
}

@keyframes ta-scroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* Syntax highlighting */
.ta-code .code-kw  { color: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.9); font-weight: 700; }
.ta-code .code-key { color: rgba(80, 200, 255, 0.85); }
.ta-code .code-var { color: rgba(130, 230, 150, 0.85); }
.ta-code .code-tc  { color: rgba(255, 200, 80, 0.85); font-weight: 600; }
.ta-code code      { color: rgba(255, 255, 255, 0.55); }

/* Fade edges */
.ta-code-scroll::before,
.ta-code-scroll::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 60px;
    z-index: 2;
    pointer-events: none;
}

.ta-code-scroll::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 25, 0.9), transparent);
}

.ta-code-scroll::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(10, 10, 25, 0.9), transparent);
}

/* Rotating gears overlay */
.ta-gears-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
}

.ta-gear {
    position: absolute;
    color: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.15);
}

.ta-gear-lg {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ta-spin 20s linear infinite;
}

.ta-gear-md {
    width: 120px;
    height: 120px;
    top: -10px;
    right: 60px;
    animation: ta-spin-rev 15s linear infinite;
}

.ta-gear-sm {
    width: 80px;
    height: 80px;
    bottom: -5px;
    left: 80px;
    animation: ta-spin 12s linear infinite;
}

@keyframes ta-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ta-spin-rev {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

/* Light mode adjustments */
.site-theme[data-theme="light"] .ta-code code {
    color: rgba(30, 30, 60, 0.5);
}

.site-theme[data-theme="light"] .ta-code-scroll::before {
    background: linear-gradient(to bottom, rgba(240, 235, 248, 0.9), transparent);
}

.site-theme[data-theme="light"] .ta-code-scroll::after {
    background: linear-gradient(to top, rgba(240, 235, 248, 0.9), transparent);
}

.site-theme[data-theme="light"] .ta-gear {
    color: rgba(var(--hd-accent-rgb), 0.1);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .ta-code code {
        color: rgba(30, 30, 60, 0.5);
    }
    .site-theme:not([data-theme="dark"]) .ta-code-scroll::before {
        background: linear-gradient(to bottom, rgba(240, 235, 248, 0.9), transparent);
    }
    .site-theme:not([data-theme="dark"]) .ta-code-scroll::after {
        background: linear-gradient(to top, rgba(240, 235, 248, 0.9), transparent);
    }
}

@media (max-width: 700px) {
    .ta-showcase {
        height: 220px;
    }
    .ta-gear-lg { width: 140px; height: 140px; }
    .ta-gear-md { width: 90px; height: 90px; }
    .ta-gear-sm { width: 60px; height: 60px; }
}

.hex-roadmap {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

/* Hidden, not needed in centered layout */
.hex-road-line {
    display: none;
}

/* 3-column grid: left-text | hex | right-text */
.hex-node {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: -20px; /* overlap hexagons to nearly touch */
    position: relative;
    z-index: 1;
}

.hex-node:hover {
    z-index: 3;
}

.hex-node:last-child {
    margin-bottom: 0;
}

/* Zigzag offset: odd left, even right */
.hex-node:nth-child(odd) .hex-shape {
    transform: translateX(-30px);
}

.hex-node:nth-child(even) .hex-shape {
    transform: translateX(30px);
}

/* Hexagon shape - centered column */
.hex-shape {
    position: relative;
    width: 120px;
    height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    z-index: 2;
    transition: transform 0.4s ease;
}

.hex-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Outer polygon - neon glow border */
.hex-svg .hex-outer {
    fill: none;
    stroke: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.5);
    stroke-width: 1.5;
    transition: all 0.4s ease;
    filter: drop-shadow(0 0 4px rgba(var(--hd-accent-rgb, 167, 139, 250), 0.4))
           drop-shadow(0 0 10px rgba(var(--hd-accent-rgb, 167, 139, 250), 0.25))
           drop-shadow(0 0 20px rgba(var(--hd-accent-rgb, 167, 139, 250), 0.12));
}

/* Inner polygon - glass fill + subtle border */
.hex-svg .hex-inner {
    fill: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.06);
    stroke: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.18);
    stroke-width: 1;
    transition: all 0.4s ease;
}

/* Glass look on hexagons */
.hex-shape::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    pointer-events: none;
    z-index: 3;
}

/* Glowing connection line between hexagons */
.hex-node::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -14px;
    transform: translateX(-50%);
    width: 60px;
    height: 28px;
    background: radial-gradient(
        ellipse at center,
        rgba(var(--hd-accent-rgb, 167, 139, 250), 0.7) 0%,
        rgba(var(--hd-accent-rgb, 167, 139, 250), 0.35) 30%,
        rgba(var(--hd-accent-rgb, 167, 139, 250), 0.1) 60%,
        transparent 80%
    );
    z-index: 4;
    pointer-events: none;
    filter: blur(3px);
}

.hex-node:last-child::after {
    display: none;
}

/* Hover glow intensifies */
.hex-node:hover .hex-svg .hex-outer {
    stroke: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.8);
    filter: drop-shadow(0 0 6px rgba(var(--hd-accent-rgb, 167, 139, 250), 0.6))
           drop-shadow(0 0 16px rgba(var(--hd-accent-rgb, 167, 139, 250), 0.4))
           drop-shadow(0 0 30px rgba(var(--hd-accent-rgb, 167, 139, 250), 0.2));
}

.hex-node:hover .hex-svg .hex-inner {
    fill: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.14);
    stroke: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.35);
}

.hex-icon {
    position: relative;
    z-index: 5;
    color: var(--hd-accent, #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-icon svg {
    width: 80px;
    height: 80px;
}

/* Content: text block */
.hex-content {
    padding: 0 var(--spacing-2xl, 3rem);
    min-width: 200px;
}

.hex-content h3 {
    color: var(--hd-text, var(--text-primary));
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    transition: color 0.5s ease;
}

.hex-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hex-items li {
    color: var(--hd-text-subtle, var(--text-muted));
    font-size: 0.85rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.hex-items li::before {
    content: '·';
    color: var(--hd-accent, #a78bfa);
    margin-right: 6px;
    font-weight: 700;
}

.hex-node.hex-alt .hex-items li::before {
    content: none;
}

.hex-node.hex-alt .hex-items li::after {
    content: ' ·';
    color: var(--hd-accent, #a78bfa);
    margin-left: 6px;
    font-weight: 700;
}

/* Default: content on the right (column 3) */
.hex-node .hex-content {
    grid-column: 3;
    text-align: left;
}

/* Alt: content on the left (column 1) */
.hex-node.hex-alt .hex-content {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.hex-node.hex-alt .hex-shape {
    grid-row: 1;
}

.hex-node.hex-alt .hex-items {
    justify-content: flex-end;
}

/* Light mode */
.site-theme[data-theme="light"] .hex-svg .hex-outer {
    stroke: rgba(var(--hd-accent-rgb), 0.35);
    filter: drop-shadow(0 0 3px rgba(var(--hd-accent-rgb), 0.2))
           drop-shadow(0 0 8px rgba(var(--hd-accent-rgb), 0.1));
}

.site-theme[data-theme="light"] .hex-svg .hex-inner {
    fill: rgba(var(--hd-accent-rgb), 0.05);
    stroke: rgba(var(--hd-accent-rgb), 0.15);
}

.site-theme[data-theme="light"] .hex-shape::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .hex-svg .hex-outer {
        stroke: rgba(var(--hd-accent-rgb), 0.35);
        filter: drop-shadow(0 0 3px rgba(var(--hd-accent-rgb), 0.2))
               drop-shadow(0 0 8px rgba(var(--hd-accent-rgb), 0.1));
    }

    .site-theme:not([data-theme="dark"]) .hex-svg .hex-inner {
        fill: rgba(var(--hd-accent-rgb), 0.05);
        stroke: rgba(var(--hd-accent-rgb), 0.15);
    }

    .site-theme:not([data-theme="dark"]) .hex-shape::before {
        background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.05) 100%);
    }
}

/* Responsive */
@media (max-width: 700px) {
    .hex-node,
    .hex-node.hex-alt {
        grid-template-columns: 1fr;
        text-align: center;
        margin-bottom: var(--spacing-lg);
        gap: var(--spacing-sm);
    }

    .hex-node .hex-content,
    .hex-node.hex-alt .hex-content {
        grid-column: 1;
        grid-row: auto;
        text-align: center;
    }

    .hex-node .hex-shape,
    .hex-node.hex-alt .hex-shape {
        grid-column: 1;
        grid-row: auto;
        margin: 0 auto;
        transform: none !important;
    }

    .hex-node.hex-alt .hex-items {
        justify-content: center;
    }

    .hex-items {
        justify-content: center;
    }

    .hex-node::after {
        display: none;
    }

    .hex-shape {
        width: 100px;
        height: 115px;
    }

    .hex-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* =========================================
   Experience Section
   ========================================= */
.experience-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.experience-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.experience-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 1.5rem;
}

.experience-card h3 {
    margin-bottom: var(--spacing-sm);
}

.experience-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Skills Section
   ========================================= */
.skills-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

.skill-category {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.skill-category h4 {
    margin-bottom: var(--spacing-md);
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Values Section
   ========================================= */
.values-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Values Cards */
.values-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.value-card {
    text-align: center;
    padding: var(--spacing-xl);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--hd-accent-rgb, 139,92,246), 0.3);
}

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

.value-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.value-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--hd-text, var(--text-primary));
}

.value-card p {
    color: var(--hd-text-muted, var(--text-secondary));
    font-size: 0.9rem;
    margin: 0;
}

.site-theme[data-theme="light"] .value-card,
.site-theme:not([data-theme="dark"]) .value-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.5) 100%);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
    .site-theme:not([data-theme="light"]) .value-card {
        background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
        border: 1px solid rgba(255,255,255,0.1);
        box-shadow: none;
    }
}

.site-theme[data-theme="dark"] .value-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none;
}

@media (max-width: 600px) {
    .values-cards {
        grid-template-columns: 1fr;
    }
}

/* Legacy values list support */
.values-list li .check {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.values-list li strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.values-list li p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 900px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .values-visual {
        order: -1;
    }
}

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

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

.cta-content h2 {
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

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

/* =========================================
   Services Overview Section
   ========================================= */
.services-overview {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.services-intro {
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Services Detailed Section
   ========================================= */
.services-detailed {
    padding: var(--spacing-2xl) 0;
    background: var(--bg-primary);
}

.service-detail {
    padding: var(--spacing-3xl) 0;
    border-bottom: 1px solid var(--border-color);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail.alt {
    background: var(--bg-secondary);
    margin: 0 calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.service-detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-detail-icon {
    width: 80px;
    height: 80px;
    background: rgba(33, 150, 243, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.service-detail-icon .code-symbol {
    font-size: 2rem;
    color: var(--brand-blue);
}

.service-detail-icon.purple {
    background: rgba(156, 39, 176, 0.1);
}

.service-detail-icon.purple .code-symbol {
    color: var(--brand-purple);
}

.service-detail-icon.green {
    background: rgba(76, 175, 80, 0.1);
}

.service-detail-icon.green .code-symbol {
    color: var(--brand-green);
}

.service-detail-icon.orange {
    background: rgba(255, 87, 34, 0.1);
}

.service-detail-icon.orange .code-symbol {
    color: var(--brand-orange);
}

/* Service Icon Row (icon + partner logo side by side) */
.service-icon-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.service-icon-row .service-detail-icon {
    margin-bottom: 0;
}

.service-logo {
    height: 65px;
    width: 65px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* AI Certification Badge */
.certification-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(0, 209, 178, 0.1);
    border: 1px solid rgba(0, 209, 178, 0.3);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    width: fit-content;
}

.certification-badge.header-badge {
    margin: var(--spacing-md) auto 0;
    padding: var(--spacing-sm) var(--spacing-md);
}

.certification-badge.header-badge .ai-certified-logo {
    height: 25px;
}

.certification-badge.header-badge span {
    font-size: 0.8rem;
}

.ai-certified-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.certification-badge span {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.95rem;
}

.skill-category.certification {
    grid-column: span 2;
}

.certification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.certification-badges .certification-badge {
    margin: 0;
}

.certification-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .skill-category.certification {
        grid-column: span 1;
    }

    .certification-badges {
        flex-direction: column;
    }
}

.service-detail h2 {
    margin-bottom: var(--spacing-md);
}

.service-lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.service-features .feature {
    display: flex;
    gap: var(--spacing-md);
}

.service-features .feature .check {
    color: var(--accent-green);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.service-features .feature strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.service-features .feature p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 600px) {
    .service-features {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Process Section
   ========================================= */
.process-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.process-step {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--spacing-md);
}

.process-step h3 {
    margin-bottom: var(--spacing-sm);
}

.process-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- Neon process cards ---- */
.neon-process {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 0;
    column-gap: 0;
}

.neon-process .process-step {
    --neon-rgb: 100, 160, 255;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 16px;
    border: 2px solid rgba(var(--neon-rgb), 0.5);
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 8px rgba(var(--neon-rgb), 0.15),
        0 0 20px rgba(var(--neon-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.neon-process .process-step:hover {
    border-color: rgba(var(--neon-rgb), 0.8);
    box-shadow:
        0 0 12px rgba(var(--neon-rgb), 0.3),
        0 0 30px rgba(var(--neon-rgb), 0.15),
        0 0 50px rgba(var(--neon-rgb), 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: translateY(-6px);
}

/* Neon color variants */
.neon-process .process-step.neon-blue  { --neon-rgb: 80, 140, 255; }
.neon-process .process-step.neon-green { --neon-rgb: 50, 205, 120; }
.neon-process .process-step.neon-lime  { --neon-rgb: 160, 220, 40; }
.neon-process .process-step.neon-orange { --neon-rgb: 255, 160, 40; }

/* Process icon */
.process-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--spacing-md);
    color: rgb(var(--neon-rgb));
    opacity: 0.9;
}

.process-icon svg {
    width: 100%;
    height: 100%;
}

/* Step number in neon color */
.neon-process .step-number {
    color: rgb(var(--neon-rgb));
    font-size: 1.6rem;
    margin-bottom: var(--spacing-xs);
}

.neon-process .process-step h3 {
    text-transform: uppercase;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
    color: rgb(var(--neon-rgb));
}

/* Process bullet list */
.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-list li {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.process-list li::before {
    content: '·';
    color: rgb(var(--neon-rgb));
    margin-right: 6px;
    font-weight: 700;
}

/* Arrow connectors between cards - three chevrons */
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 40px;
    flex-shrink: 0;
}

.process-arrow .chevron {
    --neon-rgb: 167, 139, 250;
    display: block;
    width: 10px;
    height: 18px;
    border-right: 2.5px solid rgb(var(--neon-rgb));
    border-bottom: 2.5px solid rgb(var(--neon-rgb));
    transform: rotate(-45deg);
    opacity: 0.7;
    filter: drop-shadow(0 0 4px rgba(var(--neon-rgb), 0.4));
}

.process-arrow .chevron.neon-blue  { --neon-rgb: 80, 140, 255; }
.process-arrow .chevron.neon-green { --neon-rgb: 50, 205, 120; }
.process-arrow .chevron.neon-lime  { --neon-rgb: 160, 220, 40; }
.process-arrow .chevron.neon-orange { --neon-rgb: 255, 160, 40; }

@media (max-width: 900px) {
    .process-grid,
    .neon-process {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-arrow {
        display: none;
    }
    .neon-process {
        gap: var(--spacing-lg);
    }
}

@media (max-width: 500px) {
    .process-grid,
    .neon-process {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Portfolio Section
   ========================================= */
.portfolio-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-blue), var(--brand-purple));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-2xl);
}

.timeline-marker {
    position: absolute;
    left: -33px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--brand-blue);
    border-radius: 50%;
    z-index: 1;
}

.timeline-marker.current {
    background: var(--brand-blue);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.2);
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.timeline-badge {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.timeline-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-secondary);
    margin-bottom: var(--spacing-md);
}

.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.timeline-tags.small {
    margin-top: var(--spacing-sm);
}

.timeline-tags.small .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Nested Timeline for Projects within Jobs */
.nested-timeline {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px dashed var(--border-color);
}

.nested-timeline-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    position: relative;
}

.nested-timeline-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.nested-timeline-marker {
    width: 10px;
    height: 10px;
    background: var(--brand-blue);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.nested-timeline-content {
    flex: 1;
}

.nested-date {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-primary);
    background: rgba(33, 150, 243, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.nested-timeline-content strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.nested-timeline-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Projects Section */
.projects-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.project-card h3 {
    margin-bottom: var(--spacing-sm);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
    line-height: 1.7;
}

.project-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.project-stats .stat {
    text-align: center;
}

.project-stats .stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
}

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

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-marker {
        left: -27px;
    }
}

/* Certifications Section */
.certifications-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.certification-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-normal);
}

.certification-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.certification-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.certification-card h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1rem;
}

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

.certification-card.featured {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(0, 209, 178, 0.05) 0%, rgba(0, 209, 178, 0.02) 100%);
}

.certification-card-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Fullscreen lightbox overlay for certificate images */
.cert-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.cert-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cert-lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cert-lightbox-overlay.active img {
    transform: scale(1);
}

.cert-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease;
    line-height: 1;
}

.cert-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Collaboration logos without zoom effect */
.collaboration-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: var(--spacing-sm);
}

.certification-date {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 500;
}

@media (max-width: 900px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Hobbies & Interests Section
   ========================================= */
.hobbies-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.hobby-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all 0.3s ease;
}

.hobby-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.hobby-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 80px;
}

.hobby-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: var(--spacing-md);
}

.hobby-card h4 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.hobby-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   Legal Pages (Privacy, Terms, Cookies)
   ========================================= */
.legal-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
}

.legal-block {
    margin-bottom: var(--spacing-2xl);
}

.legal-block h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--accent-primary);
    display: inline-block;
}

.legal-block h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.legal-block p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.legal-block p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.legal-list li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.legal-list li strong {
    color: var(--text-primary);
}

.legal-block a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-block a:hover {
    color: var(--brand-blue-dark);
    text-decoration: underline;
}

/* Cookie Notice Box */
.cookie-notice {
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
}

.cookie-notice p {
    margin: 0;
    color: var(--text-primary);
}

/* Cookie Table */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
    padding: var(--spacing-md);
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 600;
}

.cookie-table td {
    color: var(--text-secondary);
}

.cookie-table .no-cookies {
    text-align: center;
    font-style: italic;
    color: var(--text-muted);
}

/* Footer Legal Section */
.footer-legal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-legal h4 {
    color: var(--terminal-text);
    margin-bottom: 0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal ul li {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .footer-legal {
        flex-direction: column;
        align-items: start;
    }
    .footer-legal ul {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

.footer-legal ul li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-legal ul li a:hover {
    color: var(--accent-primary);
}

@media (max-width: 900px) {
    .legal-block h2 {
        font-size: 1.25rem;
    }

    .cookie-table {
        font-size: 0.8rem;
    }

    .cookie-table th,
    .cookie-table td {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 600px) {
    .cookie-table {
        display: block;
        overflow-x: auto;
    }
}

/* =========================================
   Cookie Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--terminal-bg);
    color: var(--terminal-text);
    padding: var(--spacing-lg) var(--spacing-xl);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform var(--transition-normal);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-text h4 {
    color: var(--accent-primary);
    margin-bottom: var(--spacing-xs);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.cookie-banner-text p {
    color: var(--terminal-text);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

.cookie-banner-text a {
    color: var(--accent-primary);
    text-decoration: none;
}

.cookie-banner-text a:hover {
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.cookie-banner .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: var(--spacing-md);
    }

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

    .cookie-banner-actions {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   Development / Game Showcase
   ========================================= */

.dev-intro-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.breadcrumb a {
    color: var(--accent-primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb .separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

/* Development Categories Grid */
.dev-categories-section {
    padding: var(--spacing-3xl) 0;
}
.dev-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.dev-category-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.dev-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}
.dev-category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
}
.dev-category-icon.web-icon {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-green);
}
.dev-category-icon svg {
    fill: currentColor;
}
.dev-category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.dev-category-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}
.dev-category-projects {
    margin-bottom: 1rem;
}
.dev-project-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
}
.dev-project-badge.coming-soon {
    background: rgba(255, 87, 34, 0.1);
    color: var(--brand-orange);
}
.dev-category-link {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}
.dev-category-card:hover .dev-category-link {
    text-decoration: underline;
}

/* Coming Soon Section */
.dev-coming-soon-section {
    padding: var(--spacing-3xl) 0;
}
.coming-soon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
}
.coming-soon-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--accent-primary);
}
.coming-soon-icon.web-icon {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-green);
}
.coming-soon-icon svg {
    fill: currentColor;
}
.coming-soon-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.coming-soon-card .service-tags {
    justify-content: center;
}
.web-project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-mono);
    transition: color 0.3s ease;
}
.web-project-link:hover {
    text-decoration: underline;
}

/* Responsive: Development Categories */
@media (max-width: 900px) {
    .dev-categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Game Showcase Section */
.game-showcase-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

/* Game Hero */
.game-hero {
    margin-bottom: var(--spacing-3xl);
}

.game-hero-content {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    border: 1px solid var(--border-color);
}

.game-logo-container {
    flex-shrink: 0;
}

.game-logo {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.app-store-btn {
    background: var(--accent-green);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
}

.app-store-btn:hover {
    background: var(--accent-green-dark, #1a9a5a);
    color: #fff;
}

.game-hero-info {
    flex: 1;
}

.game-status-badge {
    display: inline-block;
    background: var(--accent-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-md);
}

.game-hero-info h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.game-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.game-platform-badges {
    display: flex;
    gap: var(--spacing-sm);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--terminal-bg);
    color: var(--terminal-text);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.platform-badge svg {
    width: 16px;
    height: 16px;
}

/* Game Features Grid */
.game-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

.game-feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.game-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.game-feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.game-feature-card h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.game-feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* How to Play */
.game-howto {
    margin-bottom: var(--spacing-3xl);
}

/* Screenshots */
.game-screenshots {
    margin-bottom: var(--spacing-3xl);
}

.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.screenshot-gallery.single {
    grid-template-columns: 1fr;
}

.screenshot-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.screenshot-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Game Status Row (badge + TestFlight logo) */
.game-status-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.testflight-logo {
    height: 28px;
    width: auto;
    opacity: 0.85;
}

/* TestFlight Section */
.testflight-section {
    margin-bottom: var(--spacing-3xl);
}

.testflight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

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

.testflight-info {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
}

.testflight-card-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.testflight-info h4 {
    margin-bottom: var(--spacing-xs);
}

.testflight-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.testflight-form {
    width: 100%;
}

.testflight-input-group {
    display: flex;
    gap: var(--spacing-sm);
}

.testflight-input-group input[type="email"] {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.testflight-input-group input[type="email"]:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.testflight-input-group .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* Tech Stack */
.game-tech {
    margin-bottom: var(--spacing-2xl);
}

.game-tech-tags {
    margin-top: var(--spacing-md);
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.game-legal {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.legal-links {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    justify-content: center;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-link:hover {
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.legal-link-icon {
    font-size: 1.2rem;
}

/* Responsive - Game Showcase */
@media (max-width: 900px) {
    .game-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .game-status-row {
        justify-content: center;
    }

    .game-platform-badges {
        justify-content: center;
    }

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

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

    .testflight-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .game-features-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .game-logo {
        width: 140px;
        height: 140px;
    }

    .testflight-input-group {
        flex-direction: column;
    }

    .testflight-input-group .btn {
        width: 100%;
    }
}

/* =========================================
   Homepage Redesign - Dark Modern Theme
   ========================================= */

/* --- Nav & Footer for redesign (handled by CSS variables in base rules) --- */

.site-theme .footer {
    background: var(--hd-footer-bg, #08081a);
    border-top: 1px solid rgba(var(--hd-accent-rgb, 167, 139, 250), 0.1);
    transition: background 0.5s ease;
}

.site-theme .footer-bottom {
    border-top-color: rgba(var(--hd-accent-rgb, 167, 139, 250), 0.1);
}

.site-theme .footer-tagline {
    color: var(--hd-accent, #a78bfa);
}

/* Nav colors now handled by CSS variables in theme definitions */

/* Override base CSS variables for site theme */
.site-theme {
    --bg-primary: rgba(255, 255, 255, 0.06);
    --bg-secondary: rgba(255, 255, 255, 0.04);
    --bg-tertiary: rgba(255, 255, 255, 0.08);
    --bg-card: rgba(255, 255, 255, 0.06);
    --text-primary: var(--hd-text);
    --text-secondary: var(--hd-text-muted);
    --text-muted: var(--hd-text-subtle);
    --border-color: var(--hd-glass-border);
    --border-dark: var(--hd-glass-border);
    --accent-primary: var(--hd-accent);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Theme variables - Dark (default) */
.site-theme {
    --hd-bg-1: #08081a;
    --hd-bg-2: #0d0d2a;
    --hd-bg-3: #121230;
    --hd-orb-opacity: 1;
    --hd-text: #ffffff;
    --hd-text-muted: rgba(255, 255, 255, 0.6);
    --hd-text-subtle: rgba(255, 255, 255, 0.5);
    --hd-text-faint: rgba(255, 255, 255, 0.4);
    --hd-accent: #a78bfa;
    --hd-accent-rgb: 167, 139, 250;
    --hd-glass-bg: rgba(255, 255, 255, 0.04);
    --hd-glass-hover: rgba(255, 255, 255, 0.07);
    --hd-glass-border: rgba(255, 255, 255, 0.08);
    --hd-glass-hover-border: rgba(167, 139, 250, 0.3);
    --hd-icon-bg: rgba(120, 80, 255, 0.15);
    --hd-tag-bg: rgba(120, 80, 255, 0.1);
    --hd-tag-border: rgba(120, 80, 255, 0.2);
    --hd-btn-primary-bg: linear-gradient(135deg, #7c3aed, #6366f1);
    --hd-btn-primary-hover: linear-gradient(135deg, #6d28d9, #4f46e5);
    --hd-code-bg: rgba(120, 80, 255, 0.1);
    --hd-code-border: rgba(255, 255, 255, 0.06);
    --hd-watermark-filter: brightness(0) invert(1);
    --hd-watermark-opacity: 0.03;
    --hd-logo-filter: brightness(0) invert(1);
    --hd-logo-opacity: 0.9;
    --hd-nav-bg: rgba(8, 8, 20, 0.4);
    --hd-nav-scrolled-bg: rgba(8, 8, 20, 0.9);
    --hd-footer-bg: #08081a;
    --hd-grid-dot: rgba(120, 80, 255, 0.03);
    --hd-shadow: rgba(0, 0, 0, 0.2);
    --hd-cta-bg: rgba(120, 80, 255, 0.06);
    --hd-cta-border: rgba(120, 80, 255, 0.15);
    --hd-check-color: #a78bfa;
}

/* Theme variables - Light + base overrides */
.site-theme[data-theme="light"] {
    --bg-primary: rgba(255, 255, 255, 0.45);
    --bg-secondary: rgba(255, 255, 255, 0.35);
    --bg-tertiary: rgba(255, 255, 255, 0.4);
    --bg-card: rgba(255, 255, 255, 0.45);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.7);
    --text-muted: rgba(26, 26, 46, 0.55);
    --border-color: rgba(255, 255, 255, 0.5);
    --border-dark: rgba(124, 58, 237, 0.2);
    --accent-primary: #7c3aed;
    --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.05);
    --shadow-md: 0 4px 6px rgba(124, 58, 237, 0.06);
    --shadow-lg: 0 10px 25px rgba(124, 58, 237, 0.08);
    --hd-bg-1: #eee8f5;
    --hd-bg-2: #e0d4f5;
    --hd-bg-3: #d5caf0;
    --hd-orb-opacity: 0.6;
    --hd-text: #1a1a2e;
    --hd-text-muted: rgba(26, 26, 46, 0.7);
    --hd-text-subtle: rgba(26, 26, 46, 0.55);
    --hd-text-faint: rgba(26, 26, 46, 0.45);
    --hd-accent: #7c3aed;
    --hd-accent-rgb: 124, 58, 237;
    --hd-glass-bg: rgba(255, 255, 255, 0.55);
    --hd-glass-hover: rgba(255, 255, 255, 0.75);
    --hd-glass-border: rgba(255, 255, 255, 0.6);
    --hd-glass-hover-border: rgba(124, 58, 237, 0.35);
    --hd-icon-bg: rgba(124, 58, 237, 0.12);
    --hd-tag-bg: rgba(124, 58, 237, 0.08);
    --hd-tag-border: rgba(124, 58, 237, 0.18);
    --hd-btn-primary-bg: linear-gradient(135deg, #7c3aed, #6366f1);
    --hd-btn-primary-hover: linear-gradient(135deg, #6d28d9, #4f46e5);
    --hd-code-bg: rgba(124, 58, 237, 0.06);
    --hd-code-border: rgba(124, 58, 237, 0.1);
    --hd-watermark-filter: none;
    --hd-watermark-opacity: 0.04;
    --hd-logo-filter: none;
    --hd-logo-opacity: 1;
    --hd-nav-bg: rgba(238, 232, 245, 0.5);
    --hd-nav-scrolled-bg: rgba(238, 232, 245, 0.95);
    --hd-footer-bg: #e0d4f5;
    --hd-grid-dot: rgba(124, 58, 237, 0.04);
    --hd-shadow: rgba(124, 58, 237, 0.08);
    --hd-cta-bg: rgba(124, 58, 237, 0.06);
    --hd-cta-border: rgba(124, 58, 237, 0.15);
    --hd-check-color: #7c3aed;
}

/* Auto-detect light preference */
@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) {
        --bg-primary: transparent;
        --bg-secondary: transparent;
        --bg-tertiary: transparent;
        --bg-card: transparent;
        --text-primary: #1a1a2e;
        --text-secondary: rgba(26, 26, 46, 0.7);
        --text-muted: rgba(26, 26, 46, 0.55);
        --border-color: rgba(255, 255, 255, 0.5);
        --border-dark: rgba(124, 58, 237, 0.2);
        --accent-primary: #7c3aed;
        --shadow-sm: 0 1px 3px rgba(124, 58, 237, 0.05);
        --shadow-md: 0 4px 6px rgba(124, 58, 237, 0.06);
        --shadow-lg: 0 10px 25px rgba(124, 58, 237, 0.08);
        --hd-bg-1: #eee8f5;
        --hd-bg-2: #e0d4f5;
        --hd-bg-3: #d5caf0;
        --hd-orb-opacity: 0.6;
        --hd-text: #1a1a2e;
        --hd-text-muted: rgba(26, 26, 46, 0.7);
        --hd-text-subtle: rgba(26, 26, 46, 0.55);
        --hd-text-faint: rgba(26, 26, 46, 0.45);
        --hd-accent: #7c3aed;
        --hd-accent-rgb: 124, 58, 237;
        --hd-glass-bg: rgba(255, 255, 255, 0.55);
        --hd-glass-hover: rgba(255, 255, 255, 0.75);
        --hd-glass-border: rgba(255, 255, 255, 0.6);
        --hd-glass-hover-border: rgba(124, 58, 237, 0.35);
        --hd-icon-bg: rgba(124, 58, 237, 0.12);
        --hd-tag-bg: rgba(124, 58, 237, 0.08);
        --hd-tag-border: rgba(124, 58, 237, 0.18);
        --hd-btn-primary-bg: linear-gradient(135deg, #7c3aed, #6366f1);
        --hd-btn-primary-hover: linear-gradient(135deg, #6d28d9, #4f46e5);
        --hd-code-bg: rgba(124, 58, 237, 0.06);
        --hd-code-border: rgba(124, 58, 237, 0.1);
        --hd-watermark-filter: none;
        --hd-watermark-opacity: 0.04;
        --hd-logo-filter: none;
        --hd-logo-opacity: 1;
        --hd-nav-bg: rgba(238, 232, 245, 0.5);
        --hd-nav-scrolled-bg: rgba(238, 232, 245, 0.95);
        --hd-footer-bg: #e0d4f5;
        --hd-grid-dot: rgba(124, 58, 237, 0.04);
        --hd-shadow: rgba(124, 58, 237, 0.08);
        --hd-cta-bg: rgba(124, 58, 237, 0.06);
        --hd-cta-border: rgba(124, 58, 237, 0.15);
        --hd-check-color: #7c3aed;
    }
}

/* Theme toggle button */
.hd-theme-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hd-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hd-glass-border);
    color: var(--hd-accent);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--hd-shadow);
}

.hd-theme-toggle:hover {
    background: var(--hd-glass-hover);
    border-color: var(--hd-glass-hover-border);
    transform: scale(1.1);
}

/* Sun icon (shown in dark mode) */
.hd-toggle-sun { display: inline; }
.hd-toggle-moon { display: none; }

/* Moon icon (shown in light mode) */
.site-theme[data-theme="light"] .hd-toggle-sun { display: none; }
.site-theme[data-theme="light"] .hd-toggle-moon { display: inline; }

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .hd-toggle-sun { display: none; }
    .site-theme:not([data-theme="dark"]) .hd-toggle-moon { display: inline; }
}

/* Dark background with layered gradients - now using variables */
.hd-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 20%, rgba(var(--hd-accent-rgb), 0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(var(--hd-accent-rgb), 0.15) 0%, transparent 50%),
                linear-gradient(180deg, var(--hd-bg-1) 0%, var(--hd-bg-2) 40%, var(--hd-bg-3) 70%, var(--hd-bg-1) 100%);
    z-index: -10;
    pointer-events: none;
    transition: background 0.5s ease;
}

/* Logo watermark */
.hd-logo-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    opacity: var(--hd-watermark-opacity);
    z-index: -9;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.hd-logo-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: var(--hd-watermark-filter);
    transition: filter 0.5s ease;
}

/* Glowing orbs */
.hd-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    pointer-events: none;
    overflow: hidden;
}

.hd-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(var(--hd-blur, 60px));
    opacity: var(--hd-opacity, 0.15);
    animation: hd-orb-move var(--hd-speed, 20s) ease-in-out infinite;
    animation-delay: var(--hd-delay, 0s);
    top: var(--hd-y, 50%);
    left: var(--hd-x, 50%);
    width: var(--hd-size, 200px);
    height: var(--hd-size, 200px);
    background: var(--hd-color, rgba(120, 80, 255, 0.5));
}

@keyframes hd-orb-move {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(25px, 15px) scale(1.02); }
}

/* Subtle grid */
.hd-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--hd-grid-dot) 1px, transparent 1px);
    background-size: 35px 35px;
}

/* Orbs opacity control */
.hd-orbs {
    opacity: var(--hd-orb-opacity);
    transition: opacity 0.5s ease;
}

/* Theme overrides */
.site-theme .page-header {
    background: transparent;
    border-bottom: none;
    min-height: auto;
    padding: calc(80px + var(--spacing-xl)) 0 0;
}

.site-theme .page-header::before {
    display: none;
}

.site-theme .page-header-logo {
    filter: var(--hd-logo-filter);
    opacity: var(--hd-logo-opacity);
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* Hero section */
.hd-hero {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
    text-align: left;
}

.hd-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hd-hero-content {
    max-width: none;
    margin: 0;
}

.hd-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--hd-text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    transition: color 0.5s ease;
}

.hd-hero h1 span {
    background: linear-gradient(135deg, #a78bfa, #6366f1, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hd-hero h2 {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--hd-text-subtle);
    margin-bottom: var(--spacing-lg);
    transition: color 0.5s ease;
}

.hd-hero p {
    color: var(--hd-text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    transition: color 0.5s ease;
}

.hd-hero .hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Glass cards */
.hd-glass {
    background: var(--hd-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hd-glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.hd-glass:hover {
    background: var(--hd-glass-hover);
    border-color: var(--hd-glass-hover-border);
    box-shadow: 0 8px 32px var(--hd-shadow), 0 0 20px rgba(var(--hd-accent-rgb), 0.06);
    transform: translateY(-4px);
}

/* Stats section */
.hd-stats {
    padding: var(--spacing-3xl) 0;
}

.hd-stats-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: none;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .hd-stats-grid {
        flex-wrap: wrap;
    }

    .hd-stat {
        flex: 1 1 calc(50% - var(--spacing-md));
    }
}

.hd-stat {
    flex: 1;
    max-width: 280px;
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.06) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Glass top highlight */
.hd-stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* Light mode stat glass */
.site-theme[data-theme="light"] .hd-stat {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 4px 15px rgba(124, 58, 237, 0.05);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .hd-stat {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.5) 100%
        ) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            0 4px 15px rgba(124, 58, 237, 0.05);
    }
}

.hd-stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #a78bfa, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-xs);
}

.hd-stat-label {
    color: var(--hd-text-subtle);
    font-size: clamp(0.6rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.5s ease;
    word-break: break-word;
    hyphens: auto;
}

/* Services section */
.hd-services {
    padding: var(--spacing-3xl) 0;
}

.hd-section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.hd-section-label {
    color: var(--hd-accent);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
}

.hd-section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--hd-text);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    transition: color 0.5s ease;
}

.hd-section-sub {
    color: var(--hd-text-subtle);
    max-width: 500px;
    margin: 0 auto;
}

.hd-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.hd-service-card {
    padding: var(--spacing-xl);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.06) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Glass reflection shine */
.hd-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 100%
    );
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.hd-service-card:hover::before {
    left: 125%;
}

/* Glass edge highlight */
.hd-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 70%,
        transparent 100%
    );
    pointer-events: none;
}

.hd-service-card:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(var(--hd-accent-rgb), 0.08) !important;
    border-color: rgba(var(--hd-accent-rgb), 0.25) !important;
}

/* Light mode glass adjustments */
.site-theme[data-theme="light"] .hd-service-card {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3),
        0 4px 20px rgba(124, 58, 237, 0.06);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .hd-service-card {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.5) 100%
        ) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(255, 255, 255, 0.3),
            0 4px 20px rgba(124, 58, 237, 0.06);
    }
}

.hd-service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--hd-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: var(--hd-accent);
    transition: background 0.5s ease, color 0.5s ease;
}

.hd-service-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.hd-service-card h3 {
    color: var(--hd-text);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-sm);
    transition: color 0.5s ease;
}

.hd-service-card p {
    color: var(--hd-text-subtle);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.hd-service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.hd-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--hd-tag-bg);
    color: var(--hd-accent);
    border: 1px solid var(--hd-tag-border);
    transition: all 0.5s ease;
}

/* About preview */
.hd-about {
    padding: var(--spacing-3xl) 0;
}

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

.hd-about-content h2 {
    color: var(--hd-text);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.hd-about-content h2 span {
    color: var(--hd-accent);
}

.hd-about-content p {
    color: var(--hd-text-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.hd-about-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.hd-about-list li {
    color: var(--hd-text-muted);
    padding: var(--spacing-sm) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.hd-about-list li .check {
    color: var(--hd-check-color);
    font-weight: bold;
}

/* Code block in about section */
.hd-code-block {
    padding: 0;
    overflow: hidden;
}

.hd-code-header {
    background: var(--hd-code-bg);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-bottom: 1px solid var(--hd-code-border);
    transition: background 0.5s ease;
}

.hd-code-header span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--hd-text-subtle);
}

.hd-code-body {
    padding: var(--spacing-lg);
}

.hd-code-body pre {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--hd-text-muted);
    margin: 0;
    overflow-x: auto;
}

.hd-code-body .keyword { color: #c586c0; }
.hd-code-body .property { color: #9cdcfe; }
.hd-code-body .string { color: #ce9178; }
.hd-code-body .number { color: #b5cea8; }
.hd-code-body .method { color: #dcdcaa; }

/* CTA */
.hd-cta {
    padding: var(--spacing-3xl) 0;
    text-align: center;
}

.hd-cta-card {
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--hd-cta-bg);
    border: 1px solid var(--hd-cta-border);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.hd-cta-card h2 {
    color: var(--hd-text);
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
    transition: color 0.5s ease;
}

.hd-cta-card p {
    color: var(--hd-text-muted);
    margin-bottom: var(--spacing-xl);
}

/* Buttons in dark theme */
.hd-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 28px;
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.hd-btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    box-shadow: 0 4px 20px rgba(120, 80, 255, 0.3);
    transform: translateY(-2px);
    color: #ffffff;
}

.site-theme[data-theme="light"] .hd-btn-primary {
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}

.hd-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 28px;
    background: transparent;
    color: var(--hd-text-muted);
    border: 1px solid var(--hd-glass-border);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.site-theme[data-theme="light"] .hd-btn-secondary {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.6);
    border-color: rgba(124, 58, 237, 0.7);
}

.hd-btn-secondary:hover {
    border-color: var(--hd-glass-hover-border);
    color: var(--hd-accent);
    background: var(--hd-tag-bg);
}

/* AI badge */
.hd-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 16px;
    background: var(--hd-tag-bg);
    border: 1px solid var(--hd-tag-border);
    border-radius: 20px;
    color: var(--hd-accent);
    font-size: 0.8rem;
    margin-bottom: var(--spacing-lg);
    transition: all 0.5s ease;
}

/* Hero visual card */
.hero-visual {
    position: relative;
}

.hero-visual-card {
    background: var(--hd-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--hd-glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero-visual-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.2) 30%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.2) 70%, transparent 100%);
    pointer-events: none;
}

.hero-visual-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.hero-mini-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.hero-mini-card:hover {
    border-color: rgba(var(--hd-accent-rgb), 0.3);
    transform: translateY(-2px);
}

.hero-mini-card .mini-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--hd-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-sm);
    color: var(--hd-accent);
}

.hero-mini-card .mini-icon svg {
    width: 20px; height: 20px; fill: currentColor;
}

.hero-mini-card .mini-label {
    font-size: 0.75rem;
    color: var(--hd-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-mini-card .mini-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hd-text);
    margin-top: 2px;
    transition: color 0.5s ease;
}

/* Light mode hero visual */
.site-theme[data-theme="light"] .hero-visual-card {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.5);
}

.site-theme[data-theme="light"] .hero-mini-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.25) 100%);
    border-color: rgba(255,255,255,0.4);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .hero-visual-card {
        background: rgba(255,255,255,0.4);
        border-color: rgba(255,255,255,0.5);
    }

    .site-theme:not([data-theme="dark"]) .hero-mini-card {
        background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.25) 100%);
        border-color: rgba(255,255,255,0.4);
    }
}

/* Section dividers */
.section-divider {
    max-width: 1340px;
    margin: 0 auto;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--hd-accent-rgb), 0.15) 20%,
        rgba(var(--hd-accent-rgb), 0.25) 50%,
        rgba(var(--hd-accent-rgb), 0.15) 80%,
        transparent 100%
    );
}

/* Bento grid: featured cards */
.hd-service-card.featured-lg {
    padding: var(--spacing-2xl);
}

.hd-service-card.featured-lg:nth-child(1) {
    grid-column: 1 / 2;
}

.hd-service-card.featured-lg:nth-child(2) {
    grid-column: 2 / 4;
}

.hd-service-card.featured-lg .hd-service-icon {
    width: 56px;
    height: 56px;
}

.hd-service-card.featured-lg .hd-service-icon svg {
    width: 28px;
    height: 28px;
}

.hd-service-card.featured-lg h3 {
    font-size: 1.3rem;
}

.hd-service-card.featured-wide {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--spacing-xl);
    text-align: left;
}

.hd-service-card.featured-wide .hd-service-icon {
    margin-bottom: 0;
}

.hd-service-card.featured-wide p {
    margin-bottom: 0;
}

.hd-service-card.featured-wide .hd-service-tags {
    justify-content: flex-end;
}

/* CTA gradient border */
.hd-cta-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    background: linear-gradient(135deg, rgba(var(--hd-accent-rgb), 0.3), transparent 40%, transparent 60%, rgba(var(--hd-accent-rgb), 0.2));
    border-radius: inherit;
    z-index: -1;
}

.hd-cta-card {
    position: relative;
    overflow: hidden;
}

/* Scroll reveal animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children > .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .fade-up:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .fade-up:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .fade-up:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .fade-up:nth-child(5) { transition-delay: 320ms; }
.stagger-children > .fade-up:nth-child(6) { transition-delay: 400ms; }

/* Responsive */
@media (max-width: 968px) {
    .hd-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hd-hero .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hd-services-grid {
        grid-template-columns: 1fr;
    }

    .hd-service-card.featured-lg:nth-child(2) {
        grid-column: 1;
    }

    .hd-service-card.featured-wide {
        grid-column: 1;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hd-service-card.featured-wide .hd-service-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hd-about-grid {
        grid-template-columns: 1fr;
    }

    .hd-logo-watermark {
        width: 300px;
        height: 300px;
    }
}

/* Hide site-theme decorations only on game-specific themed pages */
.site-theme:has(.nf-theme) .hd-bg,
.site-theme:has(.nf-theme) .hd-logo-watermark,
.site-theme:has(.nf-theme) .hd-orbs,
.site-theme:has(.gg-theme) .hd-bg,
.site-theme:has(.gg-theme) .hd-logo-watermark,
.site-theme:has(.gg-theme) .hd-orbs {
    display: none;
}

/* Hide toggle only on game-specific themed pages */
.site-theme:has(.nf-theme) .hd-theme-toggle,
.site-theme:has(.gg-theme) .hd-theme-toggle {
    display: none;
}

/* Make site-theme sections transparent for pages using it */
.site-theme .page-header {
    background: transparent;
    border-bottom: none;
}

.site-theme .page-header::before {
    display: none;
}

.site-theme .page-header h1 {
    color: var(--hd-text);
    transition: color 0.5s ease;
}

.site-theme .page-header .tagline {
    color: var(--hd-text-muted);
    transition: color 0.5s ease;
}

.site-theme .hero,
.site-theme .stats-section,
.site-theme .services-preview,
.site-theme .about-preview {
    background: transparent;
}

/* Glass effect for existing cards in site theme */
.site-theme .service-card {
    background: var(--hd-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hd-glass-border);
    transition: all 0.3s ease;
}

.site-theme .service-card:hover {
    background: var(--hd-glass-hover);
    border-color: var(--hd-glass-hover-border);
    transform: translateY(-4px);
}

.site-theme .service-card h3,
.site-theme .hero h1,
.site-theme .hero .subtitle {
    color: var(--hd-text);
    transition: color 0.5s ease;
}

.site-theme .service-card p,
.site-theme .hero .tagline {
    color: var(--hd-text-muted);
    transition: color 0.5s ease;
}

.site-theme .stat-card {
    background: var(--hd-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hd-glass-border);
}

.site-theme .stat-label {
    color: var(--hd-text-subtle);
}

.site-theme .about-content h2 {
    color: var(--hd-text);
    transition: color 0.5s ease;
}

.site-theme .about-content .accent {
    color: var(--hd-accent);
}

.site-theme .about-content p {
    color: var(--hd-text-muted);
}

.site-theme .skills-list li {
    color: var(--hd-text-muted);
}

.site-theme .skills-list .check {
    color: var(--hd-accent);
}

.site-theme .code-block {
    background: var(--hd-glass-bg);
    border: 1px solid var(--hd-glass-border);
}

.site-theme .section-header h2 {
    color: var(--hd-text);
    transition: color 0.5s ease;
}

.site-theme .section-header p {
    color: var(--hd-text-muted);
}

.site-theme .section-tag {
    color: var(--hd-accent);
}

.site-theme .breadcrumb a,
.site-theme .breadcrumb .separator {
    color: var(--hd-text-faint);
}

/* =========================================
   Site Theme - Global Page Overrides
   Make all existing page content work with dark/light theme
   ========================================= */

/* --- General text colors --- */
.site-theme h1, .site-theme h2, .site-theme h3, .site-theme h4 {
    color: var(--hd-text);
    transition: color 0.5s ease;
}

.site-theme p, .site-theme li, .site-theme td, .site-theme th {
    color: var(--hd-text-muted);
    transition: color 0.5s ease;
}

.site-theme a {
    color: var(--hd-accent);
}

.site-theme .accent {
    color: var(--hd-accent) !important;
}

/* --- Sections --- */
.site-theme .about-preview,
.site-theme .experience-section,
.site-theme .skills-section,
.site-theme .values-section,
.site-theme .certifications-section,
.site-theme .hobbies-section,
.site-theme .portfolio-section,
.site-theme .projects-section,
.site-theme .services-preview,
.site-theme .services-overview,
.site-theme .services-detailed,
.site-theme .process-section,
.site-theme .contact-section,
.site-theme .dev-intro-section,
.site-theme .dev-categories-section,
.site-theme .game-showcase-section,
.site-theme .stats-section {
    background: transparent;
}

.site-theme .cta-section {
    background: var(--hd-cta-bg);
    border-top: 1px solid var(--hd-glass-border);
}

/* --- Universal glass look for ALL card-like elements --- */
/* Same style as index page hd-service-card */

.site-theme .stat-card,
.site-theme .service-card,
.site-theme .experience-card,
.site-theme .skill-category,
.site-theme .certification-card,
.site-theme .certification-badge,
.site-theme .hobby-card,
.site-theme .project-card,
.site-theme .contact-card,
.site-theme .contact-info,
.site-theme .contact-info-compact,
.site-theme .contact-form,
.site-theme .service-detail,
.site-theme .coming-soon-card,
.site-theme .dev-category-card,
.site-theme .game-hero,
.site-theme .game-hero-content,
.site-theme .game-feature-card,
.site-theme .process-step,
.site-theme .game-screenshots,
.site-theme .game-tech,
.site-theme .game-legal,
.site-theme .values-content,
.site-theme .values-visual .code-block,
.site-theme .about-visual .code-block,
.site-theme .about-content,
.site-theme .timeline-content,
.site-theme .wd-project-info {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.06) 100%
    ) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: var(--radius-lg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Glass reflection shine on top edge */
.site-theme .stat-card::after,
.site-theme .service-card::after,
.site-theme .experience-card::after,
.site-theme .skill-category::after,
.site-theme .certification-card::after,
.site-theme .hobby-card::after,
.site-theme .project-card::after,
.site-theme .contact-card::after,
.site-theme .service-detail::after,
.site-theme .dev-category-card::after,
.site-theme .game-feature-card::after,
.site-theme .process-step::after,
.site-theme .about-content::after,
.site-theme .timeline-content::after,
.site-theme .values-content::after,
.site-theme .contact-form::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 70%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Hover shine animation - light sweeps across */
.site-theme .stat-card::before,
.site-theme .service-card::before,
.site-theme .experience-card::before,
.site-theme .skill-category::before,
.site-theme .certification-card::before,
.site-theme .hobby-card::before,
.site-theme .project-card::before,
.site-theme .service-detail::before,
.site-theme .dev-category-card::before,
.site-theme .game-feature-card::before,
.site-theme .process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.06) 45%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 55%,
        transparent 100%
    );
    transform: skewX(-15deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.site-theme .stat-card:hover::before,
.site-theme .service-card:hover::before,
.site-theme .experience-card:hover::before,
.site-theme .skill-category:hover::before,
.site-theme .certification-card:hover::before,
.site-theme .hobby-card:hover::before,
.site-theme .project-card:hover::before,
.site-theme .service-detail:hover::before,
.site-theme .dev-category-card:hover::before,
.site-theme .game-feature-card:hover::before,
.site-theme .process-step:hover::before {
    left: 125%;
}

/* Hover glow */
.site-theme .stat-card:hover,
.site-theme .service-card:hover,
.site-theme .experience-card:hover,
.site-theme .skill-category:hover,
.site-theme .certification-card:hover,
.site-theme .hobby-card:hover,
.site-theme .project-card:hover,
.site-theme .service-detail:hover,
.site-theme .dev-category-card:hover,
.site-theme .game-feature-card:hover,
.site-theme .process-step:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.1) 100%
    ) !important;
    border-color: rgba(var(--hd-accent-rgb), 0.25) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.08),
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(var(--hd-accent-rgb), 0.08) !important;
    transform: translateY(-4px);
}

/* Neon process overrides - keep neon border colors instead of generic glass */
.site-theme .neon-process .process-step {
    border: 2px solid rgba(var(--neon-rgb), 0.5) !important;
    box-shadow:
        0 0 8px rgba(var(--neon-rgb), 0.15),
        0 0 20px rgba(var(--neon-rgb), 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.site-theme .neon-process .process-step:hover {
    border-color: rgba(var(--neon-rgb), 0.8) !important;
    box-shadow:
        0 0 12px rgba(var(--neon-rgb), 0.3),
        0 0 30px rgba(var(--neon-rgb), 0.15),
        0 0 50px rgba(var(--neon-rgb), 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-6px);
}

/* Neon process ::after - top edge glow in neon color */
.site-theme .neon-process .process-step::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--neon-rgb), 0.25) 30%,
        rgba(var(--neon-rgb), 0.4) 50%,
        rgba(var(--neon-rgb), 0.25) 70%,
        transparent 100%
    );
}

/* Light mode glass - all elements */
.site-theme[data-theme="light"] .stat-card,
.site-theme[data-theme="light"] .service-card,
.site-theme[data-theme="light"] .experience-card,
.site-theme[data-theme="light"] .skill-category,
.site-theme[data-theme="light"] .certification-card,
.site-theme[data-theme="light"] .certification-badge,
.site-theme[data-theme="light"] .hobby-card,
.site-theme[data-theme="light"] .project-card,
.site-theme[data-theme="light"] .contact-card,
.site-theme[data-theme="light"] .contact-info,
.site-theme[data-theme="light"] .contact-form,
.site-theme[data-theme="light"] .service-detail,
.site-theme[data-theme="light"] .coming-soon-card,
.site-theme[data-theme="light"] .dev-category-card,
.site-theme[data-theme="light"] .game-hero,
.site-theme[data-theme="light"] .game-hero-content,
.site-theme[data-theme="light"] .game-feature-card,
.site-theme[data-theme="light"] .process-step,
.site-theme[data-theme="light"] .game-screenshots,
.site-theme[data-theme="light"] .game-tech,
.site-theme[data-theme="light"] .values-content,
.site-theme[data-theme="light"] .values-visual .code-block,
.site-theme[data-theme="light"] .about-content,
.site-theme[data-theme="light"] .stat-card,
.site-theme[data-theme="light"] .timeline-content,
.site-theme[data-theme="light"] .contact-form,
.site-theme[data-theme="light"] .wd-project-info {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3),
        0 4px 20px rgba(124, 58, 237, 0.06);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .stat-card,
    .site-theme:not([data-theme="dark"]) .service-card,
    .site-theme:not([data-theme="dark"]) .experience-card,
    .site-theme:not([data-theme="dark"]) .skill-category,
    .site-theme:not([data-theme="dark"]) .certification-card,
    .site-theme:not([data-theme="dark"]) .certification-badge,
    .site-theme:not([data-theme="dark"]) .hobby-card,
    .site-theme:not([data-theme="dark"]) .project-card,
    .site-theme:not([data-theme="dark"]) .contact-card,
    .site-theme:not([data-theme="dark"]) .contact-info,
    .site-theme:not([data-theme="dark"]) .contact-form,
    .site-theme:not([data-theme="dark"]) .service-detail,
    .site-theme:not([data-theme="dark"]) .dev-category-card,
    .site-theme:not([data-theme="dark"]) .game-hero,
    .site-theme:not([data-theme="dark"]) .game-feature-card,
    .site-theme:not([data-theme="dark"]) .process-step,
    .site-theme:not([data-theme="dark"]) .values-content,
    .site-theme:not([data-theme="dark"]) .about-content,
    .site-theme:not([data-theme="dark"]) .stat-card,
    .site-theme:not([data-theme="dark"]) .timeline-content,
    .site-theme:not([data-theme="dark"]) .wd-project-info {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.5) 100%
        ) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.6),
            inset 0 -1px 0 rgba(255, 255, 255, 0.3),
            0 4px 20px rgba(124, 58, 237, 0.06);
    }
}

/* Neon process light mode - keep neon borders */
.site-theme[data-theme="light"] .neon-process .process-step {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 100%
    ) !important;
    border: 2px solid rgba(var(--neon-rgb), 0.4) !important;
    box-shadow:
        0 0 6px rgba(var(--neon-rgb), 0.1),
        0 0 16px rgba(var(--neon-rgb), 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.site-theme[data-theme="light"] .neon-process .process-step:hover {
    border-color: rgba(var(--neon-rgb), 0.7) !important;
    box-shadow:
        0 0 10px rgba(var(--neon-rgb), 0.2),
        0 0 25px rgba(var(--neon-rgb), 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .neon-process .process-step {
        border: 2px solid rgba(var(--neon-rgb), 0.4) !important;
        box-shadow:
            0 0 6px rgba(var(--neon-rgb), 0.1),
            0 0 16px rgba(var(--neon-rgb), 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }

    .site-theme:not([data-theme="dark"]) .neon-process .process-step:hover {
        border-color: rgba(var(--neon-rgb), 0.7) !important;
    }
}

/* --- Tags & Badges --- */
.site-theme .tag,
.site-theme .service-tags .tag,
.site-theme .skill-tags .tag,
.site-theme .timeline-tags .tag {
    background: var(--hd-tag-bg);
    color: var(--hd-accent);
    border-color: var(--hd-tag-border);
    transition: all 0.5s ease;
}

.site-theme .experience-badge,
.site-theme .experience-badge-detail,
.site-theme .header-badge,
.site-theme .timeline-badge,
.site-theme .dev-project-badge {
    background: var(--hd-tag-bg);
    color: var(--hd-accent);
    border-color: var(--hd-tag-border);
}

/* --- Icons --- */
.site-theme .experience-icon,
.site-theme .service-detail-icon,
.site-theme .certification-icon,
.site-theme .project-icon {
    color: var(--hd-accent);
}

.site-theme .dev-category-icon {
    color: var(--hd-accent);
}

.site-theme .dev-category-icon svg {
    fill: var(--hd-accent);
}

.site-theme .dev-category-link {
    color: var(--hd-accent);
}

.site-theme .check {
    color: var(--hd-accent) !important;
}

/* --- About page specifics --- */
.site-theme .about-content {
    padding: var(--spacing-xl);
}

.site-theme .about-main {
    padding: var(--spacing-3xl) 0;
}

.site-theme .about-content h2,
.site-theme .about-main h2 {
    color: var(--hd-text);
}

.site-theme .about-content p,
.site-theme .about-main p {
    color: var(--hd-text-muted);
}

.site-theme .about-content strong {
    color: var(--hd-text);
}

/* About grid - single column since terminal is removed */
.site-theme .about-main .about-grid {
    grid-template-columns: 1fr;
}

.site-theme .values-list li {
    color: var(--hd-text-muted);
}

.site-theme .values-list strong {
    color: var(--hd-text);
}

.site-theme .experience-icon {
    background: rgba(var(--hd-accent-rgb), 0.15);
}

.site-theme .skill-category h4 {
    color: var(--hd-accent);
}

.site-theme .certification-badges span {
    color: var(--hd-text-muted);
}

.site-theme .code-block {
    background: var(--hd-glass-bg);
    border: 1px solid var(--hd-glass-border);
}

.site-theme .code-header {
    background: var(--hd-code-bg);
    border-bottom: 1px solid var(--hd-glass-border);
}

.site-theme .file-name {
    color: var(--hd-text-subtle);
}

/* --- Timeline --- */
.site-theme .timeline-item,
.site-theme .nested-timeline-item {
    border-color: var(--hd-glass-border);
}

.site-theme .timeline-content {
    background: var(--hd-glass-bg);
    border: 1px solid var(--hd-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-theme .timeline-marker,
.site-theme .nested-timeline-marker {
    background: var(--hd-accent);
}

.site-theme .timeline-marker.current {
    box-shadow: 0 0 10px rgba(var(--hd-accent-rgb), 0.4);
}

.site-theme .timeline-date,
.site-theme .nested-date {
    color: var(--hd-text-subtle);
}

.site-theme .timeline-header h3 {
    color: var(--hd-text);
}

/* --- Services page --- */

/* All service detail blocks: uniform glass cards */
.site-theme .service-detail,
.site-theme .service-detail.alt {
    margin: 0 0 var(--spacing-lg) 0;
    padding: var(--spacing-xl);
    border-bottom: none;
    border-radius: var(--radius-lg);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.06) 100%
    ) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        0 4px 20px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

/* Glass shine on top */
.site-theme .service-detail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0.15) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* Light mode service cards */
.site-theme[data-theme="light"] .service-detail,
.site-theme[data-theme="light"] .service-detail.alt {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.5) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 4px 20px rgba(124, 58, 237, 0.05);
}

@media (prefers-color-scheme: light) {
    .site-theme:not([data-theme="dark"]) .service-detail,
    .site-theme:not([data-theme="dark"]) .service-detail.alt {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.5) 100%
        ) !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.5),
            0 4px 20px rgba(124, 58, 237, 0.05);
    }
}

.site-theme .service-detail-content {
    max-width: 100%;
}

.site-theme .service-detail-content h2 {
    color: var(--hd-text);
}

.site-theme .service-lead {
    color: var(--hd-text-muted);
}

.site-theme .feature {
    padding: var(--spacing-sm) 0;
}

.site-theme .feature strong {
    color: var(--hd-text);
}

.site-theme .feature p {
    color: var(--hd-text-subtle);
}

.site-theme .service-detail-icon {
    background: rgba(var(--hd-accent-rgb), 0.15);
    color: var(--hd-accent);
}

.site-theme .service-detail-icon .code-symbol {
    color: var(--hd-accent);
}

.site-theme .service-detail-icon.purple,
.site-theme .service-detail-icon.green,
.site-theme .service-detail-icon.orange {
    background: rgba(var(--hd-accent-rgb), 0.15);
}

.site-theme .experience-badge-detail {
    display: inline-block;
    background: var(--hd-tag-bg);
    color: var(--hd-accent);
    border: 1px solid var(--hd-tag-border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-md);
}

.site-theme .service-icon-row {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.site-theme .service-logo {
    filter: brightness(0) invert(0.7);
}

/* Services sections */
.site-theme .services-overview,
.site-theme .services-detailed {
    background: transparent;
}

.site-theme .services-detailed {
    padding: var(--spacing-xl) 0;
}

/* --- Process steps --- */
.site-theme .step-number {
    color: var(--hd-accent);
}

/* --- Contact page --- */
.site-theme .contact-form {
    background: var(--hd-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hd-glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.site-theme .form-group label {
    color: var(--hd-text);
}

.site-theme .form-group input,
.site-theme .form-group textarea,
.site-theme .form-group select {
    background: rgba(var(--hd-accent-rgb), 0.05);
    border-color: var(--hd-glass-border);
    color: var(--hd-text);
}

.site-theme .form-group input:focus,
.site-theme .form-group textarea:focus {
    border-color: var(--hd-accent);
}

/* --- Hero section on index --- */
.site-theme .hero {
    background: transparent;
}

.site-theme .hero h1 {
    color: var(--hd-text);
}

.site-theme .hero .subtitle {
    color: var(--hd-accent);
}

.site-theme .scroll-indicator .scroll-text {
    color: var(--hd-text-faint);
}

/* --- Stats section --- */
.site-theme .stat-card {
    background: var(--hd-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hd-glass-border);
}

.site-theme .stat-number {
    color: var(--hd-accent);
}

.site-theme .stat-label {
    color: var(--hd-text-subtle);
}

/* --- CTA section --- */
.site-theme .cta-content h2 {
    color: var(--hd-text);
}

.site-theme .cta-content p {
    color: var(--hd-text-muted);
}

/* --- Buttons --- */
.site-theme .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
    border-color: transparent;
    color: #ffffff;
}

.site-theme .btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    box-shadow: 0 4px 20px rgba(var(--hd-accent-rgb), 0.3);
    color: #ffffff;
}

.site-theme .btn-secondary {
    background: transparent;
    border-color: var(--hd-glass-border);
    color: var(--hd-text-muted);
}

.site-theme .btn-secondary:hover {
    border-color: var(--hd-glass-hover-border);
    color: var(--hd-accent);
}

.site-theme .btn-outline {
    border-color: var(--hd-glass-border);
    color: var(--hd-text-muted);
}

.site-theme .btn-outline:hover {
    border-color: var(--hd-accent);
    color: var(--hd-accent);
}

/* --- Portfolio --- */
.site-theme .project-card h3 {
    color: var(--hd-text);
}

.site-theme .project-stats .stat-value {
    color: var(--hd-accent);
}

.site-theme .project-stats .stat-label {
    color: var(--hd-text-subtle);
}

/* --- Certification badge --- */
.site-theme .certification-badge,
.site-theme .certification-card {
    background: var(--hd-glass-bg) !important;
}

.site-theme .certification-date {
    color: var(--hd-text-subtle);
}

/* --- AI certified badge --- */
.site-theme .certification-badge {
    border-color: var(--hd-glass-border);
}

/* --- Footer overrides --- */
.site-theme .footer {
    background: var(--hd-footer-bg);
}

.site-theme .footer h4 {
    color: var(--hd-text-muted, rgba(255, 255, 255, 0.7));
}

.site-theme .footer a {
    color: var(--hd-text-subtle, rgba(255, 255, 255, 0.5));
}

.site-theme .footer a:hover {
    color: var(--hd-accent);
}

/* --- Web project link --- */
.site-theme .web-project-link {
    color: var(--hd-accent);
}

/* --- Legal link --- */
.site-theme .legal-link {
    color: var(--hd-text-muted);
    border-color: var(--hd-glass-border);
}

.site-theme .legal-link:hover {
    color: var(--hd-accent);
    border-color: var(--hd-glass-hover-border);
}

/* --- Platform badges --- */
.site-theme .platform-badge {
    color: var(--hd-accent);
    border-color: var(--hd-glass-border);
}

@media (prefers-reduced-motion: reduce) {
    .hd-orb { animation: none; }
}

/* =========================================
   Themed Nav & Footer (using :has())
   Navbar and footer adapt to the page theme
   ========================================= */

/* Dev-tech, Games, Web-dev pages now use site-theme nav/footer */

/* --- Number Field: Sky / Nature --- */
body:has(.nf-theme) .navbar {
    background: rgba(90, 160, 200, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

body:has(.nf-theme) .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

body:has(.nf-theme) .nav-link:hover,
body:has(.nf-theme) .nav-link.active {
    color: #ffffff;
}

body:has(.nf-theme) .nav-link:hover::after,
body:has(.nf-theme) .nav-link.active::after {
    background: #ffffff;
}

body:has(.nf-theme) .footer {
    background: #3d6b1a;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

body:has(.nf-theme) .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.15);
}

body:has(.nf-theme) .footer-tagline {
    color: #a8e063;
}

body:has(.nf-theme) .social-link:hover svg {
    fill: #a8e063;
}

/* --- GoGame: Synthwave Neon --- */
body:has(.gg-theme) .navbar {
    background: rgba(10, 10, 26, 0.95);
    border-bottom-color: rgba(255, 0, 255, 0.2);
}

body:has(.gg-theme) .nav-link:hover,
body:has(.gg-theme) .nav-link.active {
    color: #ff00ff;
}

body:has(.gg-theme) .nav-link:hover::after,
body:has(.gg-theme) .nav-link.active::after {
    background: #ff00ff;
}

body:has(.gg-theme) .footer {
    background: #0a0a1a;
    border-top: 1px solid rgba(255, 0, 255, 0.15);
}

body:has(.gg-theme) .footer-bottom {
    border-top-color: rgba(255, 0, 255, 0.15);
}

body:has(.gg-theme) .footer-tagline {
    color: #ff00ff;
}

body:has(.gg-theme) .social-link:hover svg {
    fill: #ff00ff;
}

/* Web-dev page now uses site-theme nav/footer */

/* =========================================
   Web Development Page Theme
   Modern code editor / web design aesthetic
   ========================================= */

/* Web dev dark gradient - hidden, uses site-theme bg instead */
.web-dev-bg {
    display: none;
}

/* Code editor dot grid */
.web-dev-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(78, 201, 176, 0.04) 1px, transparent 1px);
    background-size: 25px 25px;
}

/* Floating code elements */
.web-dev-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9;
    pointer-events: none;
    overflow: hidden;
}

.wd-shape {
    position: absolute;
    opacity: var(--wd-opacity, 0.08);
    animation: wd-float var(--wd-speed, 22s) ease-in-out infinite;
    animation-delay: var(--wd-delay, 0s);
    top: var(--wd-y, 30%);
    left: var(--wd-x, 50%);
}

@keyframes wd-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(12px, -18px); }
    66% { transform: translate(-10px, 14px); }
}

/* HTML tag shapes */
.wd-tag {
    font-family: var(--font-mono);
    font-size: var(--wd-size, 16px);
    color: rgba(78, 201, 176, 0.25);
    font-weight: 400;
    white-space: nowrap;
}

/* Curly braces */
.wd-brace {
    font-family: var(--font-mono);
    font-size: var(--wd-size, 40px);
    color: rgba(198, 120, 221, 0.15);
    font-weight: 300;
}

/* Color palette dot */
.wd-color-dot {
    width: var(--wd-size, 12px);
    height: var(--wd-size, 12px);
    border-radius: 50%;
    background: var(--wd-color, rgba(78, 201, 176, 0.3));
    box-shadow: 0 0 10px var(--wd-color, rgba(78, 201, 176, 0.2));
    animation: wd-pulse var(--wd-speed, 3s) ease-in-out infinite;
    animation-delay: var(--wd-delay, 0s);
}

@keyframes wd-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* Browser mockup */
.wd-browser {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), 0 0 25px rgba(78, 201, 176, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wd-browser:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(78, 201, 176, 0.1);
}

.wd-browser-bar {
    background: #2d2d2d;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wd-browser-dots {
    display: flex;
    gap: 6px;
}

.wd-browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.wd-browser-dots span:nth-child(1) { background: #ff5f56; }
.wd-browser-dots span:nth-child(2) { background: #ffbd2e; }
.wd-browser-dots span:nth-child(3) { background: #27c93f; }

.wd-browser-url {
    flex: 1;
    background: #1a1a1a;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.wd-browser-url .wd-lock {
    color: #27c93f;
    font-size: 0.7rem;
}

.wd-browser-viewport {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
    position: relative;
}

.wd-browser-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* Placeholder when no screenshot yet */
.wd-browser-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    font-size: 2.5rem;
    gap: var(--spacing-sm);
}

.wd-browser-placeholder span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Website project card */
.wd-project {
    margin-bottom: var(--spacing-3xl);
}

.wd-project-info {
    margin-top: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.wd-project-text h3 {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.wd-project-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    max-width: 500px;
}

.wd-project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: #4EC9B0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: 1px solid rgba(78, 201, 176, 0.3);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wd-project-link:hover {
    background: rgba(78, 201, 176, 0.1);
    border-color: #4EC9B0;
    color: #4EC9B0;
}

/* Web-dev theme - inherits from site-theme, keeps browser mockup styles */

/* Responsive browser mockups */
@media (max-width: 768px) {
    .wd-project-info {
        flex-direction: column;
        text-align: center;
    }

    .wd-project-text p {
        max-width: 100%;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .wd-shape,
    .wd-color-dot { animation: none; }
}

/* =========================================
   Number Field Game Theme
   Sky + grass + flowers + creatures
   ========================================= */

/* Sky background - fixed behind all content */
.nf-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #7EC8E3 0%, #A8DCF0 40%, #C9E9D4 70%, #8BC34A 100%);
    z-index: -10;
    pointer-events: none;
}

/* Clouds */
.nf-cloud {
    position: fixed;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    z-index: -9;
    pointer-events: none;
    animation: nf-cloud-drift linear infinite;
}

.nf-cloud::before,
.nf-cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.nf-cloud-1 {
    width: 120px;
    height: 40px;
    top: 8%;
    left: -150px;
    animation-duration: 45s;
}
.nf-cloud-1::before { width: 50px; height: 50px; top: -25px; left: 20px; }
.nf-cloud-1::after { width: 70px; height: 45px; top: -20px; left: 45px; }

.nf-cloud-2 {
    width: 100px;
    height: 35px;
    top: 15%;
    left: -130px;
    animation-duration: 55s;
    animation-delay: -20s;
}
.nf-cloud-2::before { width: 45px; height: 40px; top: -20px; left: 15px; }
.nf-cloud-2::after { width: 55px; height: 38px; top: -18px; left: 40px; }

.nf-cloud-3 {
    width: 90px;
    height: 30px;
    top: 5%;
    left: -120px;
    animation-duration: 60s;
    animation-delay: -35s;
    opacity: 0.5;
}
.nf-cloud-3::before { width: 40px; height: 35px; top: -18px; left: 10px; }
.nf-cloud-3::after { width: 50px; height: 32px; top: -15px; left: 35px; }

@keyframes nf-cloud-drift {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 300px)); }
}

/* Grass - fixed at bottom of viewport */
.nf-grass {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    z-index: -8;
    pointer-events: none;
}

.nf-grass-back {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #5B8C2A;
}

.nf-grass-back svg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    display: block;
}

.nf-grass-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: #6DA832;
}

.nf-grass-front svg {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    display: block;
}

/* Flowers in the grass */
.nf-flowers {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    z-index: -7;
    pointer-events: none;
}

.nf-flower {
    position: absolute;
    bottom: var(--nf-y, 30px);
    left: var(--nf-x, 50%);
    animation: nf-sway var(--nf-speed, 3s) ease-in-out infinite;
    animation-delay: var(--nf-delay, 0s);
}

/* Flower stem - grows downward from flower head into the grass */
.nf-flower::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: var(--nf-stem, 18px);
    background: #3D7A1A;
    border-radius: 1px;
}

/* Flower head - simple colored circle like in the game */
.nf-flower-head {
    width: var(--nf-size, 8px);
    height: var(--nf-size, 8px);
    border-radius: 50%;
    background: var(--nf-color, #FF6B6B);
    position: relative;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Multi-petal flowers - small daisy-like flowers */
.nf-flower-head.petals {
    background: transparent;
    box-shadow: none;
}

.nf-flower-head.petals::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--nf-size, 8px) * 0.4);
    height: calc(var(--nf-size, 8px) * 0.4);
    background: #FFD54F;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.nf-flower-head.petals::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--nf-color, #FF6B6B);
    box-shadow:
        calc(var(--nf-size, 8px) * 0.35) 0 0 var(--nf-color, #FF6B6B),
        calc(var(--nf-size, 8px) * -0.35) 0 0 var(--nf-color, #FF6B6B),
        0 calc(var(--nf-size, 8px) * 0.35) 0 var(--nf-color, #FF6B6B),
        0 calc(var(--nf-size, 8px) * -0.35) 0 var(--nf-color, #FF6B6B);
}

@keyframes nf-sway {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

/* Creatures container */
.nf-creatures {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -6;
    pointer-events: none;
    overflow: hidden;
}

/* Bee */
.nf-bee {
    position: absolute;
    width: 16px;
    height: 14px;
    top: var(--nf-start-y, 30%);
    left: var(--nf-start-x, 20%);
    animation: nf-float-bee var(--nf-speed, 18s) ease-in-out infinite;
    animation-delay: var(--nf-delay, 0s);
}

.nf-bee-body {
    width: 12px;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #F9A825 0px, #F9A825 3px,
        #3E2723 3px, #3E2723 6px
    );
    border-radius: 50%;
    position: relative;
}

.nf-bee-wing {
    position: absolute;
    width: 8px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: -3px;
    animation: nf-wing-buzz 0.1s ease-in-out infinite alternate;
}

.nf-bee-wing.left { left: 0; transform-origin: bottom right; }
.nf-bee-wing.right { right: 0; transform-origin: bottom left; }

@keyframes nf-wing-buzz {
    from { transform: rotate(-15deg); }
    to { transform: rotate(15deg); }
}

@keyframes nf-float-bee {
    0% { transform: translate(0, 0); }
    10% { transform: translate(8vw, -3vh); }
    20% { transform: translate(15vw, 2vh); }
    30% { transform: translate(5vw, -5vh); }
    40% { transform: translate(20vw, -1vh); }
    50% { transform: translate(12vw, 4vh); }
    60% { transform: translate(25vw, -2vh); }
    70% { transform: translate(18vw, 3vh); }
    80% { transform: translate(10vw, -4vh); }
    90% { transform: translate(22vw, 1vh); }
    100% { transform: translate(0, 0); }
}

/* Butterfly */
.nf-butterfly {
    position: absolute;
    top: var(--nf-start-y, 25%);
    left: var(--nf-start-x, 70%);
    animation: nf-float-butterfly var(--nf-speed, 22s) ease-in-out infinite;
    animation-delay: var(--nf-delay, 0s);
}

.nf-butterfly-body {
    width: 2px;
    height: 12px;
    background: #4E342E;
    border-radius: 1px;
    position: relative;
    margin: 0 auto;
}

.nf-butterfly-wings {
    position: absolute;
    top: 1px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0;
}

.nf-butterfly-wing {
    width: 10px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    background: var(--nf-color, #E040FB);
    opacity: 0.85;
    animation: nf-wing-flap 0.4s ease-in-out infinite alternate;
}

.nf-butterfly-wing.left {
    border-radius: 50% 50% 0 50%;
    transform-origin: right center;
}

.nf-butterfly-wing.right {
    border-radius: 50% 50% 50% 0;
    transform-origin: left center;
    animation-delay: 0.05s;
}

@keyframes nf-wing-flap {
    from { transform: scaleX(1) rotateY(0deg); }
    to { transform: scaleX(0.6) rotateY(50deg); }
}

@keyframes nf-float-butterfly {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5vw, -4vh); }
    20% { transform: translate(-12vw, 2vh); }
    30% { transform: translate(-3vw, -6vh); }
    40% { transform: translate(-15vw, -1vh); }
    50% { transform: translate(-8vw, 5vh); }
    60% { transform: translate(-18vw, -3vh); }
    70% { transform: translate(-10vw, 2vh); }
    80% { transform: translate(-20vw, -2vh); }
    90% { transform: translate(-6vw, 3vh); }
    100% { transform: translate(0, 0); }
}

/* Theme overrides - make content readable over sky */
.nf-theme .page-header {
    background: transparent;
    border-bottom: none;
}

.nf-theme .page-header::before {
    display: none;
}

.nf-theme .page-header h1 {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nf-theme .page-header .tagline {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.nf-theme .breadcrumb a,
.nf-theme .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.8);
}

.nf-theme .dev-intro-section {
    background: transparent;
}

.nf-theme .game-showcase-section {
    background: transparent;
}

.nf-theme .section-header h2,
.nf-theme .section-header h3 {
    color: #2d3748;
}

.nf-theme .section-header p {
    color: #4a5568;
}

/* Glassmorphism cards - semi-transparent so creatures are visible behind */
.nf-theme .game-hero,
.nf-theme .game-hero-content {
    background: rgba(255, 255, 255, 0.55) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.nf-theme .game-feature-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.nf-theme .process-step {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

/* Force dark text on NF light background */
.nf-theme h1, .nf-theme h2, .nf-theme h3, .nf-theme h4 {
    color: #2d3748 !important;
}

.nf-theme p, .nf-theme li {
    color: #4a5568 !important;
}

.nf-theme .game-description {
    color: #4a5568 !important;
}

.nf-theme .game-feature-card h4 {
    color: #2d3748 !important;
}

.nf-theme .game-feature-card p {
    color: #4a5568 !important;
}

.nf-theme .process-step h3 {
    color: #2d3748 !important;
}

.nf-theme .process-step p {
    color: #4a5568 !important;
}

.nf-theme .step-number {
    color: #2196F3 !important;
}

.nf-theme .tag {
    background: rgba(33, 150, 243, 0.1) !important;
    color: #1565C0 !important;
    border-color: rgba(33, 150, 243, 0.2) !important;
}

.nf-theme .section-tag {
    color: #2196F3 !important;
}

.nf-theme .game-screenshots,
.nf-theme .game-tech,
.nf-theme .game-legal {
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.nf-theme .game-screenshots {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.nf-theme .game-tech {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.nf-theme .game-legal {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.nf-theme .cta-section {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nf-theme .terminal-window {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

/* Footer stays normal */
.nf-theme ~ .footer,
.nf-theme + .footer {
    position: relative;
    z-index: 1;
}

/* Responsive: hide some decorations on mobile */
@media (max-width: 768px) {
    .nf-cloud-3 { display: none; }

    .nf-grass {
        height: 120px;
    }

    .nf-flowers {
        height: 100px;
    }

    .nf-bee:nth-child(n+3) { display: none; }
    .nf-butterfly:nth-child(n+2) { display: none; }

    .nf-flower:nth-child(odd):nth-child(n+10) { display: none; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .nf-cloud,
    .nf-flower,
    .nf-bee,
    .nf-butterfly,
    .nf-bee-wing,
    .nf-butterfly-wing {
        animation: none;
    }
}

/* =========================================
   GoGame Theme - Synthwave / Retro Neon
   ========================================= */

/* Dark space background with grid */
.gg-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a1a 0%, #0d0d2b 40%, #1a0a2e 70%, #0a0a1a 100%);
    z-index: -10;
    pointer-events: none;
    overflow: hidden;
}

/* Subtle grid overlay */
.gg-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 0, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Scanline effect */
.gg-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.08) 2px,
        rgba(0, 0, 0, 0.08) 4px
    );
    pointer-events: none;
}

/* Retrowave sun */
.gg-sun {
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff6ec7 0%, #ff3cac 30%, #ff8a00 60%, #ffcc00 100%);
    opacity: 0.25;
    filter: blur(2px);
    z-index: -9;
    pointer-events: none;
}

/* Sun horizontal stripe lines */
.gg-sun::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 60%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 6px,
        #0a0a1a 6px,
        #0a0a1a 10px
    );
}

/* Neon horizon line */
.gg-horizon {
    position: fixed;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ff00ff 20%, #00ffff 50%, #ff00ff 80%, transparent 100%);
    opacity: 0.2;
    z-index: -9;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

/* Perspective grid floor */
.gg-floor {
    position: fixed;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 30%;
    z-index: -9;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 0, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 30px;
    transform: perspective(400px) rotateX(45deg);
    transform-origin: center top;
}

/* Palm tree silhouettes */
.gg-palm {
    position: fixed;
    z-index: -8;
    pointer-events: none;
    opacity: 0.15;
}

.gg-palm svg {
    fill: #1a0a2e;
}

.gg-palm-left {
    bottom: 25%;
    left: 2%;
}

.gg-palm-right {
    bottom: 25%;
    right: 2%;
    transform: scaleX(-1);
}

/* Floating neon orbs (game pieces) */
.gg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -7;
    pointer-events: none;
    overflow: hidden;
}

.gg-orb {
    position: absolute;
    border-radius: 50%;
    top: var(--gg-y, 50%);
    left: var(--gg-x, 50%);
    width: var(--gg-size, 12px);
    height: var(--gg-size, 12px);
    background: var(--gg-color, rgba(160, 80, 255, 0.6));
    box-shadow: 0 0 var(--gg-glow, 15px) var(--gg-color, rgba(160, 80, 255, 0.6));
    animation: gg-float var(--gg-speed, 12s) ease-in-out infinite;
    animation-delay: var(--gg-delay, 0s);
}

@keyframes gg-float {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    25% { transform: translate(3vw, -2vh) scale(1.1); opacity: 0.8; }
    50% { transform: translate(-2vw, 3vh) scale(0.9); opacity: 0.5; }
    75% { transform: translate(4vw, 1vh) scale(1.05); opacity: 0.7; }
}

/* Neon flicker for accents */
@keyframes gg-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.7; }
    94% { opacity: 1; }
    96% { opacity: 0.8; }
    97% { opacity: 1; }
}

/* Theme overrides - dark glassmorphism */
.gg-theme .page-header {
    background: transparent;
    border-bottom: none;
}

.gg-theme .page-header::before {
    display: none;
}

.gg-theme .page-header h1 {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.5), 0 0 30px rgba(255, 0, 255, 0.2);
    animation: gg-flicker 5s ease-in-out infinite;
}

.gg-theme .page-header .tagline {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.gg-theme .breadcrumb a,
.gg-theme .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
}

.gg-theme .breadcrumb a:hover {
    color: #ff00ff;
}

.gg-theme .dev-intro-section,
.gg-theme .game-showcase-section,
.gg-theme .cta-section {
    background: transparent;
}

.gg-theme .section-header h2,
.gg-theme .section-header h3 {
    color: #ffffff;
}

.gg-theme .section-header p {
    color: rgba(255, 255, 255, 0.6);
}

.gg-theme .section-tag {
    color: #ff00ff;
}

/* Dark glassmorphism cards with neon borders */
.gg-theme .game-hero,
.gg-theme .game-hero-content {
    background: rgba(10, 10, 30, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.1), inset 0 0 15px rgba(255, 0, 255, 0.05);
}

.gg-theme .game-hero h3 {
    color: #ffffff;
}

.gg-theme .game-hero-info h3 {
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

.gg-theme .game-description {
    color: rgba(255, 255, 255, 0.8);
}

.gg-theme .game-feature-card {
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}

.gg-theme .game-feature-card h4 {
    color: #00ffff;
}

.gg-theme .game-feature-card p {
    color: rgba(255, 255, 255, 0.7);
}

.gg-theme .process-step {
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.05);
}

.gg-theme .process-step h3 {
    color: #ffffff;
}

.gg-theme .process-step p {
    color: rgba(255, 255, 255, 0.7);
}

.gg-theme .step-number {
    color: #ff00ff;
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

.gg-theme .game-screenshots {
    background: rgba(10, 10, 30, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.gg-theme .game-tech {
    background: rgba(10, 10, 30, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 0, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.gg-theme .game-tech h3 {
    color: #ffffff;
}

.gg-theme .tag {
    background: rgba(255, 0, 255, 0.15);
    color: #ff80ff;
    border-color: rgba(255, 0, 255, 0.3);
}

.gg-theme .cta-section {
    background: rgba(10, 10, 30, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 0, 255, 0.15);
}

.gg-theme .cta-content h2 {
    color: #ffffff;
}

.gg-theme .cta-content p {
    color: rgba(255, 255, 255, 0.7);
}

.gg-theme .terminal-window {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.15);
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.gg-theme .platform-badge {
    border-color: rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

.gg-theme .platform-badge.download {
    border-color: rgba(255, 0, 255, 0.4);
    color: #ff80ff;
}

.gg-theme .screenshot-img {
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: var(--radius-md);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .gg-palm { display: none; }
    .gg-sun { width: 140px; height: 140px; }
    .gg-orb:nth-child(n+6) { display: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .gg-orb { animation: none; }
    .gg-theme .page-header h1 { animation: none; }
}

/* =========================================
   Development Page - Modern Blue Tech Theme
   ========================================= */

/* Blue gradient background - hidden, uses site-theme bg instead */
.dev-tech-bg {
    display: none;
}

/* Subtle dot grid */
.dev-tech-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Floating geometric shapes */
.dev-tech-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9;
    pointer-events: none;
    overflow: hidden;
}

.dev-tech-shape {
    position: absolute;
    opacity: var(--dt-opacity, 0.08);
    animation: dt-float var(--dt-speed, 20s) ease-in-out infinite;
    animation-delay: var(--dt-delay, 0s);
}

/* Circle shapes */
.dt-circle {
    width: var(--dt-size, 80px);
    height: var(--dt-size, 80px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    top: var(--dt-y, 20%);
    left: var(--dt-x, 10%);
}

.dt-circle-filled {
    width: var(--dt-size, 60px);
    height: var(--dt-size, 60px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.4) 0%, transparent 70%);
    top: var(--dt-y, 50%);
    left: var(--dt-x, 80%);
}

/* Code bracket shapes */
.dt-bracket {
    font-family: var(--font-mono);
    font-size: var(--dt-size, 48px);
    color: rgba(255, 255, 255, 0.15);
    top: var(--dt-y, 30%);
    left: var(--dt-x, 70%);
    font-weight: 300;
}

/* Chevron shapes */
.dt-chevron {
    top: var(--dt-y, 60%);
    left: var(--dt-x, 5%);
}

.dt-chevron svg {
    width: var(--dt-size, 40px);
    height: var(--dt-size, 40px);
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 2;
}

/* Corner brackets */
.dt-corner {
    width: var(--dt-size, 50px);
    height: var(--dt-size, 50px);
    border-left: 2px solid rgba(0, 229, 255, 0.25);
    border-top: 2px solid rgba(0, 229, 255, 0.25);
    top: var(--dt-y, 10%);
    left: var(--dt-x, 5%);
}

.dt-corner.bottom-right {
    border-left: none;
    border-top: none;
    border-right: 2px solid rgba(0, 229, 255, 0.25);
    border-bottom: 2px solid rgba(0, 229, 255, 0.25);
}

/* Glowing dots */
.dt-dot {
    width: var(--dt-size, 6px);
    height: var(--dt-size, 6px);
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
    top: var(--dt-y, 40%);
    left: var(--dt-x, 90%);
    animation: dt-pulse var(--dt-speed, 3s) ease-in-out infinite;
    animation-delay: var(--dt-delay, 0s);
}

/* Code line decorations */
.dt-code-lines {
    position: absolute;
    top: var(--dt-y, 25%);
    left: var(--dt-x, 75%);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0.1;
    transform: rotate(var(--dt-rotate, 0deg));
}

.dt-code-line {
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

@keyframes dt-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -20px) rotate(2deg); }
    50% { transform: translate(-10px, 15px) rotate(-1deg); }
    75% { transform: translate(20px, 10px) rotate(1deg); }
}

@keyframes dt-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.5); }
}

/* Connection lines between elements */
.dev-tech-connections {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    pointer-events: none;
}

.dev-tech-connections svg {
    width: 100%;
    height: 100%;
}

/* Dev-tech theme now inherits from site-theme, only keeps floating shapes */

/* Responsive */
@media (max-width: 768px) {
    .dev-tech-shape:nth-child(n+6) { display: none; }
    .dt-code-lines { display: none; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .dev-tech-shape,
    .dt-dot { animation: none; }
}

/* =========================================
   Games Page - Mobile Gaming Theme
   ========================================= */

/* Dark gaming gradient - hidden, uses site-theme bg instead */
.games-theme-bg {
    display: none;
}

/* Subtle pixel grid */
.games-theme-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Colorful ambient glow spots */
.gm-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -9;
    pointer-events: none;
    opacity: 0.12;
}

.gm-glow-1 {
    width: 300px; height: 300px;
    background: #ff4081;
    top: 10%; left: -5%;
    animation: gm-breathe 8s ease-in-out infinite;
}

.gm-glow-2 {
    width: 250px; height: 250px;
    background: #448aff;
    top: 50%; right: -5%;
    animation: gm-breathe 10s ease-in-out infinite 2s;
}

.gm-glow-3 {
    width: 200px; height: 200px;
    background: #69f0ae;
    bottom: 10%; left: 30%;
    animation: gm-breathe 9s ease-in-out infinite 4s;
}

.gm-glow-4 {
    width: 180px; height: 180px;
    background: #ffab40;
    top: 30%; right: 25%;
    animation: gm-breathe 7s ease-in-out infinite 1s;
}

@keyframes gm-breathe {
    0%, 100% { opacity: 0.08; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.15); }
}

/* Floating gaming elements container */
.gm-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -8;
    pointer-events: none;
    overflow: hidden;
}

.gm-element {
    position: absolute;
    opacity: var(--gm-opacity, 0.1);
    animation: gm-drift var(--gm-speed, 20s) ease-in-out infinite;
    animation-delay: var(--gm-delay, 0s);
    top: var(--gm-y, 50%);
    left: var(--gm-x, 50%);
}

@keyframes gm-drift {
    0%, 100% { transform: translate(0, 0) rotate(var(--gm-rotate, 0deg)); }
    25% { transform: translate(10px, -15px) rotate(calc(var(--gm-rotate, 0deg) + 3deg)); }
    50% { transform: translate(-8px, 12px) rotate(calc(var(--gm-rotate, 0deg) - 2deg)); }
    75% { transform: translate(12px, 8px) rotate(calc(var(--gm-rotate, 0deg) + 1deg)); }
}

/* D-pad */
.gm-dpad {
    width: var(--gm-size, 50px);
    height: var(--gm-size, 50px);
    position: relative;
}

.gm-dpad::before,
.gm-dpad::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.gm-dpad::before {
    width: 33%; height: 100%;
    left: 33%; top: 0;
}

.gm-dpad::after {
    width: 100%; height: 33%;
    left: 0; top: 33%;
}

/* Controller buttons (ABXY style) */
.gm-buttons {
    width: var(--gm-size, 45px);
    height: var(--gm-size, 45px);
    position: relative;
}

.gm-btn {
    position: absolute;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    border: 2px solid;
}

.gm-btn-a { bottom: 0; left: 35%; border-color: rgba(105, 240, 174, 0.4); }
.gm-btn-b { right: 0; top: 35%; border-color: rgba(255, 64, 129, 0.4); }
.gm-btn-x { left: 0; top: 35%; border-color: rgba(68, 138, 255, 0.4); }
.gm-btn-y { top: 0; left: 35%; border-color: rgba(255, 171, 64, 0.4); }

/* Phone silhouette */
.gm-phone {
    width: var(--gm-size, 35px);
    height: calc(var(--gm-size, 35px) * 2);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    position: relative;
}

.gm-phone::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1px;
}

/* Joystick */
.gm-joystick {
    width: var(--gm-size, 40px);
    height: var(--gm-size, 40px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    position: relative;
}

.gm-joystick::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Pixel stars */
.gm-star {
    width: var(--gm-size, 4px);
    height: var(--gm-size, 4px);
    background: rgba(255, 255, 255, 0.5);
    animation: gm-twinkle var(--gm-speed, 2s) ease-in-out infinite;
    animation-delay: var(--gm-delay, 0s);
}

@keyframes gm-twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* Games theme - inherits from site-theme, keeps layout-specific styles */

/* Larger centered logos on game cards */
.games-theme .dev-category-icon {
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing-lg);
    justify-content: center;
}

.games-theme .dev-category-icon img {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
}

.games-theme .dev-category-card {
    text-align: center;
    align-items: center;
}

/* Reduce spacing between header and devices */
.games-theme .dev-intro-section {
    padding-top: 0;
}

/* Games showcase row: card - devices - card */
.gm-showcase-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-2xl);
}

.gm-showcase-card {
    height: 100%;
}

@media (max-width: 1024px) {
    .gm-showcase-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .gm-showcase-row .gm-devices {
        order: -1;
    }
}

/* Device mockup showcase */
.gm-devices {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
    height: 420px;
    margin: 0 auto;
    max-width: 600px;
}

/* Shared device frame styles */
.gm-device {
    position: absolute;
    background: #111;
    border-radius: var(--gm-radius, 24px);
    padding: var(--gm-bezel, 8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 64, 129, 0.08);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.gm-device:hover {
    transform: scale(1.03);
    z-index: 10 !important;
}

.gm-device-screen {
    width: 100%;
    height: 100%;
    border-radius: calc(var(--gm-radius, 24px) - var(--gm-bezel, 8px));
    overflow: hidden;
    background: #1a1a2e;
    position: relative;
}

.gm-device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Notch for iPhone */
.gm-device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 14px;
    background: #111;
    border-radius: 0 0 12px 12px;
    z-index: 2;
}

/* Camera dot for Android */
.gm-device-camera {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #222;
    border: 1px solid #333;
    border-radius: 50%;
    z-index: 2;
}

/* iPad - background, largest */
.gm-device-ipad {
    --gm-radius: 20px;
    --gm-bezel: 10px;
    width: 280px;
    height: 380px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* iPhone - front left */
.gm-device-iphone {
    --gm-radius: 28px;
    --gm-bezel: 6px;
    width: 155px;
    height: 320px;
    bottom: 0;
    left: 50%;
    transform: translateX(-90%);
    z-index: 3;
}

/* Android phone - front right */
.gm-device-android {
    --gm-radius: 22px;
    --gm-bezel: 5px;
    width: 150px;
    height: 310px;
    bottom: 0;
    left: 50%;
    transform: translateX(-10%);
    z-index: 2;
}

/* Device labels */
.gm-device-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-mono);
    white-space: nowrap;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Responsive devices */
@media (max-width: 768px) {
    .gm-devices {
        height: 300px;
        max-width: 400px;
    }

    .gm-device-ipad {
        width: 200px;
        height: 270px;
    }

    .gm-device-iphone {
        width: 110px;
        height: 230px;
        transform: translateX(-85%);
    }

    .gm-device-android {
        width: 108px;
        height: 222px;
        transform: translateX(-15%);
    }

    .gm-device-label { display: none; }

    .gm-element:nth-child(n+8) { display: none; }
    .gm-glow { filter: blur(60px); }
}

@media (max-width: 480px) {
    .gm-devices {
        height: 240px;
    }

    .gm-device-ipad {
        width: 170px;
        height: 230px;
    }

    .gm-device-iphone {
        width: 95px;
        height: 200px;
    }

    .gm-device-android {
        width: 93px;
        height: 195px;
    }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .gm-element,
    .gm-glow,
    .gm-star { animation: none; }
}
