/* ==========================================================================
   Andreas Kalkusinski - Personal Website
   Bold & Modern Design System (2026)
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Refined & Warm */
    --color-primary: #2563eb;
    --color-primary-light: #3b82f6;
    --color-primary-dark: #1d4ed8;
    --color-primary-subtle: #eff6ff;

    --color-accent: #f97316;
    --color-accent-light: #fb923c;

    /* Neutrals - Warmer tones */
    --color-bg: #fafafa;
    --color-bg-alt: #ffffff;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;

    --color-text: #18181b;
    --color-text-secondary: #52525b;
    --color-text-muted: #a1a1aa;
    --color-text-inverted: #ffffff;

    --color-border: #e4e4e7;
    --color-border-light: #f4f4f5;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    --gradient-warm: linear-gradient(135deg, #fef3c7 0%, #fce7f3 50%, #ede9fe 100%);
    --gradient-surface: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Type Scale - More dramatic */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --text-7xl: 6rem;

    /* Spacing - More generous */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* Layout */
    --container-max: 1280px;
    --container-narrow: 720px;
    --container-padding: clamp(1.5rem, 5vw, 3rem);

    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows - Softer, more layered */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.15);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;
}

/* --------------------------------------------------------------------------
   Font Faces
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-variable.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 17px; /* Slightly larger base for mobile readability */
}

@media (min-width: 768px) {
    html {
        font-size: 16px; /* Standard size for desktop */
    }
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
    background: none;
    border: none;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.text-muted {
    color: var(--color-text-muted);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Section Styles
   -------------------------------------------------------------------------- */
.section {
    padding-block: var(--space-24);
}

@media (min-width: 768px) {
    .section {
        padding-block: var(--space-32);
    }
}

.section__header {
    margin-bottom: var(--space-16);
    text-align: center;
}

.section__header--left {
    text-align: left;
    max-width: 600px;
}

.section__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.section__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding-top: calc(var(--space-4) + env(safe-area-inset-top, 0px));
    padding-bottom: var(--space-4);
    transition: all var(--duration-base) var(--ease-out);
}

/* Base scrolled state - clean blur */
.header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.header.menu-open {
    background-color: #ffffff;
}

/* --------------------------------------------------------------------------
   Header Style Options - Add class to <header> to activate
   Options: header--glass, header--pill, header--gradient, header--progress
   -------------------------------------------------------------------------- */

/* Option 1: Glassmorphism Header */
.header--glass.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.5) inset,
        0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Option 2: Floating Pill Header - Enhanced Glass */
.header--pill {
    padding-inline: var(--space-4);
}

.header--pill.is-scrolled {
    top: var(--space-4);
    left: var(--space-6);
    right: var(--space-6);
    padding-block: var(--space-3);
    /* Enhanced glass with color tint */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.75) 0%,
        rgba(240, 245, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.75) 100%
    );
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border-radius: var(--radius-2xl);
    /* Glass edge highlights */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
        0 -1px 0 0 rgba(255, 255, 255, 0.4) inset;
    /* Subtle glass shimmer animation */
    animation: glass-shimmer 8s ease-in-out infinite;
}

@keyframes glass-shimmer {
    0%, 100% {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.75) 0%,
            rgba(240, 245, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.75) 100%
        );
    }
    50% {
        background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.75) 0%,
            rgba(245, 240, 255, 0.7) 50%,
            rgba(255, 255, 255, 0.75) 100%
        );
    }
}

@media (min-width: 768px) {
    .header--pill.is-scrolled {
        left: var(--space-12);
        right: var(--space-12);
    }
}

@media (min-width: 1200px) {
    .header--pill.is-scrolled {
        left: calc(50% - 600px);
        right: calc(50% - 600px);
    }
}

/* Option 3: Gradient Border + Glass */
.header--gradient.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: none;
}

.header--gradient.is-scrolled::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--color-primary) 0%,
        var(--color-accent) 50%,
        var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Option 4: Scroll Progress Bar */
.header--progress.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg,
        var(--color-primary),
        var(--color-accent),
        #ec4899);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* Combined: Gradient + Progress (recommended) */
.header--combined.is-scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header--combined.is-scrolled .scroll-progress {
    height: 2px;
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav__logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: transform var(--duration-base) var(--ease-out);
}

.nav__logo:hover img {
    transform: scale(1.05) rotate(5deg);
}

.nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10000; /* Above mobile-overlay (9999) */
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: var(--space-2);
    cursor: pointer;
    background: none;
    border: none;
}

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

.nav__toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Desktop Navigation Menu (hidden on mobile) */
.nav__menu {
    display: none;
}

@media (min-width: 768px) {
    .nav__menu {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: var(--space-2);
        padding: 0;
        list-style: none;
        margin: 0;
    }

    .nav__menu li {
        opacity: 1;
        transform: none;
        width: auto;
        max-width: none;
    }
}

/* Desktop nav links (nav__menu is hidden on mobile, so these only apply to desktop) */
.nav__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav__link:hover {
    color: var(--color-text);
    background: var(--color-border-light);
}

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

/* CTA Button - special styling for mobile and desktop */
.nav__link--cta {
    color: var(--color-text-inverted) !important;
    background: linear-gradient(135deg,
        var(--color-primary) 0%,
        #8b5cf6 100%
    ) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4) !important;
}

.nav__link--cta:hover {
    color: var(--color-text-inverted) !important;
    background: linear-gradient(135deg,
        #7c3aed 0%,
        var(--color-primary) 100%
    ) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5) !important;
}

.nav__link--cta.nav__link--active {
    color: var(--color-text-inverted) !important;
}

/* --------------------------------------------------------------------------
   Mobile Overlay Menu (separate from header for proper stacking)
   -------------------------------------------------------------------------- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    /* Apple-style frosted glass */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    /* Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    max-width: 320px;
}

.mobile-overlay__link {
    display: block;
    width: 100%;
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
}

.mobile-overlay.is-open .mobile-overlay__link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-overlay.is-open .mobile-overlay__link:nth-child(1) { transition-delay: 0.05s; }
.mobile-overlay.is-open .mobile-overlay__link:nth-child(2) { transition-delay: 0.1s; }
.mobile-overlay.is-open .mobile-overlay__link:nth-child(3) { transition-delay: 0.15s; }
.mobile-overlay.is-open .mobile-overlay__link:nth-child(4) { transition-delay: 0.2s; }
.mobile-overlay.is-open .mobile-overlay__link:nth-child(5) { transition-delay: 0.25s; }

.mobile-overlay__link:hover,
.mobile-overlay__link:focus {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-overlay__link--active {
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

.mobile-overlay__link--cta {
    margin-top: var(--space-4);
    color: var(--color-text-inverted);
    background: linear-gradient(135deg, var(--color-primary) 0%, #8b5cf6 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.mobile-overlay__link--cta:hover,
.mobile-overlay__link--cta:focus {
    background: linear-gradient(135deg, #7c3aed 0%, var(--color-primary) 100%);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* Hide on desktop */
@media (min-width: 768px) {
    .mobile-overlay {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--duration-base) var(--ease-out);
    cursor: pointer;
}

.btn--primary {
    color: var(--color-text-inverted);
    background: var(--color-text);
}

