/* Premium Professional Styles for PT Lava Pratama Solusindo */

/* Enhanced Base styles */
html {
  scroll-behavior: smooth;
}

/* Preloader Styles */
#preloader {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Custom animation for reverse spin */
@keyframes spin-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

.animate-reverse {
  animation: spin-reverse 1.5s linear infinite;
}

/* Enhanced WhatsApp button animations */
.whatsapp-float {
  animation: whatsapp-glow 2s ease-in-out infinite alternate;
}

@keyframes whatsapp-glow {
  0% {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4), 0 0 40px rgba(34, 197, 94, 0.2);
  }
  100% {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6), 0 0 60px rgba(34, 197, 94, 0.3);
  }
}

/* Preloader enhancements */
#preloader {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Bouncing dots animation timing fix */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* Enhanced animations for all elements */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Premium Typography */
body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  color: #2d3748;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Premium Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #1a202c;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; }
h3 { font-size: 1.875rem; font-weight: 600; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* Rich Gradient backgrounds for CTA & Footer */
.gradient-red {
  background: radial-gradient(100% 100% at 0% 0%, #3a0a0c 0%, #A71E22 60%, #5d1214 100%);
}

/* Clean Layout */
.section {
  padding: 6rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .section {
    padding: 2.15rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* Premium Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered reveal animations */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* Simple Button styles */
.btn-primary {
  background-color: #A71E22;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #8B1A1E;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid #A71E22;
  color: #A71E22;
  background: transparent;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-outline:hover {
  background-color: #A71E22;
  color: #fff;
  transform: translateY(-2px);
}

/* CTA Gold Button */
.btn-gold {
  background: linear-gradient(180deg, #FFE88A 0%, #FFD24D 45%, #FFB400 100%);
  color: #1f2937;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(0, 0, 0, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  display: inline-block;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 55%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.3);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -2px 0 rgba(0, 0, 0, 0.08),
    0 6px 14px rgba(0, 0, 0, 0.22);
}

.btn-gold:focus-visible {
  outline: 3px solid rgba(255, 221, 0, 0.6);
  outline-offset: 2px;
}

/* Hero Explore Button */
.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 9999px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(167, 30, 34, 1) 0%, rgba(139, 26, 29, 1) 100%) padding-box,
    rgba(255, 255, 255, .25) border-box;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 2px 12px rgba(255, 187, 0, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

/* Reuse hero micro-interactions for other buttons while keeping their own colors */
.btn-hero-effects {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 9999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-hero-effects::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -30%;
  width: 40%;
  height: 140%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-hero-effects:hover::before { left: 110%; }

.btn-hero-effects:focus-visible {
  outline: 3px solid #A71E22;
  outline-offset: 3px;
}

.btn-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -30%;
  width: 40%;
  height: 140%;
  transform: rotate(20deg);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-hero:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(255, 187, 0, 0.28);
}

.btn-hero:hover::before {
  left: 110%;
}

.btn-hero:hover::after {
  transform: translateX(4px);
}

.btn-hero:focus-visible {
  outline: 3px solid #A71E22;
  outline-offset: 3px;
}

/* Premium Tab styles */
.tab-active {
  background: linear-gradient(135deg, #a71e22 0%, #d32f2f 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(167, 30, 34, 0.3) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 10px !important;
}

.tab {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 2px solid rgba(167, 30, 34, 0.2) !important;
  color: #A71E22 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(10px) !important;
}

.tab:hover {
  background: linear-gradient(135deg, rgba(167, 30, 34, 0.1) 0%, rgba(211, 47, 47, 0.1) 100%) !important;
  border-color: rgba(167, 30, 34, 0.4) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 8px rgba(167, 30, 34, 0.2) !important;
}

/* Premium Navigation */
.nav-blur {
  backdrop-filter: saturate(120%) blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(167, 30, 34, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-blur.shadow {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-bottom-color: rgba(167, 30, 34, 0.2);
}

/* Navigation Links - Simple & Clean */
nav a {
  transition: all 0.3s ease;
  font-weight: 500;
}

nav a:hover {
  color: #a71e22;
}

nav a.text-brand-primary {
  color: #a71e22;
  font-weight: 600;
}

/* Premium Card Shadows */
.shadow-card {
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(167, 30, 34, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.shadow-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.15),
    0 10px 10px -5px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(167, 30, 34, 0.1);
  transform: translateY(-4px);
}

/* Premium Glass Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Premium Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #a71e22 0%, #d32f2f 50%, #ff5722 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Pricing Cards */
#pricing .grid {
  gap: 2rem;
  padding-top: 2rem;
  position: relative;
}

#pricing {
  overflow: visible;
}

#pricing .shadow-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid silver;
}

#pricing .shadow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #a71e22 0%, #d32f2f 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

#pricing .shadow-card:hover::before {
  transform: scaleX(1);
}

#pricing .shadow-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(167, 30, 34, 0.1);
}

/* Premium Plan - Enhanced */
#pricing .shadow-card:nth-child(1) {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

#pricing .shadow-card:nth-child(1) .w-12 {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
}

/* Pro Plan - Enhanced */
#pricing .shadow-card:nth-child(2) {
  background: linear-gradient(135deg, #f1f5f9 0%, #ffffff 100%);
}

#pricing .shadow-card:nth-child(2) .w-12 {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
  box-shadow: 0 4px 12px rgba(71, 85, 105, 0.3);
}

/* Business Plan - Premium Featured */
#pricing .shadow-card:nth-child(3) {
  background: linear-gradient(135deg, #fef3c7 0%, #fbbf24 50%, #f59e0b 100%);
  position: relative;
  transform: scale(1.05);
  z-index: 2;
}

#pricing .shadow-card:nth-child(3) .w-12 {
  background: linear-gradient(135deg, #a71e22 0%, #d32f2f 100%);
  box-shadow: 0 4px 12px rgba(167, 30, 34, 0.4);
}

#pricing .shadow-card:nth-child(3):hover {
  transform: translateY(-8px) scale(1.05);
}

/* Pricing Card Content Enhancement */
#pricing h3 {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

#pricing .shadow-card:nth-child(3) h3 {
  background: linear-gradient(135deg, #92400e 0%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#pricing ul li {
  position: relative;
  padding-left: 1.5rem;
  transition: all 0.2s ease;
}

#pricing ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.1em;
}

