/* LiraCore Website - Korrigierte und erweiterte Styles */

/* CSS Custom Properties */
:root {
    /* Royal Blue Color Scheme */
    --primary-100: #003da0;
    --primary-200: #0052d9;
    --primary-300: #1a66ff;
    --primary-gradient: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 50%, var(--primary-300) 100%);
    --primary-gradient-hover: linear-gradient(135deg, var(--primary-200) 0%, var(--primary-300) 50%, #4d7fff 100%);

    /* Neon Colors */
    --neon-blue: #1a66ff;
    --neon-pink: #ff007f;
    --neon-purple: #8a2be2;
    --neon-green: #39ff14;
    --neon-cyan: #1a66ff;

    --bg-primary: #ffffff;
    --bg-secondary: #f8faff;
    --bg-tertiary: #f0f4ff;
    --bg-accent: rgba(0, 61, 160, 0.05);

    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #545454;

    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-blue: 0 10px 30px rgba(0, 61, 160, 0.2);
    --shadow-neon: 0 0 20px rgba(0, 245, 255, 0.3);

    /* Dark Mode Colors */
    --bg-primary-dark: #0f1419;
    --bg-secondary-dark: #1a2332;
    --bg-tertiary-dark: #243447;
    --bg-accent-dark: rgba(26, 102, 255, 0.1);

    --text-primary-dark: #f8fafc;
    --text-secondary-dark: #cbd5e1;
    --text-muted-dark: #94a3b8;

    --border-color-dark: #334155;

    /* Typography */
    --font-heading: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;

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

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-toast: 1080;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --bg-tertiary: var(--bg-tertiary-dark);
    --bg-accent: var(--bg-accent-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --text-muted: var(--text-muted-dark);
    --border-color: var(--border-color-dark);
}

/* Auto Dark Mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-primary: var(--bg-primary-dark);
        --bg-secondary: var(--bg-secondary-dark);
        --bg-tertiary: var(--bg-tertiary-dark);
        --bg-accent: var(--bg-accent-dark);
        --text-primary: var(--text-primary-dark);
        --text-secondary: var(--text-secondary-dark);
        --text-muted: var(--text-muted-dark);
        --border-color: var(--border-color-dark);
    }
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

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

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

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

/* Neon Effects */
.neon-glow {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    transition: box-shadow var(--transition-base);
}

.neon-glow:hover {
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5), 0 0 40px rgba(0, 245, 255, 0.3);
}

.neon-border {
    border: 1px solid rgba(0, 245, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.neon-border:hover::before {
    left: 100%;
}

.neon-border-subtle {
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: border-color var(--transition-base);
}

.neon-border-subtle:hover {
    border-color: rgba(0, 245, 255, 0.3);
}

.neon-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

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

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

.section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-family: var(--font-heading);
    font-size: 0.975rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover:before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

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

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--primary-100);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.btn-large {
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: 1.125rem;
    min-height: 52px;
}

/* ============================================
   GRADIENT & NEON GLOW
   ============================================ */
.gradient-glow {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(26, 102, 255, 0.6));
    animation: gradientShift 3s ease infinite;
}

[data-theme="light"] .gradient-glow {
    filter: drop-shadow(0 0 8px rgba(0, 61, 160, 0.3));
}

@keyframes gradientShift {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(26, 102, 255, 0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.8)); }
}

[data-theme="light"] .gradient-glow {
    animation: gradientShiftLight 3s ease infinite;
}

@keyframes gradientShiftLight {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 61, 160, 0.3)); }
    50% { filter: drop-shadow(0 0 12px rgba(124, 58, 237, 0.4)); }
}

/* ============================================
     SCANLINE / HOLOGRAM EFFEKT
     ============================================ */
.scanline {
    position: relative;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--neon-cyan);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 4px;
}

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

.scanline::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--neon-cyan);
    opacity: 0.5;
    filter: blur(2px);
    animation: flicker 0.1s infinite;
}

[data-theme="light"] .scanline::before {
    color: var(--primary-300);
    opacity: 0.3;
}

.scanline::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
            to bottom,
            rgba(0, 245, 255, 0.1) 0px,
            rgba(0, 245, 255, 0.1) 2px,
            transparent 3px,
            transparent 4px
    );
    animation: scan 8s linear infinite;
    pointer-events: none;
}

