/* Custom CSS for Unbeatable Dome Landing Page */

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

:root {
  --primary-color: #FF6B00;
  --primary-hover: #E65C00;
  --bg-dark: #121212;
  --bg-card: #1A1A1A;
  --text-light: #F3F4F6;
  --text-muted: #9CA3AF;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #121212;
}
::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.glass-header-scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 107, 0, 0.2);
}

.glass-card {
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(255, 107, 0, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.08);
}

/* Hero Gradient Overlay */
.hero-gradient {
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.7) 50%, rgba(255, 107, 0, 0.1) 100%);
}

/* Animated Border Link */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active::after {
  width: 100%;
}

/* Custom Text Gradient */
.text-gradient {
  background: linear-gradient(90deg, #FFFFFF 0%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Pulsing effect for CTA */
@keyframes pulse-neon {
  0%, 100% {
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.8);
  }
}
.pulse-cta {
  animation: pulse-neon 2s infinite;
}

/* Page transitions / Fade-in classes */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  visibility: hidden;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Text shine animation for services title */
.text-shine-animated {
  background: linear-gradient(to right, #ffffff 20%, #ff6b00 40%, #ff6b00 60%, #ffffff 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine-text 5s linear infinite;
  display: inline-block;
}

@keyframes shine-text {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* Expanding horizontal line decorator under services title */
.expandable-line {
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  margin: 1.5rem auto 0 auto;
  border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.is-visible .expandable-line {
  width: 50%;
  max-width: 150px;
}

/* Fine-grained delays for header elements reveal */
.is-visible .delay-span {
  animation: slide-up-fade 0.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.is-visible .delay-title {
  animation: slide-up-fade 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s forwards;
}

.is-visible .delay-desc {
  animation: slide-up-fade 1s cubic-bezier(0.25, 1, 0.5, 1) 0.4s forwards;
}

.animate-on-visible {
  opacity: 0;
  transform: translateY(15px);
}

@keyframes slide-up-fade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
