/* ============================================
   CRAZEX STUDIO — Premium Dark Theme 2026
   PERFORMANCE OPTIMIZED: content-visibility,
   contain, reduced motion, efficient paints
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --bg-primary: #050508;
  --bg-primary-rgb: 5, 5, 8;
  --bg-secondary: #0c0c12;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --bg-input: #0e0e16;
  --text-primary: #f5f5fa;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-dark: #5b21b6;
  --accent-rgb: 124, 58, 237;
  --accent-light-rgb: 167, 139, 250;
  --accent-glow: rgba(var(--accent-rgb), 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(var(--accent-rgb), 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(var(--accent-rgb), 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  accent-color: var(--accent);
  caret-color: var(--accent);
  color-scheme: dark light;
}

/* ---- Light Theme ---- */
body.light {
  --bg-primary: #ffffff;
  --bg-primary-rgb: 255, 255, 255;
  --bg-secondary: #f7f7f8;
  --bg-card: #ffffff;
  --bg-card-hover: #fff5f5;
  --bg-input: #f9f9fa;
  --text-primary: #0a0a0a;
  --text-secondary: #52525b;
  --text-muted: #8b8b93;
  --accent: #dc2626;
  --accent-light: #ef4444;
  --accent-dark: #991b1b;
  --accent-rgb: 220, 38, 38;
  --accent-light-rgb: 239, 68, 68;
  --accent-glow: rgba(var(--accent-rgb), 0.35);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(var(--accent-rgb), 0.35);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 60px rgba(var(--accent-rgb), 0.10);
}

.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, box-shadow 0.5s ease, fill 0.5s ease, stroke 0.5s ease !important;
}

/* ---- Global Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  scroll-padding-top: 80px;
  text-wrap: pretty;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Prevent media overflow */
img, video, svg, canvas, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Touch-friendly improvements */
button, a, input, select, textarea, .btn, .filter-btn, .service-link, .contact-method, .close-modal {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Headings balance */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* ---- Performance: content-visibility for sections ---- */
section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

#home {
  content-visibility: visible;
  contain-intrinsic-size: none;
}

/* ---- Mouse Glow Effect ---- */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(
    700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(var(--accent-rgb), 0.07),
    transparent 50%
  );
  transition: background 0.12s ease-out;
  will-change: background;
}

/* ---- Particles Canvas ---- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  contain: strict;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  background: rgba(var(--bg-primary-rgb), 0.6);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  contain: layout style paint;
}

.navbar.scrolled {
  background: rgba(var(--bg-primary-rgb), 0.92);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  padding: 0.75rem 5vw;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

#themeToggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.1rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#themeToggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.2);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: rgba(var(--bg-primary-rgb), 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  z-index: 999;
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.mobile-menu nav a {
  font-size: 1.2rem;
  color: var(--text-primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  font-family: var(--font-primary);
  contain: layout style;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.7s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(var(--accent-rgb), 0.55);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.12);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: #0a0a0a;
  font-weight: 600;
}

.btn-white:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Section Headers ---- */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---- Hero Section ---- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 9rem 5vw 5rem;
  gap: 4rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
  will-change: transform;
  contain: layout style;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(var(--accent-rgb), 0.12);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: rgba(var(--accent-light-rgb), 0.08);
  bottom: 5%;
  left: -5%;
  animation-delay: -3s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: rgba(var(--accent-rgb), 0.1);
  top: 40%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
  flex: 1;
  max-width: 640px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.2rem;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.15);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
  max-width: 100%;
  flex-wrap: wrap;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-content h1 .line {
  display: block;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- Hero Videos ---- */
.hero-videos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
  aspect-ratio: 16/9;
  contain: layout style paint;
}

.video-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg, transparent 40%, rgba(var(--accent-rgb), 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.video-card:hover::before {
  opacity: 1;
}

.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0, 0, 0, 0.5);
  border-color: var(--border-hover);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(5, 5, 8, 0.9));
  z-index: 3;
  transition: opacity 0.3s ease;
}

.video-tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  background: rgba(var(--accent-rgb), 0.2);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.video-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.card-1 { animation-delay: 0.5s; }
.card-2 { animation-delay: 0.65s; }
.card-3 { animation-delay: 0.8s; }

/* ---- Services Section ---- */
.services {
  padding: 7rem 5vw;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-xs);
  margin-bottom: 1.5rem;
  color: var(--accent-light);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
  transform: scale(1.05) rotate(-3deg);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: gap 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  font-family: var(--font-primary);
  min-height: 44px;
}

.service-link:hover {
  background: rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent-light);
  gap: 0.75rem;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.2);
  transform: translateX(4px);
}

