/* ==========================================
   SEF Solutions - Premium Portfolio CSS
   With Dark/Light Mode Support
   ========================================== */

/* ==========================================
   DESIGN SYSTEM TOKENS
   ========================================== */
:root {
    /* Spacing Scale */
    --space-xs: 0.25rem;   /* 4px */
    --space-s: 0.5rem;     /* 8px */
    --space-m: 1rem;       /* 16px */
    --space-l: 1.5rem;     /* 24px */
    --space-xl: 2rem;      /* 32px */
    --space-2xl: 3rem;     /* 48px */
    --space-3xl: 4rem;     /* 64px */

    /* Border Radius */
    --radius-xs: 0.25rem;  /* 4px */
    --radius-s: 0.5rem;    /* 8px */
    --radius-m: 0.75rem;   /* 12px */
    --radius-l: 1rem;      /* 16px */
    --radius-xl: 1.5rem;   /* 24px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-s: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-m: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-l: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(169, 17, 1, 0.15);

    /* Typography Scale */
    --text-xs: 0.6875rem;  /* 11px */
    --text-s: 0.75rem;     /* 12px */
    --text-base: 0.875rem; /* 14px */
    --text-m: 1rem;        /* 16px */
    --text-l: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 2rem;      /* 32px */
    --text-4xl: 2.5rem;    /* 40px */

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.8;

    /* Letter Spacing */
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
    --tracking-wider: 0.05em;

    /* Container Widths */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;

    /* Section Padding */
    --section-py: 5rem;
    --section-py-mobile: 3.5rem;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
    --transition-slower: 0.4s ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 500;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-tooltip: 1100;
}

/* CSS Variables - Light Theme (Default) - Clean White */
:root,
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #fefefe;
    --bg-tertiary: #fdfdfd;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6a6a6a;
    --accent-primary: #a91101;
    --accent-secondary: #a91101;
    --accent-glow: rgba(169, 17, 1, 0.35);
    --accent-gradient: linear-gradient(135deg, #a91101 0%, #c01805 100%);
    --accent-tint: rgba(169, 17, 1, 0.02);
    --title-duo-base: #1a1a1a;
    --border-color: #ebebeb;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --nav-bg: rgba(255, 255, 255, 0.88);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.96);
    --overlay-bg: rgba(26, 26, 26, 0.5);
    --section-flow-gradient: linear-gradient(180deg, transparent 0%, var(--accent-tint) 50%, transparent 100%);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0a0908;
    --bg-secondary: #12100e;
    --bg-tertiary: #1a1715;
    --bg-card: #141210;
    --text-primary: #f8f6f4;
    --text-secondary: #d4cfc9;
    --text-tertiary: #9a9490;
    --accent-primary: #c41a08;
    --accent-secondary: #e02010;
    --accent-glow: rgba(196, 26, 8, 0.45);
    --accent-gradient: linear-gradient(135deg, #c41a08 0%, #a91101 100%);
    --accent-tint: rgba(196, 26, 8, 0.08);
    --title-duo-base: #f8f6f4;
    --border-color: #2d2825;
    --card-bg: rgba(20, 18, 16, 0.98);
    --card-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7), 0 8px 18px rgba(196, 26, 8, 0.08);
    --card-shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.75), 0 12px 26px rgba(196, 26, 8, 0.12);
    --nav-bg: rgba(10, 9, 8, 0.88);
    --nav-bg-scrolled: rgba(10, 9, 8, 0.96);
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --section-flow-gradient: linear-gradient(180deg, transparent 0%, var(--accent-tint) 50%, transparent 100%);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: radial-gradient(1200px 600px at 10% -10%, rgba(169, 17, 1, 0.08), transparent 60%),
        radial-gradient(900px 500px at 90% 0%, rgba(169, 17, 1, 0.05), transparent 55%),
        radial-gradient(1000px 520px at 75% 80%, rgba(15, 23, 42, 0.06), transparent 60%),
        var(--bg-primary);
    transition: background-color 0.4s ease, color 0.3s ease;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}


[data-theme="dark"] body {
    background: radial-gradient(1200px 700px at 12% -8%, rgba(169, 17, 1, 0.2), transparent 58%),
        radial-gradient(1000px 620px at 88% 6%, rgba(255, 255, 255, 0.05), transparent 56%),
        var(--bg-primary);
}

/* Smooth theme transition for all elements */
*,
*::before,
*::after {
    transition-property: background-color, border-color, box-shadow;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Exclude animations and transforms from theme transition */
a, button, .btn, input, textarea, .nav-links a::after {
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: var(--radius-s);
}

/* Premium Focus Ring Effect */
.btn:focus-visible,
.service-card:focus-visible,
.project-card-compact:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(169, 17, 1, 0.15);
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    min-height: 48px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(169, 17, 1, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(169, 17, 1, 0.22);
}

.btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:active {
    border-color: var(--accent-primary);
}

.btn-light {
    background: #fff;
    color: var(--accent-primary);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

[data-theme="dark"] .navbar {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.navbar.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-text {
    color: var(--text-primary);
}

.logo-dot {
    color: var(--accent-primary);
}

.logo-mark {
    height: 48px;
    width: 180px;
    object-fit: contain;
    display: block;
}

.logo-mark.logo-dark {
    width: 192px;
    height: 51px;
}

.logo-mark.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-mark.logo-light {
    display: none;
}

[data-theme="dark"] .logo-mark.logo-dark {
    display: block;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    overflow: visible;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: filter 0.2s ease, transform 0.2s ease;
}

/* nav-avatar hover effect removed - simple avatar display */
.nav-avatar::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: -38px;
    z-index: 5;
    transform: translateX(-50%) translateY(6px);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-avatar::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    z-index: 5;
    transform: translateX(-50%) translateY(6px);
    border-width: 6px;
    border-style: solid;
    border-color: var(--bg-tertiary) transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-avatar:hover::after,
.nav-avatar:focus-visible::after,
.nav-avatar:hover::before,
.nav-avatar:focus-visible::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-cta {
    display: none;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-dropdown-btn:focus-visible {
    border-color: var(--accent-primary);
}

.lang-dropdown-btn img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.lang-dropdown-btn:hover {
    border-color: var(--accent-primary);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 140px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-dropdown.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-size: 0.875rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.lang-option:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 0.5rem 0.5rem;
}

.lang-option:hover,
.lang-option.active {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:focus-visible {
    border-color: var(--accent-primary);
}

.theme-toggle:hover {
    border-color: var(--accent-primary);
}

.theme-toggle svg {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    z-index: 999;
    padding: 5.5rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-links a {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s ease;
}

.mobile-menu-links a:hover {
    color: var(--accent-primary);
}

.mobile-menu-links a:active {
    transform: translateX(4px);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.mobile-logo {
    height: 32px;
    width: auto;
}

/* Banner + Secondary Nav */
.banner {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.banner .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-secondary);
    animation: pulse 2s infinite;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

/* Legacy hero-title styles - overridden by modern styles below */
.hero-title .highlight {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.stat-certs {
    margin-top: 14px;
}

.stat-certs .hero-certs {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.25rem;
}

.stat-certs .hero-certs img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    transition: transform 0.2s ease;
}

.stat-certs .hero-certs img:hover {
    transform: scale(1.15);
}


.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 395px;
}

.hero-professional-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 355px;
    padding: 1.6rem;
    border-radius: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

[data-theme="dark"] .hero-professional-card {
    background: #1a1a24;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-professional-media {
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.hero-professional-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-professional-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: center;
}

.hero-professional-name {
    font-size: 1.1rem;
    font-weight: 600;
}

.hero-professional-role {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Hero Card Glow Effect */
.hero-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, var(--accent-primary), rgba(169, 17, 1, 0.35), rgba(255, 255, 255, 0.06));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.hero-professional-card {
    position: relative;
}

.hero-professional-card:hover .hero-card-glow {
    opacity: 0.6;
}

/* Hero Specialty Tags */
.hero-specialties {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.specialty-tag {
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.15), rgba(169, 17, 1, 0.05));
    border: 1px solid rgba(169, 17, 1, 0.3);
    border-radius: 2rem;
    color: var(--accent-primary);
}

[data-theme="light"] .specialty-tag {
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.1), rgba(169, 17, 1, 0.05));
}

/* Hero Profile Card - Simplified */
.hero-profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 320px;
    margin: 0 auto;
    padding: 0.9rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.hero-profile-image {
    position: relative;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--card-shadow-hover);
    border: 1px solid var(--border-color);
    background: radial-gradient(120% 120% at 15% 10%, rgba(169, 17, 1, 0.12), transparent 40%);
}

.hero-profile-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-profile-card:hover .hero-profile-image img {
    transform: scale(1.03);
}

.hero-profile-card .hero-card-glow {
    position: absolute;
    inset: -8px;
    border-radius: 1.5rem;
    background: radial-gradient(60% 80% at 20% 10%, rgba(169, 17, 1, 0.45), transparent 60%),
        radial-gradient(50% 60% at 80% 90%, rgba(255, 255, 255, 0.08), transparent 50%);
    opacity: 0.6;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(18px);
}

.hero-profile-card:hover .hero-card-glow {
    opacity: 0.85;
}

.hero-profile-info-card {
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

[data-theme="dark"] .hero-profile-info-card {
    background: rgba(20, 25, 38, 0.95);
}

.hero-profile-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.hero-info-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-profile-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero-profile-meta .meta-dot {
    opacity: 0.5;
}

.hero-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.hero-availability-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.hero-profile-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    padding: 0.65rem 0.9rem;
    border-radius: 0.75rem;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(169, 17, 1, 0.35);
}

.hero-profile-cta svg {
    width: 16px;
    height: 16px;
}

.hero-profile-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.hero-profile-badges .hero-specialties {
    margin: 0;
    flex-wrap: wrap;
}

.hero-certs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hero-certs img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    transition: transform 0.2s ease;
}

.hero-certs img:hover {
    transform: scale(1.1);
}


/* ==========================================
   FUTURISTIC FLOATING BLOCKS
   ========================================== */
.floating-blocks {
    position: absolute;
    width: 100%;
    height: 100%;
}

.block {
    position: absolute;
    border-radius: 8px;
    animation: floatFuturistic 6s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(169, 17, 1, 0.4);
    position: relative;
}

.block::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    opacity: 0;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.block-1 {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #c80f2e 0%, #f05a70 100%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 25px rgba(169, 17, 1, 0.6);
}

.block-1::before { animation-delay: 0s; }

.block-2 {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #e63b54 0%, #ff7a8a 100%);
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    box-shadow: 0 0 20px rgba(230, 59, 84, 0.6);
}

.block-2::before { animation-delay: 1s; }

.block-3 {
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    bottom: 30%;
    left: 5%;
    animation-delay: 2s;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

.block-3::before { animation-delay: 2s; }

.block-4 {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.block-4::before { animation-delay: 3s; }

.block-5 {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    top: 50%;
    right: 5%;
    animation-delay: 4s;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.6);
}

.block-5::before { animation-delay: 4s; }

@keyframes floatFuturistic {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-25px) rotate(8deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-20px) rotate(6deg);
        opacity: 0.95;
    }
}

