/* =========================================
   KEGEMA - Design System & Base Variables
   ========================================= */

:root {
  /* Core Colors - Industrial Premium */
  --color-primary: #1e272e; /* Steel Graphite */
  --color-primary-dark: #0f1418;
  --color-secondary: #2f3640;    /* Dark Slate */
  --color-accent: #0088ff; /* Azure Precision Blue */
  --color-accent-hover: #0077ee;
  --color-accent-gold: #c29b40; /* Industrial Gold */
  
  /* Neutral Palette - Refined Grays */
  --color-bg-light: #f5f7fa;
  --color-bg-white: #ffffff;
  --color-text-main: #2d3436;
  --color-text-muted: #636e72;
  --color-text: #2d3436;         /* Obsidian Grey */
  --color-text-light: #636e72;   /* Industrial Grey */
  --color-bg: #ffffff;
  --color-border: #dfe6e9;       /* Technical Grid Color */
  
  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-heading: 'Montserrat', 'Inter', sans-serif;
  
  /* Hierarchy */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Precision Tokens */
  --radius-sm: 2px;              /* Sharper for industrial feel */
  --radius-md: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  
  /* Transitions */
  --transition-fast: 100ms ease;
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-family-sans);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Technical Grid Overlay */
.section-grid {
  position: relative;
}

.section-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p { margin-bottom: var(--spacing-sm); }

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent-hover); }

/* Layout Utilities */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--spacing-md); }
.section { padding: var(--spacing-xl) 0; }
.section-light { background-color: var(--color-bg); }
.section-dark { background-color: var(--color-primary); background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%); color: var(--color-bg); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--color-bg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; font-weight: 700; text-decoration: none; border-radius: var(--radius-sm); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; border: none; }
.btn-primary { background: var(--color-accent); color: white; box-shadow: 0 4px 14px rgba(0, 136, 255, 0.3); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 136, 255, 0.4); }
.btn-secondary { background-color: var(--color-primary); color: #fff; }
.btn-secondary:hover { background-color: var(--color-secondary); color: #fff; }
.btn-outline { background-color: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background-color: var(--color-accent); color: #fff; }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background-color: #fff; color: var(--color-primary); }

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.top-bar { background: var(--color-primary); color: white; padding: 8px 0; font-size: 0.85rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.1); }
.top-bar-content { display: flex; justify-content: space-between; align-items: center; }
.top-bar-info { display: flex; gap: 20px; }
.top-bar-info span { display: flex; align-items: center; gap: 6px; }

/* FIX FÜR DEN EN|DE SWITCHER */
.top-bar-right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; }
.lang-switch a { color: #94a3b8; transition: color var(--transition-fast); }
.lang-switch a.active, .lang-switch a:hover { color: var(--color-accent); }
.lang-switch .divider { color: rgba(255, 255, 255, 0.2); font-weight: 400; }

.header { position: sticky; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--color-border); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.header-scrolled { padding: 5px 0; box-shadow: var(--shadow-md); }
.header-container { height: 90px; display: flex; align-items: center; justify-content: space-between; transition: height 0.3s ease; }
.header-scrolled .header-container { height: 70px; }

.logo img { height: 65px; width: auto; transition: transform var(--transition-normal); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05)); }
.logo img:hover { transform: scale(1.02); }

