/* ================================
   CSS Variables & Design Tokens
   ================================ */
:root {
  /* Colors - Vibrant Palette */
  --color-cyan: #00d9ff;
  --color-pink: #ff1b90;
  --color-orange: #ff6b00;
  --color-yellow: #ffd600;
  --color-purple: #764ba2;
  --color-purple-light: #667eea;
  --color-purple-pink: #f093fb;

  /* Backgrounds */
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-hover: #252525;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;

  /* Spacing - Fluid and responsive */
  --spacing-xs: clamp(0.25rem, 1vw, 0.5rem);
  --spacing-sm: clamp(0.5rem, 2vw, 1rem);
  --spacing-md: clamp(1rem, 3vw, 2rem);
  --spacing-lg: clamp(2rem, 5vw, 4rem);
  --spacing-xl: clamp(3rem, 8vw, 6rem);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(255, 27, 144, 0.3);
}

/* ================================
   Reset & Base Styles
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "SF Pro Display", "SF Pro", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ================================
   Typography
   ================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

/* ================================
   Header & Navigation
   ================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  height: 90px;
  /* Fixed height to constrain layout */
  will-change: transform, background-color, padding;
}

.header.scrolled {
  top: 1rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  max-width: fit-content;
  padding: 0.5rem 2rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed;
  border: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 10000;
  height: auto;
}

/* Animated gradient border */
.header.scrolled::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(90deg,
      #ff1b90,
      #ff6b00,
      white,
      white,
      white,
      #764ba2,
      #ff1b90);
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderRotate 5s linear infinite;
  pointer-events: none;
  animation-delay: 250ms;
}

@keyframes borderRotate {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 300% 50%;
  }
}

.header.scrolled .logo {
  font-size: 1.25rem;
  margin-right: 2rem;
}

.header.scrolled .logo img {
  max-height: 60px !important;
}

.header.scrolled .nav {
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav a {
  font-size: 1rem;
  font-weight: 400;
  position: relative;
  color: #000000;
  display: inline-block;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--color-pink), var(--color-cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease-out;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ================================
   Hero Section
   ================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem;
  z-index: 1;
  transition: filter 0.6s ease, transform 0.6s ease;
}

/* Blur effect when work section is in focus */
.hero.blurred,
.section.blurred {
  filter: blur(8px);
  transform: scale(0.98);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1200px;
}

.hero h1 {
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.3s;
  color: #000000;
  text-shadow: none;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--color-cyan), var(--text-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

  from {
    opacity: 0;
    transform: translateY(30px);
  }
}

/* Hero CTA Button */
.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.3),
    0 2px 10px rgba(255, 27, 144, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.6s;
  cursor: pointer;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4),
    0 4px 15px rgba(255, 27, 144, 0.3);
}

/* CTA Wrapper */
.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.6s;
}

.cta-wrapper .hero-cta {
  margin-top: 0;
  border: none;
  cursor: pointer;
}

/* Hero Contact Icons - Hidden by default */
.hero-contact-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.hero-contact-icons.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: all 0.3s ease;
  pointer-events: all;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-icon.whatsapp {
  background: #25d366;
  color: white;
}

.contact-icon.whatsapp:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
}

.contact-icon.gmail {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.contact-icon.gmail img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-icon.gmail:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
}

/* Scroll to Work Button */
.scroll-to-work-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  position: absolute;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
  animation: floatArrow 2s ease-in-out infinite;
  z-index: 1000;
  pointer-events: auto;
}

.scroll-to-work-btn svg {
  color: #000000;
  transition: transform 0.3s ease;
}