/* ==========================================
   FUTURISTIC CHARACTER
   ========================================== */
.character {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bodyBobFuturistic 4.5s ease-in-out infinite;
    transition: filter 0.45s ease;
}

@keyframes bodyBobFuturistic {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(8px);
    }
}

/* Enhanced Holographic Head */
.character-head {
    position: relative;
    z-index: 2;
    animation: none;
}

@keyframes headTiltFuturistic {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.decision-diamond {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #c80f2e 0%, #f05a70 50%, #ff7a8a 100%);
    transform: rotate(45deg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 30px rgba(169, 17, 1, 0.4),
        0 0 40px rgba(169, 17, 1, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.2);
    position: relative;
    animation: none;
}

[data-theme="dark"] .decision-diamond {
    background: linear-gradient(135deg, #b80d29 0%, #c80f2e 50%, #f05a70 100%);
    box-shadow:
        0 10px 35px rgba(169, 17, 1, 0.5),
        0 0 50px rgba(169, 17, 1, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.15);
}

@keyframes diamondFloatEnhanced {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
        box-shadow:
            0 10px 30px rgba(169, 17, 1, 0.4),
            0 0 40px rgba(169, 17, 1, 0.3),
            inset 0 2px 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: rotate(45deg) translateY(-8px);
        box-shadow:
            0 15px 40px rgba(169, 17, 1, 0.5),
            0 0 60px rgba(169, 17, 1, 0.4),
            inset 0 2px 10px rgba(255, 255, 255, 0.3);
    }
}

.diamond-inner {
    width: 50px;
    height: 35px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-45deg);
    box-shadow: inset 0 2px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(169, 17, 1, 0.2);
}

[data-theme="dark"] .diamond-inner {
    box-shadow: inset 0 2px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 77, 61, 0.3);
}

.diamond-icon {
    font-size: 11px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: none;
    letter-spacing: 0.02em;
    filter: drop-shadow(0 0 8px rgba(169, 17, 1, 0.3));
}

@keyframes iconPulseEnhanced {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Enhanced Holographic Body */
.character-body {
    position: relative;
    margin-top: -10px;
}

.character-body::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(169, 17, 1, 0.22), transparent 70%);
    filter: blur(18px);
    opacity: 0.65;
    z-index: -1;
    animation: bodyPulse 3.6s ease-in-out infinite;
}