.desktop-nav .nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--color-primary); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; padding: 5px 0; transition: color 0.3s ease; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-links a:not(.btn):hover { color: var(--color-accent); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; }
.mobile-menu-btn span { display: block; position: absolute; height: 2px; width: 100%; background: var(--color-primary); border-radius: 2px; transition: all var(--transition-fast); }
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); background-image: url('../assets/cnc.jpg'); background-size: cover; background-position: center; background-attachment: fixed; padding-top: 80px; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: var(--color-bg-white); max-width: 900px; animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.badge-experience { display: inline-block; background-color: var(--color-accent-gold); color: #fff; padding: 0.5rem 1.25rem; border-radius: 50px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--spacing-sm); box-shadow: 0 4px 10px rgba(194, 155, 64, 0.4); }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero h1 { color: #fff; font-size: clamp(3rem, 6vw, 5rem); margin-bottom: var(--spacing-sm); }
.hero h1 .highlight { color: var(--color-accent); }
.hero-subtitle { font-size: clamp(1.125rem, 2vw, 1.35rem); color: #e2e8f0; margin-bottom: var(--spacing-md); max-width: 600px; line-height: 1.8; }
.hero-actions { display: flex; gap: var(--spacing-sm); flex-wrap: wrap; }

/* =========================================
   SERVICE SECTION
   ========================================= */
.section-header { margin-bottom: var(--spacing-lg); }
.section-header p { color: var(--color-text-muted); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }
.text-center { text-align: center; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--spacing-md); margin-top: var(--spacing-md); }
.service-card { background: #fff; padding: var(--spacing-md); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: all var(--transition-normal); border: 1px solid var(--color-border); position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.service-card::after { content: ''; position: absolute; top: 0; right: 0; width: 40px; height: 40px; background: linear-gradient(135deg, transparent 50%, var(--color-border) 50%); opacity: 0.5; }
.service-icon { font-size: 2.5rem; color: var(--color-accent); margin-bottom: var(--spacing-sm); }

/* =========================================
   PRODUCTS SECTION (DESKTOP)
   ========================================= */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-md); align-items: stretch; }
.product-card { background: var(--color-primary); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition-normal); position: relative; border: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; height: 100%; }
.product-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.1); }
.product-image { aspect-ratio: 16 / 10; width: 100%; background-color: #fff; display: flex; align-items: center; justify-content: center; padding: var(--spacing-xs); overflow: hidden; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-content { padding: var(--spacing-md); display: flex; flex-direction: column; flex-grow: 1; }
.product-title { color: #fff; font-size: 1.25rem; margin-bottom: var(--spacing-xs); }
.product-desc { color: #94a3b8; font-size: 0.875rem; margin-bottom: var(--spacing-sm); }
.product-content .btn, .product-content .product-link { margin-top: auto; align-self: flex-start; }
.product-link { display: inline-flex; align-items: center; color: var(--color-accent); font-weight: 600; font-size: 0.875rem; }
.product-link svg { margin-left: 0.5rem; transition: transform var(--transition-fast); }
.product-link:hover svg { transform: translateX(4px); }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-md); }
.testimonial-card { background: var(--color-bg-light); padding: var(--spacing-md); border-radius: var(--radius-md); border-left: 4px solid var(--color-accent); }
.testimonial-text { font-style: italic; font-size: 1.1rem; margin-bottom: var(--spacing-sm); color: var(--color-text-main); }
.testimonial-author { font-weight: 700; text-transform: uppercase; font-size: 0.8rem; color: var(--color-accent); letter-spacing: 0.05em; }

/* =========================================
   CTA SECTION & FORMS
   ========================================= */
.cta-section { background-color: var(--color-bg-light); border-top: 1px solid var(--color-border); }
.cta-container { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: center; }
.contact-card { background: #fff; padding: var(--spacing-md); border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.form-group { margin-bottom: var(--spacing-sm); }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.25rem; color: var(--color-text-main); }
.form-control { width: 100%; padding: 0.75rem; border: 1px solid var(--color-border); border-radius: var(--radius-sm); font-family: inherit; transition: border-color var(--transition-fast); }
.form-control:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* =========================================
   FOOTER
   ========================================= */
.footer { padding: var(--spacing-lg) 0 20px; background-color: var(--color-primary-dark); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1fr; gap: var(--spacing-md); text-align: left; }
.footer-col h3 { 
  height: 40px; 
  display: flex; 
  align-items: center; 
  margin: 0 0 10px 0; 
  font-size: 1.1rem; 
  color: #fff; 
}
.footer-col img.footer-logo { 
  height: 40px; 
  width: auto; 
  display: block; 
  margin: 0 0 10px 0; 
  filter: brightness(0) invert(1); 
}
.footer-col p { font-size: 0.9rem; color: #b2bec3; margin: 0; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin-top: 0; }
.footer-links li { margin-bottom: 0; }
.footer-links a { color: #b2bec3; font-size: 0.9rem; line-height: 1.6; transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom { margin-top: var(--spacing-lg); padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; color: #94a3b8; }

/* =========================================
   ALTE PRODUKT DETAIL SEITEN (z.B. CNC, Plotter)
   ========================================= */
.product-hero { padding: var(--spacing-xl) 0 var(--spacing-lg); background: var(--color-bg-light); border-bottom: 1px solid var(--color-border); }
.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-lg); align-items: start; }
.product-hero-text { display: flex; flex-direction: column; height: 100%; }
.button-wrapper { margin-top: auto; padding-top: 30px; }
.specs-table { width: 100%; border-collapse: collapse; margin: var(--spacing-md) 0; font-size: 0.95rem; }
.specs-table th, .specs-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--color-border); }
.specs-table th { background-color: var(--color-bg-light); font-weight: 700; color: var(--color-primary); width: 35%; }
.feature-list { list-style: none; margin-top: var(--spacing-sm); }
.feature-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-accent); font-weight: 800; }

