/* ============================================
   WEBMAKR 2035 DESIGN SYSTEM
   Ultra-Modern, Particle-Powered, 3D-Enhanced
   ============================================ */

:root {
  /* Brand Colors - WEBMAKR Red Theme */
  --color-primary: #E31E24;       /* WEBMAKR Red (Logo) */
  --color-primary-dark: #B01419;  /* Dark Red */
  --color-secondary: #6B7280;     /* Cool Gray (Logo secondary) */
  --color-accent: #DC2626;        /* Bright Red accent */
  --color-success: #10B981;
  
  /* Dark Theme */
  --bg-primary: #030712;
  --bg-secondary: #111827;
  --bg-tertiary: #1F2937;
  
  /* Gradients - Red Theme */
  --gradient-hero: linear-gradient(135deg, #E31E24 0%, #DC2626 50%, #B91C1C 100%);
  --gradient-glow: linear-gradient(135deg, rgba(227, 30, 36, 0.4), rgba(220, 38, 38, 0.3));
  
  /* Glassmorphism */
  --glass-bg: rgba(17, 24, 39, 0.4);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(20px) saturate(180%);
  
  /* Shadows */
  --shadow-glow: 0 0 40px rgba(227, 30, 36, 0.5);
  --shadow-glow-strong: 0 0 60px rgba(227, 30, 36, 0.8);
  --shadow-3d: 0 20px 60px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px; /* Account for fixed nav */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Performance Optimization */
.glass-card,
.glass-nav,
.btn-hero,
.btn-secondary,
.pillar-card,
.service-card {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* ============================================
   PARTICLE CANVAS
   ============================================ */
#particles-canvas {
  opacity: 0.6;
  z-index: 0;
}

/* ============================================
   ANIMATED GRADIENT ORBS
   ============================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(227, 30, 36, 0.6), transparent);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.5), transparent);
  top: 50%;
  right: -150px;
  animation-delay: 2s;
  animation-duration: 10s;
}

.orb-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 210, 63, 0.4), transparent);
  bottom: -200px;
  left: 50%;
  animation-delay: 4s;
  animation-duration: 12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ============================================
   GLASSMORPHIC NAVIGATION
   ============================================ */
.glass-nav {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
}

.glass-nav:hover {
  background: rgba(17, 24, 39, 0.6);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  width: 100%;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-glow-sm {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--gradient-hero);
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 16px rgba(227, 30, 36, 0.4);
}

.btn-glow-sm:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-hero {
  position: relative;
  padding: 1rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  background: var(--gradient-hero);
  color: white;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-glow);
}

.btn-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-hero:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-glow-strong);
}

.btn-hero:hover::before {
  opacity: 1;
}

