/* Neo Gen Title — Landing 3D Redesign */

.header .logo img {
  max-height: 54px;
  max-width: min(300px, 40vw);
}

/* ── Hero Split Layout ── */
.hero {
  display: grid;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 100px;
  min-height: 100vh;
  min-height: 100dvh;
}

.hero-text {
  max-width: 620px;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-title {
  transform-style: preserve-3d;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #FFD4A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title .highlight .char {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #FFD4A8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-visual {
  position: relative;
  height: 520px;
  perspective: 1200px;
}

.hero-3d-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.hero-img-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-img-card.main {
  width: 72%;
  height: 78%;
  top: 8%;
  right: 0;
  z-index: 3;
  animation: heroFloatMain 5s ease-in-out infinite;
}

.hero-img-card.secondary {
  width: 48%;
  height: 42%;
  bottom: 5%;
  left: 0;
  z-index: 2;
  animation: heroFloatSecondary 6s ease-in-out infinite;
}

.hero-img-card.accent {
  width: 38%;
  height: 32%;
  top: 0;
  left: 12%;
  z-index: 4;
  animation: heroFloatAccent 4.5s ease-in-out infinite;
}

@keyframes heroFloatMain {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes heroFloatSecondary {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heroFloatAccent {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-3d-badge {
  position: absolute;
  bottom: 18%;
  right: -8px;
  z-index: 10;
  padding: 16px 22px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
  animation: heroFloatAccent 4.5s ease-in-out infinite;
}

.hero-3d-badge-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.hero-3d-badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--navy);
  line-height: 1.2;
}

.hero-3d-badge span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  margin: -210px 0 0 -210px;
  border: 1px solid rgba(255, 106, 0, 0.2);
  border-radius: 50%;
  animation: rotateSlow 30s linear infinite;
  pointer-events: none;
}

.hero-orbit-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--primary);
}

.hero-stats {
  margin-bottom: 0;
}

/* ── Why Section 3D Image ── */
.why-image-wrap {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.why-image-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-image-wrap:hover .why-image-main {
  transform: scale(1.05);
}

.why-float-card {
  position: absolute;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  transform-style: preserve-3d;
}

.why-float-card.bottom-left {
  bottom: 32px;
  left: -20px;
}

.services-section .services-grid {
  perspective: 1400px;
}

.service-card.card-3d {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.why-float-card .float-icon-wrap {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.why-float-card strong {
  display: block;
  font-size: 0.875rem;
  color: var(--navy);
}

.why-float-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.why-card.card-3d {
  transform-style: preserve-3d;
  background: var(--white);
  border: 1px solid rgba(6, 28, 63, 0.06);
  box-shadow: var(--shadow-sm);
}

.why-card.card-3d:hover {
  transform: translateX(8px) rotateY(-3deg) rotateX(2deg);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(255, 106, 0, 0.12);
}

/* ── Service Cards (icon-only, no images) ── */
.services-section .service-card.card-3d {
  padding: 32px;
  min-height: 220px;
  display: block;
}

.services-section .service-card-icon {
  position: static;
  margin-bottom: 20px;
  box-shadow: none;
}

.services-section .service-card-body {
  padding: 0;
}

/* ── Showcase Gallery (Bento) ── */
.showcase-section {
  padding: 120px 0;
  background: var(--navy);
  overflow: hidden;
  position: relative;
}

.showcase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.4), transparent);
}

.showcase-section .section-title { color: var(--white); }
.showcase-section .section-subtitle { color: rgba(255, 255, 255, 0.6); }

.showcase-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 20px;
  margin-top: 64px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.bento-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  cursor: default;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 106, 0, 0.25) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
  pointer-events: none;
}

.bento-item:hover::before {
  opacity: 1;
}

.bento-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bento-item:hover {
  transform: translateY(-8px) rotateX(3deg) rotateY(-2deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 106, 0, 0.3);
  z-index: 2;
}

.bento-item:hover img {
  transform: scale(1.08);
}

.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 28, 63, 0.85) 100%);
  pointer-events: none;
}

