/* ========== CUSTOM STYLES ========== */

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

/* Navbar background on scroll */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.nav-scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* Mobile menu transitions */
#mobileMenu {
  animation: slideDown 0.25s ease;
}

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

#mobileMenu.open {
  display: block;
}

#mobileMenu.hidden {
  display: none;
}

/* Mobile menu link hover */
.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ========== HERO ========== */
.hero-gradient {
  background: linear-gradient(135deg, #1a0a20 0%, #7B2D8E 35%, #4a1a6b 60%, #1e0a30 100%);
  position: relative;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245, 158, 11, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(168, 85, 176, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Decorative shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -150px;
}

.hero-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 176, 0.2) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
  top: 40%;
  left: 10%;
}

/* Hero badge animation */
.hero-badge {
  animation: fadeInDown 0.7s ease both;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Default visible state (no JS fallback) */
.reveal {
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
  .service-card,
  .testimonial-card {
    transition: none;
  }
}

/* ========== SERVICE CARDS ========== */
.service-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ========== TESTIMONIAL CARDS ========== */
.testimonial-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ========== NAV LINK ACTIVE STATE ========== */
nav a.active {
  color: #7B2D8E;
}

/* ========== MOBILE MENU BUTTON ANIMATION ========== */
.menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
  width: 1.25rem;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #7B2D8E;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ========== FORM STYLES ========== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f9fafb;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
