/**
 * Breakgrid Landing Page Styles
 * Based on Extension Design System
 */

/* ========================================
   CSS Custom Properties / Design Tokens
   ======================================== */

:root {
  /* Brand Colors */
  --brand-primary: #018885;
  --brand-primary-hover: #016b68;
  --brand-primary-active: #015452;
  --brand-accent: #FD7D00;
  --brand-accent-hover: #e66d00;
  --brand-accent-light: rgba(253, 125, 0, 0.1);
  
  /* Dark Theme Colors */
  --bg-base: #012b2a;
  --bg-surface: #0f2625;
  --bg-elevated: #014d4a;
  --bg-tertiary: #016b68;
  
  --text-primary: #f0f4f8;
  --text-secondary: #c5d1dc;
  --text-tertiary: #7a8895;
  
  /* Semantic Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.1);
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 4px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 8px rgba(0, 0, 0, 0.3);
  
  /* Border */
  --border-width: 1px;
  --border-width-thick: 2px;
  --border-color: var(--bg-tertiary);
  --border-color-hover: rgba(253, 125, 0, 0.3);
  --border-color-focus: var(--brand-primary);
  
  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Consolas', monospace;
  
  /* Font Sizes */
  --text-xs: 0.6875rem;    /* 11px */
  --text-sm: 0.8125rem;    /* 13px */
  --text-base: 0.9375rem;  /* 15px */
  --text-lg: 1.0625rem;    /* 17px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.75rem;     /* 28px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.75;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --letter-tight: -0.01em;
  --letter-normal: 0;
  --letter-wide: 0.01em;
  --letter-wider: 0.02em;
  
  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 0.75rem;  /* 12px */
  --radius-xl: 1rem;     /* 16px */
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1150;
  --z-modal: 1200;
  --z-toast: 1300;
}

/* ========================================
   Font Face Declarations
   ======================================== */

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

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

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

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/inter/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  letter-spacing: var(--letter-normal);
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--letter-tight);
  color: var(--text-primary);
  margin: 0;
}

h1 { font-size: var(--text-4xl); font-weight: var(--weight-bold); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  margin: 0;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-accent);
}

/* ========================================
   Skip to Content Link (Accessibility)
   ======================================== */

.skip-to-content {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--brand-accent);
  color: white;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: var(--weight-semibold);
  z-index: var(--z-toast);
  transition: top var(--transition-normal);
}

.skip-to-content:focus {
  top: var(--space-4);
}

/* ========================================
   Container
   ======================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  background: rgba(1, 43, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-width) solid var(--border-color);
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(1, 43, 42, 0.98);
  box-shadow: var(--shadow-md);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  width: 0%;
  z-index: calc(var(--z-sticky) + 1);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(253, 125, 0, 0.5);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-4) 0;
}

.nav-logo img {
  display: block;
  height: 40px;
  width: auto;
  transition: transform var(--transition-fast);
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-wide);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-menu a i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  color: var(--brand-accent);
}

.nav-menu a:hover {
  color: white;
  background: var(--bg-elevated);
}

.nav-menu a:hover i {
  transform: scale(1.15) rotate(5deg);
  color: var(--brand-accent);
}

.nav-download {
  background: var(--brand-primary) !important;
  color: white !important;
  padding: var(--space-2) var(--space-5) !important;
  border-radius: var(--radius-md) !important;
  font-weight: var(--weight-semibold) !important;
}

.nav-download:hover {
  background: var(--brand-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Language Picker */
.language-picker {
  position: relative;
}

