:root {
    /* Colors */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --accent: #3b82f6;
    --text: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing (Golden Ratio based) */
    --phi: 1.618;
    --space-unit: 1rem;
    --space-s: calc(var(--space-unit) * var(--phi)); /* ~26px */
    --space-m: calc(var(--space-s) * var(--phi));    /* ~42px */
    --space-l: calc(var(--space-m) * var(--phi));    /* ~68px */
    --space-xl: calc(var(--space-l) * var(--phi));   /* ~110px */
    
    --section-padding: var(--space-xl) 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* RETRO INTRO STYLES */
.retro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 900px;
    background: #111;
    overflow: hidden;
    box-shadow: inset 0 0 100px rgba(0,0,0,1);
}

.screen-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen-content.active {
    opacity: 1;
}

.screen-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CRT EFFECTS */
.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
}

.noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://media.giphy.com/media/oEI9uWUicS3Ze/giphy.gif"); /* Subtle noise fallback */
    background-size: cover;
    opacity: 0.05;
    z-index: 11;
    pointer-events: none;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0);
    z-index: 12;
    pointer-events: none;
}

.flicker {
    animation: flicker 0.1s infinite;
}

@keyframes flicker {
    0% { opacity: 0.95; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

.glitch-active {
    animation: glitch-anim 0.2s linear infinite, shake 0.1s infinite;
    background: rgba(255, 255, 255, 0.05);
    filter: hue-rotate(90deg) contrast(1.5);
}

@keyframes shake {
    0% { transform: translate(0); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(-2px, 2px); }
    75% { transform: translate(2px, 1px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim {
    0% { clip-path: inset(10% 0 30% 0); }
    20% { clip-path: inset(40% 0 10% 0); }
    40% { clip-path: inset(20% 0 50% 0); }
    60% { clip-path: inset(60% 0 20% 0); }
    80% { clip-path: inset(30% 0 40% 0); }
    100% { clip-path: inset(10% 0 30% 0); }
}

.intro-skip {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.intro-skip:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.fade-out {
    animation: fadeOutIntro 1s forwards;
}

@keyframes fadeOutIntro {
    to { opacity: 0; visibility: hidden; }
}

/* Landing Page Soft Fade-In */
header, main, footer {
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

body.loaded header, 
body.loaded main, 
body.loaded footer {
    opacity: 1;
}

#retro-intro.hidden {
    display: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em; /* Spiekermann-Standard tight kerning */
    margin-bottom: var(--space-s);
}

p {
    line-height: 1.6;
    color: var(--text);
    margin-bottom: var(--space-s);
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 12px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: #fff;
    color: var(--secondary);
    border: 2px solid var(--border);
    padding: 10px 30px; /* Adjust for border */
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

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

.nav {
    height: 85px; /* Slightly taller for better breathing space */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--secondary);
    flex-direction: column;
    padding: 100px 40px 40px;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 20px 0 50px rgba(0,0,0,0.3);
}

.nav-links.active {
    left: 0;
}

@media (max-width: 767px) {
    /* Mobile Nav Links Styling */
    .nav-links li {
        text-align: center;
        width: 100%;
    }

    .nav-links li a {
        color: rgba(255,255,255,0.8) !important;
        font-size: 1.2rem;
        padding: 15px 0;
        display: block;
        font-weight: 500;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: var(--transition);
        text-align: center;
    }

    .nav-links li a:hover, 
    .nav-links li a.active {
        color: white !important;
        text-shadow: 0 0 10px var(--primary);
    }

    .nav-links li a.btn-nav {
        margin: 20px auto 0 auto !important;
        display: inline-flex;
        width: auto;
        border-bottom: none;
    }
}

@media (min-width: 768px) {
    .nav-links {
        position: static;
        flex-direction: row;
        height: auto;
        padding: 0;
        width: auto;
        max-width: none;
        background: transparent;
        box-shadow: none;
        overflow-y: visible;
        display: flex;
        gap: 32px;
        align-items: center; 
        margin: 0;
    }

    .nav-links li {
        width: auto;
        text-align: left;
        display: flex;
        align-items: center;
    }

    .nav-links li a {
        font-size: 1rem;
        padding: 5px 0;
        color: var(--text-light);
        border: none;
        display: inline-block;
        line-height: 1.2;
        transition: var(--transition);
    }

    .nav-links li a:hover, 
    .nav-links li a.active {
        color: var(--primary);
        text-shadow: none;
        background: transparent;
    }

    .nav-links li.mobile-lang-switcher {
        display: none !important;
    }
}

/* High specificity to prevent nav-link overrides */
.nav-links li a.btn-nav {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 12px 36px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    margin-left: var(--space-s);
    border: none;
    transition: var(--transition);
}

.nav-links li a.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
    color: white !important;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 10px; /* Headroom for mobile */
}

.lang-switcher span svg {
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-switcher span {
    line-height: 0;
}

.lang-switcher span.active {
    opacity: 1;
    transform: scale(1.1);
}

.lang-switcher span:hover {
    opacity: 0.8;
}

.lang-divider {
    width: 1px;
    height: 16px;
    background: rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .lang-switcher {
        justify-content: center;
        padding-top: 40px; /* Big headroom as requested */
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    
    .lang-divider {
        background: rgba(255,255,255,0.2);
    }
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--primary);
    z-index: 2101;
    position: relative;
    padding: 10px;
}

/* Header Visibility Fix */
.desktop-lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
}

.lang-text {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    letter-spacing: 0.05em;
}

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

.lang-divider {
    width: 1px;
    height: 12px;
    background: var(--border);
}

.mobile-lang-switcher {
    display: none;
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
}

.lang-switcher-drawer {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding-top: 20px;
}

.lang-divider-mobile {
    width: 1px;
    height: 15px;
    background: rgba(255,255,255,0.2);
}

@media (max-width: 767px) {
    .desktop-lang-switcher {
        display: none;
    }
    
    .mobile-lang-switcher {
        display: block;
    }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: -100%; /* Slide from left */
        width: 280px;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        padding: 100px 30px 40px;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 2000;
        box-shadow: 10px 0 50px rgba(0,0,0,0.5);
    }
    
    .nav-links.active {
        left: 0;
    }
}
@media (min-width: 768px) {
    .nav-links {
        position: static;
        flex-direction: row;
        height: auto;
        padding: 0;
        width: auto;
        background: transparent;
        box-shadow: none;
        left: auto;
        transition: none;
    }
}

.mobile-toggle:hover {
    color: var(--primary);
}

.hero {
    min-height: 80vh;
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    padding-top: 180px; 
    padding-bottom: var(--space-xl);
    position: relative;
    background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(15, 23, 42, 0.05) 0%, transparent 40%);
    text-align: center; /* Centering for Spiekermann standard */
}

.hero-content {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Internal centering */
}

.hero-content h1 {
    margin-top: 0;
    line-height: 1.1;
    letter-spacing: -0.015em; /* Spiekermann inspired tight kerning */
    font-weight: 700;
    margin-bottom: var(--space-s);
}

/* Footer Refinement */
.footer-brand p {
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0.8;
}

.footer-links h4 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: var(--space-s);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--space-m);
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
    .hero-actions {
        justify-content: flex-start;
    }
}

.hero-actions {
    display: flex;
    gap: var(--space-s);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-m);
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px; /* Increased margin */
    color: var(--secondary);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
        margin-bottom: 24px;
    }
}

