/* ApproveFirst - Futuristic Professional Design System */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800;900&family=Roboto:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Root Variables */
:root {
    /* Modern Professional Colors */
    --future-blue: #0066ff;
    --future-teal: #00d4d4;
    --future-purple: #7c3aed;
    --future-gold: #fbbf24;
    --future-silver: #e5e7eb;
    --future-green: #10b981;
    --future-red: #ef4444;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Gradients */
    --gradient-main: linear-gradient(135deg, #0066ff 0%, #00d4d4 100%);
    --gradient-dark: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    
    /* Typography */
    --font-primary: 'Exo 2', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 102, 255, 0.1);
    
    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 212, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

h1, .h1 { 
    font-size: 3.5rem; 
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2, .h2 { 
    font-size: 2.5rem; 
    font-weight: 700;
}

h3, .h3 { font-size: 2rem; font-weight: 700; }
h4, .h4 { font-size: 1.5rem; font-weight: 600; }
h5, .h5 { font-size: 1.25rem; font-weight: 600; }
h6, .h6 { font-size: 1rem; font-weight: 600; }

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: var(--transition-base);
    box-shadow: 0 0 40px rgba(0, 102, 255, 0.1);
}

.navbar.scrolled {
    padding: 0.75rem 0;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 
        0 0 40px rgba(0, 102, 255, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4d4 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #00d4d4 0%, #0066ff 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.navbar-brand:hover::after {
    transform: scaleX(1);
}

.navbar-brand i {
    font-size: 1.25rem;
    margin-right: 0.5rem;
    background: linear-gradient(135deg, #00d4d4 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    position: relative;
    transition: var(--transition-base);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: translateX(-50%);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--future-teal);
}

.nav-link:hover::after {
    width: 80%;
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--future-blue);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-light {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0, 102, 255, 0.3),
        inset 0 0 20px rgba(0, 102, 255, 0.1);
}

.btn-outline-light {
    background: transparent;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-outline-light:hover::before {
    left: 100%;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 212, 212, 0.8);
    color: var(--future-teal);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 212, 0.3);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #0066ff 0%, #00d4d4 100%);
    color: white;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 102, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

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

.btn-primary-glow:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 102, 255, 0.4),
        0 0 40px rgba(0, 212, 212, 0.2);
}

.btn-link-arrow {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-link-arrow:hover {
    color: #00d4d4;
    transform: translateX(5px);
}

.btn-link-arrow i {
    transition: transform 0.3s ease;
}

.btn-link-arrow:hover i {
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #151b3d 50%, #0a0e27 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(0, 102, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 212, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0, 102, 255, 0.03) 2px, rgba(0, 102, 255, 0.03) 4px),
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 212, 212, 0.03) 2px, rgba(0, 212, 212, 0.03) 4px);
    background-size: 100px 100px;
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

/* Code Animation Background */
.code-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.03;
    pointer-events: none;
}

.code-line {
    position: absolute;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--future-teal);
    animation: slideCode 20s linear infinite;
}

.code-line:nth-child(1) { top: 10%; animation-duration: 18s; }
.code-line:nth-child(2) { top: 25%; animation-duration: 22s; animation-delay: -5s; }
.code-line:nth-child(3) { top: 40%; animation-duration: 20s; animation-delay: -10s; }
.code-line:nth-child(4) { top: 55%; animation-duration: 24s; animation-delay: -15s; }
.code-line:nth-child(5) { top: 70%; animation-duration: 19s; animation-delay: -8s; }
.code-line:nth-child(6) { top: 85%; animation-duration: 21s; animation-delay: -12s; }

@keyframes slideCode {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(100px, 100px); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 255, 135, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #00ff87;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 255, 135, 0.3);
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-badge i {
    font-size: 1rem;
    margin-right: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(135deg, #00d4d4 0%, #0066ff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite;
    display: inline-block;
    position: relative;
}

.hero-title span::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(135deg, #00d4d4 0%, #0066ff 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(10px);
    opacity: 0.5;
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-subtitle strong {
    color: #00ff87;
    font-weight: 600;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '{ }';
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--future-teal);
    opacity: 0.2;
}

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

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 
        0 20px 40px rgba(0, 102, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 212, 0.5);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4d4 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: attr(data-value);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4d4 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    overflow: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 102, 255, 0.15),
        0 0 60px rgba(0, 102, 255, 0.05);
    border-color: rgba(0, 102, 255, 0.3);
}

.card-body {
    padding: 2rem;
}

/* Feature Cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '</>';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--future-blue);
    opacity: 0.1;
    font-weight: 700;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--text-white);
    transition: var(--transition-base);
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-main);
    border-radius: 24px;
    opacity: 0.2;
    z-index: -1;
    transition: var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon::after {
    inset: -8px;
    opacity: 0.3;
}

/* Process Section */
#prozess {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

