/* ========================================
   DIV Fashion Consulting - Design System
   ======================================== */

/* ========================================
   1. CSS Variables & Design Tokens
   ======================================== */
:root {
  /* Color Palette - Based on provided design system */
  --color-delft-blue: #243165;
  --color-davys-gray: #494956;
  --color-dim-gray: #737273;
  --color-slate-gray: #737a96;
  --color-beaver: #908165;
  
  /* Extended Color Palette - Primary (Delft Blue variations) */
  --color-primary-50: #f8f9fb;
  --color-primary-100: #f1f3f6;
  --color-primary-200: #e3e7ed;
  --color-primary-300: #d0d6e0;
  --color-primary-400: #9fabe0;
  --color-primary-500: #737a96;
  --color-primary-600: #494956;
  --color-primary-700: #353a4d;
  --color-primary-800: #243165;
  --color-primary-900: #1d2752;
  --color-primary-950: #12193a;
  
  /* Color Palette - Accent */
  --color-accent-light: #f5f4f3;
  --color-accent-medium: #908165;
  --color-accent-dark: #737273;
  
  /* Color Palette - Semantic */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Color Palette - Neutrals */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-transparent: transparent;
  
  /* Typography - Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  
  /* Typography - Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */
  --text-7xl: 4.5rem;     /* 72px */
  --text-8xl: 6rem;       /* 96px */
  
  /* Typography - Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  
  /* Typography - Line Heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Typography - Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* Spacing Scale */
  --space-0: 0;
  --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-14: 3.5rem;    /* 56px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-32: 8rem;      /* 128px */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;
  --transition-slower: 700ms;
  
  /* Animation Easing */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-60: 60;
  --z-70: 70;
  --z-80: 80;
  --z-90: 90;
  --z-100: 100;
}

/* ========================================
   2. Global Styles & Reset
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
  font-size: 16px;
}

body {
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-primary);
  background-color: var(--color-white);
  color: var(--color-davys-gray);
  line-height: var(--leading-normal);
  padding-top: 80px;
}

/* ========================================
   3. Typography Classes
   ======================================== */
.font-primary {
  font-family: var(--font-primary);
}

.font-secondary {
  font-family: var(--font-secondary);
}

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-5xl { font-size: var(--text-5xl); }
.text-6xl { font-size: var(--text-6xl); }
.text-7xl { font-size: var(--text-7xl); }
.text-8xl { font-size: var(--text-8xl); }

.font-light { font-weight: var(--font-light); }
.font-regular { font-weight: var(--font-regular); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }
.leading-loose { line-height: var(--leading-loose); }

.tracking-tight { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }
.tracking-widest { letter-spacing: var(--tracking-widest); }

/* ========================================
   4. Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) scale(1);
  }
  50% { 
    transform: translateY(-15px) scale(1.02);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 1.2s var(--ease-smooth) forwards;
  will-change: transform, opacity;
}

.animate-fade-in-left {
  animation: fadeInLeft 1.2s var(--ease-smooth) forwards;
  will-change: transform, opacity;
}

.animate-float {
  animation: float 4s var(--ease-in-out) infinite;
  will-change: transform;
}

.animate-pulse {
  animation: pulse 2s var(--ease-in-out) infinite;
}

/* ========================================
   5. Components
   ======================================== */

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-slow) ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-logo {
  width: var(--space-16);
  height: var(--space-16);
  background-color: var(--color-delft-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--font-bold);
  font-size: var(--text-2xl);
}

/* Navigation */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: var(--z-50);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all var(--transition-base) var(--ease-smooth);
}

.nav-glass.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: var(--shadow-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-logo-img {
  height: var(--space-10);
  width: auto;
  transition: all var(--transition-base) var(--ease-smooth);
}

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

.nav-logo-icon {
  width: var(--space-10);
  height: var(--space-10);
  background-color: var(--color-delft-blue);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--font-bold);
  font-size: var(--text-xl);
}