@keyframes bodyPulse {
    0%, 100% {
        transform: scale(0.98);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

.body-main {
    width: 100px;
    height: 120px;
    background: var(--bg-tertiary);
    border-radius: 20px 20px 30px 30px;
    border: 3px solid var(--border-color);
    position: relative;
    box-shadow:
        inset 0 0 0 2px rgba(169, 17, 1, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

[data-theme="dark"] .body-main {
    box-shadow:
        inset 0 0 0 2px rgba(169, 17, 1, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Animated energy core */
.body-main::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 8px;
    background: var(--accent-gradient);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(169, 17, 1, 0.6);
    animation: energyPulse 2s ease-in-out infinite;
}

@keyframes energyPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(169, 17, 1, 0.6);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 25px rgba(169, 17, 1, 0.8);
        opacity: 0.8;
    }
}

.body-main::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 8px;
    background: linear-gradient(90deg, #e63b54 0%, #ff7a8a 100%);
    border-radius: 4px;
    opacity: 0.7;
    box-shadow: 0 0 12px rgba(230, 59, 84, 0.5);
    animation: energyPulse 2s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Holographic Arms */
.arm {
    position: absolute;
    width: 15px;
    height: 60px;
    background: linear-gradient(180deg, var(--bg-tertiary), var(--bg-secondary));
    border: 3px solid var(--border-color);
    border-radius: 10px;
    top: 10px;
    box-shadow:
        0 0 15px rgba(169, 17, 1, 0.2),
        inset 0 0 10px rgba(169, 17, 1, 0.1);
}

[data-theme="dark"] .arm {
    box-shadow:
        0 0 20px rgba(169, 17, 1, 0.3),
        inset 0 0 15px rgba(169, 17, 1, 0.15);
}

.arm-left {
    left: -20px;
    transform: rotate(10deg);
    animation: waveLeftEnhanced 3.6s ease-in-out infinite;
}

.arm-right {
    right: -20px;
    transform: rotate(-10deg);
    animation: waveRightEnhanced 3.8s ease-in-out infinite;
}

@keyframes waveLeftEnhanced {
    0%, 100% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(18deg);
        box-shadow:
            0 0 14px rgba(169, 17, 1, 0.25),
            inset 0 0 10px rgba(169, 17, 1, 0.12);
    }
}

@keyframes waveRightEnhanced {
    0%, 100% {
        transform: rotate(-10deg);
    }
    50% {
        transform: rotate(-2deg);
        box-shadow:
            0 0 14px rgba(169, 17, 1, 0.25),
            inset 0 0 10px rgba(169, 17, 1, 0.12);
    }
}

/* Holographic Code Lines */
.character-code {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
    align-items: center;
}

.code-line {
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: codePulseFuturistic 3s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(169, 17, 1, 0.45);
    position: relative;
    overflow: hidden;
}

.code-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
    animation: codeGlitch 6s ease-in-out infinite;
}

.code-line:nth-child(1) {
    width: 60px;
    animation-delay: 0s;
}

.code-line:nth-child(1)::before {
    animation-delay: 0s;
}

.code-line:nth-child(2) {
    width: 80px;
    animation-delay: 0.2s;
}

.code-line:nth-child(2)::before {
    animation-delay: 1.5s;
}

.code-line:nth-child(3) {
    width: 50px;
    animation-delay: 0.4s;
}

.code-line:nth-child(3)::before {
    animation-delay: 3s;
}

@keyframes codePulseFuturistic {
    0%, 100% {
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(169, 17, 1, 0.6);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 20px rgba(169, 17, 1, 0.8);
    }
}

@keyframes codeGlitch {
    0%, 92%, 100% {
        transform: translateX(-100%);
    }
    94% {
        transform: translateX(0%);
    }
    96% {
        transform: translateX(100%);
    }
    98% {
        transform: translateX(0%);
    }
}

/* ==========================================
   ENHANCED FLOW LINES
   ========================================== */
.flow-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.flow-svg {
    width: 100%;
    height: 100%;
}

.flow-path {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 2.3;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0.35;
    animation: flowDashEnhanced 7s linear infinite, flowGlowEnhanced 8s ease-in-out infinite;
    filter: drop-shadow(0 0 4px rgba(169, 17, 1, 0.35));
}

.flow-path-2 {
    stroke: var(--accent-secondary);
    animation-delay: 2s;
    filter: drop-shadow(0 0 4px rgba(230, 59, 84, 0.35));
}

@keyframes flowDashEnhanced {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes flowGlowEnhanced {
    0%, 100% {
        opacity: 0.28;
        stroke-width: 2.3;
    }
    50% {
        opacity: 0.5;
        stroke-width: 2.7;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (min-width: 768px) {
    .hero-visual {
        min-height: 485px;
    }

    .hero-professional-card {
        max-width: 400px;
        padding: 1.85rem;
    }

    .nav-links {
        display: flex;
    }
    
    .nav-cta {
        display: inline-flex;
    }
}

/* iPad / Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-profile-card {
        max-width: 280px;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-intro-content {
        max-width: 100%;
    }
    
    .about-profile-card {
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experience-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-text {
        margin: 0 auto 1rem;
    }
    
    .cta-actions {
        justify-content: center;
    }
    
    .cta-visual-enhanced {
        display: none;
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .nav-container {
        padding: 1rem 1rem;
        min-height: 64px;
    }

    /* Push nav-actions and mobile-menu-btn to the right */
    .nav-actions {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    /* Hide Contact CTA button on mobile - it's in the mobile menu */
    .nav-actions .nav-cta {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: left;
    }
    
    .stat {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 1rem;
        background: var(--bg-secondary);
        border-radius: 0.75rem;
        border: 1px solid var(--border-color);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 4rem 0 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* About section refinements */
    .about-modern {
        gap: 1.5rem;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: center;
    }

    .about-intro-content {
        margin: 0 auto;
    }

    .about-headline {
        font-size: 1.5rem;
    }

    .about-lead {
        font-size: 0.95rem;
    }

    .about-profile-card {
        max-width: 280px;
        margin: 0 auto;
        padding: 1rem 1.25rem;
    }
    
    .about-avatar {
        width: 80px;
        height: 80px;
    }

    .about-skills {
        padding-top: 0.5rem;
    }
    
    .about-skills-title {
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .skill-card {
        padding: 0.75rem;
    }
    
    .skill-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .about-cta-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-cta-row .btn {
        width: 100%;
    }

    /* Experience section */
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .experience-panel {
        padding: 1rem;
    }
    
    .experience-card {
        padding: 0.5rem 0.625rem;
    }
    
    .experience-logo {
        width: 28px;
        height: 28px;
    }
    
    .experience-meta h4 {
        font-size: 0.75rem;
    }
    
    .skill-bars {
        grid-template-columns: 1fr;
    }
    
    /* CTA mobile */
    .cta-card {
        padding: 1.5rem 1.25rem;
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
    
    .cta-text {
        margin: 0 auto 1rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
        justify-content: center;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    .cta-visual-enhanced {
        display: none;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-greeting {
        font-size: 1.125rem;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-role-title {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .nav-logo .logo-mark {
        height: 36px;
        width: 135px;
    }

    .nav-actions {
        gap: 0.5rem;
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .lang-dropdown-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
    }

    .theme-toggle {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .nav-avatar {
        width: 32px;
        height: 32px;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .hero-visual {
        min-height: 280px;
    }
    
    .hero-profile-card {
        max-width: 240px;
    }
    
    .hero-profile-image {
        aspect-ratio: 1 / 1;
    }
    
    .specialty-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }
}

/* Hero Scroll Indicator */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.blob-divider {
    position: relative;
    height: 120px;
    margin-top: -30px;
    overflow: hidden;
}

.blob-divider .divider {
    width: 100%;
    height: 100%;
    display: block;
}

.about-blob-top {
    position: relative;
    padding-top: 7rem;
    margin-top: -20px;
    background: var(--bg-primary);
}

.about-blob-top::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 160px;
    background: radial-gradient(140% 100% at 50% 0%, rgba(255, 255, 255, 0.95), transparent 72%);
    border-bottom-left-radius: 80% 100%;
    border-bottom-right-radius: 80% 100%;
    pointer-events: none;
}

.about-blob-top::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 24px;
    background: var(--bg-primary);
    pointer-events: none;
}

.scroll-indicator {
    border: none;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ==========================================
   Sections
   ========================================== */
.section {
    padding: 6rem 0 7.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Alternating section backgrounds with warm undertones */
.section.section-alt {
    background: var(--bg-secondary);
}

.section.section-base {
    background: var(--bg-primary);
}

/* Soft inner glow for visual warmth */
.section.section-alt,
.section.section-base {
    box-shadow: inset 0 1px 0 0 var(--accent-tint),
                inset 0 60px 100px -60px var(--accent-tint);
}

/* First section doesn't need top shadow */
.section:first-of-type {
    box-shadow: inset 0 60px 100px -60px var(--accent-tint);
}

/* Dark mode: stronger glow and contrast */
[data-theme="dark"] .section.section-alt,
[data-theme="dark"] .section.section-base {
    box-shadow: inset 0 1px 0 0 var(--accent-tint),
                inset 0 80px 120px -60px var(--accent-tint),
                inset 0 -40px 80px -40px rgba(196, 26, 8, 0.03);
}

[data-theme="dark"] .section:first-of-type {
    box-shadow: inset 0 80px 120px -60px var(--accent-tint);
}

/* ==========================================
   ORGANIC BLOB DIVIDERS
   ========================================== */
.section-divider {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.section-divider.bottom {
    bottom: 0;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

.section-divider .blob-shape {
    fill: var(--bg-secondary);
}


.experience .section-divider {
    display: none;
}
/* Divider fills */
.section-divider.divider-secondary .blob-shape {
    fill: var(--bg-secondary);
}

.section-divider.divider-tertiary .blob-shape {
    fill: var(--bg-tertiary);
}

/* Responsive height */
@media (max-width: 768px) {
    .section-divider {
        height: 60px;
    }
}

@media (min-width: 1400px) {
    .section-divider {
        height: 150px;
    }
}

.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section divider line */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 1200px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.section:first-of-type::before {
    display: none;
}

.section .container {
    position: relative;
    z-index: 1;
}

.section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(2, 6, 23, 0.35));
    pointer-events: none;
}

[data-theme="light"] .section::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(226, 232, 240, 0.7));
}

.section.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    background:
        radial-gradient(1400px 700px at 15% -5%, rgba(169, 17, 1, 0.12), transparent 65%),
        radial-gradient(1200px 600px at 85% 5%, rgba(255, 77, 61, 0.08), transparent 60%),
        var(--bg-primary);
    padding-bottom: 7.5rem;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .hero {
    background:
        radial-gradient(1400px 700px at 15% -5%, rgba(169, 17, 1, 0.08), transparent 65%),
        radial-gradient(1200px 600px at 85% 5%, rgba(255, 77, 61, 0.05), transparent 60%),
        var(--bg-primary);
}

.about {
    background:
        linear-gradient(135deg, var(--bg-secondary) 0%, transparent 50%, rgba(169, 17, 1, 0.03) 100%),
        var(--bg-secondary);
}

[data-theme="light"] .about {
    background:
        linear-gradient(135deg, var(--bg-secondary) 0%, transparent 50%, rgba(169, 17, 1, 0.05) 100%),
        var(--bg-secondary);
}

.services {
    background:
        radial-gradient(ellipse 2000px 1000px at 50% -20%, rgba(169, 17, 1, 0.06), transparent 60%),
        radial-gradient(ellipse 1500px 800px at 20% 100%, rgba(139, 92, 246, 0.04), transparent 50%),
        var(--bg-tertiary);
}

[data-theme="light"] .services {
    background:
        radial-gradient(ellipse 2000px 1000px at 50% -20%, rgba(169, 17, 1, 0.08), transparent 60%),
        radial-gradient(ellipse 1500px 800px at 20% 100%, rgba(139, 92, 246, 0.05), transparent 50%),
        var(--bg-tertiary);
}

.experience {
    background:
        linear-gradient(180deg, rgba(169, 17, 1, 0.02) 0%, transparent 30%, rgba(169, 17, 1, 0.03) 100%),
        var(--bg-secondary);
}

[data-theme="light"] .experience {
    background:
        linear-gradient(180deg, rgba(169, 17, 1, 0.04) 0%, transparent 30%, rgba(169, 17, 1, 0.05) 100%),
        var(--bg-secondary);
}

.projects {
    background:
        radial-gradient(circle 1800px at 80% 0%, rgba(169, 17, 1, 0.04), transparent 55%),
        radial-gradient(circle 1600px at 20% 100%, rgba(236, 72, 153, 0.03), transparent 50%),
        var(--bg-secondary);
}

[data-theme="light"] .projects {
    background:
        radial-gradient(circle 1800px at 80% 0%, rgba(169, 17, 1, 0.06), transparent 55%),
        radial-gradient(circle 1600px at 20% 100%, rgba(236, 72, 153, 0.04), transparent 50%),
        var(--bg-secondary);
}

.cta {
    background: var(--bg-secondary);
}

@keyframes sectionShift {
    /* Removed - using static gradients for better performance */
}

.about,
.services,
.experience,
.projects {
    animation: none;
}

.raster-section {
    position: relative;
    overflow: hidden;
    --raster-x: 50%;
    --raster-y: 50%;
}

/* Services background inspired by SEFSolutions-master */
.services-split {
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
}

.services-split::before,
.services-split::after {
    display: none;
}

.raster-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(169, 17, 1, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.raster-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        800px circle at var(--raster-x) var(--raster-y),
        rgba(169, 17, 1, 0.06),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.raster-section-lg::before {
    background-size: 32px 32px;
}

.raster-section-lg::after {
    background: radial-gradient(
        1000px circle at var(--raster-x) var(--raster-y),
        rgba(169, 17, 1, 0.08),
        rgba(169, 17, 1, 0.02) 40%,
        transparent 60%
    );
}

[data-theme="light"] .raster-section::before {
    background-image: radial-gradient(circle at center, rgba(169, 17, 1, 0.12) 1px, transparent 1px);
}

[data-theme="light"] .raster-section::after {
    background: radial-gradient(
        800px circle at var(--raster-x) var(--raster-y),
        rgba(169, 17, 1, 0.08),
        rgba(169, 17, 1, 0.03) 40%,
        transparent 60%
    );
}

[data-theme="light"] .raster-section-lg::after {
    background: radial-gradient(
        1000px circle at var(--raster-x) var(--raster-y),
        rgba(169, 17, 1, 0.1),
        rgba(169, 17, 1, 0.04) 40%,
        transparent 60%
    );
}

.raster-section:hover::before,
.raster-section:hover::after {
    opacity: 1;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header.center {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 25%, var(--accent-primary) 50%, #d44a2a 75%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

.section-disclaimer {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-top: 0.75rem;
    opacity: 0.8;
}

.section-header.center .section-disclaimer {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   About Section - New Layout (3+9 grid + 4 cards)
   ========================================== */
.about-section {
    background: var(--bg-secondary);
}

/* Ensure alternating overlay sits behind content */
.section > .container {
    position: relative;
    z-index: 1;
}

/* Main Grid: Photo (3 cols) + Text (9 cols) */
.about-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Photo Column - hidden on mobile */
.about-photo-col {
    display: none;
    justify-content: center;
}

@media (min-width: 1024px) {
    .about-photo-col {
        display: flex;
    }
}

.about-photo-card {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.about-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

/* .about-photo-status removed - no longer used */

/* Text Column */
.about-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text-col .section-label {
    margin-bottom: 0.5rem;
}

.about-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 25%, var(--accent-primary) 50%, #d44a2a 75%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text-main {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.about-text-secondary {
    font-size: 0.9375rem;
    color: var(--text-tertiary);
    line-height: 1.7;
}

/* 4 Cards Grid */
.about-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.about-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.about-card-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.about-card-header h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.about-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-card-list li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-card-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-card-list li.current {
    position: relative;
    padding-left: 0.75rem;
}

.about-card-list li.current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--accent-primary);
    border-radius: 2px;
}

.list-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.list-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    margin-top: 0.125rem;
}

.about-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.chip-item {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.chip-item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* .chip-item.mendix styling removed - all chips now equal */

/* Tablet: 2x2 cards */
@media (min-width: 640px) {
    .about-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: Photo left (25%), Text right (75%) + 4 cards (25% each) */
@media (min-width: 1024px) {
    .about-main-grid {
        grid-template-columns: 3fr 9fr;
        gap: 3rem;
        align-items: center;
    }
    
    .about-photo-col {
        justify-content: flex-start;
    }
    
    .about-photo-card {
        max-width: 100%;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-text-main {
        font-size: 1.125rem;
    }
    
    .about-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

/* Legacy styles below - keeping for reference */
.profile-image-wrap {
    position: relative;
}

.profile-image-wrap img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 8px 24px rgba(169, 17, 1, 0.2);
}

.profile-status {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: #34c759;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.profile-info-unified h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
}

.profile-info-unified p {
    font-size: 0.8125rem;
    color: var(--accent-primary);
    font-weight: 500;
}

.profile-certs-row {
    display: flex;
    justify-content: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.profile-certs-row img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    transition: transform 0.2s ease;
}

.profile-certs-row img:hover {
    transform: scale(1.15);
}

.profile-stats-mini {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.stat-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-mini-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-mini-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about-lead-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

.btn-full-mobile {
    width: 100%;
}

/* Timeline - Right Column */
.about-exp-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.timeline-header h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border-color);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    display: flex;
    gap: 0.625rem;
}

.timeline-dot {
    position: absolute;
    left: -13px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.2s ease;
}

.timeline-item.current .timeline-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(169, 17, 1, 0.4);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.2);
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    transition: background 0.2s ease;
}

.timeline-item:hover .timeline-content {
    background: var(--bg-tertiary);
}

.timeline-logo {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    flex-shrink: 0;
}

.timeline-info {
    flex: 1;
    min-width: 0;
}

.timeline-info h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-company {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
}

.timeline-date {
    display: block;
    font-size: 0.625rem;
    color: var(--text-tertiary);
    margin-top: 0.125rem;
}

/* Certifications Chips */
.certs-block .timeline-header {
    margin-bottom: 0.5rem;
}

.certs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.cert-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.625rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.cert-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.cert-chip.mendix {
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.08), rgba(169, 17, 1, 0.02));
    border-color: rgba(169, 17, 1, 0.3);
    color: var(--accent-primary);
}

.cert-chip em {
    font-style: normal;
    font-size: 0.6rem;
    color: var(--text-tertiary);
    opacity: 0.8;
}

/* Skills Compact Row */
.skills-compact-row {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
}

.skills-row-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.skills-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.875rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* Desktop Layout */
@media (min-width: 768px) {
    .about-exp-grid {
        grid-template-columns: 320px 1fr;
        gap: 2.5rem;
        align-items: start;
    }
    
    .profile-card-unified {
        position: sticky;
        top: 100px;
    }
    
    .about-lead-text {
        text-align: left;
    }
    
    .btn-full-mobile {
        width: auto;
    }
    
    .about-exp-timeline {
        gap: 1rem;
    }
    
    .timeline-block {
        padding: 1.25rem;
    }
    
    .timeline-info h4 {
        white-space: normal;
    }
}

@media (min-width: 1024px) {
    .about-exp-grid {
        grid-template-columns: 340px 1fr;
        gap: 3rem;
    }
    
    .profile-image-wrap img {
        width: 140px;
        height: 140px;
    }
    
    .skills-chips {
        gap: 0.625rem;
    }
}

/* Legacy about styles for compatibility - hidden */
.about-modern,
.about-intro,
.about-intro-content,
.about-headline,
.about-lead,
.about-secondary,
.about-profile-card,
.about-avatar,
.about-profile-info,
.about-profile-name,
.about-profile-title,
.about-profile-certs,
.about-skills,
.about-skills-title,
.skills-grid,
.skill-card,
.skill-icon,
.skill-info,
.skill-name,
.skill-desc,
.about-cta-row {
    /* Keep definitions but section is replaced */
}

/* Legacy about styles for compatibility */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: 20% 30%;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    opacity: 0;
}

.certifications {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.certifications img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: var(--card-shadow);
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.highlight-item span {
    font-weight: 500;
}

/* ==========================================
   Services Section - Compact Card Style
   ========================================== */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.service-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    transition: height 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.service-card:hover::before {
    height: 100%;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.service-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.service-icon svg {
    width: 20px;
    height: 20px;
}

.service-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: auto 0 0;
    padding: 0;
}

.service-features li {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

/* Tablet: 2x2 grid */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 3 cards centered with flexbox */
@media (min-width: 1024px) {
    .services-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .services-grid .service-card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: 320px;
    }
}

/* ==========================================
   Experience Section - Legacy Styles (DEPRECATED)
   NOTE: These styles are kept for reference but are no longer used.
   The About + Experience sections have been merged into a unified
   section using .about-exp-grid and .timeline-block components.
   ========================================== */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.experience-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-panel:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.experience-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 4px 0 0 4px;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}

.panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.panel-icon {
    width: 18px;
    height: 18px;
    stroke: var(--accent-primary);
    fill: none;
    stroke-width: 2;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.experience-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    transition: all 0.25s ease;
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    left: -1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.25s ease;
}

.experience-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.experience-card:hover::before {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-50%) scale(1.2);
}

.experience-card.current {
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.08), rgba(169, 17, 1, 0.02));
    border-color: rgba(169, 17, 1, 0.3);
}

.experience-card.current::before {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(169, 17, 1, 0.4);
}

.experience-card-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
}

.experience-logo {
    width: 32px;
    height: 32px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    flex-shrink: 0;
}

.experience-meta {
    flex: 1;
    min-width: 0;
}

.experience-meta h4 {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.experience-company {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.experience-date {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
}

.experience-subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    padding-left: 0.5rem;
    border-top: 1px solid var(--border-color);
}

.experience-subtitle {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.skill-bars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.skill-bar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.skill-bar-track {
    position: relative;
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.skill-bar-track span {
    position: absolute;
    inset: 0;
    width: var(--skill-level);
    background: var(--accent-gradient);
    border-radius: 999px;
    opacity: 0.85;
    transition: width 0.5s ease;
}

/* Certifications - Compact Badges */
.certifications-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.cert-card {
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    padding: 0.625rem 0.75rem;
    transition: all 0.25s ease;
}

.cert-card:hover {
    border-color: var(--accent-primary);
    background: var(--bg-tertiary);
}

.cert-card h4 {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cert-card h4::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.cert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.cert-item {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.cert-year {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.65rem;
}

/* ==========================================
   Projects Section - Professional Cards
   (Legacy styles - now using compact layout)
   ========================================== */
/* .projects-grid moved to compact section below */

.project-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 1rem;
}

.project-logo {
    width: 56px;
    height: 56px;
    background: var(--bg-tertiary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.project-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}

.project-header-info {
    flex: 1;
}

.project-badge {
    display: none;
}

.project-header-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.project-sector {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: capitalize;
}

/* Project Metrics */
.project-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.project-metric {
    text-align: center;
    padding: 0.5rem 0;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Project Expandable Section */
.project-expandable {
    padding: 0 1.5rem;
}

.project-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.project-expand-btn:hover {
    background: rgba(169, 17, 1, 0.05);
    border-radius: 0.5rem;
}

.project-expand-btn svg {
    transition: transform 0.3s ease;
}

.project-card.expanded .project-expand-btn svg {
    transform: rotate(180deg);
}

.project-details {
    display: none;
    padding: 0 0 1rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card.expanded .project-details {
    display: block;
}

.project-detail-row {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
}

.project-detail-row h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-detail-row p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.5rem;
}

.project-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Project Footer */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.project-role {
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================
   CTA Section - Inspired by SEFSolutions-master
   ========================================== */
.cta.section {
    padding: 7rem 0;
    background: linear-gradient(
        to bottom,
        var(--bg-primary) 0%,
        var(--bg-primary) 55%,
        var(--bg-secondary) 55%,
        var(--bg-secondary) 100%
    );
}

.cta-card {
    background: var(--accent-primary);
    border-radius: 1.25rem;
    padding: 3.25rem 2rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.28);
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 500px at 70% 20%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(circle 380px at 25% 85%, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.cta-card::after {
    content: '';
    position: absolute;
    inset: -60%;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: skewY(12deg) scale(2);
    opacity: 0.35;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: radial-gradient(350px circle at center, #fff, transparent);
    mask-image: radial-gradient(350px circle at center, #fff, transparent);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.cta-text {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    margin-bottom: 1rem;
    max-width: 640px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.cta-actions .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    min-height: 46px;
}

.cta-visual {
    display: none;
}

.cta-shapes {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

/* Desktop layout */
@media (min-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 3rem;
        gap: 1.75rem;
    }

    .cta-content {
        flex: 1;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-actions {
        justify-content: center;
    }
}

/* CTA Enhanced Character */
.cta-visual-enhanced {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    min-width: 160px;
}

/* Floating Blocks */
.cta-floating-blocks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-block {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-block-1 {
    width: 18px;
    height: 18px;
    top: 10%;
    left: 5%;
    animation: floatBlock 4s ease-in-out infinite;
}

.cta-block-2 {
    width: 14px;
    height: 14px;
    top: 60%;
    right: 2%;
    animation: floatBlock 5s ease-in-out infinite 1s;
}

.cta-block-3 {
    width: 12px;
    height: 12px;
    bottom: 20%;
    left: 10%;
    animation: floatBlock 3.5s ease-in-out infinite 0.5s;
}

@keyframes floatBlock {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-12px) rotate(10deg); opacity: 1; }
}

/* Character Enhanced */
.cta-character-enhanced {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    animation: characterBob 3.5s ease-in-out infinite;
    isolation: isolate;
}

.cta-character-enhanced::before {
    content: '';
    position: absolute;
    inset: -28px;
    background: radial-gradient(circle at 50% 40%, rgba(169, 17, 1, 0.15), transparent 65%),
                radial-gradient(circle at 30% 70%, rgba(130, 180, 230, 0.2), transparent 70%),
                radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.18), transparent 72%);
    filter: blur(24px);
    z-index: -2;
}

.cta-character-enhanced::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: conic-gradient(from 90deg, rgba(169, 17, 1, 0.2), rgba(130, 180, 230, 0.12), rgba(139, 92, 246, 0.16), rgba(169, 17, 1, 0.2));
    opacity: 0.25;
    filter: blur(30px);
    z-index: -1;
}

.cta-flow-network {
    position: absolute;
    inset: -30px -40px -10px -40px;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0, rgba(255,255,255,0) 40%),
        radial-gradient(circle at 70% 20%, rgba(214,19,58,0.15) 0, rgba(214,19,58,0) 50%),
        radial-gradient(circle at 80% 70%, rgba(130,180,230,0.12) 0, rgba(130,180,230,0) 55%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 2px, transparent 2px, transparent 14px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.05), rgba(255,255,255,0.05) 2px, transparent 2px, transparent 12px);
    opacity: 0.8;
    mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 75%);
    z-index: -1;
    animation: networkPulse 6s ease-in-out infinite;
}

@keyframes networkPulse {
    0%, 100% { opacity: 0.65; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

@keyframes characterBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.cta-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    background:
        radial-gradient(circle at 40% 40%, rgba(169, 17, 1, 0.38), transparent 58%),
        radial-gradient(circle at 70% 60%, rgba(130, 180, 230, 0.28), transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.25), transparent 62%);
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    filter: blur(20px);
    animation: glowPulse 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.95); }
    50% { opacity: 0.95; transform: translateX(-50%) scale(1.12); }
}

.cta-character-head {
    position: relative;
    z-index: 3;
}

.cta-diamond {
    width: 88px;
    height: 88px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.75)),
                linear-gradient(135deg, rgba(169, 17, 1, 0.28), rgba(130, 180, 230, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.25),
        0 0 28px rgba(169, 17, 1, 0.35);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cta-diamond::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(169, 17, 1, 0.35);
    border-radius: 50%;
    opacity: 0.9;
}

.cta-character-enhanced:hover .cta-diamond {
    transform: translateY(-2px) scale(1.08);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.28),
        0 0 32px rgba(169, 17, 1, 0.45);
}

.cta-diamond span {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent-primary);
    text-shadow: 0 2px 6px rgba(169, 17, 1, 0.3);
    letter-spacing: 0.04em;
}

.cta-character-body {
    width: 14px;
    height: 110px;
    background: linear-gradient(180deg, rgba(169, 17, 1, 0.9) 0%, rgba(169, 17, 1, 0.35) 100%);
    border-radius: 12px;
    margin-top: -6px;
    position: relative;
    z-index: 2;
    overflow: visible;
    box-shadow: 0 12px 24px rgba(169, 17, 1, 0.35);
}

.cta-character-body::before,
.cta-character-body::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff, rgba(169, 17, 1, 0.2));
    box-shadow: 0 0 12px rgba(169, 17, 1, 0.45);
}

.cta-character-body::before {
    top: 18px;
}

.cta-character-body::after {
    top: 68px;
}

.body-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 220%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.22) 35%, rgba(255,255,255,0.55) 50%, transparent 70%);
    animation: bodyShine 2.4s ease-in-out infinite;
}