[data-theme="light"] .scanline::after {
    background: repeating-linear-gradient(
            to bottom,
            rgba(0, 61, 160, 0.08) 0px,
            rgba(0, 61, 160, 0.08) 2px,
            transparent 3px,
            transparent 4px
    );
}

@keyframes scan {
    from { transform: translateY(-100%); }
    to { transform: translateY(100%); }
}

@keyframes flicker {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.3; }
}

/* ============================================
   REVEAL / MASK ANIMATION
   ============================================ */
.reveal {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    background-size: 0% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: reveal 2s ease-in-out forwards;
}

@keyframes reveal {
    from { background-size: 0% 100%; }
    to { background-size: 100% 100%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

[data-theme="dark"] .header {
    background: rgba(15, 20, 25, 0.9);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 20, 25, 0.95);
}

.nav {
    padding: var(--spacing-md) 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    z-index: var(--z-fixed);
}

.logo-container {
    width: 180px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.logo-image {
    width: 75%;
    height: auto;
    object-fit: contain;
    transition: all var(--transition-base);
}

.nav-brand:hover .logo-container {
    transform: scale(1.05);
}

.footer-logo-image {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.footer-logo-container {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .logo-container {
        width: 120px;
        height: 40px;
    }

    .footer-logo-container {
        transform: translateX(50%);
    }

    .footer-logo-image {
        width: 150px;
    }
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    position: relative;
    transition: all var(--transition-base);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
    color: var(--primary-100);
}

.cta-button {
    background: var(--primary-gradient);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
}

.cta-button:hover {
    background: var(--primary-gradient-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.menu-btn-container {
    display: none;
}

@media (max-width: 1024px) {
    .menu-btn-container {
        display: block;
    }

    .nav-menu {
        display: none !important;
    }

    .cta-button {
        display: none !important;
    }
}

/* Button Styles */
.menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.menu-btn:hover {
    background: var(--bg-tertiary);
    transform: scale(1.05);
    color: var(--primary-100);
}

.menu-btn:active {
    transform: scale(0.95);
}

.menu-btn.active {
    transform: scale(1) rotate(180deg);
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(138, 43, 226, 0.2));
    border-color: rgba(255, 71, 87, 0.5);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

/* Menu Lines */
.menu-lines {
    width: 20px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.line {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
}

.line:nth-child(1) { top: 0; }
.line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.line:nth-child(3) { bottom: 0; }

.menu-btn.active .line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.7);
}

.menu-btn.active .line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.menu-btn.active .line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background: linear-gradient(90deg, #ff4757, #ff6b81);
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.7);
}

/* Orbital Rings - Dezenter für Header */
.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 245, 255, 0.1);
    border-radius: var(--radius-md);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-btn:hover .orbital-ring {
    opacity: 1;
}

.orbital-ring-1 {
    width: 50px;
    height: 50px;
    animation: rotateOrbit 3s linear infinite;
}

.orbital-ring-2 {
    width: 60px;
    height: 60px;
    animation: rotateOrbit 4s linear infinite reverse;
}

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

/* Menu Label - Versteckt im Header */
.menu-label {
    display: none;
}

/* ===== ORBIT MENU ===== */
.orbit-menu.active ~ .header,
body:has(.orbit-menu.active) .header {
    z-index: 10001;
    position: fixed;
}

.orbit-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(248, 250, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, background 0.3s ease;
    overflow: hidden;
}

/* Dark Mode */
[data-theme="dark"] .orbit-menu {
    background: rgba(15, 20, 25, 0.98);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .orbit-menu {
        background: rgba(15, 20, 25, 0.98);
    }
}


.orbit-menu.active {
    opacity: 1;
    visibility: visible;
}

.orbit-cta {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.orbit-menu.active .orbit-cta {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    transition-delay: 0.8s;
}

.orbit-cta-button {
    padding: var(--spacing-md) var(--spacing-2xl);
    background: linear-gradient(135deg, rgba(0, 61, 160, 0.2), rgba(26, 102, 255, 0.2));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 61, 160, 0.5);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 30px rgba(0, 61, 160, 0.3);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
}

/* Dark Mode */
[data-theme="dark"] .orbit-cta-button {
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.3), rgba(138, 43, 226, 0.3));
    border-color: rgba(0, 245, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .orbit-cta-button {
        background: linear-gradient(135deg, rgba(26, 102, 255, 0.3), rgba(138, 43, 226, 0.3));
        border-color: rgba(0, 245, 255, 0.5);
        color: #ffffff;
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
    }
}


.orbit-cta-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.5), rgba(138, 43, 226, 0.5));
    border-color: rgba(0, 245, 255, 0.9);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.8);
}