/* =========================================
   NEUES TOP 0.1% DESIGN FÜR TRANSFERPRESSEN
   ========================================= */
.page-hero { background: linear-gradient(to bottom, #f5f7fa, #ffffff); padding: 6rem 0 4rem; border-bottom: 1px solid var(--color-border); }
.page-title { font-size: 3.5rem; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.page-subtitle { font-size: 1.25rem; color: var(--color-text-muted); max-width: 800px; margin: 0 auto; line-height: 1.8; }
.hero-badge { margin-bottom: 1.5rem; background: var(--color-accent); font-size: 0.85rem; padding: 6px 16px; }
.premium-product-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; }
.reversed-grid { grid-template-columns: 1.2fr 1fr; }
.product-level-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--color-accent); margin-bottom: 1rem; }
.base-badge { color: var(--color-text-muted); }
.lead-text { font-size: 1.15rem; color: var(--color-text-main); margin-bottom: 2rem; line-height: 1.7; }
.safety-box { background-color: #fefce8; border: 1px solid #fef08a; border-left: 4px solid #eab308; padding: 1.5rem; border-radius: var(--radius-md); margin-bottom: 2rem; box-shadow: var(--shadow-sm); }
.safety-header { display: flex; align-items: center; gap: 10px; color: #ca8a04; font-weight: 700; margin-bottom: 0.5rem; font-size: 1.1rem; }
.safety-box p { margin: 0; color: #854d0e; font-size: 0.95rem; }
.premium-feature-list { list-style: none; margin-bottom: 2.5rem; }
.premium-feature-list li { position: relative; padding-left: 2rem; margin-bottom: 1rem; font-size: 1rem; color: var(--color-text); border-bottom: 1px solid var(--color-border); padding-bottom: 1rem; }
.premium-feature-list li:last-child { border-bottom: none; }
.premium-feature-list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230088ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; }
.product-media-column { display: flex; flex-direction: column; gap: 1rem; }
.main-image-wrapper { background: #fff; border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-md); }
.main-image-wrapper img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.media-thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.media-thumbnails.split-2 { grid-template-columns: repeat(2, 1fr); }
.media-thumbnails.split-4 { grid-template-columns: repeat(4, 1fr); }
.media-thumbnails img, .media-thumbnails video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); transition: all var(--transition-fast); cursor: pointer; background: #000; }
.media-thumbnails img:hover, .media-thumbnails video:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }

/* Brand Placeholder for Mobile Grids */
.brand-thumbnail {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  padding: 10px;
  aspect-ratio: 1;
}

.brand-thumbnail img {
  width: 60% !important;
  height: auto !important;
  opacity: 0.15;
  filter: grayscale(1);
  box-shadow: none !important;
  border: none !important;
  cursor: default !important;
  background: transparent !important;
}

.elegant-divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--color-border), transparent); margin: 0; }

