/* Custom styles for PT Sumur Batu website - Modern & Elegant */

/* Hero slider animation - Enhanced */
.hero-section {
  position: relative;
  min-height: 700px;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: slideShow 24s infinite;
  filter: brightness(0.85) contrast(1.1);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  will-change: opacity, transform;
}

.hero-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-slide:nth-child(2) {
  animation-delay: 6s;
}

.hero-slide:nth-child(3) {
  animation-delay: 12s;
}

.hero-slide:nth-child(4) {
  animation-delay: 18s;
}

@keyframes slideShow {
  0% {
    opacity: 0;
    transform: scale(1);
  }
  4% {
    opacity: 1;
    transform: scale(1);
  }
  21% {
    opacity: 1;
    transform: scale(1.05);
  }
  29% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

/* Hero Content Entrance Animations */
.hero-badge-animate {
  animation: fadeInDown 0.8s ease-out 0.2s both;
}

.hero-title-animate {
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description-animate {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta-animate {
  animation: fadeInUp 1s ease-out 0.8s both;
}

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

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

/* Badge Pulse Animation */
.animate-pulse-badge {
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* Decorative Elements Animations */
.animate-pulse-slow {
  animation: pulseGlow 8s ease-in-out infinite;
}

.animate-pulse-slower {
  animation: pulseGlow 12s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

/* Accent Glow Effect */
.hero-accent-glow {
  text-shadow: 0 0 40px rgba(243, 146, 0, 0.5),
               0 0 80px rgba(243, 146, 0, 0.3),
               0 0 120px rgba(243, 146, 0, 0.2);
}

/* Spotlight card effect */
.spotlight-card {
  position: relative;
  overflow: hidden;
}

.spotlight-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: background 0.3s ease;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Customer logos infinite scroll animation */
.logo-scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logo-scroll-track {
  display: flex;
  animation: scroll 30s linear infinite;
  width: max-content;
}

.logo-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-item {
  flex-shrink: 0;
  width: 180px;
  margin: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 1rem;
  transition: all 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
}

/* Language switcher button styles */
.lang-btn {
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* Smooth transitions for language changes */
[data-translate] {
  transition: opacity 0.2s ease;
}

/* Mobile menu animation */
#mobile-menu {
  transition: all 0.3s ease;
}

/* CTA Section Enhanced Styles */
.cta-section {
  position: relative;
}

/* Enhanced Button Shine Effect */
@keyframes shine {
  0% {
    transform: translateX(-100%) skewX(-12deg);
  }
  100% {
    transform: translateX(200%) skewX(-12deg);
  }
}

/* CTA Card Entrance Animation */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Gradient Border Animation */
@keyframes gradientBorder {
  0%, 100% {
    border-color: rgba(0, 76, 151, 0.2);
  }
  50% {
    border-color: rgba(227, 25, 55, 0.2);
  }
}

/* Trust Indicator Fade In */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse Animation for Badge Dot */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #004C97;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #003366;
}

/* ===== NEW STYLES FOR MODERN ABOUT PAGE REDESIGN ===== */

/* Soft shadow for modern cards */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shadow-soft:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Gradient text effects */
.text-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glassmorphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Elegant hover transitions */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Gradient border */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 16px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #3B82F6, #8B5CF6, #EC4899);
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
  opacity: 1;
}

/* Modern section spacing */
.section-spacing {
  padding-top: 120px;
  padding-bottom: 120px;
}

@media (max-width: 768px) {
  .section-spacing {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/* Elegant divider */
.elegant-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(59, 130, 246, 0.3) 50%, 
    transparent 100%);
  margin: 48px auto;
  max-width: 200px;
}

/* Stats counter animation */
.stat-counter {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Image hover effects */
.image-hover-zoom {
  overflow: hidden;
  border-radius: 16px;
}

.image-hover-zoom img {
  transition: transform 0.6s ease;
}

.image-hover-zoom:hover img {
  transform: scale(1.05);
}

/* Modern badge styles */
.modern-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}

/* Gradient background animations */
.animated-gradient {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Text reveal animation */
.text-reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: textReveal 0.8s ease forwards;
}

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

/* Staggered animation delays */
.delay-100 {
  animation-delay: 100ms;
}

.delay-200 {
  animation-delay: 200ms;
}

.delay-300 {
  animation-delay: 300ms;
}

.delay-400 {
  animation-delay: 400ms;
}

.delay-500 {
  animation-delay: 500ms;
}

/* Modern typography enhancements */
.letter-spacing-tight {
  letter-spacing: -0.025em;
}

.letter-spacing-normal {
  letter-spacing: -0.015em;
}

/* Line height improvements */
.leading-relaxed {
  line-height: 1.75;
}

.leading-loose {
  line-height: 2;
}

/* Responsive text sizes */
@media (max-width: 768px) {
  .text-responsive-xl {
    font-size: 2.5rem;
  }
  
  .text-responsive-lg {
    font-size: 1.875rem;
  }
  
  .text-responsive-md {
    font-size: 1.5rem;
  }
}

/* Modern color utilities */
.text-blue-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-blue-gradient {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
}

.bg-indigo-gradient {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

/* Modern border radius */
.rounded-3xl {
  border-radius: 1.5rem;
}

.rounded-4xl {
  border-radius: 2rem;
}

/* Z-index utilities */
.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

/* Opacity utilities */
.opacity-5 {
  opacity: 0.05;
}

.opacity-10 {
  opacity: 0.1;
}

.opacity-20 {
  opacity: 0.2;
}

.opacity-30 {
  opacity: 0.3;
}

/* Backdrop blur utilities */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.backdrop-blur-md {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}