.language-current {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: transparent;
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.language-current i:first-child {
  font-size: 1.2rem;
  color: var(--brand-accent);
}

.language-chevron {
  font-size: 1rem;
  transition: transform 0.3s ease;
  margin-left: auto;
}

.language-picker:hover .language-chevron,
.language-dropdown.active ~ .language-current .language-chevron {
  transform: rotate(180deg);
}

.language-current:hover {
  border-color: var(--border-color-hover);
  background: transparent;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  z-index: var(--z-dropdown);
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.language-option i {
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--brand-accent);
}

.language-option.active i,
.language-option:hover i {
  opacity: 1;
}

.language-option:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.language-option.active {
  background: var(--brand-accent-light);
  color: var(--brand-accent);
  font-weight: var(--weight-semibold);
}

.language-option.active i {
  opacity: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
  width: 40px;
  height: 40px;
  position: relative;
  z-index: calc(var(--z-sticky) + 2);
}

/* Hide mobile menu elements on desktop */
.mobile-menu-close,
.mobile-menu-footer {
  display: none;
}

.mobile-menu-toggle i {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.mobile-menu-toggle:hover i {
  transform: scale(1.1);
  color: var(--brand-accent);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-surface), var(--bg-base));
    padding: var(--space-12) var(--space-6);
    gap: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-sticky) + 3);
    overflow-y: auto;
    height: 100vh;
  }
  
  .nav-menu.active {
    right: 0;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  
  .nav-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  }
  
  .nav-menu li {
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
  }
  
  .nav-menu.active li {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
  .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
  .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
  .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
  .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
  
  .nav-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-lg);
    border-radius: var(--radius-lg);
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
  }
  
  .nav-menu a i {
    font-size: 1.5rem;
    color: var(--brand-accent);
  }
  
  .nav-menu a:hover {
    color: white;
    border-left-color: var(--brand-accent);
    background: var(--bg-elevated);
    transform: translateX(8px);
  }
  
  .nav-menu a:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--brand-accent);
  }
  
  /* Mobile Menu Close Button */
  .mobile-menu-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    z-index: 10;
  }
  
  .mobile-menu-close i {
    font-size: 2rem;
    transition: transform 0.3s ease;
  }
  
  .mobile-menu-close:hover {
    background: rgba(253, 125, 0, 0.1);
    color: var(--brand-accent);
  }
  
  .mobile-menu-close:hover i {
    transform: rotate(90deg);
  }
  
  .nav-menu.active .mobile-menu-close {
    display: flex;
  }
  
  /* Mobile Menu Footer */
  .mobile-menu-footer {
    display: block;
    margin-top: auto;
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
    text-align: center;
  }
  
  .mobile-menu-footer-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0;
  }
  
  .mobile-menu-footer-text a {
    color: var(--brand-accent);
    text-decoration: none;
    font-weight: var(--weight-medium);
    transition: color 0.3s ease;
    display: inline;
    padding: 0;
    background: none;
    border: none;
    font-size: inherit;
  }
  
  .mobile-menu-footer-text a:hover {
    color: var(--brand-accent-hover);
    text-decoration: underline;
  }
  
  /* Mobile Menu Overlay */
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--z-sticky);
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    var(--bg-surface) 0%, 
    var(--bg-base) 50%, 
    var(--bg-surface) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(1, 136, 133, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(253, 125, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(1, 136, 133, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

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

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

.hero-logo {
  margin-bottom: var(--space-6);
  animation: float 3s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0) rotateZ(0deg); 
  }
  50% { 
    transform: translateY(-15px) rotateZ(2deg); 
  }
}

.hero-logo:hover {
  animation-play-state: paused;
  transform: translateY(-5px) scale(1.05) rotateY(10deg);
}

.hero-logo img {
  height: 120px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 4px 12px rgba(253, 125, 0, 0.3)) drop-shadow(0 0 30px rgba(1, 136, 133, 0.2));
  transition: filter 0.3s ease;
}

.hero-logo:hover img {
  filter: drop-shadow(0 8px 24px rgba(253, 125, 0, 0.5)) drop-shadow(0 0 50px rgba(1, 136, 133, 0.4));
}

.hero-title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  margin-bottom: var(--space-3);
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-tight);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: var(--text-2xl);
  color: var(--brand-accent);
  margin-bottom: var(--space-6);
  font-weight: var(--weight-semibold);
}