#pricing ul li:hover {
  color: #a71e22;
  transform: translateX(4px);
}

/* Pricing CTA Buttons Enhancement */
#pricing .btn-outline {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border-width: 2px;
}

#pricing .btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 30, 34, 0.1), transparent);
  transition: left 0.5s;
}

#pricing .btn-outline:hover::before {
  left: 100%;
}

/* Business Plan CTA Special */
#pricing .shadow-card:nth-child(3) a[style] {
  background: linear-gradient(135deg, #a71e22 0%, #d32f2f 100%) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(167, 30, 34, 0.3);
}

#pricing .shadow-card:nth-child(3) a[style]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

#pricing .shadow-card:nth-child(3) a[style]:hover::before {
  left: 100%;
}

#pricing .shadow-card:nth-child(3) a[style]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(167, 30, 34, 0.4);
}

/* Responsive Pricing */
@media (max-width: 768px) {
  #pricing .shadow-card:nth-child(3) {
    transform: scale(1);
    margin-top: 0;
  }

  #pricing .shadow-card:nth-child(3):hover {
    transform: translateY(-8px) scale(1);
  }
}

/* Carousel styles */
.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform .4s ease;
  will-change: transform;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  padding: 8px 12px;
  z-index: 10;
}

.carousel-btn.prev {
  left: 8px;
}

.carousel-btn.next {
  right: 8px;
}

.carousel-item {
  flex: 0 0 70%;
}

@media (min-width: 640px) {
  .carousel-item {
    flex-basis: 45%;
  }
}

@media (min-width: 768px) {
  .carousel-item {
    flex-basis: 30%;
  }
}

@media (min-width: 1024px) {
  .carousel-item {
    flex-basis: 20%;
  }
}

/* FAQ styles */
summary.faq {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary.faq::-webkit-details-marker {
  display: none;
}

/* FAQ Ultra Smooth Animation */
.faq-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  padding-top: 0;
  padding-bottom: 0;
  will-change: max-height, opacity, transform, padding;
  transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.faq-content.opening {
  opacity: 1;
  transform: translateY(0);
  padding-top: 12px;
  padding-bottom: 0;
}

.faq-content.closing {
  opacity: 0;
  transform: translateY(-5px);
  padding-top: 0;
  padding-bottom: 0;
}

.caret {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
  font-weight: 300;
  font-size: 1.2em;
  transform-origin: center;
}

.caret.rotating {
  transform: rotate(45deg) scale(1.1);
}

/* Language Button Styles */
.lang-btn {
  border-radius: 12px !important;
  border: 2px solid #a71e22 !important;
  background: transparent;
  color: #a71e22;
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 40px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover {
  background: #a71e22;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(167, 30, 34, 0.3);
}

.lang-btn.active {
  background: #a71e22;
  color: white;
  box-shadow: 0 2px 4px rgba(167, 30, 34, 0.2);
}

.lang-btn.active:hover {
  background: #8b1a1d;
  transform: translateY(0);
}

/* Hero media styles */
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Enhanced Hero Text Styling */
#hero h1 {
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.8),
    0 4px 8px rgba(0, 0, 0, 0.6),
    0 8px 16px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

#hero p {
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.6),
    0 6px 20px rgba(0, 0, 0, 0.4);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  font-size: 1.25rem; /* Increased from 1.125rem */
}