.sub-headline {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.hero-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: var(--secondary);
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: -1;
    opacity: 0.03;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

.feature-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

/* Portfolio Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 6px;
    width: 18px;
    height: 18px;
    background-color: var(--primary);
    border: 4px solid white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background-color: var(--bg-white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.timeline-content .date {
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.timeline-content .company {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 16px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: flex-start;
    }
}

.about-image {
    position: relative;
}

.rounded-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
}

.image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    border-radius: 50%;
    z-index: 0;
}

.about-text p {
    margin-bottom: 24px;
    font-size: 1.1rem;
}

/* Certs Section */
.certs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

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

.cert-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cert-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.cert-item span {
    font-weight: 500;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: var(--bg-light);
    padding: var(--space-xl) 0 var(--space-m);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-l);
    margin-bottom: var(--space-l);
    align-items: flex-start;
}

.footer-brand .logo {
    color: white;
    font-size: 2rem;
    margin-bottom: var(--space-s);
    display: inline-block;
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    padding-top: var(--space-m);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .certs-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    /* Removed conflicting nav-links rule to avoid override */
    
    .mobile-toggle {
        display: block !important;
        visibility: visible;
        opacity: 1;
    }
    
    .hero-grid, .features-grid, .about-grid, .contact-info, .certs-list {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        gap: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-top: 40px; /* Extra space for mobile headline */
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Backdrop Blur for elegant menu */
body.menu-open main, 
body.menu-open footer {
    filter: blur(10px) brightness(0.7);
    pointer-events: none;
    transition: filter 0.4s ease;
}

.nav-links {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* --- SPLASH SCREEN TIMEPWARP --- */
.splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
    overflow: hidden;
    color: #0f0;
    font-family: 'Courier New', Courier, monospace;
}

#splash-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-skip {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    z-index: 10000;
}

.btn-skip:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
}