.orbit-cta-button:active {
    transform: scale(0.95);
}

/* Mobile Anpassungen für CTA */
@media (max-width: 480px) {
    .orbit-cta {
        bottom: -100px;
    }

    .orbit-cta-button {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.9rem;
    }
}

/* Orbit Particles Background */
.orbit-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.orbit-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 61, 160, 0.6);
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat 8s ease-in-out infinite;
}

[data-theme="dark"] .orbit-particle {
    background: #00f5ff;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-30px) scale(1.5);
        opacity: 0.6;
    }
}

/* Orbit Container */
.orbit-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 2;
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 61, 160, 0.15);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Dark Mode */
[data-theme="dark"] .orbit-ring {
    border-color: rgba(0, 245, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .orbit-ring {
        border-color: rgba(0, 245, 255, 0.1);
    }
}

.orbit-menu.active .orbit-ring {
    opacity: 1;
}

.orbit-ring-menu-1 {
    width: 280px;
    height: 280px;
    animation: rotateOrbitMenu 15s linear infinite;
}

.orbit-ring-menu-2 {
    width: 380px;
    height: 380px;
    animation: rotateOrbitMenu 25s linear infinite reverse;
}

.orbit-ring-menu-3 {
    width: 480px;
    height: 480px;
    animation: rotateOrbitMenu 35s linear infinite;
}

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

.orbit-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, rgba(0, 61, 160, 0.6), transparent);
    border-radius: 50%;
    margin-top: -4px;
    box-shadow: 0 0 15px rgba(0, 61, 160, 0.6);
    animation: orbitTrail 3s ease-in-out infinite;
}

[data-theme="dark"] .orbit-ring::after {
    background: radial-gradient(circle, rgba(0, 245, 255, 0.8), transparent);
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.8);
}

@keyframes orbitTrail {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Orbit Center Button */
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 61, 160, 0.15), rgba(26, 102, 255, 0.15));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 61, 160, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 40px rgba(0, 61, 160, 0.2), inset 0 0 20px rgba(0, 61, 160, 0.05);
}

/* Dark Mode */
[data-theme="dark"] .orbit-center {
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.3), inset 0 0 20px rgba(0, 245, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .orbit-center {
        background: linear-gradient(135deg, rgba(26, 102, 255, 0.2), rgba(138, 43, 226, 0.2));
        border-color: rgba(0, 245, 255, 0.3);
        box-shadow: 0 0 40px rgba(0, 245, 255, 0.3), inset 0 0 20px rgba(0, 245, 255, 0.1);
    }
}

.orbit-menu.active .orbit-center {
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.2s;
}

.orbit-center:hover {
    transform: translate(-50%, -50%) scale(1.15);
}

[data-theme="dark"] .orbit-center:hover {
    box-shadow: 0 0 60px rgba(0, 245, 255, 0.5), inset 0 0 30px rgba(0, 245, 255, 0.2);
    border-color: rgba(0, 245, 255, 0.6);
}

.orbit-center:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-100), var(--primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

[data-theme="dark"] .logo-text {
    background: linear-gradient(135deg, #00f5ff, #8a2be2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-icon {
    position: absolute;
    font-size: 24px;
    color: #ff4757;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.8);
    font-weight: 700;
}

.orbit-center:hover .logo-text {
    opacity: 0;
    transform: scale(0.8);
}

.orbit-center:hover .close-icon {
    opacity: 1;
    transform: scale(1);
}

/* Orbit Glow Effect */
.orbit-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 61, 160, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
    z-index: 0;
}

[data-theme="dark"] .orbit-glow {
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
}


@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.6;
    }
}

/* Orbit Navigation Items */
.orbit-nav-item {
    position: absolute;
    width: 90px;
    height: 90px;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55),
    transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: scale(0) rotate(-180deg);
}

