/* ================================================================
   Senema Productions — Main Stylesheet
   Dark glassmorphic theme with orange (#ff6424) accents
   ================================================================ */

/* ----- GOOGLE FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ----- ROOT VARIABLES (brand colours) ----- */
:root {
  --primary: #262626;
  --secondary: #323731;
  --accent: #ff6424;
  --accent-light: #ff8a5a;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary);
  color: var(--white);
  scroll-behavior: smooth;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', serif;
}

/* ----- UTILITY CLASSES ----- */
.text-accent { color: var(--accent); }
.text-accent-light { color: var(--accent-light); }
.bg-accent { background-color: var(--accent); }
.bg-secondary-dark { background-color: var(--secondary); }
.border-accent { border-color: var(--accent); }

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.025em;
  border: none;
  cursor: pointer;
}
.btn-accent:hover {
  background-color: var(--accent-light);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 100, 36, 0.35);
}

.btn-outline-accent {
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  letter-spacing: 0.025em;
  background: transparent;
  cursor: pointer;
}
.btn-outline-accent:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: scale(1.03);
  box-shadow: 0 8px 30px rgba(255, 100, 36, 0.25);
}

/* ----- GLASSMORPHIC NAV ----- */
.glass-nav {
  background: rgba(38, 38, 38, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 100, 36, 0.15);
  transition: background 0.3s ease;
}
.glass-nav.scrolled {
  background: rgba(38, 38, 38, 0.92);
}

/* ----- HERO OVERLAY ----- */
.hero-overlay {
  background: linear-gradient(135deg,
      rgba(38, 38, 38, 0.85) 0%,
      rgba(38, 38, 38, 0.50) 60%,
      rgba(38, 38, 38, 0.20) 100%);
}

.hero-iframe-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  pointer-events: none;
}
.hero-iframe-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.4;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* ----- SERVICE CARD ----- */
.service-card {
  background: var(--secondary);
  border: 1px solid rgba(255, 100, 36, 0.12);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: default;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
}
.service-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(255, 100, 36, 0.12);
}
.service-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 100, 36, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 100, 36, 0.15);
}
.service-card .icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
}
.service-card .learn-more {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.3s ease;
}
.service-card .learn-more:hover { gap: 0.8rem; }

/* ----- TRUST SCROLLER ----- */
.trust-scroller {
  display: flex;
  gap: 3rem;
  align-items: center;
  animation: scrollTrust 30s linear infinite;
  width: max-content;
}
.trust-track {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
@keyframes scrollTrust {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-item {
  flex-shrink: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  filter: grayscale(1);
  transition: all 0.4s ease;
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 1.2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.trust-item:hover {
  opacity: 1;
  filter: grayscale(0);
  border-color: var(--accent);
  color: var(--white);
}

/* ----- TABS ----- */
.service-tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.service-tab-btn:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.service-tab-btn.active {
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  border-color: var(--accent);
}

.service-panel {
  display: none;
  animation: fadePanel 0.45s ease;
}
.service-panel.active { display: block; }
@keyframes fadePanel {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----- PROCESS STEPS ----- */
.process-step {
  border-left: 2px solid rgba(255, 100, 36, 0.30);
  padding-left: 1.5rem;
  padding-bottom: 1.8rem;
  position: relative;
}
.process-step:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}
.process-step::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 100, 36, 0.25);
}
.process-step .step-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
}

/* ----- AUDIO CARDS ----- */
.audio-card {
  background: var(--secondary);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(255, 100, 36, 0.08);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  backdrop-filter: blur(4px);
}
.audio-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(255, 100, 36, 0.06);
}
.audio-play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 100, 36, 0.12);
  border: 1px solid rgba(255, 100, 36, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  color: var(--accent);
}
.audio-play-btn:hover {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.06);
}
.audio-card audio { display: none; }