.btn--primary:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn--ghost {
    color: var(--color-text);
    background: transparent;
    border: 2px solid var(--color-border);
}

.btn--ghost:hover {
    border-color: var(--color-text);
    transform: translateY(-3px);
}

.btn--ghost svg {
    transition: transform var(--duration-base) var(--ease-out);
}

.btn--ghost:hover svg {
    transform: translateX(4px);
}

.btn--large {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

/* Magnetic Button Effect */
.btn--magnetic {
    transition: transform var(--duration-fast) var(--ease-out);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
}

.hero > .container {
    flex: 1;
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .hero > .container {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-16);
    }
}

.hero__content {
    max-width: 640px;
}

.hero__greeting {
    display: inline-block;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

.hero__title {
    font-size: 2em;
    margin-bottom: var(--space-8);
}

.hero__title-line {
    display: block;
}

.hero__title-line:first-child {
    font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
    color: var(--color-text-secondary);
    font-weight: 500;
}

.hero__title-highlight {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-7xl));
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    max-width: 520px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

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

.hero__image {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

.hero__image picture {
    display: block;
}

.hero__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.hero__image-placeholder {
    aspect-ratio: 4 / 5;
    background: var(--gradient-warm);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    box-shadow: var(--shadow-xl);
}

.hero__image-backdrop {
    position: absolute;
    top: 10%;
    left: 10%;
    right: -10%;
    bottom: -10%;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-2xl);
    z-index: 1;
}

/* Scroll Indicator */
.hero__scroll {
    display: none;
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (min-width: 1024px) {
    .hero__scroll {
        display: flex;
    }
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-muted), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

/* --------------------------------------------------------------------------
   Bento Grid Section
   -------------------------------------------------------------------------- */
.bento {
    background: var(--color-bg-alt);
}

.bento__grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

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

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

.bento__card {
    position: relative;
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    transform-style: preserve-3d;
}

.bento__card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-lg);
}

/* Card Sizes */
@media (min-width: 768px) {
    .bento__card--large {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .bento__card--large {
        grid-column: span 2;
        grid-row: span 2;
        padding: var(--space-12);
    }
}

.bento__card--quote {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border: none;
}

@media (min-width: 1024px) {
    .bento__card--quote {
        grid-row: span 2;
    }
}

/* Card Content */
.bento__card-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-4);
    /* 2026 Shimmer Effect */
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.3) 25%,
        rgba(236, 72, 153, 0.3) 50%,
        rgba(168, 85, 247, 0.3) 75%,
        rgba(99, 102, 241, 0.15) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

.bento__card--large .bento__card-number {
    font-size: var(--text-7xl);
}

.bento__card-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-4);
}

.bento__card--large .bento__card-title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
}

.bento__card-text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.bento__card--large .bento__card-text {
    font-size: var(--text-lg);
    max-width: 480px;
}

/* Quote Card */
.bento__quote {
    text-align: center;
    padding: var(--space-4);
}

.bento__quote p {
    font-family: var(--font-display);
    font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
    font-weight: 600;
    color: var(--color-text-inverted);
    line-height: 1.4;
}

/* Decoration */
.bento__decoration--dots {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Services Section
   -------------------------------------------------------------------------- */
.services__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-12);
}

.service {
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.service:hover {
    border-color: var(--color-border);
}

.service.is-open {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.service__header {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    cursor: pointer;
}

.service__number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-text-muted);
}

.service__title {
    flex: 1;
    font-size: clamp(var(--text-lg), 3vw, var(--text-2xl));
}

.service__toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-border-light);
    color: var(--color-text-secondary);
    transition: all var(--duration-base) var(--ease-out);
}

.service:hover .service__toggle {
    background: var(--color-border);
}

.service.is-open .service__toggle {
    background: var(--color-primary);
    color: var(--color-text-inverted);
    transform: rotate(45deg);
}

.service__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--duration-slow) var(--ease-out);
}

.service.is-open .service__content {
    grid-template-rows: 1fr;
}

.service__content-inner {
    overflow: hidden;
    padding-inline: var(--space-8);
}

.service__description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    padding-top: var(--space-2);
    padding-bottom: var(--space-6);
}

.service__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding-bottom: var(--space-6);
}

.service__tags li {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: var(--radius-full);
}

.service__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-primary);
    padding-bottom: var(--space-8);
    transition: gap var(--duration-base) var(--ease-out);
}

.service__link:hover {
    gap: var(--space-3);
}

/* --------------------------------------------------------------------------
   CTA Section - with Glass Container
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    background: linear-gradient(
        135deg,
        #1a1a2e 0%,
        #16213e 50%,
        #1a1a2e 100%
    );
    color: var(--color-text-inverted);
    overflow: hidden;
}

/* Decorative gradient orbs behind glass */
.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 60%);
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
    /* Glass container */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 1px 0 0 rgba(255, 255, 255, 0.1) inset;
}

.cta__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    color: var(--color-text-inverted);
    margin-bottom: var(--space-6);
}

.cta__text {
    font-size: var(--text-lg);
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: var(--space-10);
}

.cta .btn--primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.85) 100%
    );
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.cta .btn--primary:hover {
    background: var(--gradient-primary);
    color: var(--color-text-inverted);
    border-color: transparent;
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 0 60px rgba(99, 102, 241, 0.2);
}

/* Disable default shimmer in CTA, use glow instead */
.cta .btn--primary::after {
    display: none;
}

/* --------------------------------------------------------------------------
   Results / Social Proof Section
   -------------------------------------------------------------------------- */
.results {
    position: relative;
    background: linear-gradient(
        180deg,
        #0f0f1a 0%,
        #1a1a2e 50%,
        #0f0f1a 100%
    );
    color: var(--color-text-inverted);
    overflow: hidden;
}

/* Decorative gradient orb */
.results::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.results__title {
    color: var(--color-text-inverted);
}

.section__label--light {
    color: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.15);
}

.results__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.results__item {
    text-align: center;
    padding: var(--space-12) var(--space-6);
    border-radius: var(--radius-2xl);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.results__item:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
}

.results__number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: var(--space-2);
}

