/* ============================================
   ENERGIEHELDEN - Brand Styles
   Material Design + Liquid Glass Elements
   ============================================ */

/* ============================================
   CSS VARIABLES - Brand Colors & Typography
   ============================================ */
:root {
  /* Primary Brand Colors */
  --primary-navy: #1a3a52;
  --primary-dark: #0f2537;
  --primary-light: #2d5573;
  
  /* Accent Colors */
  --accent-yellow: #FDB913;
  --accent-gold: #f5a623;
  --accent-green: #4caf50;
  --accent-magenta: #e91e63;
  
  /* Header Gradient Colors (from Header_colorwave.png) */
  --header-gradient-color1: #2B4093;
  --header-gradient-color2: #42ACE2;
  --header-gradient-color3: #FEC704;
  
  /* Neutral Colors */
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #e0e0e0;
  --dark-gray: #424242;
  --text-primary: #212121;
  --text-secondary: #757575;
  
  /* Liquid Glass Effects */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s ease-out;
  --transition-slow: 0.4s ease-out;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--light-gray);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

/* GPU acceleration for animated elements */
.navbar,
.navbar-island,
.navbar-menu-mobile,
.intro-video-overlay,
.card,
.detail-box,
.hero-cta,
.btn {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

a {
  color: var(--primary-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-yellow);
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xxl) 0;
  position: relative;
}

.section-alt {
  background-color: var(--white);
}

/* Seamless section transitions using brand colors */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(26, 58, 82, 0.05), transparent);
  pointer-events: none;
  z-index: 1;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(26, 58, 82, 0.05), transparent);
  pointer-events: none;
  z-index: 1;
}

.section-alt::before {
  background: linear-gradient(to bottom, rgba(66, 172, 226, 0.03), transparent);
}

.section-alt::after {
  background: linear-gradient(to top, rgba(66, 172, 226, 0.03), transparent);
}

.section > .container,
.section > .form-container {
  position: relative;
  z-index: 2;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
  gap: var(--spacing-md);
}

.navbar-island {
  background: linear-gradient(90deg, #2B4093 0%, #42ACE2 100%);
  border-radius: 50px;
  padding: var(--spacing-xs) var(--spacing-md);
  box-shadow:
    0 8px 16px rgba(43, 64, 147, 0.4),
    0 12px 24px rgba(66, 172, 226, 0.3),
    0 16px 32px rgba(43, 64, 147, 0.2);
  display: flex;
  align-items: center;
  transform: translateY(0);
  transition: all var(--transition-normal);
}

.navbar-island:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 20px rgba(43, 64, 147, 0.5),
    0 16px 32px rgba(66, 172, 226, 0.4),
    0 20px 40px rgba(43, 64, 147, 0.25);
}

.navbar-logo img {
  height: 60px;
  width: auto;
}

.navbar-menu {
  display: flex;
  list-style: none;
  gap: clamp(0.25rem, 1vw, 1.5rem);
  align-items: center;
  margin: 0;
}

.navbar-menu > li {
  position: relative;
}

.navbar-menu a {
  font-weight: 500;
  color: var(--white);
  padding: var(--spacing-xs) clamp(0.5rem, 1vw, 1rem);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: block;
  white-space: nowrap;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.navbar-menu > li > a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Dropdown Menu Styles */
.navbar-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 250px;
  padding: var(--spacing-sm) 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: 1000;
  margin-top: var(--spacing-xs);
}

.navbar-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  white-space: nowrap;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background-color: var(--light-gray);
  color: var(--primary-navy);
}

/* Nested Dropdown Styles */
.navbar-dropdown-nested {
  position: relative;
}

.navbar-dropdown-nested > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-dropdown-nested > a::after {
  content: '›';
  margin-left: var(--spacing-sm);
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.dropdown-menu-nested {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--spacing-sm) 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
  z-index: 1001;
  margin-left: var(--spacing-xs);
}

.navbar-dropdown-nested:hover .dropdown-menu-nested {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-menu-nested li {
  padding: 0;
}

.dropdown-menu-nested a {
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  white-space: nowrap;
  display: block;
}

.dropdown-menu-nested a:hover {
  background-color: var(--light-gray);
  color: var(--primary-navy);
}

.navbar-cta {
  background: var(--accent-yellow);
  color: var(--primary-navy);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 8px rgba(254, 199, 4, 0.4), 0 6px 12px rgba(66, 172, 226, 0.3);
}

.navbar-cta:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(254, 199, 4, 0.5), 0 8px 16px rgba(66, 172, 226, 0.4);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-navy);
}

