/* =========================================
   Base & Tokens
   ========================================= */
:root {
    /* Colors */
    --bg-base: #08080c;
    --bg-darker: #050508;
    --bg-glass: rgba(20, 20, 30, 0.4);
    --bg-glass-hover: rgba(30, 30, 45, 0.6);
    
    --primary: #6366f1; /* Indigo */
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.5);
    
    --secondary: #a855f7; /* Purple */
    --accent: #ec4899; /* Pink */
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-light: rgba(255, 255, 255, 0.15);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    --gradient-glow: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2), rgba(236,72,153,0.2));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--bg-base);
}

.site-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

.text-primary { color: var(--primary); }
.text-gold { color: #fbbf24; }
.text-muted { color: var(--text-muted); }
.text-left { text-align: left; }
.text-center { text-align: center; }

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.relative { position: relative; }

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.highlight {
    color: var(--primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* =========================================
   Background Shapes (Glassmorphism effect)
   ========================================= */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation: float 20s infinite alternate;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 30%;
    right: -5%;
    animation: float 25s infinite alternate-reverse;
}

.bg-shape-3 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    bottom: -10%;
    left: 20%;
    animation: float 22s infinite alternate;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

/* =========================================
   Glassmorphism Components
   ========================================= */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    outline: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass-light);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.05);
    border-color: white;
    transform: translateY(-2px);
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    border-radius: 9999px;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(20, 20, 30, 0.8);
    border-color: var(--border-glass-light);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo-img {
    height: 35px;
    width: auto;
    border-radius: 6px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient-brand);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 6rem;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.glass-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid var(--primary-glow);
    background: rgba(99, 102, 241, 0.1);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* =========================================
   Projects Grid Structure
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px var(--primary-glow);
}

.card-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--border-glass-light);
    border-bottom: 1px solid var(--border-glass);
    transition: var(--transition-base);
}

.project-card:hover .card-image-placeholder {
    color: var(--primary);
    background: var(--gradient-glow);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   Custom Orders Section
   ========================================= */
.custom-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #e2e8f0;
}

.alert {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgba(99,102,241,0.1), transparent);
}

.alert-icon {
    color: var(--primary);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.alert-text strong {
    display: block;
    color: white;
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
}

.alert-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Process Timeline inside card */
.process-card {
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
}

.process-card h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-step::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -30px;
    width: 2px;
    background: var(--border-glass-light);
    z-index: 1;
}

.process-step:last-child::after {
    display: none;
}

.step-num {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary);
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(99,102,241,0.2);
}

.step-text h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.step-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   CTA Section
   ========================================= */
.cta-box {
    padding: 5rem 2rem;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-color: rgba(99,102,241,0.3);
}

.cta-box .glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cta-box h2, .cta-box p, .cta-box a {
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   Project Modal (Popup)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.85); /* dunkler, leicht transparenter Hintergrund */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass-light);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Custom Scrollbar für Modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--border-glass-light);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 3rem;
}

.modal-header {
    margin-bottom: 2rem;
    padding-right: 3rem; /* Platz für Schließen-Button */
}

.modal-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.modal-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Gallery inside Modal */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.modal-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border-glass-light);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.modal-gallery img:hover {
    transform: scale(1.02);
    border-color: var(--primary-glow);
}

.modal-gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px dashed var(--border-glass-light);
    color: var(--text-muted);
}

/* =========================================
   Lightbox (Image Zoom)
   ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000; /* Höher als project-modal */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
}

.lightbox-overlay.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

/* Klickbare Projektkarten auf der Startseite */
.project-card {
    cursor: pointer;
}

/* =========================================
   Team Section
   ========================================= */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-glow);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px var(--primary-glow);
}

.team-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(99,102,241,0.1) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.team-card-content {
    position: relative;
    z-index: 1;
}

.team-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.team-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-brand);
    z-index: -1;
    opacity: 0.7;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.team-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-darker);
    background-color: var(--bg-glass);
}

.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--bg-darker);
    background-color: var(--bg-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.team-name {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #030305;
    border-top: 1px solid var(--border-glass);
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 100%);
    opacity: 0.5;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
    border-color: var(--primary);
}

.footer-links h4 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   Animations (Intersection Observer Classes)
   ========================================= */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* =========================================
   Cost Diagram Widget
   ========================================= */
.cost-diagram-wrapper {
    padding: 3rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-glass-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cost-diagram-wrapper .glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.cost-diagram-wrapper > div {
    position: relative;
    z-index: 1;
}

.cost-diagram {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    padding-top: 1rem;
}

.cost-diagram::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 180px; 
    width: 2px;
    background: var(--border-glass-light);
    z-index: 1;
}

.cost-row {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.cost-label {
    width: 180px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-main);
    padding-right: 1.5rem;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-align: right;
    letter-spacing: 0.5px;
}

.cost-bar-container {
    flex-grow: 1;
    height: 40px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.cost-bar {
    position: absolute;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 2;
    opacity: 0;
}

.cost-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    animation: shimmer 2s infinite;
    transform: skewX(-20deg);
}

.bar-bio { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.bar-web { background: linear-gradient(90deg, #3b82f6, #60a5fa); box-shadow: 0 0 15px rgba(59, 130, 246, 0.4); }
.bar-game { background: linear-gradient(90deg, #a855f7, #c084fc); box-shadow: 0 0 15px rgba(168, 85, 247, 0.4); }
.bar-erp { background: linear-gradient(90deg, #f43f5e, #fb7185); box-shadow: 0 0 15px rgba(244, 63, 94, 0.4); }

.cost-value {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    z-index: 3;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
}

.cost-row.show .cost-bar {
    animation: slideInBarWidth 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform-origin: left;
}
@keyframes slideInBarWidth {
    0% { transform: scaleX(0); opacity: 0; }
    1% { opacity: 1; transform: scaleX(0); }
    100% { transform: scaleX(1); opacity: 1; }
}

.cost-row.show .cost-value {
    animation: fadeInValue 1.5s ease-out forwards;
    animation-delay: 0.3s;
}
@keyframes fadeInValue {
    0% { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .custom-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile setup, requires js for full toggle */
    }
    
    .nav-cta {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title { font-size: 2.75rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    
    .section { padding: 4rem 0; }
    .process-card { padding: 1.5rem; }
    
    .cost-diagram-wrapper {
        padding: 2rem 1.5rem;
    }
    .cost-diagram::before {
        display: none;
    }
    .cost-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .cost-label {
        width: 100%;
        text-align: left;
        padding-right: 0;
        font-size: 1rem;
    }
    .cost-bar-container {
        width: 100%;
    }
    .cost-value {
        font-size: 0.85rem;
    }
    
    .footer-content { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-bottom-inner { flex-direction: column; gap: 1rem; text-align: center; }
}
