/* ===== Custom Styles for Helix Systems ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #2e2e2e;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3e3e3e;
}

/* Selection color */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #f0f0f0;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

/* ===== Hero ===== */
#hero {
  position: relative;
}

/* ===== Service Cards ===== */
.group:hover .group-hover\:border-gold-500\/40 {
  border-color: rgba(201, 168, 76, 0.4);
}

.group:hover .group-hover\:border-coral-500\/40 {
  border-color: rgba(232, 101, 90, 0.4);
}

/* ===== Mobile Menu ===== */
#mobileMenu.open {
  opacity: 1;
  pointer-events: all;
}

/* ===== Form Focus States ===== */
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(201, 168, 76, 0.6) !important;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2) !important;
}

/* ===== Gold Gradient Text ===== */
.text-gold-gradient {
  background: linear-gradient(135deg, #c9a84c 0%, #e8655a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Button Hover Glow ===== */
.bg-coral-500:hover,
.bg-coral-400 {
  box-shadow: 0 0 30px rgba(232, 101, 90, 0.3);
}

/* ===== Scroll Reveal (Progressive Enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767px) {
  .font-serif {
    line-height: 1.15;
  }

  #hero h1 {
    font-size: 2.5rem;
  }

  @media (min-width: 360px) {
    #hero h1 {
      font-size: 2.25rem;
    }
  }

  @media (min-width: 420px) {
    #hero h1 {
      font-size: 2.5rem;
    }
  }

  @media (min-width: 640px) {
    #hero h1 {
      font-size: 3rem;
    }
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