.service-link svg {
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.service-link:hover svg {
  transform: translateX(3px);
}

/* ---- Portfolio Section ---- */
.portfolio {
  padding: 7rem 5vw;
  position: relative;
  z-index: 2;
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.6rem 1.8rem;
  background: rgba(var(--bg-primary-rgb), 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.15);
  background: rgba(var(--accent-rgb), 0.08);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(var(--accent-rgb), 0.4);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 280px;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
  contain: layout style paint;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.portfolio-card.visible {
  will-change: auto;
}

.portfolio-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.portfolio-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.portfolio-media video,
.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  backface-visibility: hidden;
  will-change: transform;
}

.portfolio-media video {
  background: var(--bg-secondary);
}

.portfolio-card:hover .portfolio-media video,
.portfolio-card:hover .portfolio-media img {
  transform: scale(1.08);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(5, 5, 8, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(var(--accent-rgb), 0.2);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.portfolio-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.portfolio-overlay p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

/* ---- Pricing Section ---- */
.pricing-section {
  padding: 7rem 5vw;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-label.active {
  color: var(--text-primary);
}

.save-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  margin-left: 0.4rem;
}

.toggle-switch {
  width: 52px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  min-height: 44px;
}

.toggle-switch:hover {
  border-color: var(--border-hover);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
}

.toggle-switch.yearly .toggle-thumb {
  transform: translateX(24px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.pricing-card.featured {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), var(--bg-card));
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.1);
  transform: scale(1.03);
}

.pricing-card.featured::before {
  transform: scaleX(1);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.18), 0 24px 50px rgba(0, 0, 0, 0.4);
}

.popular-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 2rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: top;
}

.pricing-price .amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  transition: opacity 0.3s ease;
}

.pricing-price .period {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--accent-light);
}

.pricing-features li.disabled {
  color: var(--text-muted);
}

.pricing-features li.disabled svg {
  color: var(--text-muted);
}

/* ---- Contact Section ---- */
.contact {
  padding: 7rem 5vw;
  position: relative;
  z-index: 2;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info .section-tag {
  margin-bottom: 1rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 44px;
  font-style: normal;
}

.contact-method:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.1);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-xs);
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-method:hover .contact-icon {
  background: rgba(var(--accent-rgb), 0.2);
  transform: scale(1.1);
}

.method-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.method-value {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  word-break: break-word;
}

/* ---- Contact Form ---- */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-success {
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.5s ease forwards;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-success p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group .error-message {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.form-group.error .error-message {
  display: block;
  animation: fadeInUp 0.3s ease forwards;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 5vw 2rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  transition: color 0.3s ease, transform 0.3s ease;
  min-height: 24px;
}

.footer-col a:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-credit {
  font-style: italic;
}

/* ---- Scroll Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
  will-change: transform, opacity;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---- Entrance Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-content .badge { animation-delay: 0.1s; }
.hero-content h1 { animation-delay: 0.2s; }
.hero-content .hero-desc { animation-delay: 0.35s; }
.hero-content .buttons { animation-delay: 0.5s; }
.hero-content .stats { animation-delay: 0.65s; }

.video-card:nth-child(1) { animation: fadeInUp 0.8s ease 0.6s forwards; opacity: 0; }
.video-card:nth-child(2) { animation: fadeInUp 0.8s ease 0.75s forwards; opacity: 0; }
.video-card:nth-child(3) { animation: fadeInUp 0.8s ease 0.9s forwards; opacity: 0; }

/* ============================================
   Modal Styles
   ============================================ */
.custom-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(var(--bg-primary-rgb), 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s ease;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}

.custom-modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(30px);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glow), 0 24px 80px rgba(0,0,0,0.5);
  overscroll-behavior: contain;
}

.custom-modal.active .modal-content {
  transform: scale(1) translateY(0);
}

.close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  min-width: 44px;
  min-height: 44px;
}

.close-modal:hover, .close-modal:focus {
  background: var(--accent);
  color: #fff;
  transform: rotate(90deg);
  border-color: var(--accent);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.modal-item video,
.modal-item img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.dynamic-service-content {
  max-width: 700px;
  padding: 3rem;
}

.modal-feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.modal-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.modal-feature-list li:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  background: var(--bg-card-hover);
}

.service-workflow,
.service-benefits {
  margin-bottom: 2rem;
}