#prozess::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
    z-index: 1;
}

/* Code Background Pattern for Sections */
.code-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.code-snippet {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--future-blue);
    white-space: nowrap;
    opacity: 0.4;
    animation: floatCode 15s ease-in-out infinite;
}

.code-snippet.snippet-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.code-snippet.snippet-2 {
    top: 30%;
    right: 10%;
    animation-delay: 2s;
}

.code-snippet.snippet-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.code-snippet.snippet-4 {
    top: 50%;
    right: 5%;
    animation-delay: 6s;
}

.code-snippet.snippet-5 {
    bottom: 10%;
    right: 20%;
    animation-delay: 8s;
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
        opacity: 0.7;
    }
}

/* Mobile Code Decorations */
.mobile-code-decoration {
    display: none;
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 212, 212, 0.05) 100%);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--future-blue);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .mobile-code-decoration {
        display: block;
    }
    
    .hero-section {
        position: relative;
    }
    
    .hero-section .mobile-code-decoration {
        animation: pulse 3s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0%, 100% {
            transform: scale(1);
            opacity: 0.7;
        }
        50% {
            transform: scale(1.05);
            opacity: 1;
        }
    }
}

/* Portfolio */
#portfolio {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

#portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 100px,
        rgba(0, 102, 255, 0.02) 100px,
        rgba(0, 102, 255, 0.02) 200px
    );
    animation: slidePattern 30s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: var(--transition-base);
    background: rgba(255, 255, 255, 0.8);
}

.portfolio-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.portfolio-image {
    position: relative;
    height: 300px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.9);
    z-index: 2;
    position: relative;
}

.code-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .code-overlay {
    opacity: 1;
}

.code-line-mini {
    background: rgba(0, 0, 0, 0.8);
    color: var(--future-teal);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.portfolio-content {
    background: var(--bg-card);
    padding: 2rem;
}

.portfolio-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.badge::before {
    content: '</>';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.625rem;
    opacity: 0.3;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--future-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-info {
    background: rgba(0, 212, 212, 0.1);
    color: var(--future-teal);
    border: 1px solid rgba(0, 212, 212, 0.3);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.1);
    color: var(--future-gold);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Testimonials */
#testimonials {
    background: var(--bg-secondary);
    position: relative;
}

/* Terminal Background Pattern */
.terminal-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.02;
    pointer-events: none;
}

.terminal-line {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--future-green);
    margin: 0.5rem 0;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .terminal-bg {
        opacity: 0.04;
    }
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition-base);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 2rem;
    font-size: 4rem;
    color: var(--future-blue);
    opacity: 0.1;
    font-family: Georgia, serif;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
    padding-top: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: 700;
    margin-right: 1rem;
}

/* FAQ */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 102, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-base);
}

.accordion-item:hover {
    border-color: rgba(0, 102, 255, 0.3);
}

.accordion-button {
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 1.25rem;
    border: none;
    box-shadow: none;
    position: relative;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230066ff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: transform 0.3s;
}

.accordion-button:not(.collapsed) {
    background: rgba(0, 102, 255, 0.05);
    color: var(--future-blue);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.25rem;
    color: var(--text-secondary);
}

/* Forms */
.form-control, .form-select {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    background: var(--bg-primary);
    border-color: var(--future-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
    outline: none;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-control.is-valid, .form-select.is-valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.invalid-feedback {
    display: none;
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal */
.modal-content {
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    box-shadow: var(--shadow-2xl);
}

.modal-header {
    background: var(--gradient-main);
    color: var(--text-white);
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
}

.modal-title {
    font-weight: 700;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2.5rem;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

/* Progress Bar */
.progress {
    height: 8px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: var(--gradient-main);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-main);
}

footer h5, footer h6 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--future-teal);
}

/* Utilities */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-main);
}

.shadow-soft {
    box-shadow: 
        0 5px 20px rgba(0, 102, 255, 0.1),
        0 0 0 1px rgba(0, 102, 255, 0.05);
}

/* CTA Section */
#projekt-starten {
    background: var(--gradient-main);
    position: relative;
    overflow: hidden;
}