.orbit-menu.active .orbit-nav-item {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.orbit-menu.active .orbit-nav-item[data-position="1"] { transition-delay: 0.3s; }
.orbit-menu.active .orbit-nav-item[data-position="2"] { transition-delay: 0.4s; }
.orbit-menu.active .orbit-nav-item[data-position="3"] { transition-delay: 0.5s; }
.orbit-menu.active .orbit-nav-item[data-position="4"] { transition-delay: 0.6s; }
.orbit-menu.active .orbit-nav-item[data-position="5"] { transition-delay: 0.7s; }

/* Orbit Navigation Buttons */
.orbit-nav-button {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 160, 0.15), rgba(26, 102, 255, 0.15));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(0, 61, 160, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 30px rgba(0, 61, 160, 0.3), inset 0 0 20px rgba(0, 61, 160, 0.05);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

/* Dark Mode */
[data-theme="dark"] .orbit-nav-button {
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.25), rgba(138, 43, 226, 0.25));
    border-color: rgba(0, 245, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.4), inset 0 0 20px rgba(0, 245, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .orbit-nav-button {
        background: linear-gradient(135deg, rgba(26, 102, 255, 0.25), rgba(138, 43, 226, 0.25));
        border-color: rgba(0, 245, 255, 0.5);
        box-shadow: 0 0 30px rgba(0, 245, 255, 0.4), inset 0 0 20px rgba(0, 245, 255, 0.1);
    }
}

/* Hover Effect Background */
.orbit-nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 61, 160, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

[data-theme="dark"] .orbit-nav-button::before {
    background: radial-gradient(circle, rgba(0, 245, 255, 0.3), transparent);
}

/* Hover States */
.orbit-nav-button:hover {
    transform: scale(1.25) rotate(5deg);
}

[data-theme="dark"] .orbit-nav-button:hover {
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.5), rgba(138, 43, 226, 0.5));
    border-color: rgba(0, 245, 255, 0.9);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.8), inset 0 0 30px rgba(0, 245, 255, 0.3);
}

:root:not([data-theme="dark"]) .orbit-nav-button:hover {
    background: linear-gradient(135deg, rgba(0, 61, 160, 0.3), rgba(26, 102, 255, 0.3));
    border-color: rgba(0, 61, 160, 0.8);
    box-shadow: 0 0 50px rgba(0, 61, 160, 0.6), inset 0 0 30px rgba(0, 61, 160, 0.2);
}

.orbit-nav-button:hover::before {
    width: 200%;
    height: 200%;
}

.orbit-nav-button:hover {
    transform: scale(1.25) rotate(5deg);
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.5), rgba(138, 43, 226, 0.5));
    border-color: rgba(0, 245, 255, 0.9);
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.8), inset 0 0 30px rgba(0, 245, 255, 0.3);
}

.orbit-nav-button:active {
    transform: scale(0.9) rotate(0deg);
    transition: all 0.1s ease;
}

/* Orbit Navigation Label */
.orbit-nav-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

[data-theme="dark"] .orbit-nav-label {
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE ANPASSUNGEN ===== */

/* Tablet */
@media (max-width: 768px) and (min-width: 481px) {
    .orbit-container {
        width: 400px;
        height: 400px;
    }

    .orbit-nav-item {
        width: 80px;
        height: 80px;
    }

    .orbit-center {
        width: 100px;
        height: 100px;
    }

    .logo-text {
        font-size: 16px;
    }

    .orbit-nav-label {
        font-size: 11px;
    }

    .orbit-ring-menu-1 { width: 220px; height: 220px; }
    .orbit-ring-menu-2 { width: 300px; height: 300px; }
    .orbit-ring-menu-3 { width: 380px; height: 380px; }
}

/* Mobile */
@media (max-width: 480px) {
    .orbit-container {
        width: 340px;
        height: 340px;
    }

    .orbit-nav-item {
        width: 70px;
        height: 70px;
    }

    .orbit-center {
        width: 90px;
        height: 90px;
    }

    .logo-text {
        font-size: 14px;
    }

    .orbit-nav-label {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .orbit-ring-menu-1 { width: 200px; height: 200px; }
    .orbit-ring-menu-2 { width: 260px; height: 260px; }
    .orbit-ring-menu-3 { width: 320px; height: 320px; }
}

/* Desktop - Alles verstecken */
@media (min-width: 1025px) {
    .menu-btn-container,
    .orbit-menu {
        display: none !important;
    }
}

/* Particle für Explosion Effect */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #00f5ff;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 8px #00f5ff;
    z-index: 10002;
}

/* Dark Mode Anpassungen */
[data-theme="dark"] .menu-btn {
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.2), rgba(138, 43, 226, 0.2));
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, rgba(26, 102, 255, 0.2), rgba(138, 43, 226, 0.2));
}

