/* ==========================================================================
   DESIGN SYSTEM & BRAND TOKENS
   ========================================================================== */
:root {
  --bg-dark: #040712;
  --bg-navy: #090e22;
  --card-bg: rgba(13, 19, 44, 0.65);
  --card-border: rgba(59, 73, 126, 0.35);
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-hover: #f1c40f;
  --text-primary: #f8fafc;
  --text-secondary: #a0a6cc;
  --text-muted: #64748b;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.15);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.7;
  letter-spacing: 0.2px;
  overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-hover);
}

::selection {
  background: var(--gold);
  color: var(--bg-dark);
}

/* ==========================================================================
   LAYOUTS & SECTIONS
   ========================================================================== */
section {
  padding: 8rem 3rem 6rem;
  position: relative;
  border-bottom: 1px solid rgba(59, 73, 126, 0.15);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  max-width: 800px;
  margin: 0 auto 5rem;
  text-align: center;
}

.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  position: relative;
}

.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: var(--gold);
  margin: 8px auto 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  letter-spacing: -0.5px;
}

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

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(59, 73, 126, 0.2);
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.8rem 3rem;
  background: rgba(4, 7, 18, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: var(--transition);
}

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

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

.cta-nav {
  background: transparent;
  color: var(--gold) !important;
  border: 1.5px solid var(--gold);
  padding: 0.6rem 1.5rem !important;
  border-radius: 4px;
  font-weight: 700 !important;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.05);
}

.cta-nav::after {
  display: none !important;
}

.cta-nav:hover {
  background: var(--gold);
  color: var(--bg-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--gold-glow);
}

/* ==========================================================================
   HERO SECTION & CUSTOM VIDEO WIDGET
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  background: radial-gradient(circle at 80% 20%, rgba(59, 73, 126, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(212, 175, 55, 0.04) 0%, transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--gold);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 4.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 1rem 2.2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
  border: 1.5px solid var(--gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Custom Video Introduction Card */
.video-card-container {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.video-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: var(--transition);
}

.video-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-lg), 0 0 35px rgba(212, 175, 55, 0.25);
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video Controls overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 18, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.video-wrapper:hover .video-overlay {
  background: rgba(4, 7, 18, 0.25);
}

.play-trigger-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 25px var(--gold);
  transition: var(--transition);
  border: none;
}

.video-overlay:hover .play-trigger-btn {
  transform: scale(1.15);
  background: var(--text-primary);
  box-shadow: 0 0 35px var(--text-primary);
}

.video-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(4, 7, 18, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.video-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* Custom Player Controls Bar */
.custom-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(4, 7, 18, 0.95), transparent);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transform: translateY(100%);
  transition: var(--transition);
  z-index: 20;
}

.video-wrapper:hover .custom-controls,
.video-wrapper.paused .custom-controls {
  transform: translateY(0);
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.progress-bar-container:hover {
  height: 6px;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 2px;
  position: relative;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.control-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.time-display {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-secondary);
}

/* Interactive Transcript */
.transcript-panel {
  background: rgba(4, 7, 18, 0.5);
  border: 1px solid rgba(59, 73, 126, 0.2);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(59, 73, 126, 0.15);
  padding-bottom: 0.4rem;
}

.transcript-header span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 1px;
}

.transcript-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.transcript-toggle-btn:hover {
  color: var(--text-primary);
}

.transcript-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  transition: var(--transition);
}

.transcript-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.transcript-sentence {
  transition: var(--transition);
  border-radius: 3px;
  padding: 0.1rem 0.2rem;
  cursor: pointer;
  display: inline;
}

.transcript-sentence:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.transcript-sentence.active {
  color: var(--bg-dark);
  background-color: var(--gold);
  font-weight: 500;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   CREDENTIALS BAR
   ========================================================================== */
.credentials-bar {
  background: var(--bg-navy);
  border-top: 1px solid rgba(59, 73, 126, 0.2);
  border-bottom: 1px solid rgba(59, 73, 126, 0.2);
  padding: 3rem 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ==========================================================================
   EXECUTIVE SUMMARY & EXPERIENCES
   ========================================================================== */
#executive {
  background: radial-gradient(circle at 10% 20%, rgba(59, 73, 126, 0.1) 0%, transparent 40%);
}

.executive-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: flex-start;
}