@media (max-width: 768px) {
  #hero p {
    font-size: 1.125rem; /* Increased from 1rem */
  }
}

/* Enhanced text shadow for better readability */
#hero .text-white {
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.8),
    0 4px 16px rgba(0, 0, 0, 0.6),
    0 0 32px rgba(0, 0, 0, 0.4);
}

#hero .text-white\/90 {
  text-shadow:
    0 1px 4px rgba(0, 0, 0, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Enhanced Hero Overlay System */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.hero-overlay-primary {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(167, 30, 34, 0.6) 30%,
    rgba(0, 0, 0, 0.8) 70%,
    rgba(0, 0, 0, 0.85) 100%
  );
  animation: overlayPulse 4s ease-in-out infinite;
}

.hero-overlay-secondary {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(167, 30, 34, 0.15) 0%,
    rgba(255, 222, 24, 0.1) 40%,
    transparent 70%
  );
  animation: overlayShimmer 6s ease-in-out infinite;
}

.hero-overlay-accent {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(255, 222, 24, 0.08) 25%,
    transparent 50%,
    rgba(167, 30, 34, 0.08) 75%,
    transparent 100%
  );
  animation: overlayAccent 8s ease-in-out infinite;
}

.hero-overlay-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px, 40px 40px;
  animation: overlayFloat 10s ease-in-out infinite;
}

/* Overlay Animations */
@keyframes overlayPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

@keyframes overlayShimmer {
  0%, 100% {
    transform: translateX(-100%) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateX(100%) rotate(180deg);
    opacity: 0.6;
  }
}

@keyframes overlayAccent {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  33% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.7;
  }
  66% {
    transform: translateY(10px) scale(0.95);
    opacity: 0.4;
  }
}

@keyframes overlayFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -10px) rotate(1deg);
  }
  50% {
    transform: translate(-5px, 5px) rotate(-0.5deg);
  }
  75% {
    transform: translate(-10px, -5px) rotate(0.5deg);
  }
}

/* Enhanced Video Controls Overlay */
.hero-video-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-media > iframe,
.hero-media > video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  min-width: 100%;
  min-height: 100%;
  width: 100vw;
  height: calc(100vw * 9 / 16);
  object-fit: cover;
}

/* Hero Video Enhanced Styles */
.hero-video-iframe {
  z-index: 1;
  transition: opacity 0.3s ease;
}

.hero-video-iframe.error {
  opacity: 0;
}

.hero-video-fallback {
  z-index: 0;
  display: none;
}

.hero-video-fallback.show {
  display: flex;
}

/* Video Loading State */
#hero-video-loading {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  z-index: 10;
  animation: pulse 2s ease-in-out infinite;
}

#hero-video-loading .w-16 {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Video Error State */
#hero-video-error {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  z-index: 9;
}

#hero-video-error.hidden {
  display: none;
}

#hero-video-error .w-16 {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Video Controls Overlay */
.hero-video-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.hero-video-control-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-video-control-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.hero-video-control-btn:active {
  transform: scale(0.95);
}

.hero-video-control-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.hero-video-control-btn:hover svg {
  transform: scale(1.1);
}

/* Video Mute Button States */
.hero-video-mute.muted svg:first-child {
  display: block;
}

.hero-video-mute.muted svg:last-child {
  display: none;
}

.hero-video-mute:not(.muted) svg:first-child {
  display: none;
}

.hero-video-mute:not(.muted) svg:last-child {
  display: block;
}

/* Video Pause Button States */
.hero-video-pause.playing {
  display: none;
}

.hero-video-pause.paused {
  display: block;
}

/* Responsive Video Controls */
@media (max-width: 768px) {
  .hero-video-controls {
    top: 0.75rem;
    right: 0.75rem;
  }

  .hero-video-control-btn {
    padding: 0.375rem;
  }

  .hero-video-control-btn svg {
    width: 1rem;
    height: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-video-controls {
    top: 0.5rem;
    right: 0.5rem;
  }

  .hero-video-control-btn {
    padding: 0.25rem;
  }

  .hero-video-control-btn svg {
    width: 0.875rem;
    height: 0.875rem;
  }
}

/* Video Performance Optimizations */
.hero-video-iframe {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  image-rendering: optimizeQuality;
  /* Optimize video rendering */
  -webkit-transform: translate3d(-50%, -50%, 0);
  transform: translate3d(-50%, -50%, 0);
}

/* Hero Overlay Performance Optimizations */
.hero-overlay,
.hero-overlay-primary,
.hero-overlay-secondary,
.hero-overlay-accent,
.hero-overlay-pattern {
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
  contain: layout style paint;
}

/* Optimize overlay animations */
.hero-overlay-primary,
.hero-overlay-secondary,
.hero-overlay-accent,
.hero-overlay-pattern {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Video loading optimization */
.hero-video-iframe[preload="metadata"] {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px;
}

/* Video error state styling */
.hero-video-iframe.error {
  opacity: 0;
  pointer-events: none;
}

/* Loading Animation Enhancement */
#hero-video-loading {
  will-change: opacity;
}

#hero-video-loading .animate-spin {
  animation-play-state: running;
}