/* =========================================
   MOBILE RESPONSIVENESS (Top 0.1% Feinschliff)
   ========================================= */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .premium-product-grid, .reversed-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    display: grid; /* Sicherstellen, dass es ein Grid bleibt */
  }
  .product-media-column { display: contents; }
  .main-image-wrapper { order: 1; }
  .product-info-column { order: 2; }
  .media-thumbnails { order: 3; }
  .reversed-grid .product-media-column { order: unset; } /* Reset der alten Logik */
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
  .logo img { height: 45px; }
  .header-container { height: 70px; }
  .hero { padding-top: 100px; align-items: flex-start; }
  .cta-container { grid-template-columns: 1fr; }
  
  /* Mobile Top-Bar Fix inkl. Sprachwechsler */
  .top-bar-content { flex-direction: column; gap: 8px; text-align: center; }
  .top-bar-right { justify-content: center; flex-direction: column; gap: 4px; }
  .top-bar-service { display: none; } /* Service Text wird auf Handy versteckt, Switcher bleibt! */
  .lang-switch { margin-top: 2px; }

  .media-thumbnails { grid-template-columns: repeat(2, 1fr); }
  .brand-thumbnail { display: flex; }
  h1 { font-size: 2.2rem !important; margin-bottom: 1rem; }
  h2 { font-size: 1.7rem !important; margin-bottom: 0.75rem; }
  h3 { font-size: 1.25rem !important; }
  p { font-size: 0.95rem; }
  .page-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem !important; }
  .lead-text { font-size: 1rem; margin-bottom: 1.5rem; }
  .premium-feature-list li { font-size: 0.95rem; padding-left: 1.5rem; }
  
  .products-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
  .product-card { height: auto; display: flex; flex-direction: column; }
  .product-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
  .product-title { font-size: 1.3rem !important; margin-bottom: 0.5rem; }
  .product-desc { font-size: 0.95rem !important; margin-bottom: 1.5rem !important; }
  .product-content .btn, .product-content .product-link { margin-top: 0; width: 100%; text-align: center; justify-content: center; }
  
  .product-hero { padding: 4rem 0 2rem; }
  .page-hero { padding: 5rem 0 2rem; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .product-hero-text h1 { font-size: 2.2rem !important; margin-bottom: 1rem; }
  .button-wrapper { padding-top: 1.5rem; }
  .button-wrapper .btn { width: 100%; justify-content: center; }
  .specs-table { font-size: 0.85rem; }
  .specs-table th, .specs-table td { padding: 10px 8px; }
}

@media (max-width: 576px) {
  .footer-grid { grid-template-columns: 1fr; }
  .specs-table th, .specs-table td { display: block; width: 100%; }
  .specs-table th { border-bottom: none; padding-bottom: 0; }
}

/* Mobile Menu Dynamic Overlay Styles */
@media (max-width: 768px) {
    /* Style the burger button properly */
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }
    .mobile-menu-btn span {
        display: block !important;
        position: static !important;
        width: 100%;
        height: 3px !important;
        background-color: var(--color-primary);
        border-radius: 4px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Cross animation for active state */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    /* Expert Mobile Dropdown Menu */
    .desktop-nav {
        display: flex !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 15px 0 30px;
        border-top: 1px solid rgba(0,0,0,0.04);
        box-shadow: 0 25px 40px -10px rgba(0,0,0,0.1);
        transform: translateY(-15px);
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: -1; 
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .desktop-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .desktop-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
        padding: 0 25px;
    }
    .desktop-nav .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }
    .desktop-nav .nav-links li:last-child {
        border-bottom: none;
        padding-top: 25px;
    }
    .desktop-nav .nav-links li a:not(.btn) {
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--color-primary);
        display: block;
        width: 100%;
        padding: 16px 0;
    }
    .desktop-nav .nav-links li a:not(.btn)::after {
        display: none; /* Turn off the desktop hover underline */
    }
    .desktop-nav .nav-links li a.btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}