.btn-secondary {
  padding: 1rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-service {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  background: rgba(227, 30, 36, 0.1);
  border: 1px solid rgba(227, 30, 36, 0.3);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.btn-service:hover {
  background: var(--color-primary);
  color: white;
  transform: translateX(4px);
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.btn-cta-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(37, 211, 102, 0.6);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* ============================================
   GRADIENT TEXT
   ============================================ */
.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-hero {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  background-size: 200% 200%;
  line-height: 1.3;
  padding-bottom: 0.1em;
}

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

/* ============================================
   GLASS CARDS
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  box-shadow: var(--shadow-3d);
  transition: all var(--transition-base);
}

.glass-card:hover {
  background: rgba(17, 24, 39, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.glass-card-lg {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 3rem;
  box-shadow: var(--shadow-3d);
}

.glass-badge {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   3D CARD TILT
   ============================================ */
.card-3d-container {
  perspective: 1000px;
}

.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

/* Applied via JavaScript on mouse move */
.card-3d.tilt {
  transform: rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
}

/* ============================================
   PILLAR CARDS
   ============================================ */
.pillar-card {
  padding: 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  transition: all var(--transition-base);
  animation: fade-in-up 0.6s ease forwards;
  opacity: 0;
}

.pillar-card:hover {
  background: rgba(17, 24, 39, 0.7);
  border-color: var(--color-primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(227, 30, 36, 0.3);
}

.pillar-icon {
  width: 80px;
  height: 80px;
  border-radius: 1.5rem;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.pillar-card:hover .pillar-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow-strong);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  padding: 3rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  transition: all var(--transition-base);
  animation: fade-in-up 0.6s ease forwards;
  opacity: 0;
}

.service-card:hover {
  background: rgba(17, 24, 39, 0.7);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 100px;
  height: 100px;
  border-radius: 2rem;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-glow);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: var(--shadow-glow-strong);
}

/* ============================================
   COUNTER CARDS
   ============================================ */
.counter-card {
  animation: fade-in-up 0.6s ease forwards;
  opacity: 0;
}

.counter-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(227, 30, 36, 0.1);
  border: 2px solid rgba(227, 30, 36, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.counter-card:hover .counter-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.counter-number {
  transition: all var(--transition-slow);
}

/* ============================================
   SOCIAL ICONS
   ============================================ */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.25rem;
  transition: all var(--transition-base);
}

.social-icon:hover {
  background: var(--gradient-hero);
  border-color: transparent;
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.social-icon-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all var(--transition-base);
}

.social-icon-sm:hover {
  background: var(--color-primary);
  border-color: transparent;
  transform: translateY(-2px);
}

/* ============================================
   PULSE ANIMATIONS
   ============================================ */
.pulse-dot {
  animation: pulse 2s ease-in-out infinite;
}

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

/* ============================================
   FADE ANIMATIONS
   ============================================ */
.animate-fade-in {
  animation: fade-in 0.8s ease forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   TYPER CURSOR
   ============================================ */
.typer-cursor {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE - PERFEKTIONIERT
   ============================================ */

/* Tablet & Mobile */
@media (max-width: 1024px) {
  .orb {
    width: 400px !important;
    height: 400px !important;
  }
  
  /* Section Spacing */
  section {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  /* Cards Padding */
  .pillar-card,
  .service-card {
    padding: 2rem;
  }
  
  .service-icon,
  .pillar-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
}

/* Mobile Only */
@media (max-width: 768px) {
  /* Global Mobile Adjustments */
  body {
    overflow-x: hidden;
  }
  
  /* Orbs smaller on mobile */
  .orb {
    width: 250px !important;
    height: 250px !important;
    filter: blur(60px);
  }
  
  /* Navigation - Fixed Mobile Spacing */
  nav {
    top: 1rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .glass-nav {
    padding: 1rem !important;
  }
  
  .glass-nav img {
    height: 48px !important; /* Kleiner auf Mobile */
  }
  
  /* Hero Section - Perfect Spacing */
  section:first-of-type {
    padding-top: 140px !important; /* Optimiert für fixed nav */
    padding-bottom: 4rem !important;
    min-height: auto !important;
  }
  
  /* Hero Title - Responsive Sizing */
  h1 {
    font-size: 2rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.25rem !important;
  }
  
  h1 span:first-child {
    font-size: 1.25rem !important; /* "Hi, ich bin Frank" */
    margin-bottom: 0.5rem !important;
  }
  
  h1 .gradient-text-hero {
    font-size: 2.5rem !important; /* "Digital-Freigeist" */
    line-height: 1.4 !important;
    padding-bottom: 0.2em !important;
  }
  
  h1 span:last-child {
    font-size: 2rem !important; /* "seit 2015" */
  }
  
  /* Typer Text - Fixed Height */
  #typer-text {
    min-height: 100px !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Glass Badge */
  .glass-badge {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Buttons Mobile */
  .btn-hero,
  .btn-secondary {
    padding: 0.875rem 1.75rem !important;
    font-size: 1rem !important;
    width: 100%;
    text-align: center;
  }
  
  /* Cards Mobile */
  .pillar-card,
  .service-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .service-icon,
  .pillar-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
  }
  
  .counter-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }
  
  /* Grid Spacing Mobile */
  .grid {
    gap: 2rem !important;
  }
  
  /* Section Titles Mobile */
  h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  /* Trust Indicators Mobile */
  .flex.flex-wrap.gap-8 {
    gap: 1.5rem !important;
  }
  
  /* Section Spacing */
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
}

/* Extra Small Mobile */
@media (max-width: 390px) {
  h1 {
    font-size: 1.75rem !important;
  }
  
  h1 .gradient-text-hero {
    font-size: 2.25rem !important;
  }
  
  #typer-text {
    font-size: 0.875rem !important;
    min-height: 90px !important;
  }
  
  .btn-hero,
  .btn-secondary {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.9375rem !important;
  }
}

/* ============================================
   IMAGE EFFECTS - Lazy Loading & Hover
   ============================================ */
img {
  transition: transform var(--transition-slow), opacity var(--transition-base);
}

img[loading="lazy"] {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Image Hover Effects */
.glass-card img:hover,
.card-3d img:hover {
  transform: scale(1.05);
}

/* Feature Icon Hover Effects */
.w-12.h-12 {
  transition: all var(--transition-base);
}

.flex.items-start:hover .w-12.h-12 {
  transform: scale(1.1) rotate(5deg);
}

/* Link Hover Glow */
a:not(.btn-hero):not(.btn-secondary):not(.nav-link) {
  transition: all var(--transition-fast);
}

a:not(.btn-hero):not(.btn-secondary):not(.nav-link):hover {
  filter: brightness(1.2);
}

/* Section Divider Animation */
section {
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gradient-hero);
  transition: width var(--transition-slow);
}

section:hover::after {
  width: 80%;
}

/* Smooth Text Selection */
::selection {
  background: rgba(227, 30, 36, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(227, 30, 36, 0.3);
  color: white;
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Cursor Pointer for Interactive Elements */
.glass-card,
.pillar-card,
.service-card,
.counter-card,
.social-icon {
  cursor: pointer;
}

/* ============================================
   CASE STUDY CARDS
   ============================================ */
.case-study-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  transition: all var(--transition-base);
  animation: fade-in-up 0.6s ease-out forwards;
  opacity: 0;
  /* Spacing between rounded border and container */
  margin: 0.5rem;
}

.case-study-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227, 30, 36, 0.5);
  box-shadow: var(--shadow-glow);
}

.case-study-image {
  transition: transform var(--transition-base);
  /* Add internal padding for rounded content */
  padding: 0.5rem;
}

.case-study-card:hover .case-study-image {
  transform: scale(1.05);
}

.tech-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9CA3AF;
  transition: all var(--transition-fast);
}

.tech-badge:hover {
  background: rgba(227, 30, 36, 0.1);
  border-color: rgba(227, 30, 36, 0.3);
  color: #E31E24;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  transition: all var(--transition-base);
  animation: fade-in-up 0.6s ease-out forwards;
  opacity: 0;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(227, 30, 36, 0.5);
  box-shadow: var(--shadow-glow);
}

.pricing-card-featured {
  border: 2px solid rgba(227, 30, 36, 0.5);
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.1), rgba(255, 107, 53, 0.1));
  box-shadow: var(--shadow-glow);
}