/* Error State Enhancement */
#hero-video-error {
  will-change: opacity, transform;
}

#hero-video-error.show {
  animation: slideInUp 0.3s ease-out;
}

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

/* Fallback Content Enhancement */
.hero-video-fallback {
  will-change: opacity;
  transition: opacity 0.5s ease;
}

.hero-video-fallback.show {
  opacity: 1;
}

/* Video Accessibility */
.hero-video-iframe:focus {
  outline: 2px solid #A71E22;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .hero-video-iframe,
  #hero-video-loading,
  #hero-video-error,
  .hero-video-control-btn,
  .hero-video-fallback,
  .hero-overlay-primary,
  .hero-overlay-secondary,
  .hero-overlay-accent,
  .hero-overlay-pattern {
    animation: none !important;
    transition: none !important;
  }

  #hero-video-loading .animate-spin {
    animation: none;
  }

  #hero-video-error.show {
    animation: none;
  }
}

/* Hero Overlay Responsive Adjustments */
@media (max-width: 768px) {
  .hero-overlay-primary {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(167, 30, 34, 0.7) 30%,
      rgba(0, 0, 0, 0.85) 70%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }

  .hero-overlay-secondary {
    background: radial-gradient(
      ellipse at center,
      rgba(167, 30, 34, 0.2) 0%,
      rgba(255, 222, 24, 0.15) 40%,
      transparent 70%
    );
  }

  .hero-overlay-accent {
    background: linear-gradient(
      45deg,
      transparent 0%,
      rgba(255, 222, 24, 0.12) 25%,
      transparent 50%,
      rgba(167, 30, 34, 0.12) 75%,
      transparent 100%
    );
  }

  .hero-overlay-pattern {
    background-size: 40px 40px, 30px 30px;
  }
}

@media (max-width: 480px) {
  .hero-overlay-primary {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(167, 30, 34, 0.75) 30%,
      rgba(0, 0, 0, 0.9) 70%,
      rgba(0, 0, 0, 0.95) 100%
    );
  }

  .hero-overlay-secondary {
    background: radial-gradient(
      ellipse at center,
      rgba(167, 30, 34, 0.25) 0%,
      rgba(255, 222, 24, 0.2) 40%,
      transparent 70%
    );
  }

  .hero-overlay-accent {
    background: linear-gradient(
      45deg,
      transparent 0%,
      rgba(255, 222, 24, 0.15) 25%,
      transparent 50%,
      rgba(167, 30, 34, 0.15) 75%,
      transparent 100%
    );
  }

  .hero-overlay-pattern {
    background-size: 30px 30px, 20px 20px;
    background:
      radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .hero-video-control-btn {
    border: 2px solid white;
  }

  #hero-video-loading,
  #hero-video-error {
    border: 2px solid white;
  }
}

/* Print Styles */
@media print {
  .hero-media,
  .hero-video-controls,
  #hero-video-loading,
  #hero-video-error {
    display: none !important;
  }

  .hero-video-fallback {
    display: block !important;
    position: static !important;
    background: white !important;
    color: black !important;
  }

  .hero-video-fallback * {
    color: black !important;
  }
}

/* Ensure details content stays displayable for animation */
details > *:not(summary) {
  display: block;
}

/* Documentation Swiper - Elegant & Clean */
.documentation-swiper {
  width: 100%;
  height: 200px;
  padding: 0;
  cursor: ew-resize;
}

.documentation-swiper .swiper-slide {
  width: 300px;
  height: 200px;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.documentation-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



/* Responsive adjustments for documentation swiper */
@media (max-width: 768px) {
  .documentation-swiper {
    height: 160px;
  }

  .documentation-swiper .swiper-slide {
    width: 250px;
    height: 160px;
  }
}

/* Clients Swiper - Professional & Clean */
.clients-swiper {
  width: 100%;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  padding: 24px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 1px solid rgba(167, 30, 34, 0.1);
  border-radius: 16px;
  cursor: ew-resize;
}

.clients-swiper .swiper-slide {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}






/* Responsive adjustments for clients swiper */
@media (max-width: 768px) {
  .clients-swiper {
    padding: 16px;
  }
}

/* Contact section - Enhanced cards */
#contact .contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(167, 30, 34, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Subtle hover only */
#contact .contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(167, 30, 34, 0.08);
}