[data-theme="dark"] .orbit-menu {
    background: rgba(5, 8, 15, 0.98);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .menu-btn,
    .orbit-center,
    .orbit-nav-button,
    .line {
        transition-duration: 0.01ms !important;
    }

    .pulse-ring,
    .orbital-ring,
    .orbit-ring,
    .orbit-glow {
        animation: none !important;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-accent) 0%, rgba(26, 102, 255, 0.03) 100%);
    z-index: 1;
}

.network-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(3,51,160,0.08), rgba(0,0,0,0.0));
    will-change: transform;
}

main, header, footer {
    position: relative;
    z-index: 2;
}

.network-fallback {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(0.9) brightness(0.95);
}

@media (prefers-reduced-motion: reduce) {
    .network-bg { display: none; }
    .network-fallback { display: block; }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(0, 61, 160, 0.15) 1px, transparent 0);
    background-size: 50px 50px;
    opacity: 0.5;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

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

.hero-content h1 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
    word-spacing: 0.1em;
}

.title-line {
    display: block;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-3xl);
}

.hero-metrics {
    display: flex;
    gap: var(--spacing-2xl);
}

.metric {
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-100);
    line-height: 1;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--primary-200);
}


/* Code Window - Fixed Size with Typewriter Support */
.hero-visual {
    position: relative;
    z-index: 5;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.code-window {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    z-index: 3;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    min-height: 350px; /* Feste Gesamthöhe */
    height: 350px; /* Feste Höhe für konsistente Darstellung */
}

.code-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    z-index: 1;
}

