/**
 * PiyushVakil.AI Design System v2.0
 * ================================
 * Single source of truth for brand styling
 * Typography: Manrope (body) + Playfair Display (headings)
 * Palette: Deep black surfaces + gold accent
 * Tone: Executive, measured, outcomes-focused
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Surfaces */
  --bg-void: #020305;
  --bg-deep: #020305;
  --bg-surface: #0a0e14;
  --bg-elevated: #10151d;
  --bg-card: rgba(16, 21, 29, 0.6);
  
  /* Gold - Primary Accent */
  --gold: #C5A054;
  --gold-light: #E2C88A;
  --gold-vivid: #FFD666;
  --gold-dark: #9A7B30;
  --gold-muted: #9A7B30;
  --gold-dim: rgba(197, 160, 84, 0.12);
  --gold-glow: rgba(197, 160, 84, 0.4);
  
  /* Typography Colors */
  --text-white: #FFFFFF;
  --text-bright: #FFFFFF;
  --text-primary: #E8ECF2;
  --text-main: #E8ECF2;
  --text-muted: #8A9AB0;
  --text-subtle: #4A5568;
  
  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(197, 160, 84, 0.3);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  /* Glass Effects */
  --glass-bg: rgba(10, 14, 20, 0.8);
  --glass-blur: blur(20px);
  
  /* Status Colors */
  --success: #34D399;
  --error: #F87171;
  --warning: #FBBF24;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 100px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-void);
  color: var(--text-main);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Headings - Playfair Display */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

/* Body Text */
p {
  color: var(--text-muted);
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-bright { color: var(--text-bright); }

/* ============================================
   AMBIENT BACKGROUND
   ============================================ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: drift 15s ease-in-out infinite;
}

.orb-gold {
  width: 700px;
  height: 700px;
  background: var(--gold);
  opacity: 0.08;
  top: -300px;
  left: -200px;
}

.orb-secondary {
  width: 500px;
  height: 500px;
  background: #3B5998;
  opacity: 0.04;
  bottom: -200px;
  right: -100px;
  animation-delay: -7s;
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar,
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled,
#navbar.scrolled {
  padding: 0.875rem 0;
  background: rgba(2, 3, 5, 0.95);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-bright);
}

.logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  transition: color var(--transition-base);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-bright);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Dropdown Nav */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  background: none; border: none; cursor: pointer;
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  font-family: inherit; display: inline-flex; align-items: center; gap: 0.3rem;
  transition: color var(--transition-base); padding: 0; line-height: 1;
  position: relative;
}
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active { color: var(--text-bright); }
.nav-dropdown-trigger:hover::after { width: 100%; }
.nav-dropdown-trigger svg { transition: transform 0.25s ease; }
.nav-dropdown.open .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10, 14, 20, 0.96); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  padding: 0.5rem; min-width: 240px;
  opacity: 0; visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(197,160,84,0.06);
  z-index: 200;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px;
  background: rgba(10, 14, 20, 0.96);
  border: 1px solid rgba(255,255,255,0.1); border-bottom: none; border-right: none;
  transform: translateX(-50%) rotate(45deg); border-radius: 2px 0 0 0;
}
.nav-dropdown-menu a {
  display: flex !important; align-items: center; gap: 0.75rem;
  padding: 0.625rem 0.75rem; border-radius: 10px;
  font-size: 0.8rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: all 0.15s ease;
  letter-spacing: 0; text-transform: none;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  background: rgba(197, 160, 84, 0.08); color: var(--text-bright);
}
.nav-dropdown-menu .dd-icon { font-size: 1.125rem; flex-shrink: 0; }
.nav-dropdown-menu .dd-label { font-weight: 600; font-size: 0.8rem; line-height: 1.2; }
.nav-dropdown-menu .dd-desc { font-size: 0.6rem; color: var(--text-dim); line-height: 1.3; margin-top: 1px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-main);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  background: transparent;
  font-family: 'Manrope', sans-serif;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-contact {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  border: none;
}

.nav-contact:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 1rem 2rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #000;
  box-shadow: 0 8px 32px -8px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -8px rgba(197, 160, 84, 0.5);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
  text-align: center;
}

.footer-seal {
  width: 80px;
  height: auto;
  margin: 0 auto var(--space-lg);
  opacity: 0.7;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: var(--space-sm);
}

.footer-logo span {
  color: var(--gold);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.footer-legal {
  font-size: 0.7rem;
  color: var(--text-subtle);
  max-width: 800px;
  margin: var(--space-xl) auto 0;
  line-height: 1.6;
}

.footer-legal strong {
  color: var(--gold);
}

.footer-copy {
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(197, 160, 84, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   PAGE HEADER (for sub-pages)
   ============================================ */
.page-header {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.page-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   ACCESS GATE
   ============================================ */
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-void);
  padding: var(--space-lg);
}

.access-gate.hidden {
  display: none;
}

.gate-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.gate-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.gate-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.gate-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gate-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--glass-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: var(--space-md) auto 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.gate-back {
  margin-top: var(--space-lg);
}

.gate-back a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.gate-back a:hover {
  color: var(--gold);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(2, 3, 5, 0.98);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    display: none;
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-menu a {
    padding: 0.75rem 1.5rem;
    width: 100%;
    text-align: center;
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  /* Mobile dropdown */
  .nav-dropdown { width: 100%; text-align: center; }
  .nav-dropdown-trigger { width: 100%; justify-content: center; padding: 0.75rem 1.5rem; }
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: transparent; border: none; box-shadow: none;
    backdrop-filter: none; padding: 0; min-width: auto;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; gap: 0; }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-menu a { padding: 0.5rem 1.5rem; justify-content: center; }
  
  .nav-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.75rem;
  }
}