#contact .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #a71e22 0%, #d32f2f 100%);
  box-shadow: 0 6px 14px rgba(167, 30, 34, 0.28);
}

/* Keep icon calm on hover */
#contact .contact-card:hover .contact-icon { filter: none; }

#contact .contact-link { color: #374151; text-decoration: underline; text-underline-offset: 3px; }
#contact .contact-link:hover { color: #a71e22; }

#contact .contact-list li {
  position: relative;
  padding-left: 1.25rem;
}

#contact .contact-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #a71e22;
  box-shadow: 0 0 0 2px rgba(167, 30, 34, 0.15);
}

/* Global responsive safety with performance improvements */
img, video {
  max-width: 100%;
  height: auto;
  loading: lazy;
  decoding: async;
}

html, body, section {
  overflow-x: hidden;
}

/* Optimize font rendering */
body {
  font-display: swap;
  text-rendering: optimizeSpeed;
}

/* Critical resource hints */
.preload-hint {
  content-visibility: auto;
  contain-intrinsic-size: 0 200px;
}

/* Enhanced Performance optimizations */
* {
  -webkit-tap-highlight-color: transparent;
}

.reveal {
  will-change: opacity, transform;
}

.reveal.revealed {
  will-change: auto;
}

/* Image loading optimization */
img {
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

img.loaded {
  animation: fadeInImage 0.3s ease-in-out;
}

@keyframes fadeInImage {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reduce layout shifts */
iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
}

/* Optimize carousel performance */
.carousel-track {
  contain: layout style paint;
}

/* Optimize swiper performance */
.swiper {
  contain: layout style paint;
}

/* Optimize animations for better performance */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .animate-spin,
  .animate-bounce,
  .transition-all,
  .transition-transform {
    animation: none !important;
    transition: none !important;
  }
}