/* ============================================
   BURGER MENU FOR SECONDARY NAVIGATION
   ============================================ */
.burger-button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  z-index: 1002;
  transition: all var(--transition-normal);
}

.burger-button span {
  width: 25px;
  height: 3px;
  background: var(--primary-navy);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-button.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-button.active span:nth-child(2) {
  opacity: 0;
}

.burger-button.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.burger-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding: var(--spacing-xxl) var(--spacing-lg);
  overflow-y: auto;
}

.burger-menu.active {
  right: 0;
}

.burger-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
}

.burger-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.burger-menu-header {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--medium-gray);
}

.burger-menu-header h3 {
  color: var(--primary-navy);
  margin: 0;
}

.burger-menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.burger-menu-items li {
  margin-bottom: var(--spacing-md);
}

.burger-menu-items a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.burger-menu-items a:hover {
  background: var(--light-gray);
  color: var(--primary-navy);
  transform: translateX(4px);
}

/* ============================================
   ACCORDION SECTIONS
   ============================================ */
.accordion-item {
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  background: var(--white);
  transition: all var(--transition-normal);
}

.accordion-item:hover {
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  padding: var(--spacing-md) var(--spacing-lg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: all var(--transition-fast);
  user-select: none;
}

.accordion-header:hover {
  background: var(--light-gray);
}

.accordion-header h3,
.accordion-header h4 {
  margin: 0;
  color: var(--primary-navy);
  font-size: 1.2rem;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform var(--transition-normal);
  color: var(--primary-navy);
  flex-shrink: 0;
  margin-left: var(--spacing-md);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease;
}

.accordion-content.active {
  max-height: 2000px;
}

.accordion-body {
  padding: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
}

.accordion-body p {
  line-height: 1.8;
  margin-bottom: var(--spacing-sm);
}

.accordion-body ul {
  margin-top: var(--spacing-sm);
  padding-left: var(--spacing-lg);
}

.accordion-body li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

/* ============================================
   FLOATING NAVIGATION BUTTON
   ============================================ */
.floating-nav-button {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  background: var(--primary-navy);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.floating-nav-button:hover {
  background: var(--primary-light);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.floating-nav-button svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.floating-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.floating-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.floating-nav-menu {
  position: fixed;
  right: 90px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--spacing-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 1000;
  min-width: 200px;
}

.floating-nav-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.floating-nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.floating-nav-menu li {
  margin-bottom: var(--spacing-xs);
}

.floating-nav-menu li:last-child {
  margin-bottom: 0;
}

.floating-nav-menu a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.floating-nav-menu a:hover {
  background: var(--light-gray);
  color: var(--primary-navy);
  transform: translateX(4px);
}

/* Hide floating nav on mobile */
@media (max-width: 768px) {
  .floating-nav-button {
    display: none;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, rgba(66, 172, 226, 0.03) 50%, rgba(43, 64, 147, 0.05) 100%);
  overflow: hidden;
  margin-top: 70px;
}

/* Hero Video Background */
.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-video-bg.fade-out {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.hero-video-bg.hidden {
  display: none;
}

/* Static background image (shown after video ends) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('Uploads/Landing_V1.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: contrast(1.05);
  transition: opacity 1s ease-in;
  z-index: 0;
}

/* Show static image when video is hidden */
.hero.show-static-bg::before {
  opacity: 0.55;
}

/* For pages without video, show static bg immediately */
.hero:not(.hero-with-video)::before {
  opacity: 0.55;
}

/* Hero bottom fade for seamless transition */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-mieterstrom::before {
  display: none !important;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 1000px;
  background: transparent;
  padding: var(--spacing-xxl);
  border-radius: var(--radius-lg);
}

/* Add text shadow for readability without blur during video */
.hero-with-video .hero-content {
  background: transparent;
  backdrop-filter: none;
  transition: background 0.5s ease-in;
}

.hero-with-video .hero-content h1,
.hero-with-video .hero-content p,
.hero-with-video .hero-content .hero-subtitle {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6);
}

/* Show gradient background after video ends (same as navbar-island) */
.hero-with-video.show-static-bg .hero-content {
  background: linear-gradient(90deg, rgba(43, 64, 147, 0.9) 0%, rgba(66, 172, 226, 0.9) 100%);
  backdrop-filter: blur(5px);
  border-radius: var(--radius-lg);
}

.hero-with-video.show-static-bg .hero-content h1,
.hero-with-video.show-static-bg .hero-content p,
.hero-with-video.show-static-bg .hero-content .hero-subtitle {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-buzzwords {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-light);
  user-select: none;
  pointer-events: none;
}

.hero-buzzwords-second {
  margin-top: 0;
  margin-bottom: 2rem;
}

.buzzword {
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.buzzword-emoji {
  font-size: 1.5rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.buzzword:nth-child(1) .buzzword-emoji {
  animation-delay: 0s;
}

.buzzword:nth-child(3) .buzzword-emoji {
  animation-delay: 0.5s;
}

.buzzword:nth-child(5) .buzzword-emoji {
  animation-delay: 1s;
}

.buzzword:nth-child(7) .buzzword-emoji {
  animation-delay: 1.5s;
}

.hero-buzzwords-second .buzzword-emoji {
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.1);
  }
}

.buzzword-separator {
  opacity: 0.5;
  font-size: 0.9rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--accent-yellow);
  color: var(--primary-navy);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  box-shadow: 0 6px 12px rgba(254, 199, 4, 0.5), 0 8px 16px rgba(66, 172, 226, 0.4);
  position: relative;
}

.hero-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(254, 199, 4, 0.6), 0 12px 24px rgba(66, 172, 226, 0.5);
  background: var(--accent-gold);
}

.hero-cta svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* ============================================
   LIQUID GLASS CARDS
   ============================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: visible;
}