.results__unit {
    font-size: 0.6em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results__versus {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: var(--space-2);
}

.results__text {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 260px;
    margin-inline: auto;
    margin-top: var(--space-4);
}

@media (max-width: 768px) {
    .results__grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .results__item {
        padding: var(--space-8) var(--space-6);
    }

    .results__number {
        font-size: 2.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .results__grid {
        gap: var(--space-6);
    }
}

/* --------------------------------------------------------------------------
   Footer - Modern Dark Glass Design
   -------------------------------------------------------------------------- */
.footer {
    position: relative;
    background: linear-gradient(
        180deg,
        #0f0f1a 0%,
        #1a1a2e 50%,
        #0f0f1a 100%
    );
    padding-block: var(--space-20);
    overflow: hidden;
}

/* Animated gradient top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--color-primary) 0%,
        var(--color-accent) 25%,
        #ec4899 50%,
        var(--color-accent) 75%,
        var(--color-primary) 100%);
    background-size: 200% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
}

/* Decorative gradient orbs */
.footer::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.footer__grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

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

.footer__brand {
    position: relative;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: #ffffff;
    transition: all var(--duration-base) var(--ease-out);
}

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

.footer__logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.footer__logo:hover img {
    transform: rotate(10deg) scale(1.1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.footer__tagline {
    margin-top: var(--space-3);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer__nav,
.footer__legal {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__nav a,
.footer__legal a {
    position: relative;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: all var(--duration-fast) var(--ease-out);
    padding-left: 0;
}

.footer__nav a::before,
.footer__legal a::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    transition: all var(--duration-fast) var(--ease-out);
}

.footer__nav a:hover,
.footer__legal a:hover {
    color: #ffffff;
    padding-left: var(--space-4);
}

.footer__nav a:hover::before,
.footer__legal a:hover::before {
    opacity: 1;
    left: 0;
}

.footer__bottom {
    position: relative;
    z-index: 1;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__bottom p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.4);
}

/* Optional: Add subtle glass card around brand */
@media (min-width: 768px) {
    .footer__brand::after {
        content: '';
        position: absolute;
        top: -var(--space-4);
        left: -var(--space-4);
        right: var(--space-8);
        bottom: -var(--space-4);
        background: rgba(255, 255, 255, 0.03);
        border-radius: var(--radius-xl);
        border: 1px solid rgba(255, 255, 255, 0.05);
        z-index: -1;
        opacity: 0;
        transition: opacity var(--duration-base);
    }

    .footer:hover .footer__brand::after {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   Trust Banner (DSGVO / Privacy) - Floating Glass Card
   -------------------------------------------------------------------------- */
.trust-banner {
    position: fixed;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 9998;
    width: calc(100% - var(--space-8));
    max-width: 560px;
    padding: var(--space-5) var(--space-6);
    /* Glass effect */
    background: linear-gradient(
        135deg,
        rgba(15, 15, 26, 0.85) 0%,
        rgba(26, 26, 46, 0.9) 50%,
        rgba(15, 15, 26, 0.85) 100%
    );
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-radius: var(--radius-2xl);
    /* Glass border with gradient */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 0 rgba(255, 255, 255, 0.1) inset;
    /* Entry animation */
    animation: trustBannerSlideIn 0.6s var(--ease-out) forwards;
    opacity: 0;
}

/* Pre-hidden state - NO animation, instant hide (fixes flashing bug) */
.trust-banner.is-pre-hidden {
    display: none !important;
}

@keyframes trustBannerSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Animated gradient border glow */
.trust-banner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.5) 0%,
        rgba(99, 102, 241, 0.3) 50%,
        rgba(34, 197, 94, 0.5) 100%
    );
    border-radius: calc(var(--radius-2xl) + 2px);
    z-index: -1;
    opacity: 0.6;
    animation: trustGlow 4s ease-in-out infinite;
}

@keyframes trustGlow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.trust-banner.is-hidden {
    animation: trustBannerSlideOut 0.4s var(--ease-out) forwards;
    pointer-events: none;
}

@keyframes trustBannerSlideOut {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }
}

/* Horizontal layout: Icon left, content right */
.trust-banner__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-5);
}

.trust-banner__icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(34, 197, 94, 0.2) 0%,
        rgba(34, 197, 94, 0.1) 100%
    );
    border-radius: var(--radius-xl);
    border: 2px solid rgba(34, 197, 94, 0.4);
    box-shadow:
        0 8px 24px rgba(34, 197, 94, 0.2),
        0 0 40px rgba(34, 197, 94, 0.1);
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(34, 197, 94, 0.2), 0 0 40px rgba(34, 197, 94, 0.1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3), 0 0 60px rgba(34, 197, 94, 0.2);
    }
}

.trust-banner__icon svg {
    width: 36px;
    height: 36px;
    color: #22c55e;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

.trust-banner__body {
    flex: 1;
    min-width: 0;
}

.trust-banner__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: #22c55e;
    margin: 0 0 var(--space-1) 0;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.trust-banner__text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
}

.trust-banner__btn {
    flex-shrink: 0;
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.trust-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(34, 197, 94, 0.4),
        0 0 30px rgba(34, 197, 94, 0.2);
}

.trust-banner__btn:active {
    transform: translateY(0);
}

/* Mobile: Stack vertically */
@media (max-width: 540px) {
    .trust-banner {
        max-width: calc(100% - var(--space-6));
        padding: var(--space-5);
    }

    .trust-banner__content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .trust-banner__icon {
        width: 64px;
        height: 64px;
    }

    .trust-banner__icon svg {
        width: 32px;
        height: 32px;
    }

    .trust-banner__btn {
        width: 100%;
        padding: var(--space-4) var(--space-6);
    }
}

/* --------------------------------------------------------------------------
   Animations & Effects
   -------------------------------------------------------------------------- */

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.4s; }

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Card tilt effect */
[data-tilt] {
    transform-style: preserve-3d;
    transition: transform var(--duration-fast) var(--ease-out);
}

[data-tilt]:hover {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

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

/* --------------------------------------------------------------------------
   Container Narrow
   -------------------------------------------------------------------------- */
.container--narrow {
    max-width: var(--container-narrow);
}

/* --------------------------------------------------------------------------
   Active Navigation Link
   -------------------------------------------------------------------------- */
.nav__link--active {
    color: var(--color-text);
    font-weight: 600;
}

/* CTA button active state - keep white text */
.nav__link--cta.nav__link--active {
    color: var(--color-text-inverted);
}

/* --------------------------------------------------------------------------
   Text Gradient Utility
   -------------------------------------------------------------------------- */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   Page Hero (Sub Pages)
   -------------------------------------------------------------------------- */
.page-hero {
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
    background: var(--color-bg-alt);
}

@media (min-width: 768px) {
    .page-hero {
        padding-top: calc(72px + var(--space-24));
        padding-bottom: var(--space-24);
    }
}

.page-hero__content {
    max-width: 800px;
}

.page-hero__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.page-hero__title {
    font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
    margin-bottom: var(--space-6);
}

.page-hero__description {
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
}

/* --------------------------------------------------------------------------
   Story Section (Über mich)
   -------------------------------------------------------------------------- */
.story__grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .story__grid {
        grid-template-columns: 1fr 1.2fr;
        gap: var(--space-16);
    }
}

.story__image {
    display: flex;
    justify-content: center;
}

.story__image picture {
    display: block;
    width: 100%;
    max-width: 400px;
}

.story__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    object-fit: cover;
}

.story__image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    background: var(--gradient-warm);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    box-shadow: var(--shadow-xl);
}

.story__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-8);
}

.story__text p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

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

.story__text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Timeline Section
   -------------------------------------------------------------------------- */
.timeline-section {
    background: var(--color-bg-alt);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin-inline: auto;
    padding-left: var(--space-16);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-border-light));
}

@media (min-width: 768px) {
    .timeline {
        padding-left: var(--space-20);
    }

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

.timeline__item {
    position: relative;
    padding-bottom: var(--space-12);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: calc(-1 * var(--space-16) - 12px);
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .timeline__marker {
        left: calc(-1 * var(--space-20) - 8px);
        width: 64px;
        height: 64px;
    }
}

.timeline__number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .timeline__number {
        font-size: var(--text-base);
    }
}

.timeline__content {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.timeline__content:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.timeline__period {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.timeline__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-1);
}

@media (min-width: 768px) {
    .timeline__title {
        font-size: var(--text-2xl);
    }
}