.bento-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  transform: translateZ(20px);
}

.bento-caption h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 4px;
}

.bento-caption p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
}

.bento-item:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.bento-item:nth-child(2) { grid-column: span 4; }
.bento-item:nth-child(3) { grid-column: span 3; }
.bento-item:nth-child(4) { grid-column: span 4; }
.bento-item:nth-child(5) { grid-column: span 3; }

.bento-item .bento-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: rgba(255, 106, 0, 0.9);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  z-index: 3;
}

/* ── Process Showcase ── */
.process-section {
  background:
    radial-gradient(ellipse 70% 55% at 20% 0%, rgba(255, 106, 0, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 100%, rgba(255, 106, 0, 0.06) 0%, transparent 50%),
    var(--navy);
}

.process-visual-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 106, 0, 0.15), transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: processGlow 6s ease-in-out infinite alternate;
}

@keyframes processGlow {
  from { opacity: 0.5; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}

.process-visual-panel {
  transform-style: preserve-3d;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.process-slide.active img {
  animation: processKenBurns 8s ease-out forwards;
}

@keyframes processKenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

.process-section .process-step.active .process-step-content strong {
  color: var(--primary-light);
}

/* ── Testimonials with Photos ── */
.testimonial-card {
  transform-style: preserve-3d;
  padding: 0;
  overflow: hidden;
}

.testimonial-card-inner {
  padding: 36px;
}

.testimonial-photo {
  height: 120px;
  overflow: hidden;
  position: relative;
}

.testimonial-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.testimonial-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(6, 28, 63, 0.5));
}

.testimonial-card:hover {
  transform: translateY(-8px) rotateX(2deg);
}

.testimonial-avatar {
  overflow: hidden;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CTA with Image ── */
.cta-section {
  padding: 0;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.cta-bg {
  background:
    linear-gradient(135deg, rgba(6, 28, 63, 0.92) 0%, rgba(6, 28, 63, 0.75) 50%, rgba(255, 106, 0, 0.25) 100%),
    url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1920&q=80') center/cover no-repeat;
}

.cta-content {
  padding: 140px 0;
}

.cta-3d-card {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  perspective: 900px;
  z-index: 3;
}

.cta-3d-card-inner {
  padding: 32px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  transform: rotateY(-10deg);
  transform-style: preserve-3d;
}

.cta-3d-card h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.cta-3d-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
}

.cta-3d-stat {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-3d-stat strong {
  font-family: var(--font-heading);
  color: var(--primary);
  font-size: 1.25rem;
}

.cta-3d-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ── Trust Bar 3D ── */
.trust-card {
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-4px) rotateX(5deg);
  box-shadow: var(--shadow-md);
}

/* ── Map section depth ── */
/* Map section — styles live in style.css */
.expansion-content {
  max-width: none;
}

.expansion-content .section-label,
.expansion-content .section-title,
.expansion-content .section-subtitle,
.expansion-content .expansion-nodes {
  max-width: 720px;
  margin-inline: auto;
}

.expansion-section {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 106, 0, 0.15) 0%, transparent 60%),
    var(--navy);
}

.expansion-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  perspective: 1200px;
}

.expansion-img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 240px;
  border: 2px solid rgba(255, 106, 0, 0.3);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transform-style: preserve-3d;
  transition:
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease,
    border-color 0.35s ease;
  will-change: transform;
}

.expansion-img-card:hover {
  transform: translateY(-14px) scale(1.05);
  border-color: var(--primary);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(255, 106, 0, 0.2);
}

.expansion-img-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.expansion-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expansion-img-card:hover img {
  transform: scale(1.1);
}

.expansion-img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(6, 28, 63, 0.85));
  pointer-events: none;
}

.expansion-img-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: white;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expansion-img-card:hover .expansion-img-label {
  transform: translateY(-4px);
}

/* ── Tilt utility ── */
[data-tilt] {
  transform-style: preserve-3d;
}

[data-tilt] .tilt-inner {
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}

[data-tilt]:hover .tilt-inner {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}