.hero-description {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  backdrop-filter: blur(10px);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 8px 32px 0 rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-full);
  color: var(--success);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-8);
  transition: all 0.3s ease;
}

.privacy-badge i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.privacy-badge:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
}

.privacy-badge:hover i {
  transform: scale(1.1) rotate(5deg);
}

/* Download Section */
.download-section {
  margin-top: var(--space-4);
}

.download-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  text-align: center;
}

.download-heading i {
  font-size: 2rem;
  color: var(--brand-accent);
  transition: all 0.3s ease;
}

.download-section:hover .download-heading i {
  transform: translateY(-3px) scale(1.1);
  filter: drop-shadow(0 0 8px rgba(253, 125, 0, 0.5));
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  align-items: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-surface));
  border: var(--border-width-thick) solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(253, 125, 0, 0);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(253, 125, 0, 0.15), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

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

.btn-download::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}

.btn-download:hover::after {
  transform: scaleX(1);
}

.btn-download i,
.btn-download .browser-icon {
  width: 24px;
  height: 24px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 3;
  display: inline-block;
  object-fit: contain;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.btn-download .browser-icon {
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.btn-download:hover {
  transform: translateY(-6px) scale(1.05) perspective(1000px) rotateX(2deg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(253, 125, 0, 0.4);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-elevated));
}

.btn-download:hover i,
.btn-download:hover .browser-icon {
  /* Keine Hover-Effekte auf Icons */
}

.btn-download:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.btn-download.recommended {
  transform: translateY(-6px) scale(1.05) perspective(1000px) rotateX(2deg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(253, 125, 0, 0.4);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-elevated));
}

.btn-download.recommended::after {
  transform: scaleX(1);
}

.btn-download.recommended i,
.btn-download.recommended .browser-icon {
  /* Keine speziellen Effekte für empfohlene Icons */
}

.btn-download.recommended:hover {
  transform: translateY(-8px) scale(1.08) perspective(1000px) rotateX(3deg);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(253, 125, 0, 0.5);
}

@media (max-width: 768px) {
  .hero-section,
  .screenshots-section,
  .faq-section {
    padding: var(--space-12) 0;
  }
  
  .hero-logo img {
    height: 80px;
    max-width: 85vw;
  }
  
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-tagline {
    font-size: var(--text-xl);
  }
  
  .hero-description {
    font-size: var(--text-base);
  }
  
  .privacy-badge {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
  }
  
  .download-buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--space-3);
  }
  
  .btn-download {
    width: 100%;
    justify-content: center;
  }
  
  .language-dropdown {
    min-width: 180px;
  }
}

/* ========================================
   Section Headers
   ======================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.section-header h2 i {
  font-size: 2rem;
  color: var(--brand-accent);
  transition: transform 0.3s ease;
}

.section-header:hover h2 i {
  transform: scale(1.1) rotate(5deg);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-tertiary);
}

/* ========================================
   Features Section
   ======================================== */

.features-section {
  padding: var(--space-20) 0;
  background: var(--bg-base);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  padding: var(--space-8);
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-base));
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-lg);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-xs);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
}

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

.feature-card:nth-child(1).animate-in { animation-delay: 0.1s; }
.feature-card:nth-child(2).animate-in { animation-delay: 0.2s; }
.feature-card:nth-child(3).animate-in { animation-delay: 0.3s; }
.feature-card:nth-child(4).animate-in { animation-delay: 0.4s; }
.feature-card:nth-child(5).animate-in { animation-delay: 0.5s; }
.feature-card:nth-child(6).animate-in { animation-delay: 0.6s; }

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(253, 125, 0, 0.1), transparent);
  transition: left 0.6s ease;
}

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

.feature-card:hover {
  transform: translateY(-6px) perspective(1000px) rotateX(2deg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(253, 125, 0, 0.15);
  border-color: var(--brand-accent);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-surface));
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, rgba(253, 125, 0, 0.2), var(--brand-accent-light));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent, rgba(253, 125, 0, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px rgba(253, 125, 0, 0.4);
}