.nav-logo-text {
  font-size: var(--text-xl);
  font-family: var(--font-secondary);
  font-weight: var(--font-semibold);
  color: var(--color-delft-blue);
}

.nav-link {
  position: relative;
  color: var(--color-davys-gray);
  transition: color var(--transition-base) var(--ease-smooth);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
}

.nav-link:hover {
  color: var(--color-delft-blue);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-delft-blue);
  transition: width var(--transition-base) var(--ease-smooth);
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(36, 49, 101, 0.4) 0%, 
    rgba(73, 73, 86, 0.6) 30%,
    rgba(115, 114, 115, 0.7) 60%, 
    rgba(115, 122, 150, 0.8) 100%);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.hero-content {
  position: relative;
  z-index: var(--z-10);
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--space-6);
}

.hero-title {
  font-size: clamp(var(--text-4xl), 8vw, var(--text-8xl));
  font-family: var(--font-secondary);
  font-weight: var(--font-light);
  margin-bottom: var(--space-6);
}

/* Animated Services Text */
.hero-services-text {
  margin-bottom: var(--space-8);
  opacity: 0.95;
}

.services-animation-container {
  height: var(--space-16);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.services-rotating-text {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-family: var(--font-secondary);
  font-weight: var(--font-semibold);
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: absolute;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.services-rotating-text.active {
  opacity: 1;
  transform: translateY(0);
}

.services-rotating-text.exit {
  opacity: 0;
  transform: translateY(-30px);
}

/* Typing cursor animation */
.services-rotating-text::after {
  content: '';
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background-color: var(--color-white);
  margin-left: 2px;
  animation: blink 1.5s infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Social Icons */
.social-icon {
  width: var(--space-12);
  height: var(--space-12);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-base) var(--ease-smooth);
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.social-icon-dark {
  background-color: var(--color-black);
  color: var(--color-white);
}

.social-icon-dark:hover {
  background-color: var(--color-primary-800);
  transform: scale(1.1);
}

/* Buttons */
.btn {
  padding: var(--space-3) var(--space-8);
  border: 1px solid var(--color-slate-gray);
  background-color: transparent;
  color: var(--color-davys-gray);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  letter-spacing: var(--tracking-wide);
  transition: all var(--transition-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-transform: uppercase;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover {
  background-color: var(--color-primary-50);
  border-color: var(--color-delft-blue);
  color: var(--color-delft-blue);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Sections */
.section {
  padding: var(--space-20) 0;
}

.section-gray {
  background-color: var(--color-primary-50);
}

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

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s var(--ease-smooth);
  will-change: transform, opacity;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate:nth-child(2) { transition-delay: 0.1s; }
.scroll-animate:nth-child(3) { transition-delay: 0.2s; }
.scroll-animate:nth-child(4) { transition-delay: 0.3s; }

/* Image Effects */
.image-hover {
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-base);
}

.image-hover img {
  transition: all 0.6s var(--ease-smooth);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-hover:hover img {
  transform: scale(1.1);
}

/* Statistics */
.stat-number {
  font-size: var(--text-6xl);
  font-weight: var(--font-light);
  color: var(--color-delft-blue);
  font-family: var(--font-secondary);
  transition: all var(--transition-base) var(--ease-smooth);
}

.stat-title {
  font-weight: var(--font-semibold);
  color: var(--color-davys-gray);
  margin-bottom: var(--space-2);
  font-size: var(--text-base);
}

.stat-description {
  font-size: var(--text-sm);
  color: var(--color-dim-gray);
  line-height: var(--leading-relaxed);
}

/* Service Items */
.service-item {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-primary-200);
  transition: all var(--transition-base) var(--ease-smooth);
  position: relative;
  cursor: pointer;
}

.service-item::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--color-delft-blue), transparent);
  transition: width var(--transition-base) var(--ease-smooth);
}

.service-item:hover {
  color: var(--color-primary-600);
}

.service-item:hover::before {
  width: 100%;
}

.service-number {
  font-size: var(--text-sm);
  color: var(--color-primary-400);
}

.service-title {
  font-size: var(--text-2xl);
  font-family: var(--font-secondary);
  color: var(--color-davys-gray);
}

.service-description {
  color: var(--color-dim-gray);
  max-width: 28rem;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base) var(--ease-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.card-content {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-2xl);
  font-family: var(--font-secondary);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-davys-gray);
}

.card-text {
  color: var(--color-dim-gray);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

/* Testimonials */
.testimonial-card {
  background-color: var(--color-primary-50);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
}

.testimonial-name {
  font-size: var(--text-2xl);
  font-family: var(--font-secondary);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-4);
  color: var(--color-davys-gray);
}

.testimonial-text {
  color: var(--color-dim-gray);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

/* Forms */
.form-input {
  width: 100%;
  padding: var(--space-3) 0;
  border: none;
  border-bottom: 1px solid var(--color-slate-gray);
  background-color: transparent;
  font-size: var(--text-base);
  color: var(--color-davys-gray);
  transition: all var(--transition-base) var(--ease-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-delft-blue);
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: var(--color-slate-gray);
}

.form-checkbox {
  width: var(--space-4);
  height: var(--space-4);
  accent-color: var(--color-delft-blue);
}

.form-label {
  font-size: var(--text-sm);
  color: var(--color-dim-gray);
}

/* Footer */
.footer {
  padding: var(--space-12) 0;
  background-color: var(--color-primary-50);
  text-align: center;
}

.footer-title {
  font-size: var(--text-2xl);
  font-family: var(--font-secondary);
  font-weight: var(--font-light);
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-4);
  color: var(--color-davys-gray);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-slate-gray);
  margin-bottom: var(--space-6);
}

