/* ============================================
   Al-Taimooir Chemicals - Custom Styles
   Premium Dubai Corporate Theme
   ============================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060a14;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a84c, #d4af37);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e8cc6e;
}

/* --- Glassmorphism Utility --- */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* --- Gold Gradient Text --- */
.gold-text {
  background: linear-gradient(135deg, #f0d78c, #c9a84c, #d4af37, #e8cc6e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Gold Gradient Border --- */
.gold-border {
  border-image: linear-gradient(135deg, #c9a84c, #d4af37) 1;
}

/* --- Hero Overlay --- */
.hero-overlay {
  background: linear-gradient(135deg, rgba(6, 10, 20, 0.88) 0%, rgba(10, 14, 26, 0.7) 50%, rgba(6, 10, 20, 0.85) 100%);
}

/* --- Hero Background Animation --- */
@keyframes heroSlide {
  0%, 25% { opacity: 1; }
  33%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
.hero-slide {
  animation: heroSlide 24s infinite;
}
.hero-slide:nth-child(2) {
  animation-delay: -16s;
}
.hero-slide:nth-child(3) {
  animation-delay: -8s;
}

/* --- Floating Glow Effect --- */
@keyframes float-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(201, 168, 76, 0.3); transform: translateY(0); }
  50% { box-shadow: 0 0 40px rgba(201, 168, 76, 0.5); transform: translateY(-6px); }
}
.float-glow {
  animation: float-glow 3s ease-in-out infinite;
}

/* --- Pulse Ring (WhatsApp Button) --- */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-ring 2s ease-out infinite;
}

/* --- Gradient Line --- */
.gradient-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, #c9a84c, #d4af37, #c9a84c, transparent);
}

/* --- Card Hover Lift --- */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201, 168, 76, 0.15);
}

/* --- Navbar Transition --- */
.nav-transparent {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
.nav-solid {
  background: rgba(6, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Counter Animation --- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* --- Shimmer Effect --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.shimmer {
  background: linear-gradient(90deg, #c9a84c 0%, #f0d78c 25%, #d4af37 50%, #f0d78c 75%, #c9a84c 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}

/* --- Timeline --- */
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, #c9a84c, #d4af37, #c9a84c, transparent);
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
  }
}

/* --- Smooth Section Transitions --- */
section {
  position: relative;
}

/* --- Gold Button Hover --- */
.btn-gold {
  background: linear-gradient(135deg, #c9a84c, #d4af37);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-gold::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 ease;
}
.btn-gold:hover::before {
  left: 100%;
}
.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.4);
  transform: translateY(-2px);
}

/* --- Outline Button --- */
.btn-outline-gold {
  border: 2px solid #c9a84c;
  color: #c9a84c;
  transition: all 0.3s ease;
}
.btn-outline-gold:hover {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
  transform: translateY(-2px);
}

/* --- Page Transition --- */
.page-enter {
  animation: fadeInUp 0.6s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Mobile Menu --- */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.mobile-menu.active {
  transform: translateX(0);
}

/* --- Image Parallax --- */
.parallax-bg {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* --- Stats Grid Dividers --- */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 168, 76, 0.3), transparent);
}
@media (max-width: 768px) {
  .stat-item::after {
    display: none;
  }
}

/* --- Form Input Focus --- */
.form-input:focus {
  border-color: #c9a84c;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  outline: none;
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