.timeline__subtitle {
    font-size: var(--text-base);
    font-weight: 500;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
}

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

/* --------------------------------------------------------------------------
   Values Section
   -------------------------------------------------------------------------- */
.values {
    position: relative;
    background: linear-gradient(
        180deg,
        var(--color-bg) 0%,
        rgba(99, 102, 241, 0.03) 30%,
        rgba(168, 85, 247, 0.05) 70%,
        var(--color-bg) 100%
    );
}

.values__grid {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

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

.value-card {
    /* Glassmorphism effect */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.6) 100%
    );
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    /* Glass edge */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 24px rgba(99, 102, 241, 0.08),
        0 1px 0 0 rgba(255, 255, 255, 0.8) inset;
    text-align: center;
    transition: all var(--duration-base) var(--ease-out);
    transform-style: preserve-3d;
}

.value-card:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(250, 250, 255, 0.75) 100%
    );
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 1px 0 0 rgba(255, 255, 255, 0.9) inset;
    transform: translateY(-4px);
}

.value-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-text-inverted);
}

.value-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.value-card__text {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Personal Section
   -------------------------------------------------------------------------- */
.personal__grid {
    display: grid;
    gap: var(--space-12);
    align-items: center;
}

@media (min-width: 1024px) {
    .personal__grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-16);
    }
}

.personal__content .section__label {
    display: block;
    margin-bottom: var(--space-2);
}

.personal__content .section__title {
    margin-bottom: var(--space-8);
}

.personal__text p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

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

.personal__image picture {
    display: block;
    width: 100%;
    max-width: 400px;
    /* Gradient background behind transparent image */
    background: var(--gradient-warm);
    border-radius: var(--radius-sm) var(--radius-2xl) var(--radius-sm) var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.personal__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm) var(--radius-2xl) var(--radius-sm) var(--radius-2xl);
    object-fit: cover;
}

.personal__image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--gradient-warm);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    box-shadow: var(--shadow-xl);
}

/* --------------------------------------------------------------------------
   Offer Section (Angebot Page)
   -------------------------------------------------------------------------- */
.offer {
    background: var(--color-bg);
}

.offer--alt {
    background: var(--color-bg-alt);
}

.offer__grid {
    display: grid;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .offer__grid {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--space-16);
    }

    .offer__grid--reverse {
        grid-template-columns: 1fr 1.5fr;
    }

    .offer__grid--reverse .offer__content {
        order: 2;
    }

    .offer__grid--reverse .offer__sidebar {
        order: 1;
    }
}

.offer__number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-6xl);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-4);
    /* 2026 Shimmer Effect */
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.3) 25%,
        rgba(236, 72, 153, 0.3) 50%,
        rgba(168, 85, 247, 0.3) 75%,
        rgba(99, 102, 241, 0.15) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% center; }
    50% { background-position: 0% center; }
}

.offer__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-8);
}

.offer__intro {
    font-size: var(--text-xl);
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.offer__text {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.offer__details {
    margin-bottom: var(--space-8);
}

.offer__details h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.offer__list {
    list-style: none;
}

.offer__list li {
    position: relative;
    padding-left: var(--space-6);
    padding-bottom: var(--space-4);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.offer__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.offer__list li strong {
    display: block;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.offer__approach h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.offer__approach p {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.offer__sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.offer__card {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
}

.offer__card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--color-primary);
}

.offer__card ul {
    list-style: none;
}

.offer__card li {
    padding-block: var(--space-2);
    padding-left: var(--space-5);
    position: relative;
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
}

.offer__card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Pricing Philosophy Section
   -------------------------------------------------------------------------- */
.pricing-philosophy {
    background: var(--color-bg-alt);
}

.pricing-philosophy__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
    margin-bottom: var(--space-8);
}

.pricing-philosophy__content p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

.pricing-philosophy__content p:last-child {
    margin-bottom: 0;
}

.pricing-philosophy__content strong {
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Projects Section (Projekte Page)
   -------------------------------------------------------------------------- */
.projects {
    padding-block: var(--space-24);
}

.projects--alt {
    background: var(--color-bg-alt);
}

.projects__intro {
    max-width: 700px;
    margin-bottom: var(--space-16);
}

.projects__intro p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.projects__grid {
    display: grid;
    gap: var(--space-8);
}

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

/* --------------------------------------------------------------------------
   Bento Grid Layout for Own Projects
   -------------------------------------------------------------------------- */
.bento-grid {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: var(--space-6);
    }
}

/* Bento Card Base */
.bento-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
}

.bento-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Hero Card - Full Width with Image Banner */
.bento-card--hero {
    grid-column: 1 / -1;
}

.bento-card--hero .bento-card__image {
    width: 100%;
    overflow: hidden;
}

.bento-card--hero .bento-card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.bento-card--hero:hover .bento-card__image img {
    transform: scale(1.03);
}

.bento-card--hero .bento-card__body {
    padding: var(--space-8);
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .bento-card--hero .bento-card__body {
        grid-template-columns: 1fr 1fr;
        padding: var(--space-10);
    }
}

.bento-card--hero .bento-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bento-card--hero .bento-card__meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .bento-card--hero .bento-card__meta {
        align-items: flex-end;
        text-align: right;
    }
}

/* Stacked Card - Image on top, text below */
.bento-card--stacked {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .bento-card--stacked {
        grid-column: span 6;
    }
}

.bento-card--stacked .bento-card__image {
    overflow: hidden;
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

.bento-card--stacked .bento-card__image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
}

.bento-card--stacked:hover .bento-card__image img {
    transform: scale(1.03);
}

.bento-card--stacked .bento-card__body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 768px) {
    .bento-card--stacked .bento-card__body {
        padding: var(--space-8);
    }
}

/* Bento Card Elements */
.bento-card__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    width: fit-content;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.bento-card__label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    animation: pulse 2s infinite;
}

.bento-card__label--dev {
    background: #fef3c7;
    color: #d97706;
}

.bento-card__label--dev::before {
    background: #f59e0b;
}

.bento-card__label--live {
    background: #dcfce7;
    color: #16a34a;
}

.bento-card__label--live::before {
    background: #16a34a;
}

.bento-card__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: 800;
    line-height: 1.1;
}

.bento-card__description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    font-size: var(--text-base);
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .bento-card__description {
        font-size: var(--text-lg);
    }
}

.bento-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.bento-card__tags span {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

/* Colorful tags */
.bento-card__tags span:nth-child(4n+1) {
    background: #dbeafe;
    color: #1d4ed8;
}

.bento-card__tags span:nth-child(4n+2) {
    background: #fce7f3;
    color: #be185d;
}

.bento-card__tags span:nth-child(4n+3) {
    background: #d1fae5;
    color: #047857;
}

.bento-card__tags span:nth-child(4n) {
    background: #fef3c7;
    color: #b45309;
}

.bento-card:hover .bento-card__tags span {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.bento-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-primary);
    font-size: var(--text-base);
    transition: gap var(--duration-base) var(--ease-out);
    margin-top: auto;
    padding-top: var(--space-4);
}

.bento-card__link:hover {
    gap: var(--space-3);
}

.bento-card__link svg {
    transition: transform var(--duration-base) var(--ease-out);
}

.bento-card__link:hover svg {
    transform: translate(2px, -2px);
}