@keyframes bodyShine {
    0%, 100% { transform: translateX(-80%); }
    50% { transform: translateX(80%); }
}

.cta-character-body.waving {
    animation: bodyWave 0.7s ease-in-out 1;
}

@keyframes bodyWave {
    0%, 100% { transform: translateY(0) scaleY(1); }
    30% { transform: translateY(-6px) scaleY(0.96); }
    60% { transform: translateY(3px) scaleY(1.04); }
}

.cta-character-arms {
    position: absolute;
    top: 64px;
    width: 170px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.cta-character-arms .arm-left,
.cta-character-arms .arm-right {
    width: 12px;
    height: 64px;
    background: linear-gradient(180deg, rgba(169, 17, 1, 0.95) 0%, rgba(169, 17, 1, 0.4) 100%);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 24px rgba(169, 17, 1, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-character-arms .arm-left::after,
.cta-character-arms .arm-right::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.9;
}

.cta-character-arms .arm-left:hover,
.cta-character-arms .arm-right:hover {
    background: linear-gradient(180deg, rgba(169, 17, 1, 1) 0%, rgba(169, 17, 1, 0.6) 100%);
    box-shadow: 0 14px 26px rgba(169, 17, 1, 0.45);
    transform: translateY(-2px);
}

.cta-character-arms .arm-left {
    transform: rotate(14deg);
    transform-origin: top center;
    animation: armSwayLeft 3s ease-in-out infinite;
}

.cta-character-arms .arm-right {
    transform: rotate(-14deg);
    transform-origin: top center;
    animation: armSwayRight 3s ease-in-out infinite 0.4s;
}

@keyframes armSwayLeft {
    0%, 100% { transform: rotate(14deg); }
    50% { transform: rotate(32deg); }
}

@keyframes armSwayRight {
    0%, 100% { transform: rotate(-14deg); }
    50% { transform: rotate(-32deg); }
}

.cta-character-arms .arm-left.waving,
.cta-character-arms .arm-right.waving,
.cta-character-body.waving {
    animation-duration: 0.7s;
}

.cta-character-arms .arm-left.waving {
    animation: bigWaveLeft 0.7s ease-in-out 3;
}

.cta-character-arms .arm-right.waving {
    animation: bigWaveRight 0.7s ease-in-out 3;
}

@keyframes bigWaveLeft {
    0%, 100% { transform: rotate(14deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(44deg); }
}

@keyframes bigWaveRight {
    0%, 100% { transform: rotate(-14deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-44deg); }
}

.cta-character-legs {
    position: absolute;
    bottom: -34px;
    width: 90px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.cta-character-legs .leg-left,
.cta-character-legs .leg-right {
    width: 14px;
    height: 44px;
    background: linear-gradient(180deg, rgba(169, 17, 1, 0.85) 0%, rgba(169, 17, 1, 0.55) 100%);
    border-radius: 10px;
    box-shadow: 0 10px 18px rgba(169, 17, 1, 0.32);
    position: relative;
}

.cta-character-legs .leg-left::after,
.cta-character-legs .leg-right::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.9;
}

/* Microflow Mini */
.cta-microflow {
    margin-top: 2.25rem;
    opacity: 0.78;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.cta-character-enhanced:hover ~ .cta-microflow {
    opacity: 1;
    transform: translateY(-4px);
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: 10%;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 20%;
}

/* cta-card overlay handled by ::before */

/* ==========================================
   Contact + Demo Pages
   ========================================== */
.contact-page,
.demo-page,
.privacy-page {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
    min-height: calc(100vh - 80px);
}

.privacy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.privacy-page .last-updated {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
}

.hero-mark {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-mark img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.privacy-page .privacy-section {
    margin-top: 2rem;
}

.privacy-page h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.privacy-page p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.privacy-page ul {
    margin: 0.75rem 0 0.5rem;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.privacy-page li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.contact-header,
.demo-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1,
.demo-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
}

.demo-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

.demo-visual {
    display: flex;
    justify-content: center;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.contact-methods {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.contact-method:hover {
    border-color: var(--accent-primary);
    transform: translateX(4px);
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.contact-method p {
    color: var(--text-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.contact-method a {
    font-weight: 500;
    color: var(--text-primary);
}

.contact-method a:hover {
    color: var(--accent-primary);
}

/* Clickable contact method cards */
a.contact-method-link {
    text-decoration: none;
    cursor: pointer;
}

a.contact-method-link span {
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

a.contact-method-link:hover span {
    color: var(--accent-primary);
}

/* Contact Availability */
.contact-availability {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    margin-top: 1.25rem;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-primary);
}

/* Demo Link Card */
.demo-link-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.08), rgba(169, 17, 1, 0.02));
    border: 1px solid rgba(169, 17, 1, 0.2);
    border-radius: 1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.demo-link-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(169, 17, 1, 0.15);
}

.demo-link-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-primary);
    border-radius: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.demo-link-content {
    flex: 1;
}

.demo-link-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.demo-link-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.demo-link-card .btn {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .demo-link-card {
        flex-direction: column;
        text-align: center;
    }

    .demo-link-card .btn {
        width: 100%;
    }
}

.demo-cta {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
}

.contact-form-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--card-shadow);
}

.contact-form {
    display: grid;
    gap: 1.25rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(169, 17, 1, 0.12);
    outline: none;
}
.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success,
.form-error {
    display: none;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
}

.form-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.form-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.form-success.show,
.form-error.show {
    display: block;
}

.user-story-section {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.user-story {
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0.75rem;
    position: relative;
}

.user-story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.user-story-number {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-remove-story {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-remove-story:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.05);
}

.user-story label {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.user-story label span {
    font-size: 10px;
    color: var(--text-tertiary);
}

.btn-add-story {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px dashed var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-add-story.hidden {
    display: none;
}

/* ==========================================
   Footer (Secondary Pages)
   ========================================== */
.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-top .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.btn-top {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-legal a {
    color: var(--text-secondary);
}

.footer-legal a:hover {
    color: var(--accent-primary);
}

/* ==========================================
   Language Switcher (Secondary Pages)
   ========================================== */
.lang-switcher {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
}

.lang-switcher .lang-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
}

.lang-switcher .lang-btn.active {
    border-color: var(--accent-primary);
}

.lang-switcher img {
    width: 22px;
    height: 22px;
}

/* ==========================================
   Footer - Ultra Professional
   ========================================== */
.footer-pro {
    position: relative;
    background:
        radial-gradient(ellipse 100% 80% at 20% 100%, rgba(169, 17, 1, 0.06), transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 100%, rgba(169, 17, 1, 0.04), transparent 40%),
        var(--bg-secondary);
    padding: 4rem 0 0;
    overflow: hidden;
}

[data-theme="dark"] .footer-pro {
    background:
        radial-gradient(ellipse 100% 80% at 20% 100%, rgba(169, 17, 1, 0.12), transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 100%, rgba(169, 17, 1, 0.08), transparent 40%),
        var(--bg-secondary);
}

/* Decorative top border with gradient */
.footer-pro-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--accent-primary) 20%,
        var(--accent-primary) 80%,
        transparent 100%
    );
    opacity: 0.8;
}

/* Main footer grid */
.footer-pro-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

/* Brand column */
.footer-pro-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-pro-logo {
    display: inline-flex;
    align-items: center;
}

.footer-pro-logo img {
    height: 32px;
    width: auto;
    transition: transform 0.3s ease;
}

.footer-pro-logo:hover img {
    transform: scale(1.05);
}

.footer-pro-tagline {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
    margin: 0;
}

/* Social links */
.footer-pro-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.footer-social-link:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(169, 17, 1, 0.25);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Links columns */
.footer-pro-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-pro-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-pro-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
}

.footer-pro-nav {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-pro-nav a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    padding: 0.25rem 0;
    position: relative;
}

.footer-pro-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.footer-pro-nav a:hover {
    color: var(--accent-primary);
    padding-left: 0.5rem;
}

.footer-pro-nav a:hover::before {
    width: 100%;
}

/* Contact column */
.footer-pro-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-contact-item:hover {
    color: var(--accent-primary);
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--accent-primary);
    opacity: 0.8;
}

.footer-location {
    cursor: default;
}

/* Footer bottom */
.footer-pro-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    align-items: center;
    text-align: center;
}

.footer-pro-bottom-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-pro-copy,
.footer-pro-kvk {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

.footer-pro-separator {
    color: var(--border-color);
    font-size: 0.75rem;
}

.footer-pro-bottom-right a {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-pro-bottom-right a:hover {
    color: var(--accent-primary);
}

/* Tablet - 640px+ */
@media (min-width: 640px) {
    .footer-pro-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-pro-brand {
        grid-column: 1 / -1;
    }
}

/* Desktop - 768px+ */
@media (min-width: 768px) {
    .footer-pro {
        padding: 5rem 0 0;
    }

    .footer-pro-main {
        grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
        gap: 3rem;
    }

    .footer-pro-brand {
        grid-column: auto;
    }

    .footer-pro-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-pro-bottom-left {
        justify-content: flex-start;
    }
}

/* Large Desktop - 1024px+ */
@media (min-width: 1024px) {
    .footer-pro-main {
        gap: 4rem;
    }

    .footer-pro-logo img {
        height: 36px;
    }

    .footer-pro-tagline {
        max-width: 320px;
    }
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-cta {
        display: inline-flex;
    }

    .mobile-menu-btn {
        display: none;
    }

    .section-title {
        font-size: 2.75rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-intro {
        grid-template-columns: 1fr auto;
        gap: 3rem;
        align-items: stretch;
    }

    .about-profile-card {
        justify-content: center;
    }

    .about-headline {
        font-size: 2.25rem;
    }

    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .skill-bars {
        grid-template-columns: 1fr;
    }

    /* .projects-grid now using compact layout - see below */

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .demo-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }
}


@media (max-width: 640px) {
    .privacy-page {
        padding: 6rem 0 4rem;
    }

    .privacy-page h1 {
        font-size: 2rem;
    }

    .privacy-page h2 {
        font-size: 1.0625rem;
    }
}

@media (min-width: 1024px) {
    /* hero-title now handled by modern three-tier typography styles */

    .section {
        padding: 7.5rem 0 9rem;
    }

    .cta-card {
        padding: 2.5rem;
    }

    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .skill-bars {
        grid-template-columns: 1fr 1fr;
    }
}


/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

/* Three-Tier Hero Typography */
.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-greeting {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0;
}

.hero-name {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    padding-bottom: 0.1em;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Compact Projects Section with Accordion
   ========================================== */
/* .projects-grid styles moved to sections-v2.css */

.project-card-compact {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
    overflow: hidden;
}

.project-card-compact:hover {
    border-color: rgba(169, 17, 1, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.project-card-compact.expanded {
    border-color: var(--accent-primary);
    box-shadow: var(--card-shadow-hover);
}

/* Header - clickable button area */
.project-compact-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    color: inherit;
}

.project-compact-header:hover {
    background: var(--bg-secondary);
}

.project-compact-header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .project-compact-header-main {
        align-items: center;
    }
}

.project-compact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.project-compact-icon svg {
    width: 20px;
    height: 20px;
}

.project-compact-header:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
    border-radius: var(--radius-l);
}

/* Mobile preview - only show on mobile */
.project-mobile-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    margin-top: var(--space-s);
}

@media (min-width: 768px) {
    .project-mobile-preview {
        display: none;
    }
}

.project-compact-left {
    display: none;
}

.project-compact-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-info-compact {
    flex: 1;
    min-width: 0;
}

.project-info-compact h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.project-meta-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.project-divider {
    opacity: 0.3;
}

.project-role-compact {
    color: var(--text-secondary);
    font-weight: 400;
}

.project-period-compact {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Metric chips with icons */
.project-metrics-inline {
    display: none;
    gap: 0.375rem;
}

.metric-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.6rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
}

.metric-chip-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    opacity: 0.8;
    flex-shrink: 0;
}

.metric-chip-content {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.metric-chip-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1;
}

.metric-chip-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Expand icon */
.project-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-card-compact:hover .project-expand-icon {
    background: var(--accent-primary);
    color: #fff;
}

.project-expand-icon svg {
    transition: transform 0.3s ease;
}

.project-card-compact.expanded .project-expand-icon svg {
    transform: rotate(180deg);
}

/* Expandable details */
.project-compact-details {
    display: none;
    padding: 0 1.25rem;
}

.project-card-compact.expanded .project-compact-details {
    display: block;
    padding: 0 1.25rem 1.25rem;
}

.project-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-detail-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
}