.card h3,
.card p,
.card strong {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-md);
}

.card h3 {
  color: var(--primary-navy);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.card p {
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

/* ============================================
   TECHNOLOGY GRID
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.tech-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.tech-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  flex-shrink: 0;
}

.tech-card h3 {
  flex-shrink: 0;
}

.tech-card p {
  flex-grow: 1;
}

.tech-card .btn-mehr {
  margin-top: auto;
  flex-shrink: 0;
}

/* ============================================
   HORIZONTAL SCROLL SECTIONS
   ============================================ */
.scroll-container {
  position: relative;
  overflow: hidden;
  margin-top: var(--spacing-xl);
  padding: var(--spacing-md) 0;
}

/* Desktop: Show all items in grid */
@media (min-width: 1400px) {
  .scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    animation: none;
    width: 100%;
  }
  
  .scroll-item {
    flex: none;
    min-width: auto;
  }
  
  .scroll-item:hover {
    transform: scale(1.05);
    z-index: 10;
  }
  
  /* Hide duplicate items on large screens */
  .scroll-item:nth-child(n+5) {
    display: none;
  }
}

/* Tablet/Medium screens: Show 3 items in grid */
@media (min-width: 1024px) and (max-width: 1399px) {
  .scroll-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    animation: none;
    width: 100%;
  }
  
  .scroll-item {
    flex: none;
    min-width: auto;
  }
  
  .scroll-item:hover {
    transform: scale(1.05);
    z-index: 10;
  }
  
  /* Hide duplicate items and 4th item on medium screens */
  .scroll-item:nth-child(n+4) {
    display: none;
  }
}

/* Small screens: Infinity scroll */
@media (max-width: 1023px) {
  .scroll-wrapper {
    display: flex;
    gap: var(--spacing-lg);
    animation: scroll-horizontal 30s linear infinite;
    width: fit-content;
  }

  .scroll-wrapper:hover {
    animation-play-state: paused;
  }

  .scroll-item {
    flex: 0 0 320px;
    min-width: 320px;
    min-height: 500px;
    transition: transform var(--transition-normal), z-index 0s;
    position: relative;
    z-index: 1;
  }

  .scroll-item:hover {
    transform: scale(1.15);
    z-index: 10;
  }

  .scroll-item.hovered {
    transform: scale(1.15);
    z-index: 10;
  }
}

@keyframes scroll-horizontal {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Duplicate items for seamless loop */
.scroll-wrapper .card {
  flex-shrink: 0;
}

/* Scroll Navigation Buttons */
.scroll-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.scroll-nav-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--primary-navy);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  position: relative;
}

.scroll-nav-btn:hover {
  transform: scale(1.2);
  border-color: var(--accent-magenta);
}