#projekt-starten::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Responsive */
@media (max-width: 768px) {
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .code-editor {
        transform: none;
        font-size: 12px;
    }
    
    .tech-badge {
        display: none;
    }
    
    .code-bg {
        display: block;
        opacity: 0.02;
    }
    
    .code-line {
        font-size: 10px;
        animation-duration: 25s;
    }
    
    /* Mobile-specific code elements */
    .mobile-code-float {
        position: fixed;
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--future-blue);
        opacity: 0.15;
        pointer-events: none;
        animation: mobileFloat 20s ease-in-out infinite;
        z-index: 1;
    }
    
    @keyframes mobileFloat {
        0%, 100% {
            transform: translate(0, 0) rotate(0deg);
        }
        25% {
            transform: translate(50px, -30px) rotate(5deg);
        }
        50% {
            transform: translate(-30px, -50px) rotate(-5deg);
        }
        75% {
            transform: translate(-50px, 30px) rotate(3deg);
        }
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--future-blue);
}

/* Selection */
::selection {
    background: var(--future-blue);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--future-blue);
    color: var(--text-white);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 102, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--future-blue);
    animation: spin 1s ease-in-out infinite;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Typing Animation */
.typing-code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--future-teal);
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--future-teal);
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--future-teal); }
}

/* Admin Styles */
.admin-sidebar {
    background: var(--bg-dark);
    min-height: 100vh;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    transition: var(--transition-fast);
}

.admin-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.admin-sidebar .nav-link.active {
    background: var(--gradient-main);
    color: var(--text-white);
}

/* Table */
.table {
    color: var(--text-primary);
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid rgba(0, 102, 255, 0.1);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background: rgba(0, 102, 255, 0.05);
}

/* Floating Elements */
.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Tech Visual Container */
.tech-visual-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Code Editor Style */
.code-editor {
    background: rgba(13, 17, 23, 0.95);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 40px rgba(0, 102, 255, 0.05);
    transform: perspective(1000px) rotateY(-5deg) scale(0.95);
    transition: transform 0.3s ease;
}

.code-editor:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1);
}

.editor-header {
    background: rgba(30, 41, 59, 0.9);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }

.editor-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.editor-content {
    padding: 24px;
    position: relative;
    max-height: 500px;
    overflow: hidden;
}

.code-display {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
}

.code-display code {
    background: transparent;
    white-space: pre;
}

.line-number {
    color: #475569;
    margin-right: 16px;
    user-select: none;
}

.keyword { color: #c678dd; }
.variable { color: #e06c75; }
.function { color: #61afef; }
.string { color: #98c379; }
.number { color: #d19a66; }
.property { color: #56b6c2; }
.method { color: #61afef; }
.parameter { color: #abb2bf; }

/* Code Cursor Animation */
.code-cursor {
    position: absolute;
    width: 2px;
    height: 20px;
    background: #00ff87;
    animation: blink 1s infinite, moveCursor 10s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes moveCursor {
    0% { top: 24px; left: 80px; }
    15% { top: 72px; left: 280px; }
    30% { top: 96px; left: 350px; }
    45% { top: 168px; left: 200px; }
    60% { top: 216px; left: 380px; }
    75% { top: 264px; left: 150px; }
    90% { top: 312px; left: 250px; }
    100% { top: 24px; left: 80px; }
}

/* Floating Tech Badges */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    background: rgba(0, 102, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    font-size: 0.875rem;
    color: var(--future-teal);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    animation: floatBadge 6s ease-in-out infinite;
}

.tech-badge i {
    font-size: 1.125rem;
}

.tech-badge-1 { 
    top: -20px; 
    left: -60px;
    animation-delay: 0s;
}

.tech-badge-2 { 
    top: 50px; 
    right: -50px;
    animation-delay: 1s;
}

.tech-badge-3 { 
    bottom: 100px; 
    left: -40px;
    animation-delay: 2s;
}

.tech-badge-4 { 
    bottom: 30px; 
    right: -30px;
    animation-delay: 3s;
}

.tech-badge-5 { 
    top: 40%; 
    right: -80px;
    animation-delay: 4s;
}

@keyframes floatBadge {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-20px) rotate(3deg);
        opacity: 1;
    }
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(0, 102, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0);
    }
}

/* Form Checkbox Validation Styles - Fixed */
.form-check-input.is-invalid ~ .form-check-label {
    color: var(--future-red);
}

.form-check-input.is-valid ~ .form-check-label {
    color: var(--future-green);
}

.form-check-input:checked {
    background-color: var(--future-blue);
    border-color: var(--future-blue);
}

.form-check-input.is-invalid {
    border-color: var(--future-red);
}

.form-check-input.is-invalid:checked {
    background-color: var(--future-red);
    border-color: var(--future-red);
}

.form-check-input.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(239, 68, 68, 0.25);
}

/* Remove red border when checkbox is checked */
.form-check-input:checked.is-invalid {
    border-color: var(--future-blue);
    background-color: var(--future-blue);
}

.form-check-input:checked.is-invalid ~ .form-check-label {
    color: var(--text-primary);
}