.pricing-card-featured:hover {
  box-shadow: var(--shadow-glow-strong);
}

.btn-pricing {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.2), rgba(255, 107, 53, 0.2));
  border: 1px solid rgba(227, 30, 36, 0.5);
  border-radius: 12px;
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
}

.btn-pricing:hover {
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.4), rgba(255, 107, 53, 0.4));
  box-shadow: 0 0 30px rgba(227, 30, 36, 0.5);
  transform: translateY(-2px);
}

.btn-pricing-featured {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #E31E24, #FF6B35);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-base);
  box-shadow: 0 0 30px rgba(227, 30, 36, 0.5);
}

.btn-pricing-featured:hover {
  box-shadow: 0 0 50px rgba(227, 30, 36, 0.8);
  transform: translateY(-2px) scale(1.02);
}

/* ============================================
   BADGE COMPONENTS
   ============================================ */
.badge-orange {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 107, 53, 0.2);
  border: 1px solid rgba(255, 107, 53, 0.5);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FF6B35;
  text-transform: uppercase;
}

.badge-red {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(227, 30, 36, 0.2);
  border: 1px solid rgba(227, 30, 36, 0.5);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #E31E24;
  text-transform: uppercase;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Lazy Load Images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Hardware Acceleration */
.glass-card,
.pillar-card,
.service-card,
.pricing-card,
.case-study-card {
  transform: translateZ(0);
  will-change: transform;
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   MOBILE RESPONSIVENESS - 2035 LEVEL
   ============================================ */

/* Mobile-First Breakpoints */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
  h3 { font-size: 1.5rem !important; }
  
  /* Navigation */
  .glass-nav {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
  }
  
  /* Hero Section */
  .gradient-text-hero {
    font-size: 2.5rem !important;
    line-height: 1.2;
  }
  
  /* Cards */
  .glass-card,
  .pillar-card,
  .service-card,
  .pricing-card,
  .case-study-card {
    padding: 1.5rem !important;
    margin-bottom: 1rem;
  }
  
  /* Buttons */
  .btn-hero,
  .btn-secondary,
  .btn-cta-primary {
    padding: 0.875rem 1.5rem !important;
    font-size: 1rem !important;
  }
  
  /* Portfolio Grid */
  .case-study-card {
    margin-bottom: 1.5rem;
  }
  
  /* Pricing Grid */
  .pricing-card {
    margin-bottom: 2rem;
  }
  
  /* Forms */
  input,
  textarea,
  select {
    font-size: 16px !important; /* Prevent iOS zoom */
  }
  
  /* Spacing */
  section {
    padding: 3rem 1rem !important;
  }
  
  /* Modal */
  .fixed.z-50 {
    padding: 1rem !important;
  }
  
  /* Toast Notifications */
  .toast {
    right: 1rem !important;
    left: 1rem !important;
    width: auto !important;
  }
}

/* Tablet Optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
  .glass-card,
  .pillar-card,
  .service-card {
    padding: 2rem;
  }
  
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
}

/* Desktop Large */
@media (min-width: 1920px) {
  .max-w-7xl {
    max-width: 1920px;
  }
  
  .glass-card {
    padding: 3rem;
  }
}

/* ============================================
   TOUCH OPTIMIZATIONS
   ============================================ */

/* Larger touch targets on mobile */
@media (max-width: 768px) {
  a,
  button,
  .clickable {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Remove hover effects on touch devices */
  .glass-card:hover,
  .pillar-card:hover,
  .service-card:hover {
    transform: none;
  }
  
  /* Tap highlight */
  * {
    -webkit-tap-highlight-color: rgba(227, 30, 36, 0.2);
  }
}

/* ============================================
   LOADING STATES
   ============================================ */

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #E31E24;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   SMOOTH ANIMATIONS
   ============================================ */

/* Fade In */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slide In from Right */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scale In */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Apply animations */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.4s ease-out;
}

.animate-scale-in {
  animation: scaleIn 0.3s ease-out;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  .glass-nav,
  .btn-hero,
  .btn-secondary,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .glass-card {
    border: 1px solid #ccc !important;
    background: white !important;
  }
}

/* ============================================
   DARK MODE ENHANCEMENTS
   ============================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
  }
  
  .glass-card {
    background: rgba(10, 10, 10, 0.6);
  }
}