.scroll-nav-btn.active {
  background: var(--accent-magenta);
  border-color: var(--accent-magenta);
  box-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

.scroll-nav-btn:focus {
  outline: 2px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* ============================================
   MULTI-STEP FORM
   ============================================ */
.form-container {
  max-width: 900px;
  margin: var(--spacing-xxl) auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.form-header h2 {
  color: var(--primary-navy);
  margin-bottom: var(--spacing-sm);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--medium-gray);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green) 0%, var(--accent-yellow) 100%);
  border-radius: 4px;
  transition: width var(--transition-slow);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--white);
  border: 3px solid var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

.progress-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: var(--spacing-lg);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn var(--transition-normal);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Bullet point hover animation */
.bullet-item-hover {
  transition: all 0.3s ease;
  cursor: pointer;
}

.bullet-item-hover:hover {
  transform: translateX(8px);
  background-color: rgba(245, 215, 110, 0.1);
  border-radius: 8px;
  padding-left: 8px !important;
}

.form-question {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.form-question h3 {
  color: var(--primary-navy);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.form-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.form-option {
  background: var(--white);
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.form-option:hover {
  border-color: var(--primary-navy);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.form-option.selected {
  background: var(--primary-navy);
  border-color: var(--primary-navy);
  color: var(--white);
}

.form-option-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.form-option-text {
  font-weight: 600;
  font-size: 1.1rem;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-xl);
}

.btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(254, 199, 4, 0.3), 0 6px 12px rgba(66, 172, 226, 0.2);
}

.btn-back {
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.btn-back:hover {
  color: var(--primary-navy);
}

.btn-next {
  background: var(--primary-navy);
  color: var(--white);
  margin-left: auto;
  box-shadow: 0 4px 8px rgba(254, 199, 4, 0.3), 0 6px 12px rgba(66, 172, 226, 0.2);
}

.btn-next:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(254, 199, 4, 0.4), 0 8px 16px rgba(66, 172, 226, 0.3);
}

.btn-submit {
  background: var(--accent-yellow);
  color: var(--primary-navy);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 1.1rem;
  box-shadow: 0 6px 12px rgba(254, 199, 4, 0.5), 0 8px 16px rgba(66, 172, 226, 0.4);
}

.btn-submit:hover {
  background: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(254, 199, 4, 0.6), 0 12px 24px rgba(66, 172, 226, 0.5);
}

/* Form Inputs */
.form-input-group {
  margin-bottom: var(--spacing-md);
}

.form-input-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-primary);
}

.form-input-group input,
.form-input-group select,
.form-input-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--medium-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-input-group input:focus,
.form-input-group select:focus,
.form-input-group textarea:focus {
  outline: none;
  border-color: var(--primary-navy);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: linear-gradient(180deg, var(--primary-navy) 0%, var(--primary-dark) 50%, #0a1a28 100%);
  color: var(--white);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  position: relative;
}

/* Seamless transition from about section to footer */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to bottom, rgba(26, 58, 82, 0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Subtle accent glow at footer top */
.footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--header-gradient-color2) 30%, var(--header-gradient-color3) 50%, var(--header-gradient-color2) 70%, transparent 100%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 3;
}

.footer > .container {
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: var(--accent-yellow);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--accent-yellow);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
/* Desktop: Hide mobile menu, show desktop menu */
.navbar-menu-mobile {
  display: none !important;
}

.navbar-menu-desktop {
  display: flex;
}

@media (max-width: 768px) {
  /* Hide desktop menu and navbar-island on mobile */
  .navbar-island {
    display: none;
  }
  
  /* Show and style mobile menu - hidden by default, shown when active */
  .navbar-menu-mobile {
    display: none !important;
    position: fixed;
    top: 80px;
    left: 40px;
    right: 40px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 100px);
    background: #42ACE2;
    flex-direction: column;
    padding: 0.8rem 1.2rem;
    gap: 0;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    list-style: none;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    visibility: hidden;
  }
  
  .navbar-menu-mobile.active {
    display: flex !important;
    visibility: visible;
  }
  
  .navbar-menu-mobile > li {
    margin: 0;
    padding: 0;
  }
  
  .navbar-menu-mobile a {
    color: var(--white);
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    display: block;
    line-height: 1.3;
  }
  
  .navbar-menu-mobile > li > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-sm);
  }
  
  .navbar-menu-mobile .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 0.8rem;
    min-width: auto;
    margin-top: 0;
    background: transparent;
    display: block;
  }
  
  .navbar-menu-mobile .dropdown-menu li {
    padding: 0;
  }
  
  .navbar-menu-mobile .dropdown-menu a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
  }
  
  .navbar-menu-mobile .dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-radius: var(--radius-sm);
  }
  
  .navbar-toggle {
    display: block;
  }
  
  .form-options {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    margin-top: 80px;
    padding-top: var(--spacing-lg);
  }
  
  .hero-buzzwords {
    flex-wrap: wrap;
    font-size: 1rem;
    gap: 1rem;
  }
  
  .hero-content {
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
  }
  
  .card {
    padding: var(--spacing-md);
  }
  
  .scroll-item {
    min-width: 280px !important;
    flex: 0 0 280px !important;
  }
  
  .tech-card {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .hero-buzzwords {
    font-size: 0.9rem;
    gap: 0.75rem;
  }
  
  .buzzword-emoji {
    font-size: 1.2rem;
  }
  
  .scroll-item {
    min-width: 260px !important;
    flex: 0 0 260px !important;
  }
  
  .card h3 {
    font-size: 1.3rem;
  }
  
  .card p {
    font-size: 0.95rem;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-navy);
}

