/* ==========================================================================
   Advocate Gaurav Gupta | Black Law Office
   Expansive Layout & Modern Typography (Outfit + Plus Jakarta Sans)
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #090d16;
  --bg-navy: #0f172a;
  --bg-blue-section: #0f1f3d;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-blue-subtle: #eff6ff;
  --accent-gold: #b45309;
  --accent-gold-light: #fbbf24;

  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base resets & smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.65;
}

/* Custom Display Headings */
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

/* Minimalist Light Card Styles (Expansive & Airy) */
.minimal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .minimal-card {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.minimal-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.09), 0 6px 12px -2px rgba(15, 23, 42, 0.04);
  transform: translateY(-3px) scale(1.02);
}

/* Glassmorphism Styling */
.glass-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.35);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.06), inset 0 1px 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .glass-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.5), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

/* Interactive Hover States */
.interactive-hover-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease-in-out,
              box-shadow 0.35s ease-in-out;
}

.interactive-hover-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.7) !important;
  box-shadow: 0 20px 35px -8px rgba(37, 99, 235, 0.25), 0 0 20px 2px rgba(59, 130, 246, 0.2);
}

.interactive-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease-in-out,
              box-shadow 0.3s ease-in-out,
              background-color 0.3s ease-in-out;
}

.interactive-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 25px -4px rgba(37, 99, 235, 0.4), 0 0 15px 1px rgba(96, 165, 250, 0.3);
}

/* Scroll Reveal Animations (Fail-safe Progressive Enhancement) */
.reveal-on-scroll {
  opacity: 1;
  transform: none;
}

html.has-js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

html.has-js .reveal-on-scroll.is-revealed,
.reveal-on-scroll.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.reveal-delay-100 { transition-delay: 100ms; }
.reveal-delay-200 { transition-delay: 200ms; }
.reveal-delay-300 { transition-delay: 300ms; }
.reveal-delay-400 { transition-delay: 400ms; }

/* Typewriter Cursor */
.typing-cursor {
  display: inline-block;
  font-weight: 300;
  margin-left: 2px;
  color: #f59e0b;
  animation: blinkCursor 0.9s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Blue Section Card Styles (Deep Navy / Royal Ambient Glass) */
.blue-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 1.25rem;
  backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blue-card:hover {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45), 0 0 25px -4px rgba(37, 99, 235, 0.3);
  transform: translateY(-3px);
}

/* Advanced Dark Hero Section Aesthetics (Mobile & Cross-Browser Safe) */
.hero-dark-bg {
  background-color: #060a13 !important;
  background-image: 
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.22) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(30, 58, 138, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.7) 0%, transparent 100%);
}

.hero-grid-overlay {
  background-image: radial-gradient(rgba(96, 165, 250, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 35%, rgba(0, 0, 0, 0) 80%);
}

.dark-glass-card {
  background-color: #0b1329;
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 1px 1px 0 rgba(255, 255, 255, 0.1);
}

/* Bulletproof Gradient Text with Solid Fallback for Mobile Safari / WebViews */
.hero-gradient-text {
  color: #7dd3fc; /* Fallback for browsers with broken background-clip */
  background: linear-gradient(135deg, #60a5fa 0%, #7dd3fc 45%, #fcd34d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-gradient-text {
    color: #7dd3fc !important;
    -webkit-text-fill-color: #7dd3fc !important;
  }
}

/* Subtle Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #090d16;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Modal Transitions */
.modal-overlay {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-content {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.modal-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-hidden .modal-content {
  transform: scale(0.96) translateY(8px);
}

/* Call Button Pulse */
@keyframes pulseRingBlue {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.call-pulse-blue {
  animation: pulseRingBlue 2.2s infinite;
}