.window-header {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-tertiary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    height: 50px; /* Feste Header-Höhe */
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all var(--transition-base);
    cursor: pointer;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.control:hover {
    transform: scale(1.1);
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.code-content {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    height: 300px; /* Feste Content-Höhe */
    overflow: hidden;
    position: relative;
}

/* Typewriter Animation Styles - Integration */
.code-line {
    opacity: 0; /* Initial versteckt für Typewriter */
    margin-bottom: var(--spacing-sm);
    position: relative;
    min-height: 1.8em;
    display: block;
    white-space: nowrap;
    overflow: visible;
}

/* Typewriter specific states */
.code-line.typing {
    opacity: 1;
}

.code-line.typed {
    opacity: 1;
    border-right: none;
    animation: none;
}

/* Typewriter Container */
.typewriter-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.code-lines-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.code-window,
.code-window *,
.code-content,
.code-line,
.code-window pre,
.code-window code {
    text-align: left !important;
}

@media (max-width: 768px) {
    .code-window,
    .code-window *,
    .code-content,
    .code-line {
        text-align: left !important;
        text-indent: 0 !important;
    }
}

@media (max-width: 480px) {
    .code-window,
    .code-window *,
    .code-content {
        text-align: left !important;
    }
}

/* Syntax Highlighting */
.keyword { color: #0066cc; font-weight: 600; }
.variable { color: #059669; font-weight: 500; }
.function { color: #d97706; font-weight: 600; }
.property { color: #0066cc; }
.string { color: #0891b2; }
.boolean { color: #dc2626; font-weight: 500; }
.comment { color: var(--text-muted); font-style: italic; }

/* Hero Grid Fix */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

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

    .code-window {
        max-width: 100%;
        margin-top: var(--spacing-lg);
        height: 280px;
        min-height: 280px;
    }

    .window-header {
        height: 40px;
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .code-content {
        font-size: 0.75rem;
        padding: var(--spacing-md);
        height: 240px;
    }

    .window-title {
        font-size: 0.75rem;
    }

    .control {
        width: 10px;
        height: 10px;
    }
}

/* Dark Mode Anpassungen */
[data-theme="dark"] .code-window {
    background: var(--bg-secondary-dark);
    border-color: var(--border-color-dark);
}

[data-theme="dark"] .window-header {
    background: var(--bg-tertiary-dark);
    border-bottom-color: var(--border-color-dark);
}

[data-theme="dark"] .code-content {
    background: var(--bg-secondary-dark);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .keyword { color: #000080; }
    .variable { color: #006400; }
    .function { color: #8B4513; }
    .string { color: #4682B4; }
    .boolean { color: #8B0000; }
}

/* Services Section */
.services {
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-2xl);
}

.service-card {
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
    border-color: rgba(0, 61, 160, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    color: white;
    transition: all var(--transition-base);
    font-size: 1.5rem;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-blue);
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.service-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--spacing-lg);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-100);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Portfolio Section */
.portfolio {
    background: var(--bg-primary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: transparent;
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-2xl);
}

.portfolio-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-neon);
    border-color: rgba(0, 245, 255, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
    background: var(--bg-primary);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    color: white;
    padding: var(--spacing-lg);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.portfolio-tech {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
    color: var(--neon-cyan);
}

.portfolio-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.btn-portfolio {
    padding: var(--spacing-sm) var(--spacing-md);
    background: transparent;
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: var(--radius-md);
    color: white;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.btn-portfolio:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.portfolio-content {
    padding: var(--spacing-lg);
}

.portfolio-stats {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.stat {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

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

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

.tag {
    background: rgba(0, 245, 255, 0.1);
    color: var(--neon-cyan);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 245, 255, 0.2);
}

/* Modal Fixes - Zentriert */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-form {
    padding: var(--spacing-lg);
    max-height: 70vh;
    overflow-y: auto;
}

/* AI Features Section */
.ai-features {
    background: var(--bg-primary);
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.ai-feature-card {
    background: var(--bg-secondary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

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

.ai-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: white;
    font-size: 1.5rem;
}

.ai-feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ai-feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.ai-demo h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

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

/* About Section */
.about {
    background: var(--bg-primary);
}

.profile-image-container {
    display: flex;
    justify-content: center;
    margin: var(--spacing-3xl) 0;
}

.profile-image {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: visible;
}

.profile-image img {
    width: 150%;
    height: 150%;
    right: 50px;
    bottom: 100px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 1;
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes titleGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 40px rgba(138, 43, 226, 0.5)); }
}

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

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

.about-features {
    margin: var(--spacing-2xl) 0;
}

.mission-statement {
    position: relative;
    padding-left: 24px;
    border-left: 3px solid;
    border-image: linear-gradient(180deg, #00ffff, #8a2be2) 1;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.feature:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 61, 160, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-blue);
}

.feature-content h4 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    font-size: 1.2rem;
}

.feature-content p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

.about-visual {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
}

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

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.tech-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-100);
    background: var(--bg-accent);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all var(--transition-base);
}

.tech-item:hover .tech-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: var(--shadow-blue);
}

.tech-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.tech-details {
    margin-top: var(--spacing-xs);
}

.tech-details small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.company-stats {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
}

.stat-card {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    flex: 1;
    max-width: 140px;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-100);
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto var(--spacing-md);
    transition: all var(--transition-base);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-blue);
}

.stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-100);
    display: block;
    line-height: 1;
    margin-bottom: var(--spacing-xs);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

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

.contact-item {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 61, 160, 0.2);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-blue);
}

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

.contact-details p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

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

.contact-form-container {
    position: relative;
}

.contact-form {
    background: var(--bg-primary);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.contact-form h3 {
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
    text-align: center;
    font-size: 1.5rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

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

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-100);
    box-shadow: 0 0 0 3px rgba(0, 61, 160, 0.1);
    background: var(--bg-primary);
}

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

.form-actions {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.field-error::before {
    content: '⚠';
    font-size: 1rem;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

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

.footer-contact p {
    color: var(--text-secondary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary-100);
    width: 16px;
}

.link-group h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1.1rem;
}

.link-group a {
    display: block;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
    padding: var(--spacing-xs) 0;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary-100);
    transform: translateX(3px);
}

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

.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.footer-legal span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-base);
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
    border-color: var(--primary-100);
}

/* Portfolio Modal */
.portfolio-modal .modal-content {
    max-width: 900px;
    max-height: 95vh;
}

.portfolio-modal-content {
    display: flex;
    flex-direction: column;
}

.portfolio-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    max-height: 70vh;
    overflow-y: auto;
}

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

.main-image {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.thumbnail {
    width: 100%;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-base);
    background: var(--bg-tertiary);
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.portfolio-details-modal .modal-content {
    max-width: 1200px;
    max-height: 95vh;
}

.portfolio-details-content {
    display: flex;
    flex-direction: column;
}

.portfolio-details-body {
    padding: var(--spacing-xl);
    overflow-y: auto;
    max-height: calc(95vh - 80px);
}

/* Device Preview Section */
.device-preview-section {
    margin-bottom: var(--spacing-2xl);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    border: 1px solid var(--border-color);
}

.device-selector {
    margin-bottom: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.device-selector h4 {
    margin-bottom: 0;
    color: var(--text-primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Live URL Button in Device Selector */
.device-selector #live-url-section {
    margin: 0;
    order: 3;
    margin-left: auto;
}

.device-selector #live-url-section .btn {
    white-space: nowrap;
}

.device-selector .device-buttons {
    order: 2;
    flex: 1;
    justify-content: flex-start;
}

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

.device-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
}

.device-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary-100);
    color: var(--primary-100);
    transform: translateY(-2px);
}

.device-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary-100);
    color: white;
    box-shadow: var(--shadow-blue);
}