.feature-card:hover .feature-icon::before {
  opacity: 1;
}

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon i {
  font-size: 2rem;
  color: var(--brand-accent);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.feature-card:hover .feature-icon i {
  color: var(--brand-accent);
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 8px rgba(253, 125, 0, 0.6));
}

.feature-card h3 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
  transition: color 0.3s ease;
  position: relative;
}

.feature-card:hover h3 {
  color: var(--brand-accent);
}

.feature-card p {
  line-height: var(--leading-relaxed);
}

/* ========================================
   Screenshots Section
   ======================================== */

.screenshots-section {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-8);
}

.screenshot-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: var(--border-width) solid transparent;
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-base));
  opacity: 0;
  transform: translateY(30px);
}

.screenshot-item.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
}

.screenshot-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(253, 125, 0, 0.1), transparent);
  transition: left 0.6s ease;
  z-index: 2;
  pointer-events: none;
}

.screenshot-item:hover::before {
  left: 100%;
}

.screenshot-item:hover {
  transform: translateY(-8px) scale(1.03) perspective(1000px) rotateX(2deg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(253, 125, 0, 0.2);
  border-color: var(--brand-accent);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-surface));
}

.screenshot-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 3;
  pointer-events: none;
}

.screenshot-item:hover::after {
  transform: scaleX(1);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-xl);
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  cursor: pointer;
}

.screenshot-item:hover img {
  filter: brightness(1.05) contrast(1.02);
  transform: scale(1.02);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
  padding: var(--space-20) 0;
  background: var(--bg-base);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.faq-item {
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-base));
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
}

.faq-item.animate-in {
  animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.faq-item:nth-child(1).animate-in { animation-delay: 0.05s; }
.faq-item:nth-child(2).animate-in { animation-delay: 0.1s; }
.faq-item:nth-child(3).animate-in { animation-delay: 0.15s; }
.faq-item:nth-child(4).animate-in { animation-delay: 0.2s; }
.faq-item:nth-child(5).animate-in { animation-delay: 0.25s; }

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  border-color: var(--brand-accent);
  box-shadow: var(--shadow-md), 0 0 20px rgba(253, 125, 0, 0.1);
  transform: translateX(4px);
}

.faq-item:hover::before {
  transform: scaleY(1);
}

.faq-item.active {
  border-color: var(--brand-primary);
  background: linear-gradient(145deg, var(--bg-elevated), var(--bg-surface));
}

.faq-item.active::before {
  transform: scaleY(1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  color: var(--brand-accent);
}

.faq-question:focus {
  outline: none;
}

.faq-question-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.faq-question-icon {
  font-size: 1.5rem;
  color: var(--brand-accent);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-item:hover .faq-question-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(253, 125, 0, 0.5));
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--brand-accent);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-primary);
}