.text-accent {
  color: var(--accent-yellow);
}

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ============================================
   MEHR BUTTON (Product Detail Links)
   ============================================ */
.btn-mehr {
  display: inline-block;
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--primary-navy);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 8px rgba(254, 199, 4, 0.3), 0 6px 12px rgba(66, 172, 226, 0.2);
}

.btn-mehr:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(254, 199, 4, 0.4), 0 8px 16px rgba(66, 172, 226, 0.3);
}

.scroll-item .btn-mehr {
  width: 100%;
}

/* ============================================
   PARTNER LOGOS CAROUSEL
   ============================================ */
.partner-section {
  background: linear-gradient(180deg, var(--white) 0%, rgba(66, 172, 226, 0.03) 30%, rgba(43, 64, 147, 0.05) 70%, rgba(26, 58, 82, 0.08) 100%);
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
  position: relative;
}

/* Seamless transition from products to partner section */
.partner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.partner-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(26, 58, 82, 0.08) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.partner-section > .container {
  position: relative;
  z-index: 2;
}

.partner-carousel-container {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-lg) 0;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.partner-carousel {
  display: flex;
  gap: var(--spacing-xxl);
  animation: scroll-logos 30s linear infinite;
  width: fit-content;
}

.partner-carousel:hover {
  animation-play-state: paused;
}

.partner-logo {
  flex: 0 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  min-width: 150px;
}

.partner-logo:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.partner-logo img {
  max-height: 60px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition-normal);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .partner-logo {
    height: 60px;
    min-width: 120px;
  }
  
  .partner-logo img {
    max-height: 45px;
    max-width: 110px;
  }
}

/* ============================================
   PRODUCT BLOCKS - Full-Width Immersive Design
   ============================================ */
.products-section {
  padding: 0;
  position: relative;
}

/* Transition from hero/video section to products - reduced gradient */
.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.3vh;
  background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.product-block {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: #2B4093;
}

/* Smooth color transitions between product blocks using brand colors */
.product-block:nth-child(odd) {
  background: linear-gradient(180deg, #2B4093 0%, #1e2d6b 50%, #162052 100%);
}

.product-block:nth-child(even) {
  background: linear-gradient(180deg, #162052 0%, #2B4093 50%, #3a52b0 100%);
}

/* Subtle accent color overlay for visual interest */
.product-block:nth-child(3n)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(43, 64, 147, 0.1) 0%, transparent 50%, rgba(66, 172, 226, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

/* First product block - fade from white - 12% gradient */
.product-block:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12vh;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(66, 172, 226, 0.05) 50%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

/* Transition overlays between product blocks */
.product-block::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(15, 37, 55, 0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

.product-block:nth-child(even)::after {
  background: linear-gradient(to top, rgba(26, 42, 58, 0.5) 0%, transparent 100%);
}

/* Last product block - fade to next section - 12% gradient */
.product-block:last-child::after {
  height: 12vh;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  z-index: 5;
}

/* Alternate layout for even products */
.product-block:nth-child(even) {
  direction: rtl;
}

.product-block:nth-child(even) > * {
  direction: ltr;
}

/* Textured background overlay - using a separate element */
.product-block .product-texture {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

/* Subtle gradient glow effect for visual interest */
.product-image-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(66, 172, 226, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.product-image-container {
  position: relative;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  overflow: hidden;
}

.product-image-container img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s ease;
}

.product-block:hover .product-image-container img {
  transform: scale(1.02);
}

.product-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--spacing-xxl);
  padding-right: 10%;
  z-index: 2;
}

.product-block:nth-child(even) .product-content {
  padding-left: 10%;
  padding-right: var(--spacing-xxl);
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.product-category {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
}

.product-intro h3 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
}

.product-tagline {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.product-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--spacing-lg);
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--accent-yellow);
  color: var(--primary-navy);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: 0 8px 24px rgba(253, 185, 19, 0.3);
  width: fit-content;
  margin-top: var(--spacing-md);
}

.product-cta:hover {
  background: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(253, 185, 19, 0.4);
}

.product-cta svg,
.product-cta::after {
  content: '→';
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

.product-cta:hover::after {
  transform: translateX(4px);
}

/* Product Details Accordion */
.product-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.detail-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  backdrop-filter: blur(10px);
}

.detail-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.detail-box-header {
  padding: var(--spacing-md) var(--spacing-lg);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: all var(--transition-fast);
}

.detail-box-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.detail-box-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}

