/* ═══════════════════════════════════════════
   HENNING PRODUCT DEVELOPMENT — CINEMATIC CSS
   ═══════════════════════════════════════════ */

:root {
  --color-bg-dark: #1a1a1c;
  --color-bg-darker: #121214;
  --color-text-light: #ececec;
  --color-text-muted: #9a9aa0;
  --color-accent: #c62828;
  --color-accent-hover: #e53935;
  --color-accent-glow: rgba(198, 40, 40, 0.35);
  --color-glass-bg: rgba(55, 55, 60, 0.35);
  --color-glass-border: rgba(140, 140, 145, 0.18);
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.dark-theme {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  font-family: var(--font-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ═══ NAVIGATION ═══ */
.glass-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(26, 26, 28, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-glass-border);
  transition: all 0.3s ease;
}
.nav-container {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto; padding: 1rem 2rem;
}
.logo-img { height: 38px; width: auto; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link {
  color: var(--color-text-light); font-size: 0.9rem; font-weight: 500;
  transition: color 0.3s ease; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 2px; background: var(--color-accent); transition: width 0.3s ease;
}
.nav-link:hover { color: var(--color-accent); }
.nav-link:hover::after { width: 100%; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--color-text-light);
  margin: 5px 0; transition: all 0.3s ease;
}

/* ═══ BUTTONS ═══ */
.btn-primary {
  background: var(--color-accent); color: #fff;
  padding: 0.6rem 1.6rem; border-radius: 30px; font-weight: 600;
  transition: all 0.3s ease; display: inline-block;
}
.btn-primary:hover {
  background: var(--color-accent-hover); transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-accent-glow);
}
.btn-primary::after { display: none; }

.btn-secondary {
  background: transparent; color: #fff;
  border: 1px solid var(--color-glass-border);
  padding: 0.6rem 1.6rem; border-radius: 30px; font-weight: 600;
  transition: all 0.3s ease; display: inline-block;
}
.btn-secondary:hover { background: var(--color-glass-bg); border-color: rgba(255,255,255,0.3); }
.large { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ═══ HERO ═══ */
.hero-section {
  position: relative; height: 100vh; display: flex;
  align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.hero-bg-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
}
.hero-bg-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(26,26,28,0.4) 0%, rgba(26,26,28,0.7) 50%, rgba(26,26,28,1) 100%);
  z-index: -1;
}
.hero-content { max-width: 950px; padding: 0 2rem; }
.cinematic-title {
  font-family: var(--font-primary); font-size: 4.2rem; font-weight: 800;
  line-height: 1.1; margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #fff 20%, #888 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cinematic-subtitle {
  font-size: 1.15rem; opacity: 0.75; margin-bottom: 1.5rem;
  max-width: 750px; margin-left: auto; margin-right: auto;
}

/* Rotating Taglines — 3D flip */
.tagline-rotator {
  height: 2.5rem; margin-bottom: 2.5rem; position: relative;
  display: flex; justify-content: center; align-items: center;
  perspective: 600px;
}
.tagline {
  position: absolute; width: 100%; text-align: center;
  opacity: 0; font-family: var(--font-primary);
  font-size: 1.3rem; font-weight: 700; letter-spacing: 3px;
  color: #f5c518; /* gold-yellow to stand out */
  text-transform: uppercase;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: rotateX(90deg);
  text-shadow: 0 0 20px rgba(245, 197, 24, 0.3);
}
.tagline.active { opacity: 1; transform: rotateX(0deg); }
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; }

/* Hero Pillars */
.hero-pillars {
  display: flex; justify-content: center; align-items: center; gap: 0.8rem;
  font-family: var(--font-primary); font-size: 1.15rem; font-weight: 600;
  color: var(--color-accent); text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 2rem;
}
.pillar-dot { opacity: 0.4; font-size: 1.4rem; }