/* GPU acceleration for smooth animations */
.btn-hero,
.btn-gold,
.shadow-card,
.carousel-track {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Improve timeline responsiveness */
.timeline-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .timeline-item {
    min-width: 280px;
    margin-bottom: 1rem;
    gap: 1rem !important;
  }

  .timeline-step {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
  }

  .process-timeline {
    flex-direction: column;
    align-items: stretch;
  }

  .process-timeline .timeline-item {
    width: 100%;
    min-width: auto;
  }

  /* Press Release & Documentary specific mobile fixes */
  .timeline-item .w-20 {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  .timeline-item .w-20 svg {
    width: 14px !important;
    height: 14px !important;
  }

  .timeline-item h5 {
    font-size: 0.9rem !important;
  }

  .timeline-card {
    padding: 0.75rem !important;
  }

  .timeline-card p {
    font-size: 0.75rem !important;
  }

  /* Timeline header responsive */
  h4.text-4xl {
    font-size: 1.25rem !important;
  }

  /* Timeline container padding */
  .bg-white.rounded-3xl.p-8 {
    padding: 1rem !important;
  }

  /* Process section headers */
  h4.text-2xl {
    font-size: 1.125rem !important;
  }

  .text-center.mb-12 {
    margin-bottom: 1rem !important;
  }

  .text-center.mb-12 p {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
  }

  /* Timeline header margin */
  .text-center.mb-16 {
    margin-bottom: 1.5rem !important;
  }

  /* Timeline spacing adjustments */
  .space-y-16 > * + * {
    margin-top: 2rem !important;
  }

  /* Timeline line adjustments */
  .absolute.left-10 {
    left: 1.25rem !important;
  }

  /* Report Creation & Video Production Process responsive fixes */
  .space-y-12 > * + * {
    margin-top: 1.5rem !important;
  }

  .w-16.h-16 {
    width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 0.875rem !important;
  }

  .w-12.h-12 {
    width: 2rem !important;
    height: 2rem !important;
  }

  .w-12.h-12 svg {
    width: 16px !important;
    height: 16px !important;
  }

  .text-lg.font-bold {
    font-size: 0.9rem !important;
  }

  /* Hide timeline line on tablets */
  .absolute.left-1\/2.transform.-translate-x-0\.5 {
    display: none !important;
  }
}

/* Enhanced Go to Top Button */
#goToTop {
  background: linear-gradient(135deg, #a71e22 0%, #d32f2f 100%);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 25px rgba(167, 30, 34, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#goToTop:hover {
  background: linear-gradient(135deg, #8b1a1d 0%, #b71c1c 100%);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 12px 35px rgba(167, 30, 34, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

#goToTop svg {
  transition: transform 0.3s ease;
}

#goToTop:hover svg {
  transform: translateY(-1px);
}

/* Tablet responsive styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Container adjustments for tablets */
  .container {
    max-width: 720px;
    padding: 0 1.5rem;
  }

  /* Section padding optimization for tablets */
  .section {
    padding: 5rem 0;
  }

  /* Typography adjustments for tablets */
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }

  /* Hero section for tablets */
  #hero h1 { font-size: 2.75rem; }
  #hero p { font-size: 1.125rem; }

  /* Navigation adjustments */
  nav ul { gap: 1.5rem; }
  nav a { font-size: 14px; }

  /* Pricing cards for tablets */
  #pricing .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  #pricing .shadow-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
    transform: scale(1);
  }

  /* Services section for tablets */
  #services .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Portfolio tabs for tablets */
  .portfolio-tab, .service-tab {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  /* About section for tablets */
  #about .grid {
    gap: 2rem;
  }

  /* Contact section for tablets */
  #contact .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* FAQ section for tablets */
  .faq-content {
    padding: 1rem;
  }

  /* Button adjustments for tablets */
  .btn-hero, .btn-gold {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  /* Card spacing for tablets */
  .shadow-card {
    padding: 1.5rem;
  }

  /* Timeline adjustments for tablets */
  .timeline-item {
    gap: 1rem;
  }

  /* Swiper adjustments for tablets */
  .documentation-swiper {
    height: 180px;
  }

  .documentation-swiper .swiper-slide {
    width: 280px;
    height: 180px;
  }

  /* Go to top button for tablets */
  #goToTop {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.875rem;
  }

  /* Floating buttons spacing for tablets */
  .fixed.bottom-6.right-6 {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* Tablet tweaks (<= 768px) */
@media (max-width: 768px) {
  /* Reduce large section heading margins if any via utility classes; ensure central readability */
  #about h2, #services h2, #pricing h2, #portfolio h2, #clients h2, #contact h2, #faq h2 { text-align: center; }
}

/* Smartphone-first adjustments (<= 640px) */
@media (max-width: 640px) {
  /* Ultra mobile fixes for Press Release & Documentary timelines */
  .timeline-item {
    flex-direction: column !important;;
    gap: 0.75rem !important;
  }

  .timeline-item .w-20 {
    width: 2rem !important;
    height: 2rem !important;
    margin: 0 auto !important;
  }

  .timeline-item .w-20 svg {
    width: 12px !important;
    height: 12px !important;
  }

  .timeline-item h5 {
    font-size: 0.85rem !important;
  }

  .timeline-card {
    padding: 1rem !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }

  .timeline-card p {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
  }

  /* Phase badges smaller */
  .timeline-card span {
    font-size: 0.6rem !important;
    padding: 0.25rem 0.5rem !important;
  }

  /* Timeline dots smaller */
  .w-3.h-3 {
    width: 0.5rem !important;
    height: 0.5rem !important;
  }

  /* Timeline line hidden on ultra small screens */
  .absolute.left-10.top-0.bottom-0 {
    display: none !important;
  }

  /* Remove connecting lines */
  .absolute.top-20 {
    display: none !important;
  }

  /* Report Creation & Video Production Process ultra mobile fixes */
  .space-y-12 > * + * {
    margin-top: 1rem !important;
  }

  .w-16.h-16 {
    width: 2rem !important;
    height: 2rem !important;
    font-size: 0.75rem !important;
  }

  .w-12.h-12 {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  .w-12.h-12 svg {
    width: 12px !important;
    height: 12px !important;
  }

  .text-lg.font-bold {
    font-size: 0.8rem !important;
  }

  /* Process step content adjustments */
  .lg\:w-1\/2 {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .lg\:pr-12, .lg\:pl-12 {
    padding: 0 !important;
  }

  .lg\:text-right, .lg\:text-left {
    text-align: center !important;
  }

  .lg\:justify-start, .lg\:justify-end {
    justify-content: center !important;
  }

  /* Process step layout - stack vertically */
  .flex.flex-col.lg\:flex-row, .flex.flex-col.lg\:flex-row-reverse {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Process step text smaller */
  .text-gray-600 {
    font-size: 0.7rem !important;
    line-height: 1.3 !important;
  }

  .text-sm {
    font-size: 0.65rem !important;
  }

  /* Process dots smaller */
  .w-2.h-2 {
    width: 0.375rem !important;
    height: 0.375rem !important;
  }

  /* Headings and body size */
  h1 { font-size: 1.6rem; line-height: 1.2; }
  h2 { font-size: 1.25rem; line-height: 1.25; }
  h3 { font-size: 1.125rem; line-height: 1.3; }
  p { font-size: 0.9rem; }

  /* Prevent overflow for long words */
  h1, h2, h3, .portfolio-tab, .about-tab, .service-tab { overflow-wrap: anywhere; word-break: break-word; }

  /* Container padding a bit tighter */
  .container { padding-left: 1rem; padding-right: 1rem; }

  /* Buttons safer on small widths */
  .btn-hero, .btn-gold { padding: 10px 16px; min-width: 0 !important; font-size: 0.9rem; }
  .btn-outline, .btn-primary { padding: 9px 12px; font-size: 0.9rem; }
  .portfolio-tab, .service-tab, .about-tab { padding: 9px 12px !important; font-size: 0.9rem; }

  /* Map shorter on phones */
  #contact iframe { height: 300px !important; border-radius: 16px; }

  /* Contact cards centered */
  #contact .contact-card { text-align: center; }

  /* Tabs: force horizontal scroll on phones (except About) */
  #portfolio .flex.gap-2,
  #services .space-y-2 {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 8px;
    padding-bottom: 8px;
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
    scroll-snap-type: x proximity;
    /* Hide scrollbar while sliding */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  #portfolio .flex.gap-2::-webkit-scrollbar,
  #services .space-y-2::-webkit-scrollbar { display: none; }

  .service-tab,
  .portfolio-tab {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto;
    padding-left: 10px !important;
    padding-right: 10px !important;
    scroll-snap-align: start;
    margin-top: 2px !important;
    margin-bottom: 2px !important;
  }

  /* About tabs remain centered and wrapping */
  #about .flex.gap-3 {
    overflow-x: visible;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 8px;
  }

  /* Pricing adjustments: keep list left-aligned, icon normal (not centered) */
  #pricing .shadow-card, #pricing .shadow-card ul, #pricing .shadow-card li, #pricing .shadow-card p, #pricing .shadow-card h3 { text-align: left; }
  #pricing .shadow-card .w-12 { margin-left: 0; margin-right: 0; }

  /* Hero: align section height with iframe (16:9) and account for fixed navbar */
  body { padding-top: 64px; }
  #hero { height: calc(100vw * 9 / 16) !important; min-height: calc(100vw * 9 / 16); scroll-margin-top: 72px; }
  /* Ensure all sections offset correctly when navigated via anchors */
  .section { scroll-margin-top: 72px; }
  #hero h1 { font-size: 1rem !important; line-height: 1.2; padding-left: 1rem; padding-right: 1rem; }
  #hero p { display: none; }

  /* CTA sections: slightly smaller fonts */
  .gradient-red h2 { font-size: 1.125rem; }
  .gradient-red p { font-size: 0.875rem; }

  /* Section titles smaller with higher specificity to override utilities */
  .section h2 { font-size: 1.25rem !important; line-height: 1.25; }

  /* Footer typography smaller */
  footer h3 { font-size: 1.1rem !important; }
  footer p { font-size: 0.875rem !important; }

  /* FAQ: hide caret icon on phones */
  .caret { display: none; }

  /* Ensure consistent font sizes across all sections */
  .section p { font-size: 0.875rem !important; line-height: 1.5 !important; }
  .section li { font-size: 0.875rem !important; line-height: 1.4 !important; }

  /* Balance card content */
  .shadow-card p { font-size: 0.8rem !important; line-height: 1.4 !important; }
  .shadow-card h3 { font-size: 1rem !important; }
  .shadow-card h4 { font-size: 0.9rem !important; }

  /* Consistent button sizing */
  .tab-active, .tab { font-size: 0.8rem !important; padding: 8px 12px !important; }

  /* Timeline content balance */
  .timeline-card h5 { font-size: 0.8rem !important; }
  .timeline-card p { font-size: 0.7rem !important; line-height: 1.3 !important; }

  /* Statistics and numbers consistency */
  .text-2xl { font-size: 1.1rem !important; }
  .text-xl { font-size: 1.05rem !important; }
  .text-lg { font-size: 1rem !important; }

  /* Ensure all content is readable and balanced */
  * { word-wrap: break-word; overflow-wrap: break-word; }

  #service-title { font-size: 0.8rem !important; padding: 10px; }
  #service-desc { font-size: 0.7rem !important; }
}

/* Additional responsive improvements for better balance */
@media (max-width: 480px) {
  /* Ultra small screens - ensure everything fits */
  .container { padding: 0 0.75rem; }

  /* Even smaller text for very small screens */
  h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.1rem !important; }
  h3 { font-size: 1rem !important; }

  /* Compact cards */
  .shadow-card { padding: 0.75rem !important; }
  .shadow-card p { font-size: 0.75rem !important; }

  /* Smaller buttons */
  .btn-hero, .btn-gold, .btn-outline, .btn-primary {
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
  }

  /* Compact navigation */
  nav ul { gap: 0.5rem; }
  nav a { font-size: 0.8rem; }

  /* Smaller go to top button */
  #goToTop {
    padding: 0.5rem !important;
    bottom: 1rem !important;
    right: 1rem !important;
  }

  #goToTop svg { width: 16px; height: 16px; }
}
  #faq .caret { display: none; }
}