.scroll-to-work-btn:hover {
  transform: translateX(-50%) translateY(4px) scale(1.05);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(0, 217, 255, 0.4);
  box-shadow: 0 6px 24px rgba(0, 217, 255, 0.2),
    0 3px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.scroll-to-work-btn:hover svg {
  transform: translateY(3px);
}

@keyframes floatArrow {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

/* ================================
   Section Styles
   ================================ */
.section {
  padding: var(--spacing-xl) 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  transition: filter 0.6s ease, transform 0.6s ease;
}

/* Keep work section sharp when in focus */
#work {
  filter: none !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Work Section with Vibrant Background */
#work {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  /* White background like landing page */
  margin: 4rem 2rem;
  padding: 3rem 2rem;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
  /* Create stacking context for depth */
}

#work::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top,
      rgba(0, 217, 255, 0.04) 0%,
      transparent 50%),
    radial-gradient(ellipse at bottom right,
      rgba(255, 27, 144, 0.04) 0%,
      transparent 50%),
    radial-gradient(ellipse at bottom left,
      rgba(118, 75, 162, 0.04) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.section-title {
  margin-bottom: var(--spacing-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  position: relative;
  z-index: 1;
  color: #000000;
  /* Dark text on white background */
  background: linear-gradient(135deg,
      var(--color-cyan),
      var(--color-pink),
      var(--color-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Work Section
   ================================ */
.work-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(230, 240, 255, 0.4) 50%,
      rgba(255, 230, 250, 0.4) 100%);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  color: #666666;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.02);
}

.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(100, 150, 255, 0.2) 0%,
      rgba(180, 120, 255, 0.15) 50%,
      rgba(255, 150, 200, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Glass shine effect */
.filter-btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  /* background: linear-gradient(135deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 48%,
      rgba(255, 255, 255, 0.6) 50%,
      rgba(255, 255, 255, 0.4) 52%,
      transparent 100%); */
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.8s ease;
  pointer-events: none;
}

.filter-btn:hover {
  border-color: rgba(100, 200, 255, 0.4);
  color: #4a4a4a;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(200, 230, 255, 0.5) 50%,
      rgba(255, 200, 240, 0.5) 100%);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 24px rgba(100, 150, 255, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

/* Shine effect on hover */
.filter-btn:hover::after {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

.filter-btn:hover::before {
  opacity: 0.6;
}

.filter-btn.active {
  background: linear-gradient(135deg,
      rgba(100, 180, 255, 0.6) 0%,
      rgba(160, 120, 255, 0.5) 50%,
      rgba(255, 120, 200, 0.6) 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
  box-shadow: 0 8px 32px rgba(100, 150, 255, 0.25),
    0 4px 16px rgba(180, 100, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
}

/* Active/Click state - magnify more */
.filter-btn:active {
  transform: scale(1.08);
  transition: transform 0.15s ease;
}

.filter-btn.active::before {
  opacity: 1;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-medium),
    box-shadow var(--transition-medium);
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
  background: #ffffff;
  /* Fallback for performance */
  background: rgba(255, 255, 255, 0.95);
  /* High opacity to skip expensive blur */
  /* backdrop-filter: blur(10px); REMOVED for performance */
  /* -webkit-backdrop-filter: blur(10px); */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  will-change: transform, opacity;
  /* Hint browser to optimize */
  contain: content;
  /* Isolate rendering */
}

/* Animated gradient border */
.work-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: linear-gradient(135deg,
      var(--color-cyan),
      var(--color-pink),
      var(--color-orange),
      var(--color-purple));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-medium);
  animation: gradientRotate 6s ease infinite;
  pointer-events: none;
}

@keyframes gradientRotate {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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

.work-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 217, 255, 0.25),
    0 10px 40px rgba(255, 27, 144, 0.15), 0 0 80px rgba(0, 217, 255, 0.1);
}

.work-card:hover::before {
  opacity: 1;
}

.work-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(0, 217, 255, 0.1),
      rgba(255, 27, 144, 0.1));
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow), filter var(--transition-medium);
}

.work-card:hover .work-card-image img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.work-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 10, 10, 0.95) 0%,
      rgba(0, 217, 255, 0.15) 50%,
      transparent 100%);
  opacity: 0.7;
  transition: opacity var(--transition-medium);
}

.work-card:hover .work-card-overlay {
  opacity: 0.85;
  background: linear-gradient(to top,
      rgba(10, 10, 10, 0.95) 0%,
      rgba(255, 27, 144, 0.2) 50%,
      rgba(0, 217, 255, 0.1) 100%);
}

.work-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  z-index: 2;
  transform: translateY(0);
  transition: transform var(--transition-medium);
}

.work-card:hover .work-card-content {
  transform: translateY(-8px);
}

.work-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.work-card-year,
.work-card-category {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.work-card:hover .work-card-year,
.work-card:hover .work-card-category {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--color-cyan);
  transform: translateX(4px);
}

