/* =============================================
   ALAB Energiesysteme - Modern Professional Design
   Gold Accent: #E6C23C with gradient #E5C44D to #F3D663
   ============================================= */

/* Root Variables */
:root {
    /* Gold Accent Colors */
    --gold-primary: #E6C23C;
    --gold-gradient-top: #E5C44D;
    --gold-gradient-bottom: #F3D663;
    --gold-gradient: linear-gradient(135deg, var(--gold-gradient-top), var(--gold-gradient-bottom));
    --gold-hover: #d4b23a;
    --gold-dark: #c5a235;
    
    /* Neutral Colors */
    --color-dark: #0f1419;
    --color-dark-secondary: #1a1f2e;
    --color-gray-900: #212529;
    --color-gray-800: #343a40;
    --color-gray-700: #495057;
    --color-gray-600: #6c757d;
    --color-gray-500: #adb5bd;
    --color-gray-400: #ced4da;
    --color-gray-300: #dee2e6;
    --color-gray-200: #e9ecef;
    --color-gray-100: #f8f9fa;
    --color-white: #ffffff;
    
    /* Semantic Colors */
    --color-primary: var(--gold-primary);
    --color-success: #10b981;
    --color-info: #3b82f6;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-xs: 0.75rem;
    --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: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-gold: 0 10px 40px -10px rgba(230, 194, 60, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ============================================= 
   Base Styles 
   ============================================= */

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

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

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

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

/* ============================================= 
   Header & Navigation 
   ============================================= */

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

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-link {
    display: flex;
    align-items: center;
    transition: transform var(--transition-base);
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav {
    flex: 1;
    margin: 0 var(--spacing-2xl);
}

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

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-weight: 500;
    color: var(--color-gray-700);
    transition: color var(--transition-base);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--gold-primary);
}

.nav-icon {
    transition: transform var(--transition-base);
}

.nav-item:hover .nav-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--spacing-sm));
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--spacing-lg);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition-base);
}

.dropdown-menu.wide {
    min-width: 520px;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-md);
}

.dropdown-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.dropdown-item:hover {
    background: var(--color-gray-100);
    transform: translateX(4px);
}

.dropdown-item-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-gradient);
    border-radius: var(--radius-md);
    color: var(--color-white);
}

.dropdown-item-content h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-gray-900);
}

.dropdown-item-content p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    line-height: 1.4;
}

/* CTA Button */
.nav-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gold-gradient);
    color: var(--color-white);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-gold);
}

.nav-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px -15px rgba(230, 194, 60, 0.4);
}

.nav-cta .cta-button svg {
    width: 20px;
    height: 20px;
    transition: transform var(--transition-base);
}

.nav-cta .cta-button:hover svg {
    transform: translateX(3px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-gray-700);
    transition: all var(--transition-base);
}

/* ============================================= 
   Hero Section & Carousel 
   ============================================= */

.hero-section {
    margin-top: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-carousel {
    position: relative;
    height: 100vh;
    overflow: hidden;
    border-radius: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 800ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.1);
    transition: transform 20s ease-out;
    overflow: hidden;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-slide.active .slide-background {
    transform: scale(1);
}

.slide-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.slide-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
    color: var(--color-white);
    transform: translateY(30px);
    opacity: 0;
    transition: all 800ms cubic-bezier(0.4, 0.0, 0.2, 1) 200ms;
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gold-gradient);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.slide-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
}

.slide-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    opacity: 0.9;
}

.slide-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 60px -20px rgba(230, 194, 60, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Carousel Controls - Removed for cleaner design */

.carousel-indicators {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
}

.indicator {
    width: 48px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.indicator.active {
    background: var(--gold-gradient);
    width: 64px;
}

/* ============================================= 
   Why ALAB Section - Engineering Excellence 
   ============================================= */

.why-alab-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle geometric pattern */
.why-alab-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--gold-gradient-top) 0%, transparent 70%);
    opacity: 0.05;
    filter: blur(100px);
    pointer-events: none;
}

.why-alab-section .container {
    max-width: 1400px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gold-gradient);
    color: var(--color-white);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-gold);
}

.section-title {
    font-size: clamp(var(--font-size-xl), 3vw, var(--font-size-3xl));
    font-weight: 900;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-lead {
    font-size: var(--font-size-lg);
    color: var(--color-gray-700);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.section-lead strong {
    color: var(--gold-primary);
    font-weight: 700;
}

.section-description {
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
}

.section-description strong {
    color: var(--color-gray-900);
    font-weight: 600;
}

/* Engineering Excellence Grid - 2x2 Layout */
.engineering-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.engineering-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-base);
    overflow: hidden;
}

.engineering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.engineering-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--gold-gradient-top);
}

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

.card-number {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: var(--color-gray-100);
    z-index: 0;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--color-white);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-gold);
}

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

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.card-description {
    color: var(--color-gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
    position: relative;
    z-index: 1;
}

.card-description strong {
    color: var(--gold-dark);
    font-weight: 600;
}

.engineering-features {
    list-style: none;
    padding: 0;
    position: relative;
    z-index: 1;
}

.engineering-features li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--color-gray-700);
    font-size: 13px;
    line-height: 1.5;
}

.engineering-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 2px;
    background: var(--gold-gradient);
}

/* Standards Banner */
.standards-banner {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--gold-gradient-top) 0%, var(--gold-gradient-bottom) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.standards-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.standards-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.standards-content h4 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.standards-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
}

.standards-badges .badge {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 13px;
    transition: all var(--transition-base);
}

.standards-badges .badge:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Stats removed as requested */

/* ============================================= 
   Partners Section 
   ============================================= */

.partners-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-white);
}

.partners-title {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-2xl);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
}

.partner-badge {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-gray-100);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--color-gray-700);
    transition: all var(--transition-base);
}

.partner-badge:hover {
    background: var(--gold-gradient);
    border-color: transparent;
    color: var(--color-white);
    transform: scale(1.05);
}

/* ============================================= 
   CTA Section 
   ============================================= */

.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.cta-card {
    background: var(--gold-gradient);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    text-align: center;
    box-shadow: var(--shadow-2xl);
}

.cta-content {
    margin-bottom: var(--spacing-2xl);
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

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

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: var(--color-white);
    color: var(--gold-primary);
    font-size: var(--font-size-lg);
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-base);
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.cta-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color var(--transition-base);
}

.cta-link:hover {
    color: var(--color-white);
}

/* Footer removed as requested */

/* ============================================= 
   Responsive Design 
   ============================================= */

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .slide-title {
        font-size: var(--font-size-3xl);
    }
    
    /* Engineering Grid Mobile */
    .engineering-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .engineering-card {
        padding: var(--spacing-md);
    }
    
    .standards-banner {
        padding: var(--spacing-md);
    }
    
    .standards-content h4 {
        font-size: var(--font-size-lg);
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
    }
    
    .slide-title {
        font-size: var(--font-size-2xl);
    }
    
    .slide-description {
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================= 
   Animations 
   ============================================= */

[data-aos] {
    transition: opacity 600ms ease, transform 600ms ease;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ============================================= 
   Performance Optimizations 
   ============================================= */

/* Use GPU acceleration for animations */
.carousel-slide,
.slide-background,
.slide-content,
.feature-card,
.nav-link,
.cta-button,
.btn-primary,
.btn-secondary {
    will-change: transform, opacity;
}

/* Reduce paint areas */
.header {
    contain: layout style;
}

/* Optimize images */
img {
    content-visibility: auto;
}

/* Reduce reflows */
.container {
    contain: layout;
}