/* ═══ SECTIONS ═══ */
.section { padding: 7rem 2rem; }
.section-dark { background: var(--color-bg-darker); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--font-primary); font-size: 2.8rem; font-weight: 800;
  margin-bottom: 1.2rem; text-align: center;
}
.section-subtitle {
  text-align: center; max-width: 800px; margin: 0 auto 3.5rem auto;
  opacity: 0.7; font-size: 1.05rem; line-height: 1.8;
}
.section-intro { padding: 4rem 2rem; }
.intro-statement {
  font-family: var(--font-primary); font-size: 1.6rem; font-weight: 300;
  text-align: center; max-width: 900px; margin: 0 auto;
  opacity: 0.8; font-style: italic; line-height: 1.7;
}

/* ═══ CLIENT LOGO TICKER ═══ */
.logo-ticker-section { padding: 2.5rem 2rem 3.5rem 2rem; }
.ticker-label {
  text-align: center; text-transform: uppercase; letter-spacing: 4px;
  font-size: 1.1rem; opacity: 0.55; margin-bottom: 2rem;
  font-family: var(--font-primary); font-weight: 600;
}
.logo-ticker { overflow: hidden; mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); }
.logo-ticker-track {
  display: flex; gap: 3.5rem; align-items: center;
  animation: ticker 40s linear infinite; width: max-content;
}
.logo-ticker-track img {
  height: 65px; width: auto; opacity: 0.6;
  transition: opacity 0.3s ease;
}
.logo-ticker-track img:hover { opacity: 1; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ═══ GLASS CARD BASE ═══ */
.glass-card {
  background: var(--color-glass-bg); border: 1px solid var(--color-glass-border);
  border-radius: 16px; backdrop-filter: blur(10px);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.glass-card:hover { transform: translateY(-6px); border-color: rgba(198, 40, 40, 0.4); }

/* Accent headings in accordion content */
strong.accent { color: var(--color-accent); }

/* ═══ PATH CARDS (Choose Your Path) ═══ */
.path-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem;
}
.path-card { overflow: hidden; padding: 0; }
.path-card-img {
  height: 200px; background-size: cover; background-position: center;
  position: relative;
}
.path-card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26,26,28,0.9) 100%);
}
.path-card-body { padding: 2rem; }
.path-card h4 { font-family: var(--font-primary); font-size: 1.4rem; margin-bottom: 0.6rem; }
.path-card p { opacity: 0.7; font-size: 0.95rem; }

/* ═══ SERVICE BLOCKS ═══ */
.service-block {
  margin-bottom: 0; padding: 3.5rem 0;
  border-bottom: 1px solid var(--color-glass-border);
}
.service-block:last-child { border-bottom: none; }

/* Remove doubled borders: last accordion-item bottom + service-block bottom */
.service-block .accordion-item:last-child { border-bottom: none; }
.service-block-header {
  display: flex; gap: 2rem; align-items: center; margin-bottom: 1.5rem;
}
.service-hero-img {
  width: 200px; height: 140px; object-fit: cover; border-radius: 12px;
  flex-shrink: 0;
}
.service-block-title {
  font-family: var(--font-primary); font-size: 2rem; font-weight: 600;
  margin-bottom: 0.5rem; color: var(--color-accent);
}
.service-block-summary { opacity: 0.75; font-size: 1.05rem; max-width: 800px; }

/* ═══ ACCORDION ═══ */
.accordion { margin-top: 1rem; }
.accordion-item { border-bottom: 1px solid var(--color-glass-border); }
.accordion-header {
  width: 100%; background: transparent; color: var(--color-text-light);
  border: none; padding: 1rem 0; font-family: var(--font-secondary);
  font-weight: 600; font-size: 1rem; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color 0.3s ease;
}
.accordion-header:hover { color: var(--color-accent); }
.accordion-header::after {
  content: '+'; font-size: 1.4rem; font-weight: 300;
  transition: transform 0.3s ease; flex-shrink: 0; margin-left: 1rem;
}
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
.accordion-content-inner {
  padding: 0.5rem 0 1.5rem 0; color: var(--color-text-muted);
  font-size: 0.95rem; line-height: 1.8;
}

/* Accordion with side image */
.accordion-with-img {
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.accordion-with-img img {
  width: 220px; height: 160px; object-fit: cover; border-radius: 10px;
  flex-shrink: 0;
}

/* ═══ PORTFOLIO GRID ═══ */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem;
}
.portfolio-card {
  padding: 0; overflow: hidden; cursor: pointer;
}
.portfolio-card img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}
/* Portfolio cards — hover modal on desktop */
.portfolio-card { position: relative; }
.portfolio-card .card-hover-desc {
  display: none; /* JS will create these */
}

