/* ========================================
   KALBY PAINT SERVICES - COMPLETE STYLESHEET
   Premium Dark Theme with Golden Accents
   ======================================== */

/* CSS Variables */
:root {
  --primary: #3d5a80;
  --primary-light: #4a6fa5;
  --primary-dark: #2d4a6e;
  --accent: #c9a861;
  --accent-light: #d4b87a;
  --foreground: #1a1f36;
  --foreground-light: #2a3050;
  --background: #f8f9fc;
  --card: #ffffff;
  --border: #e2e8f0;
  --muted: #64748b;
  --text-light: rgba(255, 255, 255, 0.85);
  --text-lighter: rgba(255, 255, 255, 0.65);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  will-change: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* ========================================
   SERVICE IMAGES - Optimized Loading
   ======================================== */

.service-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fc 0%, #e2e8f0 100%);
}

.service-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.3) 50%, 
    rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
  z-index: 1;
}

.service-image img {
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.service-image img:not([data-loaded="true"]) {
  opacity: 0.7;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ========================================
   SCROLL ANIMATIONS - Premium & Subtle
   ======================================== */

/* Base animation states */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

/* Enhanced heading animation for services section */
.services-section .section-header {
  overflow: hidden;
}

.services-section .section-label {
  opacity: 0;
  transform: translateY(30px) rotateX(-10deg);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.services-section .section-title {
  opacity: 0;
  transform: translateY(40px) rotateX(-15deg) scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.1s,
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.services-section .section-description {
  opacity: 0;
  transform: translateY(30px) translateX(-20px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s,
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.services-section .section-label.animate-in {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.services-section .section-title.animate-in {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) scale(1);
}

.services-section .section-description.animate-in {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Section CTA enhanced animation */
.services-section .section-cta {
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.7s,
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.7s;
}

.services-section .section-cta.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Section container animation */
.scroll-animate-section {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

/* Heading animation */
.scroll-animate-heading {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

/* Image animation with scale */
.scroll-animate-image {
  opacity: 0;
  transform: translateY(20px) scale(1.05);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

.scroll-animate-image.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered animations for gallery items */
.scroll-animate-stagger {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

/* Stagger delays */
.scroll-animate-stagger:nth-child(1) { transition-delay: 0ms; }
.scroll-animate-stagger:nth-child(2) { transition-delay: 100ms; }
.scroll-animate-stagger:nth-child(3) { transition-delay: 200ms; }
.scroll-animate-stagger:nth-child(4) { transition-delay: 300ms; }
.scroll-animate-stagger:nth-child(5) { transition-delay: 400ms; }
.scroll-animate-stagger:nth-child(6) { transition-delay: 500ms; }
.scroll-animate-stagger:nth-child(7) { transition-delay: 600ms; }
.scroll-animate-stagger:nth-child(8) { transition-delay: 700ms; }

/* Service cards - Synchronized Animation (All Together) */
.scroll-animate-service {
  opacity: 0;
  transform: translateY(50px) scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), 
              transform 0.9s cubic-bezier(0.23, 1, 0.32, 1),
              filter 0.9s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: opacity, transform, filter;
  filter: blur(3px);
  transition-delay: 0ms !important; /* All animate together */
}

.scroll-animate-service.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}

/* Remove individual delays - all animate together */
.scroll-animate-service:nth-child(1) { 
  transform-origin: center;
}
.scroll-animate-service:nth-child(2) { 
  transform-origin: center;
}
.scroll-animate-service:nth-child(3) { 
  transform-origin: center;
}
.scroll-animate-service:nth-child(4) { 
  transform-origin: center;
}
.scroll-animate-service:nth-child(5) { 
  transform-origin: center;
}
.scroll-animate-service:nth-child(6) { 
  transform-origin: center;
}

/* Enhanced hover effect for service cards */
.service-card {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Service image synchronized animation */
.scroll-animate-service .service-image {
  overflow: hidden;
  position: relative;
}

.scroll-animate-service .service-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(201, 168, 97, 0.3) 50%, 
    transparent 100%);
  transition: left 1s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
  z-index: 3;
}

.scroll-animate-service.animate-in .service-image::after {
  left: 100%;
}

/* Service content synchronized animation */
.scroll-animate-service .service-content {
  transform: translateX(-30px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.3s,
              opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

.scroll-animate-service.animate-in .service-content {
  transform: translateX(0);
  opacity: 1;
}

/* Service arrow synchronized animation */
.scroll-animate-service .service-arrow {
  transform: translateX(30px) scale(0.7);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.4s,
              opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.4s;
}

.scroll-animate-service.animate-in .service-arrow {
  transform: translateX(0) scale(1);
  opacity: 1;
}

/* Feature items stagger */
.scroll-animate-feature {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

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

.scroll-animate-feature:nth-child(1) { transition-delay: 0ms; }
.scroll-animate-feature:nth-child(2) { transition-delay: 50ms; }
.scroll-animate-feature:nth-child(3) { transition-delay: 100ms; }
.scroll-animate-feature:nth-child(4) { transition-delay: 150ms; }
.scroll-animate-feature:nth-child(5) { transition-delay: 200ms; }
.scroll-animate-feature:nth-child(6) { transition-delay: 250ms; }

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .scroll-animate,
  .scroll-animate-section,
  .scroll-animate-heading,
  .scroll-animate-image,
  .scroll-animate-stagger,
  .scroll-animate-service,
  .scroll-animate-feature {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 3rem;
  }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: var(--transition);
  white-space: nowrap;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  min-height: 44px;
  min-width: 44px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(61, 90, 128, 0.3);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--primary-light);
  color: #ffffff;
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 6px 20px rgba(61, 90, 128, 0.4);
}

.btn-primary:active {
  transform: translateY(0) translateZ(0);
}

.btn-primary:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--foreground);
  color: white;
  border-color: var(--foreground);
  transform: translateY(-1px) translateZ(0);
}

.btn-outline:active {
  transform: translateY(0) translateZ(0);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ========================================
   NAVBAR
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.25s var(--ease-out), backdrop-filter 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
  transform: translateZ(0);
  will-change: background-color, backdrop-filter;
  backface-visibility: hidden;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--border);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .navbar-container {
    padding: 0 3rem;
  }
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

@media (min-width: 1024px) {
  .navbar-content {
    height: 6rem;
  }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    0 0 12px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  animation: logoFloat 6s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transform: translateZ(0);
  will-change: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.navbar:not(.scrolled) .logo-title {
  color: white;
}

.logo-subtitle {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}

.navbar:not(.scrolled) .logo-subtitle {
  color: var(--text-lighter);
}

/* Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  position: relative;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease-out);
  border-radius: 9999px;
  transform: translateZ(0);
  touch-action: manipulation;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.navbar:not(.scrolled) .nav-link {
  color: var(--text-light);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
  color: white;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  will-change: transform;
}

.navbar:not(.scrolled) .nav-link.active::after {
  background: white;
}

/* Nav CTA */
.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: block;
  }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 9999px;
  color: var(--foreground);
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  transform: translateZ(0);
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
}

.navbar:not(.scrolled) .mobile-menu-btn {
  color: white;
}

.mobile-menu-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.navbar:not(.scrolled) .mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn .close-icon {
  display: none;
}

.mobile-menu-btn.active .menu-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
  transform: translateZ(0);
  will-change: max-height;
}

.mobile-nav.open {
  display: block;
  max-height: 400px;
  padding-bottom: 1.5rem;
}

.mobile-nav-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.navbar:not(.scrolled) .mobile-nav-content {
  background: rgba(26, 31, 54, 0.95);
  border-color: rgba(255, 255, 255, 0.2);
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--radius);
  transition: var(--transition);
}

.navbar:not(.scrolled) .mobile-nav-link {
  color: var(--text-light);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(61, 90, 128, 0.1);
  color: var(--primary);
}

.navbar:not(.scrolled) .mobile-nav-link:hover,
.navbar:not(.scrolled) .mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.mobile-nav-cta {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
}

.navbar:not(.scrolled) .mobile-nav-cta {
  border-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 31, 54, 0.9) 0%, rgba(61, 90, 128, 0.8) 100%),
              url("https://images.unsplash.com/photo-1562259949-e8e7689d7828?w=1920&h=1080&fit=crop") center / cover no-repeat;
  transform: scale(1.05) translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(26, 31, 54, 0.8), rgba(26, 31, 54, 0.7), rgba(26, 31, 54, 0.9));
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 31, 54, 0.5), transparent);
}

