/* ============================================
   PALIYA ASSOCIATES - style.css
   ============================================ */

/* ---- Root Variables ---- */
:root {
  --gold-400: #e8b84b;
  --gold-500: #c9932a;
  --navy-900: #08132a;
  --navy-950: #040c1c;
}

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

* {
  box-sizing: border-box;
}

/* ---- Hero Background ---- */
.hero-bg {
  background: linear-gradient(
    135deg,
    #040c1c 0%,
    #08132a 40%,
    #0f1f3d 70%,
    #1a3060 100%
  );
  position: relative;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,147,42,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,147,42,0.04) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9932a' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ---- Navbar Scroll Effect ---- */
#navbar.scrolled {
  background-color: rgba(8, 19, 42, 0.97) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(201, 147, 42, 0.15);
}

/* ---- Marquee Animation ---- */
.marquee-track {
  animation: marquee 25s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Fade In Up Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }

/* ---- Slow Spin for Hero Circles ---- */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin-slow 30s linear infinite;
}

/* ---- Practice Card Hover ---- */
.practice-card {
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.practice-card:hover::before {
  transform: scaleX(1);
}

/* ---- Section Reveal Animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---- Scrollbar Styling ---- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--gold-500);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-400);
}

/* ---- Form Focus Glow ---- */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(201, 147, 42, 0.15);
}

/* ---- Floating WhatsApp Pulse ---- */
#floating-whatsapp {
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
  }
}

/* ---- Mobile Menu ---- */
#mobile-menu a {
  display: block;
  transition: all 0.2s ease;
}

#mobile-menu a:hover {
  padding-left: 8px;
}

/* ---- Responsive Typography ---- */
@media (max-width: 640px) {
  .font-serif.text-7xl {
    font-size: 2.8rem;
    line-height: 1.15;
  }
}

/* ---- Gold Text Gradient ---- */
.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Custom Selection Color ---- */
::selection {
  background-color: var(--gold-500);
  color: white;
}