/* Smartphone layout fixes for Clients top cards */
@media (max-width: 640px) {
  /* Stack content vertically and center the logo at the top */
  #clients .grid > .reveal {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.75rem;
  }

  /* Ensure the logo block is centered */
  #clients .grid > .reveal > .w-24 {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.25rem;
  }
}

/* Footer responsive adjustments */
@media (max-width: 768px) {
  footer .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  footer .md\:col-span-2 {
    grid-column: span 1;
  }

  footer .flex {
    justify-content: center;
  }
}

/* Ultra small devices (<= 360px) */
@media (max-width: 360px) {
  .btn-hero, .btn-gold { width: 100%; }

  /* Ensure timeline sections are fully responsive */
  .timeline-item {
    font-size: 0.875rem;
    padding: 0.75rem;
  }

  .timeline-item h4 {
    font-size: 1rem;
  }

  .timeline-item p {
    font-size: 0.8rem;
  }

  /* Press Release & Documentary Timeline Mobile Fixes */
  .timeline-item .w-20 {
    width: 3rem !important;
    height: 3rem !important;
  }

  .timeline-item .w-20 svg {
    width: 16px !important;
    height: 16px !important;
  }

  .timeline-item h5 {
    font-size: 1rem !important;
  }

  .timeline-card {
    padding: 1rem !important;
  }

  .timeline-card p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
/* Booth Section - Unique Styling */
#portfolio-booth {
  background: linear-gradient(135deg, #fef7f0 0%, #fff8f2 50%, #fefcfb 100%);
}

.booth-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(167, 30, 34, 0.08);
}