.work-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff, var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-medium);
}

.work-card:hover .work-card-title {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.work-card-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.work-card:hover .work-card-description {
  color: rgba(255, 255, 255, 0.95);
}

.work-card-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  transition: color var(--transition-fast);
}

.work-card:hover .work-card-description {
  color: rgba(255, 255, 255, 0.95);
}

/* Play button for video cards */
.work-card.has-video .work-card-image::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  opacity: 0.9;
  transition: all var(--transition-medium);
  box-shadow: 0 8px 32px rgba(0, 217, 255, 0.4);
  padding-left: 4px;
}

.work-card.has-video:hover .work-card-image::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 48px rgba(0, 217, 255, 0.6),
    0 0 60px rgba(255, 27, 144, 0.4);
}

/* ================================
   Video Modal
   ================================ */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-medium),
    visibility var(--transition-medium);
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  z-index: 10001;
  transform: scale(0.9);
  transition: transform var(--transition-medium);
  animation: modalSlideIn 0.4s ease forwards;
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.video-modal.active .video-modal-content {
  transform: scale(1);
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.4);
  z-index: 10002;
}

.video-modal-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 32px rgba(255, 27, 144, 0.6);
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 217, 255, 0.3),
    0 10px 40px rgba(255, 27, 144, 0.2);
  border: 2px solid rgba(0, 217, 255, 0.3);
}

.video-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================
   Services Section
   ================================ */
/* Services section with same styling as work section */
#about {
  position: relative;
  overflow: visible;
  background: #ffffff;
  margin: 4rem 2rem;
  padding: 3rem 2rem;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
}

#about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top,
      rgba(0, 217, 255, 0.04) 0%,
      transparent 50%),
    radial-gradient(ellipse at bottom right,
      rgba(255, 27, 144, 0.04) 0%,
      transparent 50%),
    radial-gradient(ellipse at bottom left,
      rgba(118, 75, 162, 0.04) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 15s ease infinite;
}

.services-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  margin-top: var(--spacing-md);
  position: relative;
  z-index: 1;
  overflow-x: auto !important;
  overflow-y: visible;
  padding-top: 1rem;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}


.services-grid::-webkit-scrollbar {
  height: 8px;
}

.services-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-pink));
  border-radius: 4px;
}

.services-grid .service-card {
  flex: 0 0 calc(25% - 1.5rem);
  min-width: 280px;
  scroll-snap-align: start;
}

.service-card {
  flex-shrink: 0;
  width: 260px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-medium);
  border: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-medium);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 217, 255, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 217, 255, 0.2);
}

.service-number {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.35rem;
}

.service-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: linear-gradient(135deg,
      rgba(0, 217, 255, 0.1),
      rgba(255, 27, 144, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #000000;
  line-height: 1.3;
}

.service-card p {
  color: #666666;
  line-height: 1.5;
  font-size: 0.65rem;
}

.service-card p {
  color: #666666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ================================
   Clients Section
   ================================ */
#clients {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  margin: 4rem 2rem;
  padding: 3rem 2rem;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
}

#clients::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top,
      rgba(0, 217, 255, 0.04) 0%,
      transparent 50%),
    radial-gradient(ellipse at bottom right,
      rgba(255, 27, 144, 0.04) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 15s ease infinite;
}

.clients-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
  z-index: 1;
}

.clients-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Pause animation on hover - Removed for static display */
.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

/* Scroll animation removed */

.client-logo {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  transition: all var(--transition-medium);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition-medium);
}

.client-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 217, 255, 0.15);
  border-color: rgba(0, 217, 255, 0.2);
}

.client-logo:hover img {
  filter: grayscale(0%) opacity(1);
}

/* ================================
   Testimonials Section
   ================================ */
#reviews {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  margin: 4rem 2rem;
  padding: 3rem 2rem;
  border-radius: 32px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transform: translateZ(0);
}

#reviews::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top,
      rgba(0, 217, 255, 0.04) 0%,
      transparent 50%),
    radial-gradient(ellipse at bottom right,
      rgba(255, 27, 144, 0.04) 0%,
      transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: gradientShift 15s ease infinite;
}

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