.project-detail-item h4 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-detail-item p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.project-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag-compact {
    display: inline-block;
    padding: 0.3rem 0.625rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Desktop layout */
@media (min-width: 768px) {
    .project-compact-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }

    .project-metrics-inline {
        display: flex;
    }

    .project-detail-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-compact-details {
        padding: 0 1.5rem 1.5rem;
    }
}

/* .project-card styles now in sections-v2.css */

/* ==========================================
   PREMIUM UPGRADE - NEW COMPONENTS
   ========================================== */

/* ==========================================
   HERO PROOF STRIP
   ========================================== */
.hero-proof-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
    margin-bottom: var(--space-xl);
    padding: var(--space-l);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
}

.proof-item {
    display: flex;
    align-items: center;
    gap: var(--space-s);
}

.proof-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.1), rgba(169, 17, 1, 0.05));
    border: 1px solid rgba(169, 17, 1, 0.2);
    border-radius: var(--radius-s);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.proof-icon svg {
    width: 16px;
    height: 16px;
}

.proof-text {
    font-size: var(--text-s);
    font-weight: 500;
    color: var(--text-secondary);
    line-height: var(--leading-snug);
}

@media (min-width: 768px) {
    .hero-proof-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-l);
    }
}

@media (max-width: 480px) {
    .hero-proof-strip {
        grid-template-columns: 1fr;
        gap: var(--space-s);
        padding: var(--space-m);
    }
}