/* Desktop hover reveal */
@media (hover: hover) {
  .portfolio-card::after {
    content: attr(data-desc);
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(0deg, rgba(18,18,20,0.95) 0%, rgba(18,18,20,0.7) 80%, transparent 100%);
    color: var(--color-text-muted); font-size: 0.82rem; line-height: 1.6;
    padding: 2.5rem 1rem 1rem 1rem;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
  }
  .portfolio-card:hover::after { opacity: 1; transform: translateY(0); }
  .portfolio-card:hover img { transform: scale(1.05); filter: brightness(0.75); }
}
.portfolio-card h5 {
  font-family: var(--font-primary); font-size: 0.95rem;
  padding: 1rem 1.2rem; text-align: center;
}

/* ═══ PROCESS ═══ */
.process-elements {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; margin-bottom: 4rem;
}
.process-element {
  padding: 2rem; text-align: center;
}
.process-element span {
  font-family: var(--font-primary); font-weight: 700; font-size: 1.15rem;
  display: block; margin-bottom: 0.6rem; color: var(--color-accent);
}
.process-element p {
  font-size: 0.9rem; opacity: 0.65; line-height: 1.6;
}

.timeline { max-width: 700px; margin: 0 auto 3rem auto; }
.timeline-item {
  display: flex; gap: 1.5rem; align-items: flex-start; margin-bottom: 2rem;
}
.timeline-number {
  width: 48px; height: 48px; min-width: 48px; border-radius: 50%;
  background: var(--color-accent); color: #fff; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-primary);
  font-weight: 800; font-size: 1.2rem;
}
.timeline-body h5 {
  font-family: var(--font-primary); font-size: 1.2rem; margin-bottom: 0.3rem;
}
.timeline-body p { opacity: 0.7; font-size: 0.95rem; line-height: 1.7; }
.timeline-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tag-accent {
  background: rgba(198, 40, 40, 0.15); color: var(--color-accent);
  padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem;
  font-weight: 600; border: 1px solid rgba(198, 40, 40, 0.3);
}

.process-quotes { text-align: center; margin-top: 2rem; }
.process-quotes blockquote {
  font-family: var(--font-primary); font-size: 1.3rem; font-weight: 300;
  font-style: italic; opacity: 0.7; margin-bottom: 1.5rem;
}

/* ═══ ABOUT ═══ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 2rem;
}
.about-grid h5 {
  font-family: var(--font-primary); font-size: 1.3rem;
  margin-bottom: 1rem; color: var(--color-accent);
}
.about-grid ul li {
  padding: 0.5rem 0; border-bottom: 1px solid var(--color-glass-border);
  opacity: 0.8; font-size: 0.95rem;
}
.about-grid ul li:last-child { border-bottom: none; }

/* YouTube Video Embed — Immersive Poster */
.about-video { margin-bottom: 2rem; }
.video-container-cinema {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--color-glass-border);
  max-width: 900px; margin: 0 auto; cursor: pointer;
}
.yt-poster {
  width: 100%; height: 100%; object-fit: cover;
  transition: filter 0.3s ease, transform 0.5s ease;
}
.video-container-cinema:hover .yt-poster { filter: brightness(0.7); transform: scale(1.02); }
.yt-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: none; border: none; cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.yt-play-btn svg { width: 72px; height: 48px; }
.video-container-cinema:hover .yt-play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-container-cinema iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}


/* Testimonials */
.testimonials-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.testimonial {
  padding: 1.2rem; background: rgba(40, 40, 44, 0.5);
  border-radius: 12px; border-left: 3px solid var(--color-accent);
}
.testimonial p { font-style: italic; margin-bottom: 0.5rem; font-size: 0.93rem; line-height: 1.7; }
.testimonial cite { font-size: 0.82rem; opacity: 0.5; font-style: normal; }