.testimonial {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  display: none;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.testimonial.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

.testimonial-stars {
  color: var(--color-orange);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 4px rgba(255, 107, 0, 0.3));
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #444444;
  font-weight: 400;
}

.testimonial-author {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #000000;
}

.testimonial-company {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.testimonial-dot:hover {
  background: rgba(0, 217, 255, 0.4);
  transform: scale(1.2);
}

.testimonial-dot.active {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(0, 217, 255, 0.4);
  border-color: transparent;
}

/* ================================
   Contact Section
   ================================ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info h3 {
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.contact-item:hover {
  background: var(--bg-card-hover);
}

.contact-item p {
  margin: 0;
  line-height: 1.4;
}

.contact-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-cyan);
  background: var(--bg-card-hover);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
}

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

/* ================================
   Footer
   ================================ */
.footer {
  padding: var(--spacing-md);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.footer p {
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-cyan);
  transform: translateY(-4px);
}

/* ================================
   Mobile Floating Work Button
   ================================ */
.mobile-work-button {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 70px;
  height: 70px;
  padding: 0;
  background: linear-gradient(180deg, #8B7FFF 0%, #5B9FFF 100%);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(91, 159, 255, 0.4), 0 6px 20px rgba(139, 127, 255, 0.3);
  transition: all var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  animation: floatButton 3s ease-in-out infinite;
}

.mobile-work-button svg {
  width: 28px;
  height: 28px;
  animation: bounceArrow 2s ease-in-out infinite;
}

.mobile-work-button span {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: -2px;
}

.mobile-work-button:hover {
  transform: translateX(-50%) translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(91, 159, 255, 0.5), 0 8px 24px rgba(139, 127, 255, 0.4);
}

.mobile-work-button:active {
  transform: translateX(-50%) translateY(-2px) scale(0.98);
}

@keyframes floatButton {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes bounceArrow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(4px);
  }
}

/* ================================
   Responsive Design - Mobile First
   ================================ */

/* Base styles above are for mobile-first (320px+) */

/* Small Mobile Devices (320px - 480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
    /* Slightly smaller base font */
  }

  .header {
    padding: 0.75rem 1rem;
    height: 70px;
  }

  .header .logo img {
    max-height: 50px !important;
  }

  .nav {
    gap: 0.75rem;
  }

  .nav a {
    font-size: 0.85rem;
  }

  .header.scrolled {
    top: 0.5rem;
    padding: 0.5rem 1.5rem;
    max-width: 90%;
  }

  .hero {
    padding: 1rem;
    min-height: 90vh;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .scroll-to-work-btn {
    bottom: 6rem;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
  }

  .contact-icon svg,
  .contact-icon img {
    width: 20px;
    height: 20px;
  }

  /* Work Section */
  #work {
    margin: 1rem 1rem;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .work-filters {
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .work-filters::-webkit-scrollbar {
    height: 4px;
  }

  .work-filters::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
  }

  .work-filters::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-cyan), var(--color-pink));
    border-radius: 2px;
  }

  .filter-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .work-card-content {
    padding: 1.25rem;
  }

  .work-card-title {
    font-size: 0.75rem;
  }

  .work-card-description {
    font-size: 0.85rem;
  }

  /* Smaller play buttons on mobile */
  .work-card.has-video .work-card-image::after {
    width: 40px;
    height: 40px;
    font-size: 16px;
    padding-left: 3px;
  }

  /* Services Section */
  #about {
    margin: 1rem 1rem;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .services-grid {
    gap: 1rem;
    padding-bottom: 1.5rem;
  }

  .service-card {
    min-width: 240px;
    width: 240px;
    padding: 1rem;
  }

  .service-number {
    font-size: 2rem;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }

  /* Clients Section */
  #clients {
    margin: 1rem 1rem;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .client-logo {
    width: 100px;
    height: 100px;
    padding: 1.25rem;
  }

  /* Testimonials */
  #reviews {
    margin: 1rem 1rem;
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  /* Video Modal - Vertical orientation for mobile */
  .video-player-wrapper {
    padding-bottom: 177.78%;
    /* 9:16 aspect ratio for vertical videos */
    max-width: 56.25vh;
    /* Match 9:16 ratio to viewport height */
    width: 100%;
    margin: 0 auto;
  }

  .video-modal-content {
    width: auto;
    max-width: 95vw;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .testimonial {
    padding: 1.5rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  /* Contact Section */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 1.5rem 1rem;
  }

  /* Mobile Work Button */
  .mobile-work-button {
    display: flex;
    bottom: 30px;
    width: 60px;
    height: 60px;
  }

  .mobile-work-button svg {
    width: 24px;
    height: 24px;
  }

  /* Video Modal */
  .video-modal-content {
    width: 95%;
  }

  .video-modal-close {
    top: -40px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Vertical video player for mobile */
  .video-player-wrapper {
    padding-bottom: 0 !important;
    /* Remove fixed aspect ratio */
    max-width: 360px !important;
    width: 90vw !important;
    height: 75vh !important;
    /* Use viewport height instead */
    max-height: 640px !important;
    margin: 0 auto !important;
    position: relative !important;
  }
}

/* Mobile Large / Phablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header {
    padding: 0.75rem 1.5rem;
  }

  .header .logo img {
    max-height: 60px !important;
  }

  .nav {
    gap: 1.25rem;
  }

  .nav a {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  #work,
  #about,
  #clients,
  #reviews {
    margin: 3rem 1.5rem;
    padding: 2.5rem 1.5rem;
  }

  .work-filters {
    margin-bottom: 2rem;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services-grid .service-card {
    min-width: 260px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mobile-work-button {
    display: flex;
  }
}

/* Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .header {
    padding: 0.75rem 2rem;
  }

  .nav {
    gap: 2rem;
  }

  .hero {
    padding: 2rem;
  }

  #work,
  #about,
  #clients,
  #reviews {
    margin: 3rem 2rem;
    padding: 3rem 2rem;
  }

  .work-filters {
    margin-bottom: 2.5rem;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .services-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .services-grid .service-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: 280px;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .section {
    padding: 4rem 2rem;
  }
}

/* Laptops (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
  html {
    font-size: 16px;
  }

  .header {
    padding: 0.5rem 2.5rem;
  }

  #work,
  #about,
  #clients,
  #reviews {
    margin: 4rem 2.5rem;
    padding: 3rem 2.5rem;
  }

  .work-filters {
    margin-bottom: 3rem;
  }

  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
  }

  .services-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
  }

  .services-grid::-webkit-scrollbar {
    height: 6px;
  }

  .services-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
  }

  .services-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-cyan), var(--color-pink));
    border-radius: 3px;
  }

  .services-grid .service-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 280px;
    width: 280px;
  }

  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .section {
    padding: 5rem 2.5rem;
  }
}

/* Large Desktops (1441px+) */
@media (min-width: 1441px) {
  html {
    font-size: 18px;
  }

  .header {
    padding: 0.5rem 3rem;
  }

  #work,
  #about,
  #clients,
  #reviews {
    margin: 4rem auto;
    padding: 4rem 3rem;
    max-width: 1600px;
  }

  .work-filters {
    margin-bottom: 3.5rem;
  }

  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
  }

  .services-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: visible;
    gap: 1.75rem;
  }

  .services-grid .service-card {
    flex: 0 0 calc(16.666% - 1.5rem);
    min-width: 300px;
    max-width: 300px;
    width: auto;
  }

  .contact-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
  }

  .section {
    padding: 6rem 3rem;
    max-width: 1600px;
  }

  .hero-content {
    max-width: 1400px;
  }
}

/* Landscape orientation fixes for mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 3rem 2rem;
  }

  .mobile-work-button {
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

  /* Increase tap target sizes for touch devices */
  .nav a {
    padding: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .filter-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .contact-icon {
    min-width: 48px;
    min-height: 48px;
  }

  /* Remove hover effects on touch devices */
  .work-card:hover {
    transform: none;
  }

  .service-card:hover {
    transform: none;
  }

  /* Make cards tappable with active state instead */
  .work-card:active {
    transform: scale(0.98);
  }

  .service-card:active {
    transform: scale(0.98);
  }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

  /* Ensure crisp rendering on retina displays */
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* ================================
   Utility Classes
   ================================ */
.gradient-text {
  background: linear-gradient(135deg, var(--color-cyan), var(--color-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden {
  display: none !important;
}