/* ==========================================
   TERMINAL CARD (ABOUT SECTION)
   ========================================== */
.terminal-card {
    background: #1a1a24;
    border: 1px solid #303145;
    border-radius: var(--radius-l);
    overflow: hidden;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    box-shadow: var(--shadow-l);
}

[data-theme="light"] .terminal-card {
    background: #1e1e2e;
    border-color: #313244;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-m);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: var(--text-xs);
    color: #6c7086;
    font-weight: 500;
}

.terminal-body {
    padding: var(--space-m);
    min-height: 180px;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: var(--space-s);
    margin-bottom: var(--space-s);
    font-size: var(--text-s);
    line-height: var(--leading-relaxed);
}

.terminal-prompt {
    color: #a6e3a1;
    font-weight: 600;
    flex-shrink: 0;
}

.terminal-text {
    color: #cdd6f4;
}

.terminal-text .highlight {
    color: #f9e2af;
}

.terminal-text .accent {
    color: #f38ba8;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #cdd6f4;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Typing animation - respects reduced motion */
.terminal-line.typing .terminal-text {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 0.8s steps(30, end) forwards;
    width: 0;
}

.terminal-line.typing:nth-child(2) .terminal-text { animation-delay: 0.3s; }
.terminal-line.typing:nth-child(3) .terminal-text { animation-delay: 0.6s; }
.terminal-line.typing:nth-child(4) .terminal-text { animation-delay: 0.9s; }
.terminal-line.typing:nth-child(5) .terminal-text { animation-delay: 1.2s; }
.terminal-line.typing:nth-child(6) .terminal-text { animation-delay: 1.5s; }

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* ==========================================
   ABOUT SECTION - 2 COLUMN WITH TERMINAL
   ========================================== */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (min-width: 1024px) {
    .about-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
        align-items: center;
    }
}