.device-btn i {
    font-size: 1.2rem;
}

/* Device Frame */
.device-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    position: relative;
    overflow: hidden;
}

.device-preview-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
            repeating-linear-gradient(
                    0deg,
                    var(--border-color) 0px,
                    transparent 1px,
                    transparent 40px,
                    var(--border-color) 41px
            ),
            repeating-linear-gradient(
                    90deg,
                    var(--border-color) 0px,
                    transparent 1px,
                    transparent 40px,
                    var(--border-color) 41px
            );
    opacity: 0.3;
    pointer-events: none;
}

.device-frame {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 8px solid #1a1a1a;
}

.device-desktop {
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.device-tablet {
    width: 100%;
    max-width: 768px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    border-width: 12px;
}

.device-mobile {
    width: 100%;
    max-width: 375px;
    aspect-ratio: 9 / 16;
    border-radius: 2rem;
    border-width: 10px;
}

.device-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Gallery Section */
.portfolio-gallery-section {
    margin-bottom: var(--spacing-2xl);
}

.portfolio-gallery-section h4 {
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    font-size: 1.25rem;
}

.portfolio-main-image {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-tertiary);
    margin-bottom: var(--spacing-lg);
}

.portfolio-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--primary-100);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(26, 102, 255, 0.5);
}

.gallery-prev {
    left: var(--spacing-lg);
}

.gallery-next {
    right: var(--spacing-lg);
}

.gallery-indicators {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.gallery-indicator {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-indicator.active {
    background: var(--primary-100);
    width: 32px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 10px var(--primary-100);
}

.gallery-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.portfolio-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    opacity: 0.6;
}

.portfolio-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.portfolio-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-100);
    box-shadow: 0 0 0 2px var(--primary-100);
}

.portfolio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details Grid */
.portfolio-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.details-section {
    margin-bottom: var(--spacing-xl);
}

.details-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
}

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

.project-meta {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: var(--bg-accent);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
}

.meta-item strong {
    color: var(--text-primary);
}

.meta-value {
    color: var(--primary-100);
    font-weight: 600;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-xl);
    color: var(--text-secondary);
    position: relative;
    line-height: 1.6;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-100);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Effects List */
.effects-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.effect-tag {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(26, 102, 255, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: var(--radius-md);
    color: var(--neon-purple);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.effect-tag:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(26, 102, 255, 0.2));
    border-color: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.3);
}

/* Tech Tags */
.tech-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tech-tag-item {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.tech-tag-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-100);
    color: var(--primary-100);
    transform: translateY(-2px);
}

.portfolio-gallery-section.hide-for-live-preview {
    display: none;
}

/* Dark Mode Specifics */
[data-theme="dark"] .device-frame {
    border-color: #2a2a2a;
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.1);
}

[data-theme="dark"] .device-preview-container::before {
    opacity: 0.1;
}

/* Light Mode Adjustments */
[data-theme="light"] .device-preview-section {
    background: #f8faff;
}

[data-theme="light"] .device-preview-container {
    background: #ffffff;
}

[data-theme="light"] .device-frame {
    border-color: #e0e0e0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .gallery-nav {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

[data-theme="light"] .gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-details-grid {
        grid-template-columns: 1fr;
    }

    .device-desktop {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .portfolio-details-body {
        padding: var(--spacing-lg);
    }

    .device-preview-section {
        display: none !important;
    }

    .device-preview-container {
        padding: var(--spacing-lg);
        min-height: 400px;
    }

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

    .device-btn span {
        display: none;
    }

    .device-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: var(--spacing-sm);
    }

    .gallery-next {
        right: var(--spacing-sm);
    }

    .portfolio-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .profile-image img {
        width: 100%;
        height: 100%;
        right: 0px;
        bottom: 0px;
    }
}