.detail-icon {
  font-size: 1rem;
  transition: transform var(--transition-normal);
  color: var(--accent-yellow);
}

.detail-box.active .detail-icon {
  transform: rotate(180deg);
}

.detail-box-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease;
  background: rgba(0, 0, 0, 0.2);
}

.detail-box.active .detail-box-content {
  max-height: 1000px;
}

/* Gradient styles for Technische Details (yellow to navy) */
.detail-box.detail-tech .detail-box-header {
  background: linear-gradient(135deg, var(--accent-yellow), var(--primary-navy));
}

.detail-box.detail-tech .detail-box-header h4 {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-box.detail-tech .detail-icon {
  color: var(--white);
}

/* Gradient styles for Merkmale (gold to primary-light) */
.detail-box.detail-compat .detail-box-header {
  background: linear-gradient(135deg, var(--accent-gold), var(--primary-light));
}

.detail-box.detail-compat .detail-box-header h4 {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-box.detail-compat .detail-icon {
  color: var(--white);
}

/* Gradient styles for GEP Care Versicherung (same as Merkmale) */
.detail-box.detail-insurance .detail-box-header {
  background: linear-gradient(135deg, var(--accent-gold), var(--primary-light));
}

.detail-box.detail-insurance .detail-box-header h4 {
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.detail-box.detail-insurance .detail-icon {
  color: var(--white);
}

.detail-box-content ul {
  list-style: none;
  padding: var(--spacing-md) var(--spacing-lg);
  margin: 0;
}

.detail-box-content li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-lg);
  position: relative;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.detail-box-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-yellow);
  font-weight: bold;
  font-size: 1rem;
}