.lang-switcher span.active {
    color: var(--primary) !important;
}

.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
}

/* Spacer */
.spacer-sm { height: 20px; }

/* CONTACT SECTION */
.contact-section {
    padding: 100px 0;
    background: #f8fafc;
}

.contact-form .btn-primary {
    background-color: var(--primary);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    width: auto;
    min-width: 200px;
}

.contact-form .btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.contact-form-container h3 {
    margin-top: 8px; /* Optische Fluchtung zur Badge und H2 links */
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        margin-top: 40px;
    }
}

.contact-lead {
    font-size: 1.2rem;
    color: var(--slate);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.4rem;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    cursor: pointer;
}

.checkbox-group input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    line-height: 1.4;
}

/* Modal Overlay Effect (Optional logic can be added in JS) */
.modal-placeholder {
    transition: all 0.3s ease;
}

/* COMPLIANCE & FOOTER */
.compliance-note {
    text-align: center;
}

/* Era: DOS */
.era-dos {
    background: #000;
    color: #0f0;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 40px;
    animation: flicker 0.15s infinite;
}

.era-dos.amber {
    color: #ffb000;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    50% { opacity: 1; }
    100% { opacity: 0.98; }
}

/* Era: MacOS Vintage */
.era-macos {
    background: #ddd;
    color: #000;
    font-family: "Geneva", "Chicago", sans-serif;
    padding: 2px;
    border: 2px solid #000;
    box-shadow: 2px 2px 0 #fff inset, -2px -2px 0 #888 inset;
}

/* Era: Windows Vintage */
.era-windows {
    background: #008080; /* Classic Teal */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win-window {
    background: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #808080;
    border-bottom-color: #808080;
    padding: 2px;
    width: 400px;
}

.win-title {
    background: #000080;
    color: #fff;
    padding: 4px 8px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Era: Unix / SGI / HP-UX */
.era-unix {
    background: #1a1a1a;
    color: #00ffff;
    width: 100%;
    height: 100%;
    padding: 20px;
    font-family: 'Lucida Console', Monaco, monospace;
}

.unix-terminal {
    border: 1px solid #444;
    background: #000;
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
}

/* Portfolio & Gallery Buttons */
.btn-sample {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-sample:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-sample i {
    font-size: 0.8rem;
}

/* Gallery Grid & Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.sample-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.sample-thumb {
    position: relative;
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.sample-thumb i {
    font-size: 3rem;
    color: var(--slate);
    opacity: 0.3;
}

.sample-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    backdrop-filter: blur(4px);
}

.sample-info {
    padding: 20px;
    flex-grow: 1;
}

.sample-info h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.sample-footer {
    padding: 0 20px 20px;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 25px;
    border: 1px solid var(--border);
    background: white;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* COOKIE CONSENT BANNER */
.cookie-consent {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.cookie-content button {
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Checkbox group styling improvements */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
}

.checkbox-group input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-group label strong {
    color: var(--secondary);
}

/* Scroll Back Arrow (Fix) */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.scroll-top i {
    transition: transform 0.3s ease;
}

.scroll-top:hover i {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Gallery & Work Samples */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.sample-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sample-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.sample-thumb {
    width: 100%;
    height: 180px;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

.sample-thumb i {
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.sample-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}

.sample-info {
    padding: 20px;
    flex-grow: 1;
}

.sample-info h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.sample-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-sample {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-sample:hover {
    text-decoration: underline;
}

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