.footer-locations {
  font-size: var(--text-xs);
  color: var(--color-slate-gray);
  line-height: var(--leading-relaxed);
}

/* Circular Badge */
.circular-badge {
  width: var(--space-24);
  height: var(--space-24);
  border: 2px solid var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: var(--text-xs);
  text-align: center;
  line-height: var(--leading-tight);
  color: var(--color-white);
}

.circular-badge-dark {
  border-color: var(--color-slate-gray);
  color: var(--color-dim-gray);
}

/* Parallax */
.parallax {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Single Fixed Logo Background */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/images/logo_transparent.svg');
  background-size: auto 80%;
  background-repeat: no-repeat;
  background-position: -15% center;
  opacity: 0.2;
  z-index: 1;
  pointer-events: none;
}

/* Ensure all content is below the logo background */
nav, section, footer {
  position: relative;
  z-index: 1;
}

/* Scroll to Top FAB */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: var(--space-14);
  height: var(--space-14);
  background: var(--color-delft-blue);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-40);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8) translateY(10px);
  transition: all var(--transition-base) var(--ease-smooth);
  will-change: transform, opacity;
}

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

.scroll-to-top:hover {
  background: var(--color-primary-950);
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-xl);
}

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

.scroll-to-top svg {
  width: var(--space-6);
  height: var(--space-6);
  transition: transform var(--transition-fast) var(--ease-smooth);
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Loading State */
img {
  opacity: 0;
  transition: opacity 0.6s var(--ease-smooth);
}

img.loaded {
  opacity: 1;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-davys-gray);
  cursor: pointer;
}

/* ========================================
   6. Utilities
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.mx-auto { margin-left: auto; margin-right: auto; }

.hover-scale {
  transition: all var(--transition-base) var(--ease-smooth);
  will-change: transform;
}

.hover-scale:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* ========================================
   7. Responsive Design
   ======================================== */

/* Large screens (1024px and up) */
@media (min-width: 1024px) {
  .container {
    max-width: 1200px;
  }
}

/* Medium screens (768px to 1023px) - Tablets */
@media (max-width: 1023px) and (min-width: 768px) {
  .container {
    max-width: 768px;
    padding: 0 var(--space-6);
  }
  
  .hero-title {
    font-size: var(--text-7xl);
  }
  
  .text-8xl {
    font-size: var(--text-7xl);
  }
  
  .section {
    padding: var(--space-20) 0;
  }
}