.executive-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.4;
}

.executive-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.highlight-card:hover {
  transform: translateX(5px);
  border-color: rgba(212, 175, 55, 0.4);
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.highlight-card strong {
  color: var(--text-primary);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   JOURNEY (TIMELINE)
   ========================================================================== */
#journey {
  background: var(--bg-navy);
}

.journey-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(59, 73, 126, 0.25);
  transform: translateX(-50%);
}

.timeline-row {
  display: flex;
  margin-bottom: 3.5rem;
  position: relative;
}

.timeline-row:last-child {
  margin-bottom: 0;
}

.timeline-node {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--gold);
  position: absolute;
  left: 50%;
  top: 1.8rem;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 10px var(--gold-glow);
}

.timeline-card {
  width: 45%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.timeline-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg), 0 0 15px rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.timeline-row:nth-child(even) {
  justify-content: flex-end;
}

.timeline-row:nth-child(even) .timeline-card {
  text-align: left;
}

.timeline-year {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.timeline-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================================================
   EXPERTISE (STRENGTHS)
   ========================================================================== */
#expertise {
  background: var(--bg-dark);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.expertise-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 3rem 2.2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.expertise-card:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(212, 175, 55, 0.05);
}

.expertise-card:hover::before {
  opacity: 1;
}

.expertise-icon-wrapper {
  font-size: 2rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--gold);
}

.expertise-card h4 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.expertise-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   RECOMMENDATIONS (CAROUSEL)
   ========================================================================== */
#testimonials {
  background: var(--bg-navy);
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
  position: relative;
  min-height: 300px;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1rem;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: '“';
  font-family: var(--font-serif);
  font-size: 8rem;
  color: var(--gold);
  position: absolute;
  top: -20px;
  left: 3rem;
  line-height: 1;
  opacity: 0.15;
}

.testimonial-text {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-avatar-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, #a37f10 100%);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.testimonial-author {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}

.testimonial-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Slider Controls */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
}

.carousel-prev {
  left: -20px;
}

.carousel-next {
  right: -20px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ==========================================================================
   CREDENTIALS & CERTIFICATION FILTER
   ========================================================================== */
#credentials {
  background: var(--bg-dark);
}

.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  padding: 0.6rem 1.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.credentials-grid-container {
  position: relative;
}

.creds-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.creds-category-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2.2rem;
  transition: var(--transition);
  will-change: transform, opacity;
}

.creds-category-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

.creds-category-card h4 {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(59, 73, 126, 0.15);
  padding-bottom: 0.8rem;
}

