/* ============================================
   Asl Electric — Premium Dark Luxury Styles
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

::selection {
  background: rgba(200, 150, 12, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0B1D3A;
}
::-webkit-scrollbar-thumb {
  background: rgba(200, 150, 12, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(200, 150, 12, 0.5);
}

/* ============================================
   Ambient Glow Effects
   ============================================ */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}

.glow-top-right {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(200, 150, 12, 0.08) 0%, transparent 70%);
}

.glow-bottom-left {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(200, 150, 12, 0.06) 0%, transparent 70%);
}

/* ============================================
   Section Labels & Titles
   ============================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8960C;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #C8960C;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: #ffffff;
}

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

#navbar.scrolled {
  background: rgba(4, 13, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8960C;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #C8960C !important;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu */
#mobile-menu {
  width: 100%;
}

.mobile-menu-link {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ============================================
   Service Cards
   ============================================ */
.service-card {
  transform: translateY(0);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Process Steps
   ============================================ */
.process-step {
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  right: -2rem;
  width: calc(2rem - 0px);
  height: 1px;
  background: linear-gradient(to right, rgba(200, 150, 12, 0.3), transparent);
}

@media (max-width: 1023px) {
  .process-step:not(:last-child)::after {
    display: none;
  }
}

/* ============================================
   Testimonial Cards
   ============================================ */
.testimonial-card {
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Scroll Reveal Animations
   (Progressive enhancement — content is visible without JS)
   ============================================ */
@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; }
  .reveal-delay-5 { transition-delay: 0.5s; }
  .reveal-delay-6 { transition-delay: 0.6s; }
}

/* ============================================
   Form Styles
   ============================================ */
select option {
  background: #112A4A;
  color: #fff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(200, 150, 12, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(200, 150, 12, 0.1) !important;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }
}
