/* Local Inter font implementation - DSGVO compliant */
@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter_18pt-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter_18pt-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter_18pt-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter_18pt-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter/Inter_18pt-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* CSS Custom Properties for consistent theming */
:root {
    /* Colors */
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #FAFAFA;
    --text-secondary: #A1A1A1;
    --accent: #00DC82;
    --accent-blue: #0066FF;
    --border: rgba(255, 255, 255, 0.08);
    --glow: rgba(0, 220, 130, 0.5);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;
    
    /* Typography */
    --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-family-heading: 'Inter', var(--font-family-base);
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --line-height-tight: 1.2;
    --line-height-base: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-base: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
}

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

/* Improved base styles with better performance */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--line-height-base);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: var(--bg-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    z-index: 1002;
    transition: top var(--transition-base);
}

.skip-to-main:focus {
    top: 6px;
}

/* Base section styles */
section {
    position: relative;
    z-index: 2;
}

/* Improved image performance */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Remove lazy loading opacity - let browser handle it naturally */
img[loading="lazy"] {
    opacity: 1;
}

/* Button base styles */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Navigation - Improved */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: var(--spacing-md) 5%;
    z-index: 1000;
    transition: background-color var(--transition-base), backdrop-filter var(--transition-base);
    backdrop-filter: blur(0px);
    will-change: background-color, backdrop-filter;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom-color: var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.webdesign-hs-logo {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    transition: transform var(--transition-base), filter var(--transition-base);
}

.webdesign-hs-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.webdesign-hs-logo .webdesign {
    font-weight: 600;
    color: var(--text-primary);
}

.webdesign-hs-logo .slash {
    font-weight: 200;
    color: #555;
    margin: 0 8px;
}

.webdesign-hs-logo .hs {
    font-weight: 300;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--accent);
}

.contact-btn {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 220, 130, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 220, 130, 0.5);
}

/* Progress Bar - Optimized */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-blue) 100%);
    z-index: 99999;
    transition: width var(--transition-base);
    will-change: width, transform;
    transform: translate3d(0, 0, 0); /* Force hardware acceleration */
    width: 0; /* Start with 0 width */
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Keine Interaktion blockieren */
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.progress-bar.visible {
    opacity: 1;
}

/* Hero Section - Performance optimized */
.hero {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
    background-color: var(--bg-primary);
    margin: 0;
    contain: layout style;
}

/* Tech Grid Background for Hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

/* Gradient Mesh Background */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.gradient-bg::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 220, 130, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: meshAnimation 20s ease-in-out infinite;
}