.booth-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(167, 30, 34, 0.1);
}

.booth-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.booth-card:hover img {
  transform: scale(1.1);
}

.booth-stat {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.booth-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 30, 34, 0.05), transparent);
  transition: left 0.5s ease;
}

.booth-stat:hover::before {
  left: 100%;
}

.booth-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(167, 30, 34, 0.15);
}

/* Process Steps Animation */
#portfolio-booth .grid > div {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

#portfolio-booth .grid > div:nth-child(1) { animation-delay: 0.1s; }
#portfolio-booth .grid > div:nth-child(2) { animation-delay: 0.2s; }
#portfolio-booth .grid > div:nth-child(3) { animation-delay: 0.3s; }
#portfolio-booth .grid > div:nth-child(4) { animation-delay: 0.4s; }
#portfolio-booth .grid > div:nth-child(5) { animation-delay: 0.5s; }
#portfolio-booth .grid > div:nth-child(6) { animation-delay: 0.6s; }

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

/* Booth Tags */
.booth-card span {
  transition: all 0.2s ease;
}

.booth-card span:hover {
  transform: scale(1.05);
}

/* Process Section Gradient */
#portfolio-booth .bg-gradient-to-r {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 50%, #fcd34d 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Responsive Booth Cards */
@media (max-width: 768px) {
  .booth-card {
    margin-bottom: 1rem;
  }

  #portfolio-booth .grid {
    gap: 1rem;
  }

  .booth-stat {
    padding: 0.75rem;
  }
}

@media (max-width: 640px) {
  #portfolio-booth .grid {
    grid-template-columns: 1fr;
  }

  .booth-card .flex {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

/* Booth Icon Animation */
#portfolio-booth svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Enhanced Hover Effects for Booth Cards */
.booth-card .group:hover .absolute {
  opacity: 1;
}

.booth-card .group .absolute div {
  transition: transform 0.3s ease;
}

.booth-card .group:hover .absolute div {
  transform: translateY(0);
}

/* Studio 3D for Meetings - Unique 3D Effects */
#portfolio-studio_3d_for_meetings {
  perspective: 1000px;
}

.studio-3d-hero {
  position: relative;
  overflow: hidden;
}

.studio-3d-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(167, 30, 34, 0.05) 0%, rgba(255, 222, 24, 0.05) 100%);
  pointer-events: none;
}

.shadow-3d-card {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    0 1px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform-style: preserve-3d;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-3d-card:hover {
  transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 10px 25px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Services tabs - Enhanced mobile behavior */
.service-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .service-tab {
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Portfolio tabs - Enhanced mobile behavior */
.portfolio-tab {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 640px) {
  .portfolio-tab {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: fit-content;
  }
}

/* @media (max-width: 768px) {
  #about p.text-brand-primary {
    text-align: center;
  }
} */