/* Custom Styling for Muhammad Fayaz Arain & Team - Advocate High Court */
:root {
  --bg-primary: #071A2A;
  --bg-secondary: #0B2236;
  --bg-deep: #06141F;
  --gold-primary: #D7AD63;
  --gold-soft: #E5C582;
  --gold-dark: #A5803E;
  --text-primary: #F7F5F0;
  --text-secondary: #BBC2C9;
  --border-gold: rgba(215, 173, 99, 0.25);
  --border-gold-hover: rgba(215, 173, 99, 0.7);
  --card-bg: #0B2236;
  --card-bg-hover: #0f2c46;
}

html {
  scroll-padding-top: 76px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: 'Libre Baskerville', Georgia, Cambria, "Times New Roman", Times, serif;
}

.font-sans {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #06141F;
}
::-webkit-scrollbar-thumb {
  background: rgba(215, 173, 99, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Elite Gold Framed Card - Ultra Fast & Smooth Hardware Rendered */
.glass-gold-card {
  background-color: #0B2236;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-gold-card:hover {
  border-color: var(--border-gold-hover);
  background-color: var(--card-bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.5), 0 0 16px -2px rgba(215, 173, 99, 0.2);
}

/* Scroll Progress Indicator at Top of Page */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #D7AD63, #F3DEB3, #D7AD63);
  box-shadow: 0 0 10px rgba(215, 173, 99, 0.8), 0 0 20px rgba(215, 173, 99, 0.5);
  z-index: 100;
  transition: width 0.1s ease-out;
}

/* Tab Category Active State */
.service-tab-btn {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-tab-btn.active {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, rgba(215, 173, 99, 0.22) 0%, rgba(11, 34, 54, 0.95) 100%);
  box-shadow: 0 0 18px rgba(215, 173, 99, 0.3);
  transform: scale(1.02);
}

.service-tab-btn.active .tab-icon {
  background-color: var(--gold-primary);
  color: #071A2A;
  border-color: var(--gold-soft);
}

.service-tab-btn.active .tab-title {
  color: var(--gold-soft);
}

/* Location Map Tab Buttons */
.map-tab-btn {
  cursor: pointer;
  transition: all 0.25s ease;
}

.map-tab-btn.active {
  background-color: #D7AD63;
  color: #071A2A;
  border-color: #D7AD63;
  box-shadow: 0 4px 14px rgba(215, 173, 99, 0.35);
}

/* Background Patterns */
.bg-court-columns {
  background-image: 
    radial-gradient(circle at 50% 15%, rgba(215, 173, 99, 0.12) 0%, transparent 65%),
    linear-gradient(to right, rgba(215, 173, 99, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 32px 100%;
}

.bg-hero-glow {
  background: radial-gradient(circle at 80% 40%, rgba(215, 173, 99, 0.18) 0%, rgba(11, 34, 54, 0.4) 50%, transparent 75%);
}

.bg-luxury-grid {
  background-size: 34px 34px;
  background-image: 
    linear-gradient(to right, rgba(215, 173, 99, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(215, 173, 99, 0.03) 1px, transparent 1px);
}

/* Floating WhatsApp Pulse Animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-pulse {
  animation: pulse-ring 2.2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Subtle Golden Shimmer */
@keyframes gold-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-gold {
  background: linear-gradient(90deg, rgba(215,173,99,0) 0%, rgba(215,173,99,0.3) 50%, rgba(215,173,99,0) 100%);
  background-size: 200% 100%;
  animation: gold-shimmer 4s infinite linear;
}

/* Lightweight 60FPS Scroll Entrance Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.scroll-reveal.reveal-left {
  transform: translateX(-20px);
}

.scroll-reveal.reveal-right {
  transform: translateX(20px);
}

.scroll-reveal.reveal-zoom {
  transform: scale(0.96);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.delay-75  { transition-delay: 0.075s; }
.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-250 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Image Hover Zoom */
.city-card-img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-card:hover .city-card-img {
  transform: scale(1.08);
}

/* Nav Active Link Highlighting */
.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width 0.25s ease;
}

.nav-link.active-nav {
  color: var(--gold-primary) !important;
}

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

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