/* Small screens (640px to 767px) - Mobile landscape */
@media (max-width: 767px) {
  body {
    padding-top: 70px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: var(--shadow-lg);
    padding: var(--space-6);
    gap: var(--space-4);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  
  .nav-logo-text {
    font-size: var(--text-lg);
  }
  
  .hero-section {
    min-height: 100vh;
    background-attachment: scroll;
  }
  
  .hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-6);
  }
  
  .hero-content {
    padding: 0 var(--space-4);
  }
  
  .hero-services-text p {
    font-size: var(--text-lg);
  }
  
  .services-animation-container {
    height: var(--space-12);
  }
  
  .text-8xl { font-size: var(--text-6xl); }
  .text-7xl { font-size: var(--text-5xl); }
  .text-6xl { font-size: var(--text-5xl); }
  .text-5xl { font-size: var(--text-4xl); }
  .text-4xl { font-size: var(--text-3xl); }
  .text-3xl { font-size: var(--text-2xl); }
  .text-2xl { font-size: var(--text-xl); }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  /* Grid adjustments for mobile */
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .md\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .md\\:grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .lg\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  /* Service items mobile layout */
  .service-item {
    padding: var(--space-4) 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  
  .service-item .flex {
    width: 100%;
    margin-bottom: var(--space-2);
  }
  
  /* Statistics mobile layout */
  .stat-number {
    font-size: var(--text-5xl);
  }
  
  /* Social icons mobile positioning */
  .social-icons-left {
    display: none;
  }
  
  .social-icons-right {
    right: var(--space-4);
    gap: var(--space-3);
  }
  
  /* Card adjustments */
  .card {
    margin-bottom: var(--space-6);
  }
  
  /* Form adjustments */
  .form-input {
    padding: var(--space-4) 0;
    font-size: var(--text-base);
  }
}

/* Extra small screens (up to 639px) - Mobile portrait */
@media (max-width: 639px) {
  body {
    padding-top: 60px;
  }
  
  .nav-glass {
    padding: var(--space-2) 0;
  }
  
  .nav-logo-icon {
    width: var(--space-8);
    height: var(--space-8);
    font-size: var(--text-lg);
  }
  
  .nav-logo-text {
    font-size: var(--text-base);
  }
  
  .nav-logo-img {
    height: var(--space-8);
  }
  
  .hero-title {
    font-size: var(--text-5xl);
    line-height: var(--leading-tight);
  }
  
  .container {
    padding: 0 var(--space-3);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .text-5xl { font-size: var(--text-3xl); }
  .text-4xl { font-size: var(--text-2xl); }
  .text-3xl { font-size: var(--text-xl); }
  .text-2xl { font-size: var(--text-lg); }
  
  .stat-number {
    font-size: var(--text-4xl);
  }
  
  .circular-badge {
    width: var(--space-20);
    height: var(--space-20);
    font-size: 10px;
  }
  
  /* Spacing adjustments */
  .space-y-8 > * + * {
    margin-top: var(--space-4);
  }
  
  .space-y-6 > * + * {
    margin-top: var(--space-4);
  }
  
  .gap-12 {
    gap: var(--space-6);
  }
  
  .gap-8 {
    gap: var(--space-4);
  }
  
  /* Service items extra small screens */
  .service-item {
    padding: var(--space-3) 0;
  }
  
  .service-description {
    font-size: var(--text-xs);
  }
  
  /* Button adjustments */
  .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-xs);
  }
  
  /* FAB adjustments */
  .scroll-to-top {
    width: var(--space-12);
    height: var(--space-12);
    bottom: var(--space-4);
    right: var(--space-4);
  }
  
  .scroll-to-top svg {
    width: var(--space-5);
    height: var(--space-5);
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .hover-scale:hover {
    transform: none;
  }
  
  .nav-link::after {
    display: none;
  }
  
  .service-item:hover::before {
    width: 0;
  }
}