.hero-blur-1 {
  position: absolute;
  top: 25%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background: rgba(61, 90, 128, 0.2);
  border-radius: 50%;
  filter: blur(60px);
  animation: pulse 4s ease-in-out infinite;
  transform: translateZ(0);
  will-change: opacity, transform;
  backface-visibility: hidden;
  pointer-events: none;
}

.hero-blur-2 {
  position: absolute;
  bottom: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(201, 168, 97, 0.1);
  border-radius: 50%;
  filter: blur(60px);
  transform: translateZ(0);
  will-change: auto;
  backface-visibility: hidden;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .hero-content {
    padding: 8rem 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 8rem 3rem;
  }
}

.hero-layout {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 769px) {
  .hero-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-text {
  max-width: 56rem;
  width: 100%;
}

@media (max-width: 639px) {
  .hero-text {
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .hero-text {
    max-width: 100%;
  }
}

.hero-label {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-title span {
  color: rgba(255, 255, 255, 0.85);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 42rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  animation: bounce 2s infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* ========================================
   PAGE HERO (Inner Pages)
   ======================================== */

.page-hero {
  position: relative;
  padding: 8rem 0 5rem;
  background: var(--foreground);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .page-hero {
    padding: 10rem 0 8rem;
  }
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

.page-hero-blur-1 {
  position: absolute;
  top: 25%;
  right: 25%;
  width: 16rem;
  height: 16rem;
  background: rgba(61, 90, 128, 0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.page-hero-blur-2 {
  position: absolute;
  bottom: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: rgba(201, 168, 97, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.page-hero-content {
  position: relative;
  max-width: 56rem;
}

.page-hero-title {
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.page-hero-title span {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero-description {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 42rem;
  line-height: 1.6;
}

/* ========================================
   STATS SECTION
   ======================================== */

.stats-section {
  position: relative;
  padding: 4rem 0;
  background: var(--primary);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .stats-section {
    padding: 5rem 0;
  }
}

.stats-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

.stat-item {
  text-align: center;
}

.stat-with-icon .stat-icon-box {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.stat-with-icon .stat-icon-box svg {
  color: white;
}

.stat-value {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

/* ========================================
   SECTIONS COMMON
   ======================================== */

.section-header {
  max-width: 48rem;
  margin-bottom: 4rem;
}

.section-label {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-description {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ========================================
   SERVICES SECTION (Home)
   ======================================== */

.services-section {
  padding: 3rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .services-section {
    padding: 4rem 0;
  }
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    row-gap: 2rem;
  }
}

.service-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  display: block;
  text-decoration: none;
  color: inherit;
}

a.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.service-card:hover {
  text-decoration: none;
  color: inherit;
}

.service-card {
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.service-card:hover {
  border-color: rgba(61, 90, 128, 0.3);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-8px) translateZ(0);
}

.service-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
  transform: translateZ(0) scale(1);
  will-change: transform;
  backface-visibility: hidden;
}

.service-card:hover .service-image img {
  transform: scale(1.08) translateZ(0);
}

.service-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 54, 0.8), rgba(26, 31, 54, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease-out);
  transform: translateZ(0);
  will-change: opacity;
  pointer-events: none;
}

.service-card:hover .service-image-overlay {
  opacity: 1;
}

.service-content {
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .service-content {
    padding: 2rem;
  }
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: rgba(61, 90, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  transform: translateZ(0);
  will-change: transform, background-color;
}

.service-icon svg {
  color: var(--primary);
  transition: color 0.2s var(--ease-out);
  transform: translateZ(0);
}

.service-card:hover .service-icon {
  background: var(--primary);
  transform: scale(1.08) translateZ(0);
}

.service-card:hover .service-icon svg {
  color: white;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.service-description {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  min-height: 2.5rem;
}

.service-arrow {
  display: none;
}

.service-arrow svg {
  display: none;
}

.service-card:hover .service-arrow {
  display: none;
}

/* ========================================
   WHY CHOOSE US SECTION
   ======================================== */

.why-section {
  padding: 3rem 0;
  background: var(--background);
  background-color: #f1f5f9;
  margin-top: -1rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .why-section {
    padding: 4rem 0;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

.why-content {
  order: 2;
}

@media (min-width: 1024px) {
  .why-content {
    order: 1;
  }
}

.why-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .why-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.why-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.why-feature {
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.why-feature:hover {
  border-color: rgba(61, 90, 128, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) translateZ(0);
}

.why-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(61, 90, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-icon svg {
  color: var(--primary);
}

.why-feature span {
  font-weight: 500;
  color: var(--foreground);
}

.why-image-container {
  position: relative;
  order: 1;
}

@media (min-width: 1024px) {
  .why-image-container {
    order: 2;
  }
}

.why-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.why-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .why-image img {
    height: 600px;
  }
}

.why-floating-card {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-2xl);
  max-width: 16rem;
  overflow: hidden;
  z-index: 10;
}

@media (min-width: 1024px) {
  .why-floating-card {
    left: -3rem;
  }
}

.why-floating-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.why-floating-label {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  position: relative;
  padding: 5rem 0;
  background: var(--foreground);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cta-section {
    padding: 8rem 0;
  }
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
}

.cta-blur-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(61, 90, 128, 0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.cta-blur-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(201, 168, 97, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.cta-content {
  position: relative;
  text-align: center;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ========================================
   ABOUT PAGE - STORY SECTION
   ======================================== */

.about-story {
  padding: 5rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .about-story {
    padding: 8rem 0;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

.story-image-container {
  position: relative;
}

.story-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.story-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .story-image img {
    height: 600px;
  }
}

.story-image-decoration {
  position: absolute;
  z-index: -1;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 100%;
  height: 100%;
  background: rgba(61, 90, 128, 0.1);
  border-radius: var(--radius-lg);
}



.story-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.story-text p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ========================================
   VALUES SECTION
   ======================================== */

.values-section {
  padding: 5rem 0;
  background-color: #f1f5f9;
}

@media (min-width: 1024px) {
  .values-section {
    padding: 8rem 0;
  }
}

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

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.value-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition-slow);
  display: flex;
  gap: 1.25rem;
}

.value-card {
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.value-card:hover {
  border-color: rgba(61, 90, 128, 0.3);
  box-shadow: var(--shadow-2xl);
  transform: translateY(-4px) translateZ(0);
}

.value-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: rgba(61, 90, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
  transform: translateZ(0);
  will-change: transform, background-color;
}

.value-icon svg {
  color: var(--primary);
  transition: color 0.2s var(--ease-out);
  transform: translateZ(0);
}

.value-card:hover .value-icon {
  background: var(--primary);
  transform: scale(1.08) translateZ(0);
}

.value-card:hover .value-icon svg {
  color: white;
}

.value-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
}

.value-content p {
  color: var(--muted);
  line-height: 1.6;
}

/* ========================================
   ABOUT US SECTION (Home)
   ======================================== */

.about-section {
  padding: 3rem 0;
  background: var(--background);
  border-top: 1px solid var(--border);
  margin-top: -1rem;
}

@media (min-width: 1024px) {
  .about-section {
    padding: 4rem 0;
  }
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

.about-image-container {
  order: 2;
}

@media (min-width: 1024px) {
  .about-image-container {
    order: 2;
  }
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .about-image img {
    height: 500px;
  }
}

.about-content {
  order: 1;
}

@media (min-width: 1024px) {
  .about-content {
    order: 1;
  }
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about-text p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ========================================
   SERVICES DETAIL PAGE
   ======================================== */

.services-detail {
  padding: 5rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .services-detail {
    padding: 8rem 0;
  }
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

@media (min-width: 1024px) {
  .services-list {
    gap: 8rem;
  }
}

.service-detail-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  scroll-margin-top: 6.5rem;
}

@media (min-width: 1024px) {
  .service-detail-item {
    scroll-margin-top: 8rem;
  }
}

@media (min-width: 1024px) {
  .service-detail-item {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

@media (min-width: 1024px) {
  .service-detail-item.reverse {
    direction: rtl;
  }

  .service-detail-item.reverse > * {
    direction: ltr;
  }
}

.service-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2xl);
}

.service-detail-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
  transform: translateZ(0) scale(1);
  will-change: transform;
  backface-visibility: hidden;
}

@media (min-width: 1024px) {
  .service-detail-image img {
    height: 500px;
  }
}

.service-detail-image:hover img {
  transform: scale(1.03) translateZ(0);
}

.service-detail-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: rgba(61, 90, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-detail-icon svg {
  color: var(--primary);
}

.service-detail-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.service-detail-content p {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.check-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(61, 90, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  color: var(--primary);
}

.service-features span {
  color: var(--foreground);
}

/* ========================================
   GALLERY PAGE
   ======================================== */

.gallery-section {
  padding: 5rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .gallery-section {
    padding: 8rem 0;
  }
}

/* ========================================
   OUR WORK SECTION (Home Page)
   ======================================== */

.our-work-section {
  padding: 3rem 0;
  background: var(--background);
  margin-top: -1rem;
}

@media (min-width: 1024px) {
  .our-work-section {
    padding: 4rem 0;
  }
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--background);
  border: 1px solid var(--border);
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
  transform: translateZ(0);
  touch-action: manipulation;
  min-height: 44px;
  will-change: transform;
}

.filter-btn:hover {
  color: var(--foreground);
  background: rgba(241, 245, 249, 1);
  transform: translateY(-1px) translateZ(0);
}

.filter-btn:active {
  transform: translateY(0) translateZ(0);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(61, 90, 128, 0.25);
}

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

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item {
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.gallery-item img {
  width: 100%;
  height: 350px;
  display: block;
  transition: transform 0.3s var(--ease-out);
  transform: translateZ(0) scale(1);
  will-change: transform;
  backface-visibility: hidden;
  object-fit: cover;
}

.gallery-item:hover img {
  transform: scale(1.03) translateZ(0);
}

/* Responsive Gallery Images */
@media (max-width: 768px) {
  .gallery-item img {
    height: 200px;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .gallery-item img {
    height: 280px;
  }
}

/* ========================================
   GALLERY OVERLAY & LIGHTBOX
   ======================================== */

.gallery-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gallery-item:hover .gallery-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gallery-zoom {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.lightbox img:not([src]),
.lightbox img[src=""] {
  display: none;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
  padding: 5rem 0;
  background: var(--background);
}

@media (min-width: 1024px) {
  .contact-section {
    padding: 8rem 0;
  }
}

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

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

.contact-form-container {
  order: 2;
}

@media (min-width: 1024px) {
  .contact-form-container {
    order: 1;
  }
}

.contact-form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 1024px) {
  .contact-form-card {
    padding: 3rem;
  }
}

.contact-form-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.contact-form-card > p {
  color: var(--muted);
  margin-bottom: 2rem;
}

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

.contact-form-card .contact-form[style*="display: none"] {
  display: none !important;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--foreground);
  background: var(--background);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.1);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.active {
  display: block;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #22c55e;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-info-container {
  order: 1;
}

@media (min-width: 1024px) {
  .contact-info-container {
    order: 2;
  }
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.contact-card {
  transform: translateZ(0);
  will-change: transform, box-shadow;
  backface-visibility: hidden;
}

.contact-card:hover {
  border-color: rgba(61, 90, 128, 0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px) translateZ(0);
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: rgba(61, 90, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  color: var(--primary);
}

.contact-card-content {
  flex: 1;
}

.contact-card-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.contact-card-content p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

.contact-card-arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(61, 90, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transition: var(--transition);
}

.contact-card:hover .contact-card-arrow {
  opacity: 1;
  background: var(--primary);
}

.contact-card-arrow svg {
  color: var(--primary);
}

.contact-card:hover .contact-card-arrow svg {
  color: white;
}


/* ========================================
   FOOTER
   ======================================== */

.footer {
  position: relative;
  background: var(--foreground);
  padding: 4rem 0 2rem;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .footer {
    padding: 5rem 0 3rem;
  }
}

.footer-blur-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(61, 90, 128, 0.2);
  border-radius: 50%;
  filter: blur(60px);
}

.footer-blur-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(201, 168, 97, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .footer-brand {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .footer-brand {
    grid-column: span 1;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-logo-icon {
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.18),
    0 0 12px rgba(255, 255, 255, 0.18);
  transition: var(--transition);
  animation: logoFloat 6s ease-in-out infinite;
}

.footer-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Logo hover refinement */
.logo:hover .logo-icon,
.footer-logo:hover .footer-logo-icon {
  transform: translateY(-2px) scale(1.02) translateZ(0);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(255, 255, 255, 0.3);
}

/* Gentle floating animation for logo */
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1) translateZ(0);
  }
  50% {
    transform: translateY(-3px) scale(1.02) translateZ(0);
  }
}

.footer-logo-text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
  margin: 0;
}

.footer-logo-text p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  font-size: 0.875rem;
}

.footer-links h4,
.footer-contact h4,
.footer-nav h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a,
.footer-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-nav a:hover {
  color: white;
  padding-left: 0.25rem;
}

.bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact-item:hover {
  color: white;
}

.footer-contact-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-icon svg {
  color: white;
}

.footer-contact-item span {
  line-height: 1.5;
}

.footer-bottom {
  position: relative;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0.5rem 0;
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */

.whatsapp-btn {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  transform: translateZ(0);
  will-change: transform;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  backface-visibility: hidden;
}

.whatsapp-btn:hover {
  transform: scale(1.08) translateZ(0);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn:active {
  transform: scale(0.95) translateZ(0);
}

@media (min-width: 1024px) {
  .whatsapp-btn {
    bottom: 2rem;
    right: 2rem;
  }
}

.mobile-call-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(61, 90, 128, 0.4);
  z-index: 999;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  transform: translateZ(0);
  will-change: transform;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 44px;
  backface-visibility: hidden;
}

.mobile-call-btn:hover {
  transform: scale(1.08) translateZ(0);
  box-shadow: 0 6px 16px rgba(61, 90, 128, 0.5);
}

.mobile-call-btn:active {
  transform: scale(0.95) translateZ(0);
}

@media (min-width: 1024px) {
  .mobile-call-btn {
    display: none;
  }
}

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

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

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px) translateZ(0);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  will-change: opacity, transform;
  backface-visibility: hidden;
}

.animate-fade-up.animated {
  opacity: 1;
  transform: translateY(0) translateZ(0);
  will-change: auto;
}

.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1) translateZ(0);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.03) translateZ(0);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0) translateZ(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px) translateZ(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateZ(0);
  }
  to {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

/* ========================================
   HERO CONTACT FORM
   ======================================== */

.hero-form-container {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 769px) {
  .hero-form-container {
    max-width: 28rem;
    margin-left: auto;
  }
}

.hero-contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
  .hero-contact-form {
    padding: 2.5rem;
  }
}

.hero-form-header {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .hero-form-header {
    font-size: 1.75rem;
  }
}

.hero-form-subtext {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.hero-form-input,
.hero-form-select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: white;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.hero-form-input::placeholder {
  color: transparent;
}

.hero-form-input:focus,
.hero-form-select:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 3px rgba(61, 90, 128, 0.2);
}

.hero-form-input:not(:placeholder-shown) + .hero-form-label,
.hero-form-input:focus + .hero-form-label {
  transform: translateY(-2rem) scale(0.875);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(26, 31, 54, 0.9);
  padding: 0 0.5rem;
  left: 0.75rem;
}

.hero-form-label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
  transition: var(--transition);
  transform-origin: left top;
}

.hero-form-select {
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
}

.hero-form-select option {
  background: var(--foreground);
  color: white;
  padding: 0.5rem;
}

.hero-form-select:invalid {
  color: rgba(255, 255, 255, 0.5);
}

.hero-form-select:valid {
  color: white;
}

.hero-form-submit {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.hero-form-trust {
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-block;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  
  .hero-text {
    order: 1;
  }
  
  .hero-form-container {
    order: 2;
  }
}

/* ========================================
   MINIMAL PAGE LOADER: DOT ANIMATION
   ======================================== */

/* Loader Container - Full Screen, Centered */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s var(--ease-out), visibility 0.3s var(--ease-out);
  transform: translateZ(0);
  will-change: opacity;
  backface-visibility: hidden;
}

/* Hide loader when page is loaded */
.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Dots Container - Horizontal Layout */
.loader-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Individual Dot - Small, Circular */
.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: dotScale 1.4s ease-in-out infinite;
  transform: translateZ(0);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Dot Colors - Soft Professional Colors */
.loader-dot:nth-child(1) {
  background: rgba(61, 90, 128, 0.7); /* Primary blue - soft */
  animation-delay: 0s;
}

.loader-dot:nth-child(2) {
  background: rgba(74, 111, 165, 0.7); /* Light blue */
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  background: rgba(201, 168, 97, 0.7); /* Accent gold - soft */
  animation-delay: 0.4s;
}

.loader-dot:nth-child(4) {
  background: rgba(100, 116, 139, 0.7); /* Muted slate */
  animation-delay: 0.6s;
}

.loader-dot:nth-child(5) {
  background: rgba(61, 90, 128, 0.7); /* Primary blue - soft */
  animation-delay: 0.8s;
}

/* Dot Animation - Scaling & Fading */
@keyframes dotScale {
  0%, 80%, 100% {
    transform: scale(0.8) translateZ(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2) translateZ(0);
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 640px) {
  .loader-dot {
    width: 6px;
    height: 6px;
  }

  .loader-dots {
    gap: 0.4rem;
  }
}

/* Mobile Performance Optimizations */
@media (max-width: 768px) {
  /* Reduce heavy animations on mobile */
  .hero-blur-1,
  .hero-blur-2,
  .cta-blur-1,
  .cta-blur-2,
  .footer-blur-1,
  .footer-blur-2,
  .page-hero-blur-1,
  .page-hero-blur-2 {
    display: none;
  }
  
  /* Reduce transform scale on hover for mobile */
  .service-card:hover .service-image img,
  .gallery-item:hover img,
  .service-detail-image:hover img {
    transform: scale(1.02) translateZ(0);
  }
  
  /* Disable hover effects on touch devices */
  @media (hover: none) {
    .service-card:hover,
    .value-card:hover,
    .why-feature:hover,
    .contact-card:hover {
      transform: translateZ(0);
      box-shadow: none;
    }
    
    .btn-primary:hover,
    .btn-outline:hover {
      transform: translateZ(0);
    }
  }
}

/* ========================================
   IMAGE PERFORMANCE & STABILITY FIXES
   ======================================== */

/* Base image optimizations */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Prevent flicker and layout shift */
img[data-loaded="false"] {
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

img[data-loaded="true"] {
  opacity: 1;
  transition: opacity 0.4s ease-in;
}

/* Ensure images don't cause overflow */
img {
  overflow: hidden;
}

/* Prevent content jumping during image load */
img:not([src]) {
  visibility: hidden;
}

/* Smooth image loading animation */
@keyframes imageFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

img.lazy-loaded {
  animation: imageFadeIn 0.6s ease-out;
}

/* Prevent layout shift for lazy loaded images */
img[loading="lazy"] {
  background-color: #f8f9fa;
}

/* Responsive image fixes */
@media (max-width: 768px) {
  img {
    max-width: 100%;
    height: auto;
  }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
