@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* ── Luxury Aurora Palette ── */
  --color-accent-primary:   #3b82f6;   /* blue 500 */
  --color-accent-dark:      #4f46e5;   /* indigo 600 */
  --color-accent-light:     #93c5fd;   /* blue 300 */
  --color-accent-shimmer:   #ddd6fe;   /* violet 200 */
  
  --color-ivory:          #fafafa;   /* frosty zinc 50 bg */
  --color-cream:          #f4f4f5;   /* chilly zinc 100 surface */
  --color-warm-white:     #FFFFFF;
  
  --color-charcoal:       #09090b;   /* zinc 950 text */
  --color-charcoal-mid:   #3f3f46;   /* zinc 700 text */
  --color-muted:          rgba(9, 9, 11, 0.55);
  --color-text-body:      rgba(9, 9, 11, 0.82);

  /* Legacy aliases kept for compatibility */
  --color-teal-primary:   #3b82f6;
  --color-teal-luxury:    #6366f1;
  --color-accent-gold:    #3b82f6;
  --color-accent-gold-light: #93c5fd;
  --color-beige-accent:   #e4e4e7;
  --color-navy-bg:        #fafafa;
  --color-navy-surface:   #f4f4f5;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --matte-bg:     rgba(250, 250, 250, 0.95);
  --satin-border: rgba(59, 130, 246, 0.18);
  --glass-bg:     rgba(250, 250, 250, 0.72);
  --glass-border: rgba(59, 130, 246, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Custom Glassmorphic Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(244, 244, 245, 0.6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35); /* blue 500 transparent */
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(79, 70, 229, 0.55); /* indigo 600 transparent */
}

body {
  background-color: transparent;
  color: var(--color-text-body);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.7;
}

/* WebGL Background Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -999;
  pointer-events: none;
}



h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  letter-spacing: 0.04em;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Typography Utilities */
.teal-gradient,
.gold-gradient {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent-primary) 50%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-center {
  text-align: center;
}

.text-teal,
.text-gold {
  color: var(--color-accent-primary);
}

.font-display {
  font-family: var(--font-display);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.flex {
  display: flex;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.grid {
  display: grid;
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.w-full { width: 100%; }
.h-auto { height: auto; }
.object-cover { object-fit: cover; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Navigation */
nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  z-index: 9999;
  padding: 15px 40px;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--color-charcoal);
}

.logo-main:hover {
  color: var(--color-accent-primary);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--color-accent-primary);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  color: var(--color-charcoal-mid);
}

.nav-links a:hover {
  color: var(--color-accent-primary);
}

.nav-links .btn-primary {
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .nav-links .btn-primary {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* Glass & UI Elements */
/* Cinematic Materials (Matte & Satin) */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--satin-border);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.glass-card.interactive:hover::before {
  opacity: 1;
}

.glass-card.interactive:hover {
  border-color: rgba(212, 201, 176, 0.4);
  transform: translateZ(20px) translateY(-5px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(140, 186, 177, 0.1);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-dark) 0%, var(--color-accent-primary) 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(79, 70, 229, 0.4);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-dark) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--color-charcoal);
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: 1.5px solid var(--color-accent-primary);
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-accent-shimmer);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent-primary));
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
  transition: all 0.3s ease;
}

.btn-accent:hover {
  box-shadow: 0 6px 30px rgba(79, 70, 229, 0.45);
  transform: translateY(-2px);
}