/* Featured Project Card */
.project-card {
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out);
    transform-style: preserve-3d;
}

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

.project-card--featured {
    display: grid;
    grid-template-rows: auto 1fr;
}

@media (min-width: 768px) {
    .project-card--featured {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
}

.project-card__visual {
    position: relative;
    overflow: hidden;
    /* Mobile: fixed aspect ratio to prevent distortion */
    aspect-ratio: 16 / 9;
}

.project-card__visual picture {
    display: block;
    width: 100%;
    height: 100%;
}

.project-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

@media (min-width: 768px) {
    .project-card__visual {
        /* Desktop: flexible height, let content determine */
        aspect-ratio: unset;
        min-height: 300px;
    }
}

.project-card:hover .project-card__visual img {
    transform: scale(1.05);
}

.project-card__image-placeholder {
    aspect-ratio: 4 / 3;
    background: var(--gradient-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    transition: transform var(--duration-slow) var(--ease-out);
}

@media (min-width: 768px) {
    .project-card__image-placeholder {
        aspect-ratio: auto;
        height: 100%;
        min-height: 300px;
    }
}

.project-card:hover .project-card__image-placeholder {
    transform: scale(1.05);
}

.project-card__content {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .project-card__content {
        padding: var(--space-10);
    }
}

.project-card__label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    width: fit-content;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.project-card__label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.project-card__title {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    margin-bottom: var(--space-4);
}

.project-card__description {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    flex: 1;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.project-card__tags span {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--color-border-light);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.project-card:hover .project-card__tags span {
    background: var(--color-primary-subtle);
    color: var(--color-primary);
}

.project-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--color-primary);
    transition: gap var(--duration-base) var(--ease-out);
}

.project-card__link:hover {
    gap: var(--space-3);
}

.project-card__link svg {
    transition: transform var(--duration-base) var(--ease-out);
}

.project-card__link:hover svg {
    transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Client Projects List (Projekte Page)
   -------------------------------------------------------------------------- */
.projects__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.project-item {
    position: relative;
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-base) var(--ease-out);
    display: grid;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .project-item {
        padding: var(--space-8) var(--space-10);
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: var(--space-4) var(--space-8);
    }
}

.project-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.project-item::before {
    content: '';
    position: absolute;
    left: -1px;
    top: 50%;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: height var(--duration-base) var(--ease-out), top var(--duration-base) var(--ease-out);
}

.project-item:hover::before {
    top: 0;
    height: 100%;
}

.project-item__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
}

@media (min-width: 768px) {
    .project-item__header {
        grid-column: 1 / -1;
    }
}

.project-item__title {
    font-size: var(--text-xl);
    flex: 1;
    min-width: 200px;
}

@media (min-width: 768px) {
    .project-item__title {
        font-size: var(--text-2xl);
    }
}

.project-item__type {
    padding: var(--space-1) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-primary-subtle);
    color: var(--color-primary);
    border-radius: var(--radius-full);
}

.project-item__description {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .project-item__description {
        grid-column: 1;
    }
}

.project-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: flex-start;
}

@media (min-width: 768px) {
    .project-item__tags {
        justify-content: flex-end;
        grid-column: 2;
        grid-row: 2;
    }
}

.project-item__tags span {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    background: var(--color-border-light);
    color: var(--color-text-secondary);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.project-item:hover .project-item__tags span {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

/* Projects More Info */
.projects__more {
    margin-top: var(--space-8);
    padding: var(--space-8);
    background: var(--gradient-warm);
    border-radius: var(--radius-xl);
    text-align: center;
}

.projects__more p {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   References Section (Legacy - keeping for backwards compatibility)
   -------------------------------------------------------------------------- */
.references {
    background: var(--color-bg-alt);
}

.references__grid {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-12);
}

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

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

.project-item__client {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------------------
   Contact Section (Kontakt Page)
   -------------------------------------------------------------------------- */
.contact {
    background: var(--color-bg-alt);
}

.contact__grid {
    display: grid;
    gap: var(--space-12);
}

@media (min-width: 1024px) {
    .contact__grid {
        grid-template-columns: 1.3fr 1fr;
        gap: var(--space-16);
        align-items: start;
    }
}

/* Contact Form Wrapper */
.contact__form-wrapper {
    position: relative;
}

/* Contact Form */
.contact-form {
    background: var(--color-surface);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-base) var(--ease-out);
}

.contact-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

@media (min-width: 768px) {
    .contact-form {
        padding: var(--space-12);
    }
}

.contact-form__row {
    display: grid;
    gap: var(--space-6);
}

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

.contact-form__group {
    margin-bottom: var(--space-6);
}

.contact-form__row .contact-form__group {
    margin-bottom: 0;
}

.contact-form__row + .contact-form__group {
    margin-top: var(--space-6);
}

.contact-form__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.contact-form__input,
.contact-form__textarea,
.contact-form__select {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration-fast) var(--ease-out);
}

.contact-form__input:hover,
.contact-form__textarea:hover,
.contact-form__select:hover {
    border-color: var(--color-border);
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-surface);
    box-shadow: 0 0 0 4px var(--color-primary-subtle);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--color-text-muted);
}

.contact-form__textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    cursor: pointer;
}

.contact-form__privacy {
    margin-bottom: var(--space-8);
}

.contact-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.contact-form__checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.contact-form__checkbox span {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.contact-form__checkbox a {
    color: var(--color-primary);
    font-weight: 500;
}

.contact-form__checkbox a:hover {
    text-decoration: underline;
}

.contact-form__submit {
    width: 100%;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .contact-form__submit {
        width: auto;
    }
}

.contact-form__submit svg {
    transition: transform var(--duration-base) var(--ease-out);
}

.contact-form__submit:hover svg {
    transform: translate(4px, -4px);
}

.contact-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-form__message {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    text-align: center;
}

.contact-form__message--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.contact-form__message--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Contact Info Sidebar */
.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.contact__info-card {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-light);
    transition: all var(--duration-base) var(--ease-out);
}

.contact__info-card:hover {
    border-color: var(--color-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact__info-card--highlight {
    background: var(--gradient-primary);
    border: none;
    color: var(--color-text-inverted);
}

.contact__info-card--highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.contact__info-card--highlight h3,
.contact__info-card--highlight p {
    color: var(--color-text-inverted);
}

.contact__info-card--highlight p {
    color: #ffffff !important;
}

.contact__info-card--highlight .contact__info-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-text-inverted);
}