.cred-list-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cred-list-item {
  font-size: 0.92rem;
  color: var(--text-primary);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(59, 73, 126, 0.08);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.cred-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cred-icon {
  color: var(--gold);
  font-size: 0.85rem;
}

/* ==========================================================================
   PERSONAL MASTERY (VOLUNTEER COMMUNITY)
   ========================================================================== */
.mastery-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.mastery-stats-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mastery-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.mastery-stat-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.mastery-stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

.mastery-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.mastery-narrative-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mastery-narrative-container p {
  font-size: 1.05rem;
  line-height: 1.8;
}

.quote-box {
  background: rgba(212, 175, 55, 0.04);
  border-left: 3px solid var(--gold);
  padding: 1.8rem;
  border-radius: 0 8px 8px 0;
  position: relative;
}

.quote-box p {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
}

.quote-box cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-style: normal;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   CONTACT SECTION & BOOKING BUTTONS
   ========================================================================== */
#contact {
  background: radial-gradient(circle at 50% 90%, rgba(59, 73, 126, 0.15) 0%, transparent 60%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2.2rem;
  transition: var(--transition);
}

.contact-detail-card:hover {
  border-color: rgba(212, 175, 55, 0.25);
  transform: translateY(-2px);
}

.contact-detail-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.contact-link-label {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-link-label:hover {
  color: var(--gold);
}

.contact-detail-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.booking-block {
  margin-top: 1rem;
}

.btn-booking {
  width: 100%;
  text-align: center;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 1.1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.btn-booking:hover {
  background: var(--gold);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.contact-form-container {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 3rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  background: rgba(4, 7, 18, 0.45);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  padding: 0.9rem 1.2rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
  background: rgba(4, 7, 18, 0.75);
}

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

.form-submit-btn {
  background: var(--gold);
  border: 1.5px solid var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  padding: 1.1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

.form-submit-btn:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #02040c;
  padding: 3rem;
  text-align: center;
  border-top: 1px solid rgba(59, 73, 126, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

.footer-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================================
   INTERACTIVE BOOKING MODAL (CALENDLY GLASSMORPHIC MODAL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 7, 18, 0.8);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background: var(--bg-navy);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  width: 90%;
  max-width: 900px;
  height: 85%;
  max-height: 700px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 1.2rem 2rem;
  border-bottom: 1px solid rgba(59, 73, 126, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-serif);
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--gold);
}

.modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #fff; /* Calendly is iframe based and embeds best with white bg */
  position: relative;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   SCROLL INTERSECTION ANIMATION STYLES
   ========================================================================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.scroll-animate.animated {
  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; }

/* ==========================================================================
   HAMBURGER BUTTON
   ========================================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px 4px;
  z-index: 1100;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background 0.2s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--gold);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--gold);
}

/* ==========================================================================
   MOBILE NAVIGATION OVERLAY
   ========================================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.7rem 2.5rem;
  letter-spacing: -0.5px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s;
}

.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav.open a:nth-child(1) { transition-delay: 0.07s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.13s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.19s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.31s; }
.mobile-nav.open a:nth-child(7) { transition-delay: 0.37s; }

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

.mobile-nav .mob-cta {
  font-family: var(--font-sans) !important;
  font-size: 0.8rem !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  color: var(--gold) !important;
  padding: 0.75rem 2.5rem !important;
}

.mobile-nav-divider {
  width: 40px;
  height: 1px;
  background: rgba(212, 175, 55, 0.2);
  margin: 1.2rem 0;
  opacity: 0;
  transition: opacity 0.4s 0.34s;
}

.mobile-nav.open .mobile-nav-divider { opacity: 1; }

/* ==========================================================================
   RESPONSIVE — LARGE LAPTOP (1025px – 1280px)
   ========================================================================== */
@media (min-width: 1025px) and (max-width: 1280px) {
  section { padding: 7rem 2.5rem 5.5rem; }
  nav { padding: 1.2rem 2.5rem; }
  nav.scrolled { padding: 0.8rem 2.5rem; }
  .hero h1 { font-size: 4rem; }
  .section-title { font-size: 2.6rem; }
  .hero-grid { gap: 3rem; }
  .executive-layout { gap: 4rem; }
  .expertise-grid { gap: 2rem; }
}

/* ==========================================================================
   RESPONSIVE — TABLET (769px – 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  section { padding: 6rem 2rem 5rem; }
  nav { padding: 1.2rem 2rem; }
  nav.scrolled { padding: 0.8rem 2rem; }

  .hero h1 { font-size: 3.5rem; }
  .section-title { font-size: 2.4rem; }

  .hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .executive-layout { grid-template-columns: 1fr; gap: 3rem; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .creds-categories-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .mastery-layout { grid-template-columns: 1fr; gap: 3rem; }
  .mastery-stats-container { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }

  /* Timeline — shift to left rail */
  .journey-timeline::before { left: 20px; }
  .timeline-row { padding-left: 52px; margin-bottom: 2.5rem; }
  .timeline-row:nth-child(even) { justify-content: flex-start; }
  .timeline-node { left: 20px; transform: translateX(-50%); }
  .timeline-card { width: 100%; }
  .timeline-row:nth-child(even) .timeline-card { text-align: left; }

  /* Keep carousel buttons inside the viewport */
  .carousel-prev { left: 4px; }
  .carousel-next { right: 4px; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
  section { padding: 5rem 1.5rem 4rem; }

  /* Nav */
  nav { padding: 1rem 1.5rem; }
  nav.scrolled { padding: 0.75rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-nav { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding-top: 5.5rem; padding-bottom: 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { font-size: 2.6rem; letter-spacing: -1px; }
  .hero-subtitle { font-size: 1.05rem; }
  .hero-description { font-size: 0.95rem; margin-bottom: 2rem; }
  .hero-tag { font-size: 0.65rem; }
  .hero-cta { flex-direction: column; gap: 0.9rem; }
  .btn { width: 100%; text-align: center; padding: 0.9rem 1.5rem; }

  /* Section headers */
  .section-title { font-size: 2rem; }
  .section-subtitle { font-size: 0.95rem; }
  .section-header { margin-bottom: 3rem; }

  /* Stats bar — 2×2 grid */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
    max-width: 100%;
  }
  .stat-item { min-width: unset; }
  .stat-number { font-size: 2.6rem; }

  /* Timeline */
  .journey-timeline::before { left: 16px; }
  .timeline-row { padding-left: 44px; margin-bottom: 2rem; }
  .timeline-row:nth-child(even) { justify-content: flex-start; }
  .timeline-node { left: 16px; transform: translateX(-50%); }
  .timeline-card { width: 100%; padding: 1.5rem; }
  .timeline-row:nth-child(even) .timeline-card { text-align: left; }
  .timeline-card h4 { font-size: 1.1rem; }

  /* Expertise — single column, compact cards */
  .expertise-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .expertise-card { padding: 1.8rem 1.5rem; }
  .expertise-icon-wrapper { width: 48px; height: 48px; font-size: 1.4rem; margin-bottom: 1.2rem; }
  .expertise-card h4 { font-size: 1.1rem; }
  .expertise-card p { font-size: 0.88rem; }

  /* Carousel */
  .carousel-container { overflow: visible; padding: 0 1rem; }
  .carousel-viewport { overflow: hidden; border-radius: 12px; }
  .carousel-prev { left: -10px; }
  .carousel-next { right: -10px; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1rem; }
  .testimonial-card { padding: 2rem 1.5rem; }
  .testimonial-card::before { font-size: 5rem; top: -10px; }
  .testimonial-text { font-size: 0.95rem; line-height: 1.7; }

  /* Credentials filter — horizontal scroll, no wrap */
  .filter-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .filter-nav::-webkit-scrollbar { display: none; }
  .filter-btn { flex-shrink: 0; padding: 0.5rem 1.1rem; font-size: 0.72rem; }

  /* Credentials grid */
  .creds-categories-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .creds-category-card { padding: 1.8rem 1.5rem; }

  /* Mastery */
  .mastery-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .mastery-stats-container { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .mastery-stat-number { font-size: 1.8rem; }
  .mastery-stat-card { padding: 1.5rem 1rem; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form-container { padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; gap: 1rem; }

  /* Modal — fullscreen on mobile */
  .modal-container {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    transform: translateY(20px);
  }
  .modal-overlay.active .modal-container { transform: translateY(0); }

  /* Footer */
  footer { padding: 2.5rem 1.5rem; }
  .footer-title { font-size: 0.7rem; letter-spacing: 0.5px; }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
  section { padding: 4.5rem 1.2rem 3.5rem; }

  .hero { padding-top: 5rem; }
  .hero h1 { font-size: 2.1rem; letter-spacing: -0.8px; }
  .hero-subtitle { font-size: 0.95rem; }

  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.88rem; }
  .section-header { margin-bottom: 2.5rem; }

  .stats-grid { gap: 1.5rem 1rem; }
  .stat-number { font-size: 2.2rem; }

  .mastery-stats-container { grid-template-columns: 1fr; gap: 1rem; }

  .video-card { padding: 1rem; gap: 0.8rem; }
  .expertise-card { padding: 1.5rem 1.2rem; }
  .timeline-card { padding: 1.2rem 1rem; }

  .mobile-nav a { font-size: 1.8rem; }

  .carousel-prev { left: -6px; }
  .carousel-next { right: -6px; }
}