.faq-question[aria-expanded="true"] .faq-question-icon {
  color: var(--brand-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-answer.active {
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease 0.2s;
}

.faq-answer p {
  padding: 0 var(--space-6) var(--space-5);
  padding-left: calc(var(--space-6) + 1.5rem + var(--space-3)); /* Align with question text */
  line-height: var(--leading-relaxed);
  color: var(--text-secondary);
  position: relative;
}

.faq-bullet {
  position: absolute;
  left: var(--space-6);
  top: 0.15em;
  font-size: 1.25rem;
  color: var(--brand-accent);
  line-height: 1;
  transition: all 0.3s ease;
}

.faq-item:hover .faq-bullet {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(253, 125, 0, 0.5));
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    var(--bg-surface) 0%, 
    var(--bg-base) 50%, 
    var(--bg-surface) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  border-top: var(--border-width) solid var(--border-color);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-20);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(1, 136, 133, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(253, 125, 0, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(1, 136, 133, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

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

/* Buy Me A Coffee Section in Footer */
.footer-bmc-section {
  width: 100%;
  max-width: 800px;
  margin: var(--space-8) auto;
  background: linear-gradient(135deg, #FFF9E6 0%, #FFEDD5 100%);
  border: 2px solid #FFDD00;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.footer-bmc-section::before {
  content: '☕';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 120px;
  opacity: 0.1;
  transform: rotate(-15deg);
}

.footer-bmc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.footer-bmc-content {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex: 1;
}

.footer-bmc-icon {
  font-size: 48px;
  color: #8B4513;
  flex-shrink: 0;
  animation: coffee-steam 2s ease-in-out infinite;
}

@keyframes coffee-steam {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-4px) scale(1.05);
    opacity: 0.8;
  }
}

.footer-bmc-text h3 {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #8B4513;
}

.footer-bmc-text p {
  margin: 0;
  color: #92400E;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.footer-bmc-link {
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-bmc-link:hover {
  transform: translateY(-6px) scale(1.08) rotate(-3deg);
}

.footer-bmc-link:active {
  transform: translateY(-2px) scale(1);
}

.footer-bmc-button {
  height: 50px;
  width: auto;
  display: block;
}

/* Responsive Buy Me A Coffee */
@media (max-width: 768px) {
  .footer-bmc-card {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bmc-content {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-bmc-text h3 {
    font-size: var(--text-lg);
  }
  
  .footer-bmc-text p {
    font-size: var(--text-sm);
  }
  
  .footer-bmc-icon {
    font-size: 40px;
  }
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: center;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--bg-elevated);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-nav-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.footer-nav-link:hover {
  color: var(--brand-accent);
  background: var(--bg-surface);
  border-color: var(--border-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-nav-link:hover i {
  transform: scale(1.15) rotate(5deg);
}

.footer-separator {
  color: var(--text-tertiary);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
}

.footer-link-byteside {
  color: var(--text-secondary);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-link-byteside:hover {
  color: var(--brand-accent);
  text-decoration: underline;
}

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

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Scrollbar Styling
   ======================================== */

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ========================================
   Focus Styles (Accessibility)
   ======================================== */

*:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(253, 125, 0, 0.2);
}

.faq-question:focus-visible {
  outline: none;
  box-shadow: none;
}

.btn-download:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(253, 125, 0, 0.3), var(--shadow-md);
}

/* ========================================
   Reduced Motion (Accessibility)
   ======================================== */

@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;
  }
  
  .hero-logo,
  .feature-card,
  .faq-item,
  .screenshot-item {
    animation: none;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   High Contrast Mode (Accessibility)
   ======================================== */

@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --bg-base: #000000;
    --bg-surface: #1a1a1a;
    --bg-elevated: #2a2a2a;
    --brand-primary: #00cccc;
    --brand-accent: #ffaa00;
    --border-color: #444444;
  }
  
  .feature-card,
  .faq-item,
  .screenshot-item {
    border-width: 2px;
  }
  
  .btn-download {
    border-width: 3px;
  }
}

/* ========================================
   Small Devices (max-width: 480px)
   ======================================== */

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-3);
  }
  
  .hero-section,
  .screenshots-section,
  .faq-section {
    padding: var(--space-8) 0;
  }
  
  .hero-logo img {
    height: 60px;
    max-width: 80vw;
  }
  
  .hero-title {
    font-size: var(--text-2xl);
  }
  
  .hero-tagline {
    font-size: var(--text-lg);
  }
  
  .hero-description {
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
  }
  
  .privacy-badge {
    font-size: 0.625rem;
    padding: var(--space-2) var(--space-3);
  }
  
  .download-heading {
    font-size: var(--text-lg);
  }
  
  .download-buttons {
    gap: var(--space-2);
  }
  
  .btn-download {
    padding: var(--space-3);
    font-size: var(--text-sm);
  }
  
  .nav-menu {
    padding: var(--space-8) var(--space-4);
    gap: var(--space-2);
    width: 85%;
    height: 100vh;
  }
  
  .nav-menu a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-base);
  }
  
  .section-header h2 {
    font-size: var(--text-2xl);
  }
  
  .feature-card {
    padding: var(--space-4);
  }
  
  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-3);
  }
  
  .feature-icon i {
    font-size: 1.5rem;
  }
  
  .feature-card h3 {
    font-size: var(--text-lg);
  }
  
  .feature-card p {
    font-size: var(--text-sm);
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .faq-item {
    padding: var(--space-3);
  }
  
  .faq-question {
    font-size: var(--text-base);
  }
  
  .faq-answer p {
    font-size: var(--text-sm);
  }
  
  .language-dropdown {
    min-width: 160px;
  }
  
  .footer-bmc-card {
    padding: var(--space-4);
  }
  
  .footer-bmc-icon {
    font-size: 32px;
  }
}