/* Animations */
@keyframes floating {
  0% {
    transform: translateY(0px) translateX(0px);
  }

  50% {
    transform: translateY(-20px) translateX(10px);
  }

  100% {
    transform: translateY(0px) translateX(0px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 3D Scroll Animations */
.reveal-3d {
  opacity: 0;
  transform: translateY(100px) rotateX(20deg) translateZ(-200px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-3d.active {
  opacity: 1;
  transform: translateY(0) rotateX(0deg) translateZ(0);
}

.card-3d {
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: translateZ(50px) rotateY(10deg) rotateX(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(163, 210, 202, 0.2);
}

/* Big Text & Slide Up Reveal */
.text-reveal-xl {
  font-size: clamp(3.5rem, 10vw, 7rem) !important;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-bottom: 2rem;
  display: block;
}

.text-slide-up-container {
  overflow: visible;
  /* Allow clipping to be handled by clip-path or simply hidden transform */
  display: block;
  position: relative;
}

.text-slide-up {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.text-slide-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* 3D Flipping Grid for Service Rows */
.flip-card-3d {
  opacity: 0;
  transform: rotateY(-15deg) rotateX(10deg) translateY(40px) translateZ(-50px) scale(0.95);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
  will-change: transform, opacity;
}

.flip-card-3d.active {
  opacity: 1;
  transform: rotateY(0deg) rotateX(0deg) translateY(0) translateZ(0) scale(1);
}

/* Service Row Layout */
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  margin-bottom: 12rem;
  min-height: 50vh;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-row .service-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
}

.service-row .service-image-container {
  flex: 1.2;
  perspective: 2000px;
}

.service-row-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 201, 176, 0.15);
}

@media (max-width: 1024px) {
  .service-row {
    flex-direction: column !important;
    text-align: center;
    gap: 3rem;
    margin-bottom: 8rem;
  }

  .service-row .service-text {
    max-width: 100%;
    text-align: center;
  }

  .service-row-img {
    height: 350px;
  }
}

/* Removed atmospheric opacity to ensure pure black */

/* Service Layouts */
.service-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.h-full {
  height: 100%;
}

.mt-auto {
  margin-top: auto;
}

/* Utilities Ext */
.section {
  padding: 100px 0;
  position: relative;
  z-index: 10;
}

.border-y {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Video Background */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.9;
  transform: scale(1.1);
  /* Buffer for parallax movement */
  will-change: transform;
}

/* 3D Slogan */
.slogan-3d {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 600;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0px 4px 8px rgba(79, 70, 229, 0.2));
  transform: perspective(1000px) rotateX(15deg) translateZ(10px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.slogan-3d:hover {
  transform: perspective(1000px) rotateX(0deg) translateZ(30px) scale(1.02);
  filter: drop-shadow(0px 8px 16px rgba(79, 70, 229, 0.35)) drop-shadow(0px 0px 20px var(--color-accent-primary));
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 17, 33, 0.35);
  /* Navy overlay */
  z-index: -1;
}

/* Atmospheric Layers */
.atmospheric-layers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.volumetric-fog {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, transparent 0%, var(--color-charcoal) 70%),
    radial-gradient(circle at 30% 30%, rgba(140, 186, 177, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(212, 201, 176, 0.05) 0%, transparent 40%);
  filter: blur(80px);
  opacity: 0.6;
  animation: fogMotion 20s ease-in-out infinite alternate;
}

@keyframes fogMotion {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-5%, -5%) scale(1.05);
  }
}

.micro-particles {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 30% 50%, #fff, transparent),
    radial-gradient(2px 2px at 50% 10%, #fff, transparent),
    radial-gradient(1px 1px at 80% 80%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 20% 90%, #fff, transparent);
  background-size: 400px 400px;
  opacity: 0.15;
  animation: particleSlide 60s linear infinite;
}

@keyframes particleSlide {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 400px 800px;
  }
}

.bg-blob-1,
.bg-blob-2 {
  display: none;
}

/* Removed in favor of volumetric fog */

/* Grid System */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 100;
  padding: 8px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-charcoal);
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== TABLET: 1024px ===== */
@media (max-width: 1024px) {
  .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  nav.navbar {
    padding: 12px 24px;
  }
}

/* ===== MOBILE: 768px ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav.navbar {
    padding: 12px 20px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    font-size: 1.25rem;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 90;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  /* Grid collapse */
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  /* Hero typography */
  h1 {
    font-size: 2.5rem !important;
  }

  .slogan-3d {
    font-size: 1.4rem;
    transform: perspective(800px) rotateX(10deg) translateZ(5px);
  }

  /* Section spacing */
  .section {
    padding: 60px 0;
  }

  /* Glass card */
  .glass-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
  }

  /* Service images */
  .service-img {
    height: 180px;
  }

  /* Modal mobile */
  .modal-content {
    width: 95%;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-md);
    max-height: 90vh;
  }

  .subservice-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Footer mobile */
  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  /* Contact form mobile */
  .items-start {
    align-items: stretch;
  }
}

/* ===== SMALL MOBILE: 480px ===== */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  nav.navbar {
    padding: 10px 16px;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }

  .slogan-3d {
    font-size: 1.15rem;
  }

  .section {
    padding: 40px 0;
  }

  .btn-primary {
    padding: 0.65rem 1.5rem;
    font-size: 0.8rem;
  }

  .btn-accent {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .glass-card {
    padding: 1.25rem;
  }

  .service-img {
    height: 150px;
  }

  .modal-content {
    padding: 1.5rem 1rem;
  }

  .logo-main {
    font-size: 1.2rem;
  }

  .logo-sub {
    font-size: 0.55rem;
  }

  /* Better touch targets */
  a, button {
    min-height: 44px;
    min-width: 44px;
  }

  /* Prevent horizontal overflow */
  img, video, iframe {
    max-width: 100%;
    height: auto;
  }
}

/* ===== ULTRA-SMALL MOBILE: 320px ===== */
@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  nav.navbar {
    padding: 8px 12px;
  }

  h1 {
    font-size: 1.6rem !important;
  }

  h2 {
    font-size: 1.3rem !important;
  }

  .logo-main {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }

  .logo-sub {
    font-size: 0.5rem;
  }

  .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }

  .glass-card {
    padding: 1rem;
    border-radius: 8px;
  }

  .nav-links a {
    font-size: 1rem;
  }
}

/* Footer */
footer {
  width: 100%;
  background: var(--color-cream);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  padding: 40px 0;
  margin-top: auto;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== MODERN SUBSERVICE MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(28, 20, 16, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: linear-gradient(160deg, #FFFDF8 0%, #FAF7F0 100%);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3.5rem;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(79, 70, 229, 0.15), 0 0 0 1px rgba(59, 130, 246,0.1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2.5rem;
  color: var(--color-charcoal-mid);
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.modal-close:hover {
  color: var(--color-accent-primary);
  background: rgba(59, 130, 246, 0.15);
  transform: scale(1.1);
}

/* Subservice Grid Layout */
.subservice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
  perspective: 1200px;
}

.subservice-card {
  background: #FFFFFF;
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-top: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

.subservice-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.subservice-card:hover {
  background: #FFFDF8;
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-8px) scale(1.02) rotateX(4deg);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.12), 0 0 0 1px rgba(59, 130, 246,0.2);
}

.subservice-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.subservice-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.subservice-card:hover .subservice-img {
  transform: scale(1.1) translateZ(20px);
}

.subservice-info {
  padding: 0 0.25rem;
}

.subservice-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-charcoal);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.subservice-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
  font-weight: 300;
}