/* ==========================================
   ENHANCED SERVICE CARDS WITH PREVIEW
   ========================================== */
.service-card-premium {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-l);
    padding: var(--space-l);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.service-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(169, 17, 1, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.service-card-premium:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-l), var(--shadow-glow);
}

.service-card-premium:hover::before {
    opacity: 1;
}

.service-preview {
    margin-bottom: var(--space-m);
    padding: var(--space-m);
    background: var(--bg-tertiary);
    border-radius: var(--radius-m);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-preview-code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    text-align: left;
    width: 100%;
}

.service-preview-code .keyword { color: #f38ba8; }
.service-preview-code .string { color: #a6e3a1; }
.service-preview-code .function { color: #89b4fa; }

.service-outcomes {
    list-style: none;
    padding: 0;
    margin: var(--space-m) 0 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.service-outcomes li {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    font-size: var(--text-s);
    color: var(--text-secondary);
}

.service-outcomes li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ==========================================
   ENHANCED PROJECT ACCORDION - CASE STUDY
   ========================================== */
.project-accordion-btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--space-m);
    padding: var(--space-l);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-base);
}

.project-accordion-btn:hover {
    background: var(--bg-secondary);
}

/* Facts Grid */
.project-facts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
    padding-top: var(--space-m);
    border-top: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .project-facts-grid {
        grid-template-columns: 1fr;
    }
}

.project-fact-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.project-fact-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.project-fact-value {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-primary);
}

/* Delivered Items */
.project-delivered-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.project-delivered-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-s);
    font-size: var(--text-s);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.project-delivered-list li::before {
    content: '→';
    color: var(--accent-primary);
    font-weight: 600;
    flex-shrink: 0;
}

/* Mobile Preview */
.project-mobile-preview {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-s);
    margin-top: var(--space-s);
    padding-top: var(--space-s);
    border-top: 1px dashed var(--border-color);
}

