/* ==========================================================================
   VICNESHWARANATHAN RAMANATHAN (V W NATHAN) - OFFICIAL BIOGRAPHY STYLESHEET
   Domain: www.vicneshwaranathanramanathan.com
   ========================================================================== */

:root {
  --primary-bg: #070B14;
  --secondary-bg: #0E1626;
  --card-bg: rgba(19, 29, 49, 0.75);
  --card-border: rgba(212, 175, 55, 0.22);
  --card-border-hover: rgba(212, 175, 55, 0.6);
  --gold-primary: #D4AF37;
  --gold-light: #F6E294;
  --gold-dark: #997A15;
  --gold-gradient: linear-gradient(135deg, #F6E294 0%, #D4AF37 50%, #997A15 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-blue: #1E3A8A;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* Base smoothing */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--primary-bg);
  color: var(--text-primary);
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(30, 58, 138, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.5) 0%, transparent 70%);
  background-attachment: fixed;
}

/* Typography classes */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

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

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

.text-gradient-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
}

/* Luxury card styles */
.luxury-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--card-border);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--gold-glow);
  transform: translateY(-3px);
}

.luxury-card-subtle {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.luxury-card-subtle:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* Gold glow button */
.btn-gold {
  background: var(--gold-gradient);
  color: #070B14;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.6s ease;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.45);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-light);
  font-weight: 600;
  border: 1px solid var(--gold-primary);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-light);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

/* Badge styles */
.badge-gold {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Top reading progress */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold-gradient);
  z-index: 100;
  transition: width 0.1s linear;
}

/* Navigation */
.navbar {
  transition: all 0.3s ease;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.navbar.scrolled {
  background: rgba(7, 11, 20, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.35rem 0;
}

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

.nav-link:hover, .nav-link.active {
  color: #FFFFFF;
}

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

/* Timeline vertical line */
.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.6) 0%, rgba(212, 175, 55, 0.2) 80%, transparent 100%);
}

@media (min-width: 768px) {
  .timeline-line-center {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #070B14;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 12px var(--gold-primary);
}

/* Image frame */
.image-frame-gold {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.image-frame-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.5), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Video wrapper & interactive facade */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  background: #020617;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Video Facade (Poster with play button) */
.video-facade {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.video-facade::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.4) 0%, rgba(7, 11, 20, 0.85) 100%);
  transition: background 0.3s ease;
}

.video-facade:hover::before {
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.2) 0%, rgba(7, 11, 20, 0.7) 100%);
}

.play-button-pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #070B14;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulse-gold 2s infinite;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.video-facade:hover .play-button-pulse {
  transform: scale(1.12);
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Gallery filter pills */
.gallery-filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.6);
}

.gallery-filter-btn:hover {
  color: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.4);
}

.gallery-filter-btn.active {
  background: var(--gold-gradient);
  color: #070B14;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(4, 7, 13, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

/* Section divider */
.gold-divider {
  height: 1px;
  width: 80px;
  background: var(--gold-gradient);
  margin: 1.25rem auto;
}

.gold-divider-left {
  height: 1px;
  width: 70px;
  background: var(--gold-gradient);
  margin: 1rem 0;
}

/* Domain seal */
.domain-seal {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(14, 22, 38, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Print Stylesheet */
@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  
  .navbar, #progress-bar, .btn-gold, .btn-outline-gold, #contact-form, #back-to-top, .no-print {
    display: none !important;
  }
  
  .luxury-card, .luxury-card-subtle {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
    color: #111827 !important;
    page-break-inside: avoid;
  }
  
  .text-gradient-gold, .text-gold, .text-gold-light {
    color: #92400e !important;
    -webkit-text-fill-color: initial !important;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: #111827 !important;
  }
  
  p, span, li {
    color: #374151 !important;
  }
  
  .image-frame-gold {
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
  }
  
  .video-responsive {
    display: none !important;
  }
  
  .print-only {
    display: block !important;
  }
}