/* ========================================
   Lightbox Styles
   ======================================== */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
  pointer-events: none;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 95vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-container {
  transform: scale(1);
}

.lightbox-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(253, 125, 0, 0.3);
  transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-image {
  animation: lightboxImageIn 0.4s ease-out;
}

@keyframes lightboxImageIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-counter {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: rgba(1, 43, 42, 0.9);
  backdrop-filter: blur(10px);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  border: 1px solid var(--border-color);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: rgba(1, 43, 42, 0.9);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--bg-elevated);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(253, 125, 0, 0.4);
}

.lightbox-close:active,
.lightbox-nav:active {
  transform: scale(0.95);
}

.lightbox-close {
  top: var(--space-4);
  right: var(--space-4);
}

.lightbox-close i {
  font-size: 1.75rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
}

.lightbox-nav:hover {
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
  left: var(--space-4);
}

.lightbox-next {
  right: var(--space-4);
}

.lightbox-nav i {
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.lightbox-nav:disabled:hover {
  transform: translateY(-50%);
  background: rgba(1, 43, 42, 0.9);
  border-color: var(--border-color);
  color: var(--text-primary);
  box-shadow: none;
}

/* Mobile Lightbox Styles */
@media (max-width: 768px) {
  .lightbox-container {
    padding: var(--space-4);
    max-width: 100vw;
    max-height: 100vh;
  }
  
  .lightbox-image {
    max-height: 75vh;
  }
  
  .lightbox-close {
    top: var(--space-2);
    right: var(--space-2);
    width: 40px;
    height: 40px;
  }
  
  .lightbox-close i {
    font-size: 1.5rem;
  }
  
  .lightbox-nav {
    width: 44px;
    height: 44px;
    top: auto;
    bottom: var(--space-4);
    transform: none;
  }
  
  .lightbox-nav:hover {
    transform: scale(1.1);
  }
  
  .lightbox-nav:active {
    transform: scale(0.95);
  }
  
  .lightbox-prev {
    left: var(--space-4);
    right: auto;
  }
  
  .lightbox-next {
    right: var(--space-4);
    left: auto;
  }
  
  .lightbox-nav i {
    font-size: 1.75rem;
  }
  
  .lightbox-counter {
    top: var(--space-2);
    right: var(--space-2);
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }
}

/* Touch-friendly on small devices */
@media (max-width: 480px) {
  .lightbox-close,
  .lightbox-nav {
    width: 48px;
    height: 48px;
  }
  
  .lightbox-nav {
    bottom: var(--space-2);
  }
  
  .lightbox-prev {
    left: var(--space-2);
  }
  
  .lightbox-next {
    right: var(--space-2);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-container,
  .lightbox-image,
  .lightbox-close,
  .lightbox-nav {
    transition: none;
    animation: none;
  }
  
  .lightbox.active .lightbox-container {
    transform: scale(1);
  }
  
  .lightbox.active .lightbox-image {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   Scroll to Top Button
   ======================================== */

.scroll-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--brand-accent);
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.3s ease;
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background: var(--brand-accent-hover);
  transform: translateY(0) scale(1);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top:active {
  transform: translateY(0) scale(0.95);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: var(--space-3);
    right: var(--space-3);
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .site-header,
  .download-buttons,
  .language-picker,
  .mobile-menu-toggle,
  .scroll-to-top {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
}