.detail-box-content p {
  padding: var(--spacing-md) var(--spacing-lg);
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.detail-box-content strong {
  color: var(--white);
  font-size: 1rem;
}

/* Badge/Award styling */
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.product-badge-icon {
  width: 40px;
  height: 40px;
  background: #00a0e3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: bold;
  font-size: 1.2rem;
}

.product-badge-content {
  display: flex;
  flex-direction: column;
}

.product-badge-title {
  color: #00a0e3;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-badge-rating {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.product-badge-score {
  color: var(--accent-yellow);
  font-weight: 700;
}

/* Responsive Design for Product Blocks */
@media (max-width: 1024px) {
  .product-block {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  
  .product-block:nth-child(even) {
    direction: ltr;
  }
  
  .product-image-container {
    min-height: 50vh;
    padding: var(--spacing-lg);
  }
  
  .product-image-container img {
    max-height: 50vh;
  }
  
  .product-content {
    padding: var(--spacing-xl);
    padding-bottom: var(--spacing-xxl);
  }
  
  .product-block:nth-child(even) .product-content {
    padding: var(--spacing-xl);
    padding-bottom: var(--spacing-xxl);
  }
}

@media (max-width: 768px) {
  .product-block {
    min-height: auto;
  }
  
  .product-image-container {
    min-height: 40vh;
    padding: var(--spacing-md);
  }
  
  .product-image-container img {
    max-height: 40vh;
  }
  
  .product-content {
    padding: var(--spacing-lg);
  }
  
  .product-intro h3 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .product-tagline {
    font-size: 1.1rem;
  }
  
  .product-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .product-image-container {
    min-height: 35vh;
  }
  
  .product-image-container img {
    max-height: 35vh;
  }
  
  .product-content {
    padding: var(--spacing-md);
  }
  
  .product-intro h3 {
    font-size: 1.8rem;
  }
  
  .detail-box-header {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .detail-box-header h4 {
    font-size: 0.9rem;
  }
  
  .detail-box-content li {
    font-size: 0.9rem;
  }
}

/* ============================================
   INTRO VIDEO OVERLAY
   ============================================ */
.intro-video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 1.5s ease-out;
}

.intro-video-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.intro-video-overlay.hidden {
  display: none;
}

.intro-video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mobile: Prevent video edges from being cut off */
@media (max-width: 768px) {
  .intro-video-overlay video {
    object-fit: contain;
  }
}

/* Hide scrollbar while video is playing */
body.intro-playing {
  overflow: hidden;
}

/* ============================================
   PRODUCT CATEGORY HEADERS
   ============================================ */
.product-category-header {
  padding: var(--spacing-xl) 0 var(--spacing-md);
  text-align: center;
  background: linear-gradient(135deg, rgba(245, 215, 110, 0.1) 0%, rgba(168, 213, 226, 0.1) 100%);
  margin-bottom: var(--spacing-lg);
}

.product-category-header .category-title {
  font-size: 2rem;
  color: var(--primary-navy);
  margin-bottom: var(--spacing-xs);
}

.product-category-header .category-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   SPECIAL PRODUCTS CAROUSEL (Sonderimmobilien)
   ============================================ */
.special-products-carousel-container {
  width: 100%;
  overflow: hidden;
  padding: var(--spacing-lg) 0;
}

.special-products-carousel {
  display: flex;
  gap: var(--spacing-lg);
  animation: scrollCarousel 30s linear infinite;
  width: max-content;
}

.special-products-carousel:hover {
  animation-play-state: paused;
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.special-product-card {
  flex-shrink: 0;
  width: 220px;
  background: linear-gradient(135deg, rgba(245, 215, 110, 0.15) 0%, rgba(168, 213, 226, 0.15) 100%);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  border: 2px solid transparent;
}

.special-product-card:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  z-index: 10;
  background: linear-gradient(135deg, rgba(245, 215, 110, 0.3) 0%, rgba(168, 213, 226, 0.3) 100%);
  border-color: var(--accent-yellow);
}

/* Individual product card colors */
.special-product-card[data-product="thermospeicher"] {
  background: linear-gradient(135deg, rgba(253, 185, 19, 0.1) 0%, rgba(76, 175, 80, 0.1) 100%);
}
.special-product-card[data-product="thermospeicher"]:hover {
  background: linear-gradient(135deg, rgba(253, 185, 19, 0.25) 0%, rgba(76, 175, 80, 0.25) 100%);
  border-color: var(--accent-green);
}

.special-product-card[data-product="frequenzheizung"] {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(253, 185, 19, 0.1) 100%);
}
.special-product-card[data-product="frequenzheizung"]:hover {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.25) 0%, rgba(253, 185, 19, 0.25) 100%);
  border-color: var(--accent-magenta);
}

.special-product-card[data-product="luftwaermepumpe"] {
  background: linear-gradient(135deg, rgba(66, 172, 226, 0.1) 0%, rgba(43, 64, 147, 0.1) 100%);
}
.special-product-card[data-product="luftwaermepumpe"]:hover {
  background: linear-gradient(135deg, rgba(66, 172, 226, 0.25) 0%, rgba(43, 64, 147, 0.25) 100%);
  border-color: var(--header-gradient-color2);
}

.special-product-card[data-product="wasserwaermepumpe"] {
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.1) 0%, rgba(66, 172, 226, 0.1) 100%);
}
.special-product-card[data-product="wasserwaermepumpe"]:hover {
  background: linear-gradient(135deg, rgba(26, 58, 82, 0.25) 0%, rgba(66, 172, 226, 0.25) 100%);
  border-color: var(--primary-navy);
}

.special-product-card[data-product="waermeleisten"] {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.1) 0%, rgba(254, 199, 4, 0.1) 100%);
}
.special-product-card[data-product="waermeleisten"]:hover {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.25) 0%, rgba(254, 199, 4, 0.25) 100%);
  border-color: var(--accent-gold);
}

.special-product-card[data-product="mieterstrom"] {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(253, 185, 19, 0.1) 100%);
}
.special-product-card[data-product="mieterstrom"]:hover {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.25) 0%, rgba(253, 185, 19, 0.25) 100%);
  border-color: var(--accent-green);
}

.special-product-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: var(--spacing-md);
  transition: transform var(--transition-normal);
}

.special-product-card:hover img {
  transform: scale(1.05);
}

.special-product-card h4 {
  font-size: 1rem;
  color: var(--primary-navy);
  margin-bottom: var(--spacing-xs);
}