.contact__info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.contact__info-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.contact__info-card p {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.contact__info-card address {
    font-style: normal;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

.contact__email {
    display: inline-block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--color-text-inverted);
    padding: var(--space-3) var(--space-5);
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.contact__email:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

/* Process Card */
.contact__info-card--process {
    background: var(--gradient-warm);
    border: none;
}

.contact__info-card--process:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.contact__process {
    list-style: none;
    margin-bottom: var(--space-4);
}

.contact__process li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact__process li:last-child {
    border-bottom: none;
}

.contact__process-number {
    width: 28px;
    height: 28px;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact__process-note {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-style: italic;
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Page Hero with Visual (Contact page coffee)
   -------------------------------------------------------------------------- */

.page-hero--with-visual .page-hero__grid {
    display: grid;
    gap: var(--space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .page-hero--with-visual .page-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }
}

.page-hero__visual {
    display: flex;
    justify-content: center;
}

.coffee-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coffee-visual__video {
    width: 280px;
    height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.coffee-visual__text {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: var(--space-2);
    font-style: italic;
}

@media (max-width: 767px) {
    .page-hero__visual {
        order: -1;
    }

    .coffee-visual__video {
        width: 180px;
        height: 180px;
    }

    .coffee-visual__text {
        font-size: var(--text-sm);
    }
}

/* Page Hero Compact Variant */
.page-hero--compact {
    padding-bottom: var(--space-8);
}

@media (min-width: 768px) {
    .page-hero--compact {
        padding-bottom: var(--space-12);
    }
}

/* Legacy form classes - keeping for backwards compatibility */
.form__group {
    margin-bottom: var(--space-6);
}

.form__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.form__input,
.form__textarea,
.form__select {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--color-text-muted);
}

.form__textarea {
    min-height: 160px;
    resize: vertical;
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-4) center;
    cursor: pointer;
}

.form__row {
    display: grid;
    gap: var(--space-6);
}

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

    .form__row .form__group {
        margin-bottom: 0;
    }
}

.form__privacy {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-6);
}

.form__privacy a {
    color: var(--color-primary);
    text-decoration: underline;
}

.form__submit {
    width: 100%;
}

@media (min-width: 640px) {
    .form__submit {
        width: auto;
    }
}

/* Contact Legacy Classes - keeping for backwards compatibility */
.contact__availability {
    background: var(--color-primary-subtle);
    border-color: transparent;
}

.contact__availability h3 {
    color: var(--color-primary);
}

.contact__promise h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
}

.contact__promise ul {
    list-style: none;
}

.contact__promise li {
    padding-block: var(--space-2);
    padding-left: var(--space-6);
    position: relative;
    color: var(--color-text-secondary);
}

.contact__promise li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Legal Pages (Impressum & Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
    padding-top: calc(72px + var(--space-16));
    padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
    .legal {
        padding-top: calc(72px + var(--space-24));
        padding-bottom: var(--space-24);
    }
}

.legal__title {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
    margin-bottom: var(--space-12);
}

.legal__content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
}

.legal__content h2:first-child {
    margin-top: 0;
}

.legal__content h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
}

.legal__content h4 {
    font-size: var(--text-lg);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
}

.legal__content p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal__content ul {
    list-style: disc;
    padding-left: var(--space-6);
    margin-bottom: var(--space-4);
}

.legal__content li {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2);
}

.legal__content address {
    font-style: normal;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal__content a {
    color: var(--color-primary);
}

.legal__content a:hover {
    text-decoration: underline;
}

.legal__content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin-block: var(--space-12);
}

.legal__note {
    padding: var(--space-6);
    background: var(--color-primary-subtle);
    border-radius: var(--radius-lg);
    color: var(--color-text);
}

.legal__note strong {
    color: var(--color-primary);
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS & OUT-OF-THE-BOX ELEMENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile Hero Improvements
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding-top: calc(72px + var(--space-8));
        padding-bottom: var(--space-12);
    }

    .hero > .container {
        gap: var(--space-8);
    }

    .hero__greeting {
        font-size: var(--text-base);
        margin-bottom: var(--space-4);
    }

    .hero__title {
        margin-bottom: var(--space-6);
    }

    .hero__description {
        font-size: var(--text-base);
        margin-bottom: var(--space-8);
    }

    .hero__cta {
        flex-direction: column;
    }

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

    .hero__image-wrapper {
        order: -1;
    }

    .hero__image {
        max-width: 280px;
    }

    .hero__image-backdrop {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Mobile Bento Grid - Reimagined
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .bento__grid {
        gap: var(--space-4);
    }

    .bento__card {
        padding: var(--space-6);
    }

    .bento__card-number {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-2);
    }

    .bento__card-title {
        font-size: var(--text-xl);
        margin-bottom: var(--space-2);
    }

    .bento__card-text {
        font-size: var(--text-sm);
    }

    /* Quote card special treatment on mobile */
    .bento__card--quote {
        padding: var(--space-8) var(--space-6);
    }

    .bento__quote p {
        font-size: var(--text-lg);
    }
}

/* --------------------------------------------------------------------------
   Mobile Services - Touch-friendly
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .services__list {
        margin-top: var(--space-8);
        gap: var(--space-3);
    }

    .service__header {
        padding: var(--space-5) var(--space-5);
        gap: var(--space-4);
    }

    .service__number {
        font-size: var(--text-xs);
    }

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

    .service__toggle {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .service__content-inner {
        padding-inline: var(--space-5);
    }

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

    .service__tags {
        gap: var(--space-2);
    }

    .service__tags li {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }
}

/* --------------------------------------------------------------------------
   Mobile Page Hero
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .page-hero {
        padding-top: calc(72px + var(--space-8));
        padding-bottom: var(--space-10);
    }

    .page-hero__title {
        font-size: var(--text-3xl);
    }

    .page-hero__description {
        font-size: var(--text-base);
    }
}

/* --------------------------------------------------------------------------
   Mobile Story Section
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .story__grid {
        gap: var(--space-8);
    }

    .story__image-placeholder,
    .story__image picture {
        max-width: 280px;
    }

    .story__title {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-6);
    }

    .story__text p {
        font-size: var(--text-base);
    }
}

/* --------------------------------------------------------------------------
   Mobile Timeline - Redesigned for better space usage
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .timeline {
        padding-left: 0;
    }

    /* Hide vertical line on mobile */
    .timeline::before {
        display: none;
    }

    .timeline__item {
        padding-left: 0;
        padding-bottom: var(--space-6);
    }

    /* Hide separate marker, number moves into card */
    .timeline__marker {
        display: none;
    }

    .timeline__content {
        position: relative;
        padding: var(--space-6);
        padding-top: var(--space-10);
    }

    /* Number as badge inside card */
    .timeline__content::before {
        content: attr(data-number);
        position: absolute;
        top: var(--space-4);
        right: var(--space-4);
        font-family: var(--font-display);
        font-size: var(--text-3xl);
        font-weight: 800;
        line-height: 1;
        background: linear-gradient(135deg,
            rgba(99, 102, 241, 0.15) 0%,
            rgba(168, 85, 247, 0.2) 50%,
            rgba(236, 72, 153, 0.15) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        opacity: 0.8;
    }

    .timeline__period {
        font-size: var(--text-sm);
        display: inline-flex;
        align-items: center;
        gap: var(--space-2);
        background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: var(--space-3);
    }

    .timeline__title {
        font-size: var(--text-lg);
        line-height: 1.3;
    }

    .timeline__subtitle {
        font-size: var(--text-sm);
        margin-bottom: var(--space-3);
    }

    .timeline__text {
        font-size: var(--text-sm);
        line-height: 1.6;
    }
}