.service-workflow h4,
.service-benefits h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.step-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.benefit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.benefit-tag {
  padding: 0.4rem 1rem;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .portfolio-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .buttons {
    justify-content: center;
  }

  .stats {
    justify-content: center;
  }

  .hero-videos {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .video-card {
    flex: 1;
    min-width: 200px;
  }

  nav { display: none; }
  .nav-actions .btn-sm { display: none; }
  .mobile-menu-btn { display: flex; }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dynamic-service-content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .portfolio-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }
  .navbar {
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: scale(1);
  }
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }

  .footer-links {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal-content {
    padding: 1.5rem;
  }
}

@media (max-width: 500px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .portfolio-grid {
    grid-auto-rows: 240px;
  }
}

/* === LOGO SLOT STYLES === */
#brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.4));
  flex-shrink: 0;
}

#footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.3));
}

/* === TEAM SECTION STYLES === */
.team-section {
  padding: 7rem 5vw;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  contain: layout style paint;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.team-card:hover::before { transform: scaleX(1); }
.team-card:hover::after { opacity: 1; }
.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.team-photo-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  flex-shrink: 0;
}

.team-card:hover .team-photo-wrap {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.3);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.team-card:hover .team-photo { transform: scale(1.1); }

.team-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.team-role {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.team-responsibilities {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 400px;
}

.team-responsibilities li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
}

.team-responsibilities li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Team Reveal Animation */
.team-card[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.team-card[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

.team-card[data-reveal] .team-photo-wrap {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.team-card[data-reveal].visible .team-photo-wrap {
  opacity: 1;
  transform: scale(1);
}

.team-card[data-reveal] .team-name {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.team-card[data-reveal].visible .team-name { opacity: 1; transform: translateY(0); }

.team-card[data-reveal] .team-role {
  opacity: 0;
  transition: opacity 0.5s ease 0.3s;
}

.team-card[data-reveal].visible .team-role { opacity: 1; }

.team-card[data-reveal] .team-bio {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.35s, transform 0.5s ease 0.35s;
}

.team-card[data-reveal].visible .team-bio { opacity: 1; transform: translateY(0); }

.team-card[data-reveal] .team-responsibilities li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.team-card[data-reveal].visible .team-responsibilities li { opacity: 1; transform: translateX(0); }
.team-card[data-reveal].visible .team-responsibilities li:nth-child(1) { transition-delay: 0.4s; }
.team-card[data-reveal].visible .team-responsibilities li:nth-child(2) { transition-delay: 0.45s; }
.team-card[data-reveal].visible .team-responsibilities li:nth-child(3) { transition-delay: 0.5s; }
.team-card[data-reveal].visible .team-responsibilities li:nth-child(4) { transition-delay: 0.55s; }
.team-card[data-reveal].visible .team-responsibilities li:nth-child(5) { transition-delay: 0.6s; }

@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* === BASIC & ADDITIONAL SERVICES STYLES === */
.services-section {
  padding: 7rem 5vw;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.additional-services-section {
  background: var(--bg-secondary);
}

.additional-services-section .service-price-card {
  border-color: rgba(var(--accent-rgb), 0.15);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.03), var(--bg-card));
}

.additional-services-section .service-price-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.08), 0 12px 40px rgba(0,0,0,0.2);
}

.services-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}

.service-price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-price-card:hover::before { transform: scaleX(1); }

.service-price-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 16px 40px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.service-price-card .service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-xs);
  color: var(--accent-light);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.service-price-card:hover .service-icon {
  background: rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
  transform: scale(1.05);
}

.service-price-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.service-price-card h3 .price-suffix {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.service-price-card .service-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}