.project-mobile-preview .preview-item {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

/* Metrics Scroll on Mobile */
.project-metrics-scroll {
    display: flex;
    gap: var(--space-s);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-s);
    margin-bottom: calc(-1 * var(--space-s));
}

.project-metrics-scroll::-webkit-scrollbar {
    height: 4px;
}

.project-metrics-scroll::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.project-metrics-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

.project-metrics-scroll .metric-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .project-metrics-scroll {
        overflow: visible;
        flex-wrap: wrap;
    }
}

/* Expanded Details Animation */
.project-details-animated {
    grid-template-rows: 1fr;
}

.project-details-inner {
    overflow: hidden;
}

/* ==========================================
   ENHANCED CTA SECTION
   ========================================== */
.cta-card-premium {
    position: relative;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #c01805 55%, #ff4d3d 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    overflow: hidden;
}

.cta-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 600px at 80% 20%, rgba(255, 255, 255, 0.15), transparent 50%),
        radial-gradient(circle 400px at 20% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.cta-card-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: rotate(15deg);
    pointer-events: none;
}

.cta-depth-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.55;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* CTA Character - smaller on mobile */
.cta-character-compact {
    transform: scale(0.85);
}

@media (max-width: 768px) {
    .cta-character-compact {
        transform: scale(0.7);
        opacity: 0.9;
    }
}

/* ==========================================
   ENHANCED FOOTER
   ========================================== */
.footer-availability {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    padding: var(--space-xs) var(--space-m);
    background: rgba(52, 199, 89, 0.1);
    border: 1px solid rgba(52, 199, 89, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: #34c759;
    font-weight: 500;
}

.footer-availability .status-dot {
    width: 6px;
    height: 6px;
    background: #34c759;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.footer-compact-enhanced {
    padding: var(--space-l) 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-m);
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================
   COMPREHENSIVE REDUCED MOTION SUPPORT
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .terminal-cursor {
        animation: none;
        opacity: 1;
    }

    .terminal-line.typing .terminal-text {
        animation: none;
        width: 100%;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
    }

    .hero-proof-strip,
    .terminal-card,
    .service-card-premium,
    .project-card-compact {
        transition: none;
    }

    .btn:hover,
    .service-card-premium:hover,
    .project-card-compact:hover {
        transform: none;
    }

    .status-dot,
    .footer-availability .status-dot {
        animation: none;
    }
}

/* ==========================================
   MICRO-INTERACTIONS - PREMIUM HOVER STATES
   ========================================== */

/* Button Press Effect */
.btn:active {
    transform: scale(0.98);
}

/* Card Shine Effect */
.service-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transition: left 0.5s ease;
    pointer-events: none;
}

.service-card-premium:hover::after {
    left: 100%;
}

/* Chip Hover */
.chip-item,
.project-tag-compact,
.metric-chip {
    transition: all var(--transition-base);
}

.chip-item:hover,
.project-tag-compact:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-s);
}

/* Section Reveal Enhancement - Modern */
.section.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.98);
    filter: blur(8px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.section.reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}


/* Section CTA Links */
.section-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    color: var(--accent-primary);
    font-weight: 500;
    border: 1px solid var(--accent-primary);
    border-radius: 2rem;
    transition: all 0.3s ease;
}

.section-cta-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.section-cta-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.section-cta-link:hover svg {
    transform: translateX(4px);
}

/* Experience Section Styling */
.experience-section {
    padding: 5rem 0;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
}

@media (min-width: 768px) {
    .experience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .experience-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.experience-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.experience-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.experience-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.experience-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(169, 17, 1, 0.1);
    border-radius: 0.75rem;
    color: var(--accent-primary);
}

.experience-card-icon svg {
    width: 24px;
    height: 24px;
}

.experience-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.experience-list li:last-child {
    border-bottom: none;
}

.exp-role {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.exp-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.exp-period {
    font-size: 0.8125rem;
    color: var(--accent-primary);
    font-weight: 500;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Certification Items */
.cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.cert-item:hover {
    background: rgba(169, 17, 1, 0.1);
}

.cert-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cert-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Section Footer with CTA */
.section-footer {
    margin-top: 2.5rem;
}

.section-footer.center {
    display: flex;
    justify-content: center;
}

/* Dark mode consistency for CTA links */
[data-theme="dark"] .section-cta-link {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="dark"] .section-cta-link:hover {
    background: var(--accent-primary);
    color: white;
}

[data-theme="light"] .section-cta-link {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

[data-theme="light"] .section-cta-link:hover {
    background: var(--accent-primary);
    color: white;
}

/* ==========================================
   Availability Indicator
   ========================================== */
.nav-availability {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-full);
    cursor: default;
    transition: all 0.2s ease;
}

.nav-availability:hover {
    background: rgba(34, 197, 94, 0.15);
}

.availability-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
    }
}

.availability-text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #16a34a;
}

[data-theme="dark"] .nav-availability {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
}

[data-theme="dark"] .availability-text {
    color: #4ade80;
}

@media (min-width: 768px) {
    .nav-availability {
        display: flex;
    }
}

/* ==========================================
   Ghost Dark Button (for hero)
   ========================================== */
.btn-ghost-dark {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
}

.btn-ghost-dark:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(169, 17, 1, 0.05);
}

/* ==========================================
   Testimonials / Results Section
   ========================================== */
.testimonials-section {
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .testimonials-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .testimonials-grid .testimonial-card {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: 320px;
    }
}

.testimonial-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    transition: height 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.testimonial-card:hover::before {
    height: 100%;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.testimonial-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.testimonial-icon svg {
    width: 20px;
    height: 20px;
}

.testimonial-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.testimonial-industry {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.testimonial-quote {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-style: normal;
}

.testimonial-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.testimonial-tech .tech-tag {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.testimonial-metric {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.testimonial-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.testimonial-metric .metric-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ==========================================
   Trusted By / Client Logos Section
   ========================================== */
.trusted-section {
    padding: var(--space-2xl) 0;
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    margin-top: 2rem;
}

.trusted-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.trusted-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.trusted-logo img {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
}

[data-theme="dark"] .trusted-logo {
    filter: grayscale(100%) brightness(2);
}

[data-theme="dark"] .trusted-logo:hover {
    filter: grayscale(0%) brightness(1);
}

@media (min-width: 768px) {
    .trusted-logo img {
        max-height: 48px;
        max-width: 140px;
    }
}

/* ==========================================
   Widget Card in Impact Grid
   ========================================== */
.widget-logo-image {
    width: 80px !important;
    height: 80px !important;
    padding: 0;
    overflow: hidden;
    background: transparent !important;
    box-shadow: none !important;
}

.widget-logo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.widget-card .project-client {
    color: var(--accent-primary);
    font-weight: 600;
}

.widget-card .widget-preview-image-compact {
    margin: 1rem 0 1.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .widget-card .widget-preview-image-compact {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.widget-card .widget-preview-image-compact img {
    width: 100%;
    height: auto;
    display: block;
}

.widget-marketplace-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    margin-top: 0.75rem;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(169, 17, 1, 0.25);
}

.widget-marketplace-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(169, 17, 1, 0.35);
}

.widget-marketplace-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.widget-marketplace-link:hover svg {
    transform: translateX(2px);
}

/* ==========================================
   Open Source Widget Section
   ========================================== */
.opensource-section-wrapper {
    width: 100%;
    margin-top: 3rem;
    grid-column: 1 / -1; /* For grid layout on mobile/tablet */
}

@media (min-width: 1024px) {
    .opensource-section-wrapper {
        flex: 0 0 100%; /* For flexbox layout on desktop */
    }
}

/* Divider with subtitle */
.impact-subsection-divider {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-primary) 25%, var(--accent-primary) 50%, #d44a2a 75%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Opensource subtitle */
.opensource-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -0.5rem auto 2rem;
    line-height: 1.5;
}

/* Widget Card - center on desktop */
.opensource-section-wrapper .project-card {
    max-width: 400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .opensource-section-wrapper {
        margin-top: 2rem;
    }

    .impact-subsection-divider {
        gap: 1rem;
    }

    .divider-subtitle {
        font-size: 1.125rem;
    }

    .opensource-subtitle {
        font-size: 0.85rem;
        margin: -0.25rem auto 1.5rem;
        padding: 0 1rem;
    }

    .opensource-section-wrapper .project-card {
        max-width: 100%;
    }
}

/* ==========================================
   Prefers Reduced Motion Support
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .availability-dot {
        animation: none;
    }

    .fade-in-up {
        opacity: 1;
        transform: none;
    }

    .reveal-on-scroll,
    .stagger-children > * {
        opacity: 1;
        transform: none;
    }

    .star-bg,
    .stars-layer-1,
    .stars-layer-2,
    .stars-layer-3 {
        animation: none;
    }
}