/* --------------------------------------------------------------------------
   Mobile Values Grid
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .values__grid {
        gap: var(--space-4);
    }

    .value-card {
        padding: var(--space-6);
    }

    .value-card__icon {
        font-size: var(--text-2xl);
        width: 48px;
        height: 48px;
    }

    .value-card__title {
        font-size: var(--text-lg);
    }

    .value-card__text {
        font-size: var(--text-sm);
    }
}

/* --------------------------------------------------------------------------
   Mobile Offer Sections
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .offer__grid {
        gap: var(--space-8);
    }

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

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

    .offer__intro,
    .offer__text {
        font-size: var(--text-base);
    }

    .offer__details h3,
    .offer__approach h3 {
        font-size: var(--text-lg);
    }

    .offer__list li {
        font-size: var(--text-sm);
        padding-left: var(--space-5);
    }

    .offer__sidebar {
        gap: var(--space-4);
    }

    .offer__card {
        padding: var(--space-5);
    }

    .offer__card h4 {
        font-size: var(--text-base);
    }

    .offer__card li {
        font-size: var(--text-sm);
    }
}

/* --------------------------------------------------------------------------
   Mobile Project Cards
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .projects__grid {
        gap: var(--space-6);
    }

    .project-card__content {
        padding: var(--space-6);
    }

    .project-card__title {
        font-size: var(--text-xl);
    }

    .project-card__description {
        font-size: var(--text-sm);
    }

    .project-card__image-placeholder {
        aspect-ratio: 16 / 9;
        min-height: 180px;
    }

    /* Project Items */
    .project-item {
        padding: var(--space-5);
    }

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

    .project-item__description {
        font-size: var(--text-sm);
    }

    .project-item__tags {
        gap: var(--space-1);
    }

    .project-item__tags span {
        font-size: 0.7rem;
        padding: var(--space-1) var(--space-2);
    }
}

/* --------------------------------------------------------------------------
   Mobile Contact Form
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .contact-form {
        padding: var(--space-6);
    }

    .contact-form__row {
        gap: var(--space-4);
    }

    .contact-form__label {
        font-size: var(--text-sm);
    }

    .contact-form__input,
    .contact-form__textarea,
    .contact-form__select {
        padding: var(--space-3) var(--space-4);
        font-size: var(--text-base);
    }

    .contact-form__submit {
        padding: var(--space-4) var(--space-6);
    }

    /* Contact Info Cards */
    .contact__info {
        gap: var(--space-4);
    }

    .contact__info-card {
        padding: var(--space-5);
    }

    .contact__info-icon {
        width: 40px;
        height: 40px;
        margin-bottom: var(--space-3);
    }

    .contact__info-card h3 {
        font-size: var(--text-base);
    }

    .contact__email {
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-4);
    }
}

/* --------------------------------------------------------------------------
   Mobile CTA
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .cta__title {
        font-size: var(--text-2xl);
    }

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

    .cta .btn--large {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Mobile Footer
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .footer {
        padding-block: var(--space-10);
    }

    .footer__grid {
        gap: var(--space-8);
        text-align: center;
    }

    .footer__nav,
    .footer__legal {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-4);
    }

    .footer__bottom {
        text-align: center;
    }
}

/* ==========================================================================
   OUT-OF-THE-BOX CREATIVE ELEMENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Quirky Hover States - Things behave unexpectedly (in a good way)
   -------------------------------------------------------------------------- */

/* Cards that slightly rotate on hover - not boring straight lifts */
.bento__card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
}

.bento__card:nth-child(even):hover {
    transform: translateY(-4px) rotate(0.5deg);
}

/* Project items slide AND rotate slightly */
.project-item:hover {
    transform: translateX(8px) rotate(0.3deg);
}

/* --------------------------------------------------------------------------
   Playful Cursor Effects
   -------------------------------------------------------------------------- */
.btn--magnetic:hover {
    cursor: pointer;
}

/* CTA buttons have a playful bounce */
.btn--primary:active {
    transform: translateY(-1px) scale(0.98);
}

/* --------------------------------------------------------------------------
   Unexpected Color Pops
   -------------------------------------------------------------------------- */

/* Random accent colors for tags on hover */
.project-card:hover .project-card__tags span:nth-child(3n+1) {
    background: #fef3c7;
    color: #92400e;
}

.project-card:hover .project-card__tags span:nth-child(3n+2) {
    background: #fce7f3;
    color: #9d174d;
}

.project-card:hover .project-card__tags span:nth-child(3n) {
    background: #ede9fe;
    color: #5b21b6;
}

/* Service tags get colorful too */
.service.is-open .service__tags li:nth-child(odd) {
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
}

/* --------------------------------------------------------------------------
   Glitch/Quirk Text Effect for "Out of the box" vibe
   -------------------------------------------------------------------------- */
.hero__title-highlight {
    position: relative;
}

/* Subtle "thinking different" indicator on the quote */
.bento__quote::before {
    content: '💡';
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: var(--text-xl);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

/* --------------------------------------------------------------------------
   Asymmetric Design Elements
   -------------------------------------------------------------------------- */

/* Hero image has an intentionally "off" backdrop */
@media (min-width: 1024px) {
    .hero__image-backdrop {
        transform: rotate(3deg);
        border-radius: var(--radius-2xl) var(--radius-sm) var(--radius-2xl) var(--radius-sm);
    }
}

/* Story image placeholder has playful border radius */
.story__image-placeholder {
    border-radius: var(--radius-2xl) var(--radius-sm) var(--radius-2xl) var(--radius-sm);
}

/* Personal image - different corners */
.personal__image-placeholder {
    border-radius: var(--radius-sm) var(--radius-2xl) var(--radius-sm) var(--radius-2xl);
}

/* --------------------------------------------------------------------------
   Interactive "Easter Eggs"
   -------------------------------------------------------------------------- */

/* Logo has a fun spin on long hover */
.nav__logo img {
    transition: transform 0.5s var(--ease-out);
}

.nav__logo:hover img {
    transform: scale(1.1) rotate(10deg);
}

/* Footer logo easter egg */
.footer__logo:hover {
    color: var(--color-primary);
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Scroll-triggered micro-interactions (CSS only)
   -------------------------------------------------------------------------- */

/* Timeline markers pulse when in view */
.timeline__marker {
    animation: pulseSoft 2s ease-in-out infinite;
    animation-play-state: paused;
}

.timeline__item:hover .timeline__marker {
    animation-play-state: running;
}

@keyframes pulseSoft {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* --------------------------------------------------------------------------
   Mobile Touch Feedback
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .btn:active {
        transform: scale(0.97);
    }

    .nav__link:active {
        transform: scale(0.98);
        background: var(--color-border-light);
    }

    .service__header:active {
        background: var(--color-border-light);
    }

    .project-item:active {
        transform: scale(0.99);
    }

    .contact__info-card:active {
        transform: scale(0.98);
    }
}

/* --------------------------------------------------------------------------
   Smooth Scroll Snap for Mobile (optional sections)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 72px;
    }
}

/* --------------------------------------------------------------------------
   Print Styles - because sometimes people still print
   -------------------------------------------------------------------------- */
@media print {
    .header,
    .footer,
    .hero__scroll,
    .btn,
    .nav__toggle {
        display: none !important;
    }

    .hero,
    .section {
        padding: var(--space-8) 0;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}

/* ==========================================================================
   2026 DESIGN ENHANCEMENTS
   Modern animations, effects, and interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Text Stagger Animation
   -------------------------------------------------------------------------- */
.hero__greeting {
    animation: fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.1s;
}

.hero__title {
    animation: fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.2s;
}

.hero__description {
    animation: fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.3s;
}

.hero__cta {
    animation: fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.4s;
}

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

/* --------------------------------------------------------------------------
   Hero Image Floating Effect
   -------------------------------------------------------------------------- */
.hero__image {
    animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   Bento Cards - Enhanced Hover
   -------------------------------------------------------------------------- */
.bento__card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento__card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0) 0%, rgba(168, 85, 247, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento__card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 40px rgba(99, 102, 241, 0.1);
}

.bento__card:hover::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.5) 0%, rgba(168, 85, 247, 0.5) 100%);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Service Accordion - Icon Rotation
   -------------------------------------------------------------------------- */
.service__toggle svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service.is-open .service__toggle svg {
    transform: rotate(45deg);
}

.service__header {
    position: relative;
    overflow: hidden;
}

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

.service.is-open .service__header::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Buttons - Enhanced Hover with Glow
   -------------------------------------------------------------------------- */
.btn {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn--primary:hover,
.btn--secondary:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn--primary:hover {
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4),
                0 0 20px rgba(37, 99, 235, 0.2);
}

.btn--secondary:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Button shimmer effect */
.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn--primary:hover::after {
    left: 100%;
}

/* --------------------------------------------------------------------------
   Timeline - Animated Line & Markers
   -------------------------------------------------------------------------- */
.timeline__marker {
    position: relative;
}

.timeline__marker::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    animation: pulse-ring 2s ease-out infinite;
    opacity: 0;
}