@media (max-width: 480px) {
    .device-frame {
        border-width: 6px;
    }

    .device-mobile {
        border-width: 8px;
    }
}

/* Animations */
@keyframes deviceSwitch {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.device-frame {
    animation: deviceSwitch 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Print Styles */
@media print {
    .device-preview-section,
    .gallery-nav,
    .device-buttons {
        display: none !important;
    }
}

/* Notification */
.notification {
    position: fixed;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: var(--z-toast);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    max-width: 400px;
    transform: translateX(calc(100% + var(--spacing-lg)));
    transition: transform var(--transition-slow);
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #059669;
}

.notification.error {
    border-left: 4px solid #dc2626;
}

.notification-content {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.notification.success .notification-icon {
    background: #059669;
}

.notification.error .notification-icon {
    background: #dc2626;
}

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

.notification-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* FAQ */
.faq-section {
    position: relative;
    padding: 120px 0;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    pointer-events: none;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: #888;
    max-width: 600px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    gap: 24px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.faq-question {
    padding: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    user-select: none;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    height: 500%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::before {
    transform: scaleY(1);
}

.faq-q-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.faq-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-icon i {
    font-size: 1.5rem;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-q-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: var(--primary-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-toggle i {
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    background: var(--primary-gradient);
}

.faq-item.active .faq-toggle i {
    transform: rotate(180deg);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 32px 32px 102px;
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 1.05rem;
}

.faq-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.faq-cta h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-cta p {
    font-size: 1.1rem;
    color: #888;
    margin-bottom: 32px;
}

@media (max-width: 968px) {
    .section-title {
        font-size: 2.5rem;
    }

    .faq-answer-content {
        padding: 0 24px 24px 24px;
    }

    .faq-q-text {
        font-size: 1.1rem;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
    }

    .faq-item:hover {
        transform: translateY(-4px);
    }
}

/* Loading States */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
    position: relative;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn.loading span {
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .tech-showcase {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-lg);
    }

    .company-stats {
        justify-content: space-around;
    }

    .portfolio-modal-body {
        grid-template-columns: 1fr;
    }
}

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

    .menu-toggle {
        display: flex;
    }

    .nav-actions {
        gap: var(--spacing-sm);
    }

    .cta-button {
        display: none;
    }

    section {
        padding: var(--spacing-2xl) 0;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }

    .hero-metrics {
        justify-content: center;
        gap: var(--spacing-xl);
    }

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

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

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

    .tech-showcase {
        grid-template-columns: 1fr;
        max-width: 300px;
    }

    .company-stats {
        flex-direction: column;
        align-items: center;
        max-width: 200px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }

    .notification {
        left: var(--spacing-md);
        right: var(--spacing-md);
        transform: translateY(-100%);
        max-width: none;
    }

    .notification.show {
        transform: translateY(0);
    }

    .modal-content {
        width: 95%;
        margin: var(--spacing-md);
    }
}

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

    .hero-metrics {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

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

    .service-card {
        padding: var(--spacing-lg);
    }

    .contact-form,
    .modal-form {
        padding: var(--spacing-lg);
    }

    .about-visual {
        gap: var(--spacing-lg);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-title {
        background: none;
        -webkit-text-fill-color: var(--text-primary);
        color: var(--text-primary);
    }

    .title-line {
        background: none;
        -webkit-text-fill-color: var(--text-primary);
        color: var(--text-primary);
    }

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

/* Print Styles */
@media print {
    .header,
    .modal,
    .notification {
        display: none !important;
    }

    .hero {
        padding-top: 0;
        min-height: auto;
    }

    .hero-bg,
    .grid-overlay {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .btn {
        border: 1px solid black;
        background: white;
        color: black;
    }
}

/* Focus States for Keyboard Navigation */
.keyboard-navigation *:focus {
    outline: 2px solid var(--primary-100);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Theme Transition */
.theme-transitioning * {
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.theme-transitioning .logo-container,
.theme-transitioning .service-icon,
.theme-transitioning .contact-icon,
.theme-transitioning .feature-icon,
.theme-transitioning .tech-icon {
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}