@keyframes meshAnimation {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-badge span {
    color: var(--accent);
    font-weight: 500;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 50%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

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

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 220, 130, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(0, 220, 130, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* Services Section - Improved */
.services {
    padding: var(--spacing-3xl) 5%;
    position: relative;
    background-color: var(--bg-primary);
    overflow: hidden;
    contain: layout style;
}

/* Subtle grid pattern for services */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 220, 130, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(17, 17, 17, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 220, 130, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 220, 130, 0.05);
    border: 1px solid rgba(0, 220, 130, 0.2);
    border-radius: 12px;
    color: var(--accent);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(0, 220, 130, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

/* Portfolio Section - Performance optimized */
.portfolio {
    padding: var(--spacing-3xl) 5%;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    contain: layout style;
}

/* Subtle gradient for portfolio */
.portfolio::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 80% 20%, rgba(0, 220, 130, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.02) 0%, transparent 50%);
    z-index: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background-color: var(--bg-secondary);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark overlay for better text visibility */
.portfolio-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-image::before {
    opacity: 0.9;
}

/* Hover effect - show text */
.portfolio-image::after {
    content: 'WEBSITE ANSEHEN →';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-image::after {
    opacity: 1;
    bottom: 30px;
}

/* Smooth scale on hover */
.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pricing Section - Performance optimized */
.pricing {
    padding: var(--spacing-3xl) 5%;
    position: relative;
    background-color: var(--bg-primary);
    overflow: hidden;
    contain: layout style;
}

/* Subtle gradient for pricing */
.pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 220, 130, 0.04) 0%, transparent 60%);
    z-index: 0;
}

.pricing-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-highlight {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    text-align: center;
}

.price-badge {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.price-from {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.price-amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, var(--accent) 0%, #00B46D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-description {
    font-size: 1.2rem;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 400;
}

.pricing-features {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.pricing-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing-actions .btn-primary,
.pricing-actions .btn-secondary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* About Section - Performance optimized */
.about {
    padding: var(--spacing-3xl) 5%;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    contain: layout style;
}

/* Subtle gradient for about */
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 10% 50%, rgba(0, 220, 130, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 50%, rgba(0, 102, 255, 0.02) 0%, transparent 40%);
    z-index: 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .about-text h3 {
        font-size: 1.4rem;
    }
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


.stat {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat:hover {
    background: rgba(0, 220, 130, 0.05);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    text-shadow: 0 0 20px rgba(0, 220, 130, 0.3);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* About Right Section */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Team Images */
.team-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.team-member {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.team-member:hover::before {
    transform: translateX(100%);
}

.team-member:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 220, 130, 0.1);
}

.team-member-image {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.team-member:hover .team-member-image {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 220, 130, 0.2);
}

.team-member-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stats Box */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

/* Contact Section - Performance optimized */
.contact {
    padding: var(--spacing-3xl) 5%;
    text-align: center;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    contain: layout style;
}

/* Subtle gradient for contact */
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 50% 100%, rgba(0, 220, 130, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.contact-options {
    display: flex;
    gap: 2rem;
    justify-content: center;
    max-width: 600px;
    margin: 3rem auto;
    position: relative;
    z-index: 1;
}

.contact-option {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.contact-option:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.contact-option h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-option p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

/* Phone Button */
.phone-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(0, 220, 130, 0.3);
    transition: all 0.3s ease;
    z-index: 9998;
    text-decoration: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.phone-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 30px rgba(0, 220, 130, 0.5);
}

/* Cookie Notice */
.cookie-notice {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 1500;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s ease;
    max-width: 600px;
}

.cookie-notice.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-notice-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.cookie-notice-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-notice-content a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-notice-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-notice {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .cookie-notice-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* Old Consent Banner (remove) */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border);
    padding: 2rem;
    z-index: 1500;
    backdrop-filter: blur(15px);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.consent-banner.show {
    transform: translateY(0);
}

.consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
}

.consent-banner-header {
    margin-bottom: 1.5rem;
}

.consent-banner-header h3 {
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.consent-banner-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.consent-categories {
    margin-bottom: 2rem;
}

.consent-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.consent-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.consent-category-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.consent-category-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
}

.category-required {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: normal;
}

.category-optional {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: normal;
}

.consent-category-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.consent-category-description a {
    color: var(--accent);
    text-decoration: none;
}

.consent-category-description a:hover {
    text-decoration: underline;
}

.consent-banner-footer {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.consent-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.consent-banner-links {
    text-align: center;
    font-size: 0.8rem;
}

.consent-banner-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.consent-banner-links a:hover {
    color: var(--accent);
}

/* Consent Settings Modal */
.consent-settings-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.consent-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.consent-settings-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.consent-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border);
}

.consent-settings-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.close-settings {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-settings:hover {
    color: var(--text-primary);
}

.consent-settings-body {
    padding: 2rem;
}

.consent-settings-body p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.consent-setting-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.consent-setting-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.consent-setting-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.consent-setting-header label {
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
}

.consent-setting-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.consent-setting-item ul {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.consent-setting-item a {
    color: var(--accent);
    text-decoration: none;
}

.consent-setting-item a:hover {
    text-decoration: underline;
}

.consent-settings-footer {
    padding: 1rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Consent Banner */
@media (max-width: 768px) {
    .consent-banner {
        padding: 1.5rem;
    }
    
    .consent-banner-actions {
        flex-direction: column;
    }
    
    .consent-banner-actions button {
        width: 100%;
    }
    
    .consent-settings-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .consent-settings-header,
    .consent-settings-body,
    .consent-settings-footer {
        padding: 1.5rem;
    }
}

/* Cookie Settings Page */
.cookie-settings-page {
    max-width: 800px;
    margin: 0 auto;
}

.settings-status {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.settings-status h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.status-value {
    color: var(--text-secondary);
    font-weight: 600;
}

.status-value.active {
    color: var(--accent);
}

.cookie-categories-detailed {
    margin-bottom: 2rem;
}

.cookie-categories-detailed h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.cookie-category-detailed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-title h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.1rem;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-label:hover {
    transform: scale(1.05);
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: all 0.3s ease;
    border-radius: 24px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-slider.active {
    background-color: var(--accent);
    box-shadow: inset 0 2px 4px rgba(0, 220, 130, 0.3);
}

.toggle-slider.active:before {
    transform: translateX(26px);
}

.toggle-label.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle-label.disabled:hover {
    transform: none;
}

.required-label {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.optional-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.category-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.cookie-details {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.cookie-details h5 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.cookie-list {
    margin-bottom: 1.5rem;
}

.cookie-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.cookie-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.cookie-item p {
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
}

.cookie-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.8;
}

.provider-info {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.provider-info p {
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
}

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

.external-links {
    margin-top: 1rem;
}

.external-links p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.external-links a {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.external-links a:hover {
    text-decoration: underline;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.info-box h4 {
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.info-box ul {
    color: var(--text-secondary);
    margin: 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}


/* Responsive Cookie Settings */
@media (max-width: 768px) {
    .cookie-settings-page {
        padding: 0 1rem;
    }
    
    .category-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .toggle-container {
        align-self: flex-end;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions button {
        width: 100%;
    }
}


/* Animations - Performance optimized */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
    will-change: opacity, transform;
}

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

/* Reduce animations for users with motion preferences */
@media (prefers-reduced-motion: reduce) {
    .fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Legal Pages */
.legal-page {
    padding: 8rem 5% 4rem;
    background: var(--bg-primary);
    min-height: 100vh;
}

.legal-page-container {
    max-width: 800px;
    margin: 0 auto;
}

.legal-page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-page-header h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    margin-bottom: 1rem;
}

.legal-page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.legal-page-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.legal-page-content h3 {
    color: var(--accent);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.legal-page-content h4 {
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.legal-page-content h5 {
    color: var(--text-primary);
    margin: 1rem 0 0.5rem;
    font-size: 1rem;
}

.legal-page-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page-content ul {
    color: var(--text-secondary);
    margin: 1rem 0 1rem 2rem;
}

.legal-page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-page-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-page-content a:hover {
    text-decoration: underline;
}


/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    
    .hero-badge {
        display: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-right {
        padding: 0;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    
    .team-images {
        max-width: 100%;
        padding: 0 1rem;
        margin: 0 auto;
        overflow: hidden;
    }
    
    .team-member-image {
        width: 100%;
        height: auto;
    }
    
    .about-stats {
        max-width: calc(100vw - 2rem);
        margin: 0 auto;
        overflow: hidden;
        padding: 1.5rem 1rem;
    }
    
    .stat {
        padding: 0.5rem;
    }
    
    .contact-options {
        flex-direction: column;
    }
    
    .pricing-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .pricing-actions .btn-primary,
    .pricing-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    /* Legal page mobile improvements */
    .legal-page {
        padding: 6rem 1rem 2rem;
    }
    
    .legal-page-content {
        padding: 1.5rem;
    }
    
    .legal-page-content h3 {
        font-size: 1.3rem;
        word-break: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    .legal-page-content h4 {
        font-size: 1.1rem;
        word-break: break-word;
        hyphens: auto;
        line-height: 1.3;
    }
    
    .legal-page-header h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        word-break: break-word;
        hyphens: auto;
        line-height: 1.2;
    }
    
    /* Pricing Section Mobile */
    .pricing-highlight {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .pricing-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .pricing-features {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .feature-item {
        font-size: 0.95rem;
        gap: 0.8rem;
    }
    
    .feature-item svg {
        width: 18px;
        height: 18px;
    }
    
    .pricing-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .pricing-actions .btn-primary,
    .pricing-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Hero Section Mobile */
    .hero {
        height: 100vh;
        min-height: 100vh;
    }
    
    /* Team Member Mobile - Remove hover effects */
    .team-member:hover {
        transform: none;
        box-shadow: none;
    }
    
    /* Footer Mobile Fix */
    footer {
        position: relative;
        z-index: 10;
        padding-bottom: 6rem;
    }
    
    footer p {
        position: relative;
        z-index: 100;
    }
    
    footer a {
        position: relative;
        display: inline-block;
        padding: 1rem;
        margin: 0.5rem;
        background: rgba(0, 220, 130, 0.05);
        border-radius: 8px;
        min-height: 48px;
        min-width: 80px;
        text-align: center;
        z-index: 100;
        -webkit-tap-highlight-color: rgba(0, 220, 130, 0.2);
        touch-action: manipulation;
    }

    /* Phone Button Mobile Fix */
    .phone-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
        z-index: 9998;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        min-width: 44px;
        padding: 8px;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    .phone-btn:active {
        transform: scale(0.95);
        background: #00C072;
    }
    
    .phone-btn svg,
    .phone-btn i {
        pointer-events: none;
    }
}

@media (max-width: 480px) {
    .legal-page {
        padding: 5rem 0.5rem 2rem;
    }
    
    .legal-page-content {
        padding: 1rem;
    }
    
    .legal-page-content h3 {
        font-size: 1.2rem;
    }
    
    .legal-page-content h4 {
        font-size: 1rem;
    }
    
    .legal-page-header h1 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }
    
    .legal-page-header p {
        font-size: 1rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-data: reduce) {
    /* Disable animations for users on slow connections */
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    .gradient-bg::before {
        animation: none;
    }
    
    .gradient-text {
        animation: none;
        background: var(--accent);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #000000;
        --text-primary: #ffffff;
        --text-secondary: #ffffff;
        --border: #ffffff;
    }
    
    .service-card,
    .portfolio-item,
    .legal-page-content {
        border-width: 2px;
    }
}

/* Dark mode preference (already implemented but improved) */
@media (prefers-color-scheme: dark) {
    /* Already using dark theme by default, but can add overrides if needed */
}

/* Print styles */
@media print {
    .progress-bar,
    .phone-btn,
    .cookie-notice,
    nav {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .hero {
        min-height: auto;
        page-break-after: always;
    }
}