/* ----- TIMELINE ----- */
.timeline-item {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .tl-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  position: relative;
  z-index: 2;
}
.timeline-item .tl-line {
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 100, 36, 0.20);
  z-index: 1;
}
.timeline-item:last-child .tl-line { display: none; }
.timeline-item .tl-content { flex: 1; padding-top: 0.2rem; }
.timeline-item .tl-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.timeline-item .tl-content .tl-sub {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.timeline-item .tl-content p {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.95rem;
  line-height: 1.6;
}
.timeline-item .tl-content .tl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin-top: 0.6rem;
}
.timeline-item .tl-content .tl-grid span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
.timeline-item .tl-content .tl-grid strong {
  color: var(--white);
  font-weight: 500;
}

/* ----- COURSE & FACILITATOR CARDS ----- */
.course-card {
  background: var(--secondary);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255, 100, 36, 0.08);
  transition: all 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(4px);
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(255, 100, 36, 0.08);
}
.course-card .course-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
.course-card .course-meta span {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.8rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.facilitator-card {
  background: var(--secondary);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(255, 100, 36, 0.06);
  text-align: center;
  transition: all 0.35s ease;
  backdrop-filter: blur(4px);
}
.facilitator-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(255, 100, 36, 0.06);
}
.facilitator-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 100, 36, 0.10);
  margin: 0 auto 0.75rem;
  border: 2px solid rgba(255, 100, 36, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  overflow: hidden;
}
.facilitator-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- PROJECT CARDS (Portfolio) ----- */
.project-card {
  background: var(--secondary);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(4px);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(255, 100, 36, 0.12);
}
.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.project-card .project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card .project-body h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.project-card .project-body .project-cat {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.project-card .project-body p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  flex: 1;
  margin-bottom: 1rem;
}
.project-card .project-body .btn-outline-accent {
  font-size: 0.8rem;
  padding: 0.4rem 1.2rem;
  align-self: flex-start;
}

/* ----- PARALLAX SECTION ----- */
.parallax-section {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(38, 38, 38, 0.75);
  z-index: -1;
  backdrop-filter: blur(2px);
}
.parallax-section .content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 4xl;
  margin: 0 auto;
  padding: 2rem;
}

/* ----- ACCENT UNDERLINE ----- */
.accent-underline {
  position: relative;
}
.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.accent-underline.center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ----- RESPONSIVE TWEAKS ----- */
@media (max-width: 768px) {
  .timeline-item .tl-grid { grid-template-columns: 1fr !important; gap: 0.4rem !important; }
  .hero-title { font-size: 2.2rem !important; }
  .hero-sub { font-size: 1rem !important; }
  .service-tab-btn { font-size: 0.75rem; padding: 0.4rem 0.9rem; }
  .glass-nav { padding: 0.5rem 1rem !important; }
  .audio-card { flex-wrap: wrap; }
  .parallax-section { background-attachment: scroll; min-height: 40vh; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

.glass-panel {
  background: rgba(50, 55, 49, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ----- LOGO CONTAINER (light background) ----- */
.logo-box {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.3rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}
.logo-box:hover {
  box-shadow: 0 4px 30px rgba(255, 100, 36, 0.3);
}
.logo-box img {
  display: block;
  width: auto;
  height: 32px;
  max-height: 48px;
  object-fit: contain;
}
@media (min-width: 768px) {
  .logo-box img { height: 40px; }
}
.logo-box-footer {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.4rem 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.logo-box-footer img {
  height: 50px;
  width: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .logo-box-footer img { height: 40px; }
}

.footer-link {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}
.footer-link:hover { color: var(--accent); }

/* ----- FADE-IN ANIMATION ----- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- BLOG CARD (additional) ----- */
.blog-card { transition: all 0.3s ease; }
.blog-card img { transition: transform 0.5s ease; }
.blog-card:hover img { transform: scale(1.05); }

/* ----- GALLERY LIGHTBOX ----- */
#lightbox { display: none; }
#lightbox.show { display: flex; }