/* Reveal animation for price cards */
.service-price-card[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.service-price-card[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media queries for services section */
@media (max-width: 640px) {
  .services-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-grid.compact {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   NEW: TERMS & CONDITIONS STYLES
   ============================================ */
.terms-section {
  padding: 7rem 5vw;
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.terms-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.terms-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}

.terms-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.terms-card:hover::before { transform: scaleX(1); }

.terms-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 16px 40px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.terms-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: var(--radius-xs);
  color: var(--accent-light);
  margin-bottom: 1.25rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.terms-card:hover .terms-icon {
  background: rgba(var(--accent-rgb), 0.2);
  transform: scale(1.1);
}

.terms-content h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

/* ============================================
   NEW: WHY CHOOSE CRAZEX STUDIO STYLES
   ============================================ */
.why-choose-section {
  padding: 7rem 5vw;
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.why-choose-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
  contain: layout style paint;
}

.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.why-choose-card:hover::before { transform: scaleX(1); }

.why-choose-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow), 0 20px 50px rgba(0, 0, 0, 0.3);
  background: var(--bg-card-hover);
}

.why-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.9;
}

.why-choose-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.why-choose-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .terms-container {
    grid-template-columns: 1fr;
  }
  .why-choose-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS
   ============================================ */

/* ---- Extra Small Devices (320px - 479px) ---- */
@media (max-width: 479px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .logo-text {
    font-size: 1.05rem;
  }
  
  .hero {
    padding: 6rem 1rem 2rem;
    min-height: auto;
    gap: 2rem;
  }
  
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }
  
  .hero-desc {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  .stats {
    gap: 1rem;
    justify-content: center;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-suffix {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .video-card {
    border-radius: var(--radius-sm);
    min-width: 100%;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
    gap: 1rem;
  }
  
  .portfolio-card.large {
    grid-column: span 1;
    grid-row: span 1;
  }
  
  .portfolio-filters {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.75rem 1.25rem;
  }
  
  .pricing-price .amount {
    font-size: 2.5rem;
  }
  
  .pricing-features li {
    font-size: 0.85rem;
    padding: 0.6rem 0;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .team-card {
    padding: 1.5rem;
  }
  
  .team-photo-wrap {
    width: 120px;
    height: 120px;
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .service-price-card {
    padding: 1.25rem 0.75rem;
  }
  
  .service-price-card .service-price {
    font-size: 1.3rem;
  }
  
  .service-price-card h3 {
    font-size: 0.9rem;
  }
  
  .terms-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .terms-card {
    padding: 1.5rem;
  }
  
  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .why-choose-card {
    padding: 1.5rem;
  }
  
  .why-number {
    font-size: 2.5rem;
  }
  
  .contact-container {
    gap: 2rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .contact-method {
    padding: 0.875rem 1rem;
  }
  
  .method-value {
    font-size: 0.9rem;
    word-break: break-word;
  }
  
  .footer-content {
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-col h4 {
    margin-bottom: 0.75rem;
  }
  
  .modal-content {
    padding: 1.25rem;
    margin: 0.5rem;
    max-height: 95vh;
  }
  
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .dynamic-service-content {
    padding: 1.5rem 1rem;
  }
  
  .workflow-steps {
    gap: 0.5rem;
  }
  
  .workflow-step {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  
  .benefit-tags {
    gap: 0.4rem;
  }
  
  .benefit-tag {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
  
  .modal-feature-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .modal-feature-list li {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .section-header {
    margin-bottom: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  
  section, .services, .portfolio, .pricing-section, .team-section, .services-section, .contact, .terms-section, .why-choose-section {
    padding: 4rem 1rem;
  }
  
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .buttons .btn {
    width: 100%;
  }
  
  .hero-videos {
    gap: 0.75rem;
  }
  
  .video-overlay {
    padding: 1rem;
  }
  
  .video-overlay h4 {
    font-size: 1rem;
  }
  
  .video-tag {
    font-size: 0.65rem;
  }
  
  .badge {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  
  .service-card {
    padding: 1.75rem 1.25rem;
  }
  
  .service-icon {
    width: 48px;
    height: 48px;
  }
  
  .service-card h3 {
    font-size: 1.15rem;
  }
  
  .service-card p {
    font-size: 0.9rem;
  }
  
  .service-link {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
  }
  
  .portfolio-overlay {
    padding: 1.25rem;
  }
  
  .portfolio-overlay h3 {
    font-size: 1.1rem;
  }
  
  .portfolio-overlay p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .pricing-toggle {
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  
  .toggle-label {
    font-size: 0.85rem;
  }
  
  .save-badge {
    font-size: 0.65rem;
  }
  
  .popular-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }
  
  .pricing-header h3 {
    font-size: 1.3rem;
  }
  
  .pricing-header p {
    font-size: 0.85rem;
  }
  
  .pricing-price .currency {
    font-size: 1.2rem;
  }
  
  .pricing-price .period {
    font-size: 0.85rem;
  }
  
  .form-row {
    gap: 0;
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .form-group label {
    font-size: 0.8rem;
  }
  
  .form-success {
    padding: 1.5rem 1rem;
  }
  
  .form-success h3 {
    font-size: 1.2rem;
  }
  
  .success-icon {
    width: 48px;
    height: 48px;
  }
  
  .contact-info h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .contact-info > p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .contact-icon {
    width: 40px;
    height: 40px;
  }
  
  .footer {
    padding: 3rem 1rem 1.5rem;
  }
  
  .footer-brand h3 {
    font-size: 1.2rem;
  }
  
  .footer-bottom {
    padding-top: 1.5rem;
    gap: 0.5rem;
  }
  
  .footer-bottom p {
    font-size: 0.8rem;
  }
  
  .custom-modal {
    padding: 0.5rem;
  }
  
  .close-modal {
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }
  
  .portfolio-modal-content {
    padding: 0;
  }
  
  /* iOS safe area support */
  @supports (padding: max(0px)) {
    .navbar {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    section, .hero, .footer {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}

/* ---- Small Devices (480px - 639px) ---- */
@media (min-width: 480px) and (max-width: 639px) {
  .hero {
    padding: 7rem 1.5rem 3rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  
  .portfolio-card.large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .terms-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    gap: 2.5rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Medium Devices (640px - 767px) ---- */
@media (min-width: 640px) and (max-width: 767px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  
  .portfolio-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .terms-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-card.featured {
    grid-column: span 2;
    transform: scale(1);
  }
  
  .pricing-card.featured:hover {
    transform: translateY(-8px);
  }
}

/* ---- Tablet Devices (768px - 899px) ---- */
@media (min-width: 768px) and (max-width: 899px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-videos {
    max-width: 100%;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .video-card {
    flex: 1;
    min-width: 200px;
  }
  
  nav { display: none; }
  .nav-actions .btn-sm { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .dynamic-service-content {
    padding: 2rem 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .terms-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---- Small Laptops (900px - 1023px) ---- */
@media (min-width: 900px) and (max-width: 1023px) {
  .hero {
    gap: 2rem;
    padding: 8rem 3vw 4rem;
  }
  
  .hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3rem);
  }
  
  .hero-videos {
    max-width: 350px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .terms-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .why-choose-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    gap: 2rem;
    padding: 0 2vw;
  }
}

/* ---- Laptops (1024px - 1279px) ---- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero {
    padding: 9rem 4vw 5rem;
    gap: 3rem;
  }
  
  .hero-content {
    max-width: 550px;
  }
  
  .hero-videos {
    max-width: 380px;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .terms-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-container {
    max-width: 1000px;
  }
}

/* ---- Large Desktops (1280px - 1535px) ---- */
@media (min-width: 1280px) and (max-width: 1535px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .terms-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Extra Large Desktops (1536px+) ---- */
@media (min-width: 1536px) {
  .hero {
    padding: 10rem 8vw 6rem;
    gap: 6rem;
  }
  
  .hero-content {
    max-width: 700px;
  }
  
  .hero-videos {
    max-width: 450px;
  }
  
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .portfolio-card.large {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .services-grid.compact {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .terms-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .why-choose-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-container {
    max-width: 1200px;
  }
  
  section, .services, .portfolio, .pricing-section, .team-section, .services-section, .contact, .terms-section, .why-choose-section {
    padding: 8rem 8vw;
  }
}

/* ---- Landscape Orientation Fixes for Mobile ---- */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 5rem;
  }
  
  .hero-videos {
    flex-direction: row;
    max-width: 100%;
  }
  
  .video-card {
    min-width: 200px;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .mobile-menu {
    top: 60px;
    max-height: 80vh;
    overflow-y: auto;
  }
}

/* ---- High DPI / Retina Display Adjustments ---- */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* ---- Reduced Motion Preferences ---- */
@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;
  }
  
  .shape {
    animation: none !important;
  }
  
  .video-card,
  .service-card,
  .pricing-card,
  .team-card,
  .portfolio-card,
  .terms-card,
  .why-choose-card,
  .service-price-card {
    transform: none !important;
  }
}

/* ---- High Contrast Mode ---- */
@media (prefers-contrast: high) {
  :root {
    --border: rgba(255,255,255,0.25);
    --text-secondary: #e5e7eb;
  }
  body.light {
    --border: rgba(0,0,0,0.25);
    --text-secondary: #374151;
  }
}

/* ---- Print Styles ---- */
@media print {
  .navbar, .footer, .mouse-glow, .custom-cursor, #particles, .scroll-progress, .page-loader, .mobile-menu-btn, .video-card {
    display: none !important;
  }
  
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  section {
    padding: 2rem 1rem !important;
    page-break-inside: avoid;
  }
  
  a {
    text-decoration: underline !important;
    color: #000 !important;
  }
  
  .btn {
    border: 1px solid #000 !important;
    background: none !important;
    color: #000 !important;
  }
}

/* ============================================
   SEO & ACCESSIBILITY UTILITIES
   ============================================ */

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 4px 0;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Visually Hidden but Crawler-Accessible */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Enhanced Focus Indicators */
*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Print Optimization for SEO */
@media print {
  .skip-link, .mouse-glow, .custom-cursor, #particles,
  .scroll-progress, .page-loader, .mobile-menu-btn,
  .video-card { display: none !important; }
  
  body {
    background: #fff !important;
    color: #000 !important;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    opacity: 0.7;
  }
  
  section { page-break-inside: avoid; }
}