.timeline__item:hover .timeline__marker::after {
    opacity: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   Form Inputs - Focus Glow Effect
   -------------------------------------------------------------------------- */
.contact-form__input,
.contact-form__textarea,
.contact-form__select {
    transition: all 0.3s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1),
                0 0 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Floating label effect */
.contact-form__group {
    position: relative;
}

.contact-form__label {
    transition: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   Cards - Animated Gradient Border
   -------------------------------------------------------------------------- */
.project-card,
.value-card,
.offer__card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover,
.value-card:hover,
.offer__card:hover {
    transform: translateY(-5px);
}

/* Project card enhanced hover */
.project-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(99, 102, 241, 0.2);
}

/* Value card icon animation */
.value-card__icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.value-card:hover .value-card__icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
    color: white;
}

/* --------------------------------------------------------------------------
   Floating Background Shapes (Hero only - CTA has custom glass effects)
   -------------------------------------------------------------------------- */
.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: floatShape 20s ease-in-out infinite;
    top: -200px;
    right: -200px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: floatShape 15s ease-in-out infinite reverse;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

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

/* --------------------------------------------------------------------------
   Section Labels - Animated Underline
   -------------------------------------------------------------------------- */
.section__label {
    position: relative;
    display: inline-block;
}

.section__label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section:hover .section__label::after,
.page-hero:hover .page-hero__label::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Quote Card - Text Highlight Effect
   -------------------------------------------------------------------------- */
.bento__quote p {
    background: linear-gradient(transparent 60%, rgba(99, 102, 241, 0.1) 60%);
    background-size: 0% 100%;
    transition: background-size 0.6s ease;
}

.bento__card--quote:hover .bento__quote p {
    background-size: 100% 100%;
}

/* --------------------------------------------------------------------------
   Link Hover - Animated Underline
   -------------------------------------------------------------------------- */
.project-card__link,
.footer__nav a,
.footer__legal a {
    position: relative;
}

.project-card__link::after,
.footer__nav a::after,
.footer__legal a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.project-card__link:hover::after,
.footer__nav a:hover::after,
.footer__legal a:hover::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Project Tags - Stagger Animation on Hover
   -------------------------------------------------------------------------- */
.project-card__tags span,
.project-item__tags span {
    transition: all 0.3s ease;
}

.project-card:hover .project-card__tags span,
.project-item:hover .project-item__tags span {
    transform: translateY(-2px);
}

.project-card:hover .project-card__tags span:nth-child(1) { transition-delay: 0s; }
.project-card:hover .project-card__tags span:nth-child(2) { transition-delay: 0.05s; }
.project-card:hover .project-card__tags span:nth-child(3) { transition-delay: 0.1s; }
.project-card:hover .project-card__tags span:nth-child(4) { transition-delay: 0.15s; }

/* --------------------------------------------------------------------------
   Personal/Story Image - Hover Tilt
   -------------------------------------------------------------------------- */
.story__image img,
.personal__image img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.story__image:hover img,
.personal__image:hover img {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   CTA Section - Gradient Animation
   -------------------------------------------------------------------------- */
.cta {
    position: relative;
    overflow: hidden;
}

.cta__content {
    position: relative;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   Nav Logo - Bounce on Hover
   -------------------------------------------------------------------------- */
.nav__logo:hover img {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1) rotate(0); }
    30% { transform: scale(1.15) rotate(-5deg); }
    60% { transform: scale(1.1) rotate(5deg); }
}

/* --------------------------------------------------------------------------
   Scroll Indicator - Enhanced Animation
   -------------------------------------------------------------------------- */
.hero__scroll {
    animation: fadeSlideUp 0.6s ease-out both;
    animation-delay: 0.6s;
}

.hero__scroll-line {
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateX(-50%) translateY(-100%); }
    50% { transform: translateX(-50%) translateY(0); }
    100% { transform: translateX(-50%) translateY(100%); }
}

/* --------------------------------------------------------------------------
   Scroll Reveal Animations (Mobile-First)
   -------------------------------------------------------------------------- */

/* Single elements - fade up */
.reveal-single {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-single.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger container children */
.reveal-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-child.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Specific animations for different element types */

/* Bento cards - scale in */
.bento__grid .reveal-child {
    transform: translateY(40px) scale(0.95);
}

.bento__grid .reveal-child.is-visible {
    transform: translateY(0) scale(1);
}

/* Timeline items - slide from left */
.timeline .reveal-child {
    transform: translateX(-30px);
}

.timeline .reveal-child.is-visible {
    transform: translateX(0);
}

/* Value cards - alternate directions */
.values__grid .reveal-child:nth-child(odd) {
    transform: translateX(-30px);
}

.values__grid .reveal-child:nth-child(even) {
    transform: translateX(30px);
}

.values__grid .reveal-child.is-visible {
    transform: translateX(0);
}

/* Project cards - scale and fade */
.projects__grid .reveal-child,
.projects__list .reveal-child {
    transform: translateY(30px) scale(0.97);
}

.projects__grid .reveal-child.is-visible,
.projects__list .reveal-child.is-visible {
    transform: translateY(0) scale(1);
}

/* Services - slide up with slight rotation */
.services__list .reveal-child {
    transform: translateY(20px) rotate(-1deg);
    transform-origin: left center;
}

.services__list .reveal-child.is-visible {
    transform: translateY(0) rotate(0);
}

/* Offer grid items */
.offer__grid .reveal-child {
    transform: translateY(40px);
}

.offer__grid .reveal-child.is-visible {
    transform: translateY(0);
}

/* Images - special treatment */
.story__image.reveal-single,
.personal__image.reveal-single {
    transform: translateY(30px) scale(0.95);
}

.story__image.reveal-single.is-visible,
.personal__image.reveal-single.is-visible {
    transform: translateY(0) scale(1);
}

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