/* ═══ GET STARTED ═══ */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem; margin-bottom: 2rem;
}
.step-card {
  text-align: center; padding: 2rem 1.5rem; background: var(--color-glass-bg);
  border: 1px solid var(--color-glass-border); border-radius: 16px;
}
.step-number {
  width: 50px; height: 50px; margin: 0 auto 1rem auto; border-radius: 50%;
  background: var(--color-accent); color: #fff; display: flex;
  align-items: center; justify-content: center; font-family: var(--font-primary);
  font-weight: 800; font-size: 1.3rem;
}
.step-card h5 { font-family: var(--font-primary); font-size: 1rem; }
.step-card p { opacity: 0.6; font-size: 0.85rem; margin-top: 0.5rem; line-height: 1.5; }
.qualification-note {
  text-align: center; opacity: 0.6; font-size: 0.9rem; font-style: italic;
}

/* Email CTA */
.cta-email { text-align: center; margin: 2.5rem 0; }
.btn-email {
  font-size: 1rem; padding: 1.1rem 2.5rem;
  display: inline-flex; align-items: center;
}

/* ═══ PORTFOLIO MODAL ═══ */
.portfolio-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.portfolio-modal-overlay.active { opacity: 1; pointer-events: auto; }
.portfolio-modal {
  background: var(--color-bg-darker); border: 1px solid var(--color-glass-border);
  border-radius: 16px; max-width: 600px; width: 90%; max-height: 85vh;
  overflow-y: auto; padding: 0; position: relative;
}
.portfolio-modal img { width: 100%; height: 280px; object-fit: cover; border-radius: 16px 16px 0 0; }
.portfolio-modal h4 {
  font-family: var(--font-primary); font-size: 1.3rem;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem; color: var(--color-accent);
}
.portfolio-modal p {
  padding: 0 1.5rem 1.5rem 1.5rem; color: var(--color-text-muted);
  font-size: 0.95rem; line-height: 1.8;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  background: rgba(0,0,0,0.6); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.modal-close:hover { background: var(--color-accent); }

/* ═══ FOOTER ═══ */
.site-footer {
  background: #0e0e10; border-top: 1px solid var(--color-glass-border);
  padding: 4rem 2rem 1.5rem 2rem;
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 1rem;
}
.footer-logo-img { width: 40px; height: auto; opacity: 0.7; }
.footer-brand h4 {
  font-family: var(--font-primary); font-weight: 800; font-size: 1.3rem;
  letter-spacing: 3px; color: var(--color-accent);
}
.footer-brand span { font-size: 0.6rem; letter-spacing: 4px; opacity: 0.5; display: block; }
.footer-info p { opacity: 0.6; font-size: 0.9rem; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { opacity: 0.6; font-size: 0.9rem; transition: opacity 0.3s; }
.footer-links a:hover { opacity: 1; color: var(--color-accent); }
.footer-bottom { text-align: center; opacity: 0.4; font-size: 0.8rem; padding-top: 1.5rem; border-top: 1px solid var(--color-glass-border); }

/* ═══ ANIMATIONS ═══ */
.fade-in-up {
  opacity: 0; transform: translateY(30px);
  animation: fadeInUp 1s ease forwards; animation-delay: 0.3s;
}
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

.section-reveal {
  opacity: 0; transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.4, 0, 0, 1);
}
.section-reveal.active { opacity: 1; transform: translateY(0); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .cinematic-title { font-size: 2.4rem; }
  .cinematic-subtitle { font-size: 1rem; }
  .section-title { font-size: 2rem; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0;
    width: 100%; background: rgba(26,26,28,0.98); padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--color-glass-border);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-pillars { flex-direction: column; gap: 0.3rem; font-size: 0.95rem; }
  .pillar-dot { display: none; }
  .intro-statement { font-size: 1.2rem; }
  .service-block-title { font-size: 1.5rem; }
  .service-block-header { flex-direction: column; }
  .service-hero-img { width: 100%; height: 180px; }
  .accordion-with-img { flex-direction: column; }
  .accordion-with-img img { width: 100%; height: 200px; }
  .path-card-img { height: 150px; }
  .portfolio-card img { height: 160px; }
  .logo-ticker-track img { height: 42px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .timeline-tags { justify-content: center; }
}