.special-product-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   PRODUCT MODAL
   ============================================ */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-xl);
}

.product-modal-overlay.active .product-modal {
  transform: scale(1);
}

.product-modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  border: none;
  background: var(--light-gray);
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  z-index: 10;
}

.product-modal-close:hover {
  background: var(--medium-gray);
  transform: scale(1.1);
}

.product-modal-content {
  padding: var(--spacing-xl);
}

.product-modal-content .modal-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto var(--spacing-lg);
  display: block;
}

.product-modal-content h3 {
  color: var(--primary-navy);
  text-align: center;
  margin-bottom: var(--spacing-xs);
}

.product-modal-content .modal-category {
  text-align: center;
  color: var(--accent-yellow);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.product-modal-content .modal-tagline {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.1rem;
}

.product-modal-content .modal-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-modal-content .modal-detail-box {
  background: var(--light-gray);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
}

.product-modal-content .modal-detail-box h4 {
  color: var(--primary-navy);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.product-modal-content .modal-detail-box h4::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-green) 100%);
  border-radius: 2px;
}

.product-modal-content .modal-detail-box.compat h4::before {
  background: linear-gradient(180deg, var(--accent-yellow) 0%, var(--accent-magenta) 100%);
}

.product-modal-content .modal-detail-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-modal-content .modal-detail-box li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-md);
  position: relative;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.product-modal-content .modal-detail-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: bold;
}

/* Responsive styles for special products */
@media (max-width: 768px) {
  .special-product-card {
    width: 180px;
    padding: var(--spacing-md);
  }
  
  .special-product-card img {
    width: 100px;
    height: 100px;
  }
  
  .product-modal {
    width: 95%;
    max-height: 90vh;
  }
  
  .product-modal-content {
    padding: var(--spacing-lg);
  }
}

/* ============================================
   SCROLL ANIMATION CLASSES - Performance Optimized
   ============================================ */
.animate-ready {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Optimize image loading */
img {
  content-visibility: auto;
}

/* Lazy load images below the fold */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Contain paint for better performance */
.card,
.product-block,
.section {
  contain: layout style;
}

/* ============================================
   UTILITY CLASSES - Extracted from inline styles
   ============================================ */

/* Container widths */
.max-w-900 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.max-w-1000 {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero subtitle emphasis */
.hero-subtitle-emphasis {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
}

/* Video container responsive wrapper */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Section description text */
.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 900px;
  margin: var(--spacing-lg) auto;
}

/* Section heading with color */
.section-heading-navy {
  margin-bottom: var(--spacing-lg);
  color: var(--primary-navy);
}

/* Solutions list styling */
.solutions-list {
  list-style: none;
  padding: 0;
}

.solutions-list-item {
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--medium-gray);
  display: flex;
  align-items: start;
  gap: var(--spacing-sm);
}

.solutions-list-item:last-child {
  border-bottom: none;
}

.solutions-list-icon {
  color: var(--accent-yellow);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* About section text */
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.about-text-last {
  margin-bottom: var(--spacing-xl);
}

/* Margin bottom utilities */
.mb-xxl {
  margin-bottom: var(--spacing-xxl);
}

/* Section subtitle */
.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Container width 800px */
.max-w-800 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FLIP CARD TILES - Einfamilie/Mehrfamilie/Gewerbe
   ============================================ */
.flip-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .flip-cards-container {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

.flip-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.flip-card-front {
  background: linear-gradient(135deg, #2B4093 0%, #42ACE2 100%);
  color: var(--white);
}

.flip-card-front .flip-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.flip-card-front h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--white);
}

.flip-card-front p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.flip-card-back {
  background: var(--white);
  transform: rotateY(180deg);
  padding: var(--spacing-md);
}

.flip-card-back h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-navy);
}

.flip-card-dropdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.flip-card-dropdown a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  text-align: center;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.flip-card-dropdown a:hover {
  background: #2B4093;
  color: var(--white);
}

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: var(--primary-navy);
  color: var(--white);
  padding: var(--spacing-md) var(--spacing-lg);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
}

.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.cookie-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
}

.cookie-text h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--accent-yellow);
}

.cookie-text p {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-accept-btn {
  background: var(--accent-yellow);
  color: var(--primary-navy);
  border: none;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.cookie-accept-btn:hover {
  background: var(--accent-gold);
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
  
  .cookie-banner {
    padding: var(--spacing-md);
  }
}