/* ==========================================================================
   Aesthetic Match: Modern Studio Purple Theme (No Person Image)
   With Exact DevsLoad-Style Horizontal Browser Mockup Project Card
   ========================================================================== */

:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-light: #f5f3ff;
  --primary-border: #ede9fe;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --text-sub: #334155;
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --border-light: #f1f5f9;
  --border-subtle: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
}

body {
  position: relative;
}

section[id] {
  scroll-margin-top: 100px;
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
}

/* Background Ambient Gradient */
.bg-studio-ambient {
  background: 
    radial-gradient(circle at 15% 12%, rgba(124, 58, 237, 0.035) 0%, transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(168, 85, 247, 0.025) 0%, transparent 60%);
}

/* Reference Navigation Links with Active Indicator */
.nav-link {
  position: relative;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #475569;
  transition: color 0.2s ease;
  padding: 0.5rem 0.25rem;
}

.nav-link:hover {
  color: var(--primary);
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 9999px;
}

/* Clean Reference Cards */
.card-clean {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 1.25rem;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-clean:hover {
  border-color: #ddd6fe;
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(124, 58, 237, 0.09), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
}

/* ==========================================================================
   Studio Light Project Showcase Mockup (Aarav Rathod Theme)
   ========================================================================== */
.browser-chrome-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

.browser-bar-light {
  background: #f8fafc;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.browser-url-pill-light {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.2rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
}

/* Hero Centerpiece Orbit Halo (Tech Visual Instead of Person Photo) */
.hero-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  height: 460px;
  max-width: 90vw;
  max-height: 90vw;
  border-radius: 50%;
  border: 1.5px dashed rgba(167, 139, 250, 0.35);
  pointer-events: none;
  animation: rotateClockwise 50s linear infinite;
  z-index: 1;
}

@media (max-width: 640px) {
  .hero-halo {
    width: 290px;
    height: 290px;
  }
}

.hero-halo::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.hero-halo::after {
  content: '';
  position: absolute;
  top: 80px;
  left: 80px;
  right: 80px;
  bottom: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(124, 58, 237, 0.02) 60%, transparent 80%);
}

@keyframes rotateClockwise {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating Glass HUDs */
.glass-hud {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(221, 214, 254, 0.9);
  border-radius: 1.1rem;
  box-shadow: 0 15px 35px -8px rgba(124, 58, 237, 0.14), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease;
}

.glass-hud:hover {
  transform: translateY(-2px);
}

/* Waveform pulse animation */
.wave-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: dash 2.5s ease-in-out infinite alternate;
}

@keyframes dash {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

/* Process Timeline Horizontal Line */
.process-track {
  position: absolute;
  top: 24px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #ede9fe;
  z-index: 1;
}

/* Section Header Tags */
.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  display: block;
  margin-bottom: 0.35rem;
}

/* Smooth Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  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;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modal styling */
.modal-overlay {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
