/* =====================
   GLOBAL
   ===================== */

:root {
  --bg-deep: #050322;
  --bg-dark: #181335;
  --bg-mid: #554e94;
  --bg-light: #fff4e6;

  --accent-purple: #867af9; /* from poster */
  --accent-orange: #ff7f2a; /* from poster */
  --accent-cyan: #52ffff;

  --text-main: #fdfcff;
  --text-muted: #c5c1f0;
  --text-dark: #1b1023;

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;

  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-neon: 0 0 0 1px rgba(134, 122, 249, 0.4),
    0 0 24px rgba(134, 122, 249, 0.9);

  /* Header/nav sizing token for more robust mobile calcs */
  --header-offset: calc(56px + 1rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll/overflow bars */
}

/* Keyboard focus visibility for accessibility */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid rgba(82, 255, 255, 0.14);
  outline-offset: 2px;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #2c2382 0, #050322 48%, #020010 100%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Ensure images cannot overflow their containers */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility to lock scrolling when mobile nav is open via JS */
body.no-scroll {
  overflow: hidden;
}

/* Containers & sections */

.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0 4.5rem;
}

.section-dark {
  background: radial-gradient(circle at top, #2f267f 0, var(--bg-dark) 45%, #050322 100%);
}

.section-deep {
  background: linear-gradient(135deg, #120c33, #050322);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* =====================
   HEADER & NAV (UPDATED)
   ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(5, 3, 34, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(134, 122, 249, 0.4);
  padding-block: 1rem;     /* taller, stronger header */
}

.site-header .container {
  max-width: 1280px;
  padding-left: 0.5rem;   /* reduced to pull logo closer to the edge */
  padding-right: 1rem;    /* keep right side comfortable */
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;            /* was 2.5rem – frees up space for the nav */
}

/* LOGO */
.brand-logo {
  height: 34px;           /* 20% smaller than 42px */
  width: auto;
  display: block;
}

/* NAV LINKS */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;            /* your original value */
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

/* Make links focus-visible for keyboard users */
.main-nav a:focus-visible {
  outline: 3px solid rgba(82,255,255,0.12);
  outline-offset: 2px;
}

.main-nav a:hover {
  color: var(--accent-cyan);
}

.main-nav .nav-cta {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(82, 255, 255, 0.5);
  color: var(--accent-cyan);
}

/* MOBILE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;  /* keep it within the flow */
  z-index: 60;         /* above hero graphics/banner */
  right: 0;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.18s ease; /* smooth burger → X */
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    inset: 0 0 auto;
    top: var(--header-offset); /* uses variable so header size changes are safer */
    padding: 1.25rem 1.5rem 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(5, 3, 34, 0.98);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    white-space: normal;
  }

  /* when opened via JS toggle, either add .open or set aria-expanded on button */
  .main-nav.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  /* support aria-expanded state for accessibility-friendly JS */
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
  }
}

/* =====================
   HERO
   ===================== */

.hero {
  padding: 4.5rem 0 4rem;
  background: radial-gradient(circle at top left, #3b32b0 0, #050322 45%, #020010 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 2rem;
}

.hero-graphic-left {
  position: relative;
  overflow: visible; /* lets the cable go off the edge */
}

.hero-graphic-left img {
  width: 190%;                 /* still nice and big, slightly less huge */
  max-width: none;
  transform: translate(-40%, -6%);
  /* ^ x: more left, y: a bit lower */
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, 0.7));
}

.hero-content {
  max-width: 560px;
  margin-left: auto;
}

.hero-tagline {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-cyan);
  margin-bottom: 0.9rem;
}

.hero-slogan-wrapper {
  margin-bottom: 0.75rem;
}

.hero-slogan-svg {
  width: 100%;
  max-width: 460px;
  display: block;
}

.hero-subtitle {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-points li::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--accent-orange);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

/* Ensure buttons show clear focus */
.btn:focus-visible {
  outline: 3px solid rgba(82,255,255,0.14);
  outline-offset: 2px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-orange), #ffd16a);
  color: #2b1400;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
}

.btn.ghost {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px solid rgba(82, 255, 255, 0.55);
}

.btn.secondary {
  background: rgba(134, 122, 249, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(134, 122, 249, 0.6);
}

/* =====================
   HERO BANNER (NO PARALLAX)
   ===================== */

.hero-banner {
  background: var(--banner-bg, #050322);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-banner-inner {
  max-width: 100%;
  overflow: hidden;
}

/* Correct cropped banner image */
.hero-banner-image {
  width: 100%;
  height: clamp(260px, 50vw, 520px);  /* THIS IS THE GOOD VERSION */
  object-fit: cover;
  object-position: center right;
  display: block;
}

/* Caption row fixing */
.hero-banner > .container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-banner-caption {
  margin: 0;
  padding: 1.0rem 1.25rem;
  text-align: center;
  color: var(--caption-color, #dcd9f2);
  font-size: 1.05rem;
  line-height: 1.4;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 900px) {
  .hero-banner-caption {
    padding: 1.25rem 1.25rem;
    font-size: 1.125rem;
  }
}
/* =====================
   SHARED SECTION STYLES
   ===================== */

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.4rem;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
  margin: 0 0 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.25rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
}

.split-text p {
  margin-top: 0;
}

.about-list {
  list-style: none;
  padding: 0;
  margin-top: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-list li + li {
  margin-top: 0.35rem;
}

/* Carousel */

.photo-carousel {
  background: radial-gradient(circle at top, #2d245f 0, #050322 55%);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.carousel-window {
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 0.4rem);
}

.carousel-track {
  display: flex;
}

.carousel-slide {
  min-width: 100%;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-slide img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.carousel-btn {
  border-radius: 999px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
}

.carousel-btn:focus-visible {
  outline: 3px solid rgba(82,255,255,0.12);
  outline-offset: 2px;
}

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

.carousel-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
}

.carousel-dots .dot.active {
  width: 18px;
  background: var(--accent-orange);
}

/* =====================
   SKILLS SECTION
   ===================== */

.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.skill-card {
  background: rgba(15, 10, 40, 0.95);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(134, 122, 249, 0.4);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.skill-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.split-media-right {
  display: flex;
  justify-content: center;
}

.main-skills-svg {
  width: 100%;
  max-width: 420px;
  display: block;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.8));
}

/* =====================
   PACKAGES
   ===================== */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.package-card {
  background: rgba(8, 5, 34, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid rgba(134, 122, 249, 0.4);
  box-shadow: var(--shadow-soft);
}

.package-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-orange);
  margin: 0 0 0.35rem;
}

.package-blurb {
  margin: 0 0 0.65rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.package-card ul li + li {
  margin-top: 0.3rem;
}

/* Highlighted package */

.package-card-highlight {
  position: relative;
  background: radial-gradient(circle at top, #2c2384 0, #050322 60%);
  box-shadow: var(--shadow-neon);
}

.package-card-highlight::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(134, 122, 249, 0.7), transparent 60%);
  opacity: 0.7;
  z-index: -1;
}

.package-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.5rem;
}

.packages-footer {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* =====================
   TESTIMONIAL
   ===================== */

.testimonial-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.testimonial-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.testimonial-name {
  margin-top: 1rem;
  font-weight: 600;
}

/* =====================
   FAQ
   ===================== */

.section-deep .container h2 {
  color: var(--text-main);
}

.faq-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.faq-item {
  background: rgba(11, 7, 36, 0.96);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  border: 1px solid rgba(134, 122, 249, 0.4);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent-cyan);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* =====================
   CONTACT
   ===================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-email a {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.contact-form {
  background: rgba(8, 5, 34, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(134, 122, 249, 0.4);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(134, 122, 249, 0.5);
  background: rgba(10, 7, 38, 0.9);
  color: var(--text-main);
  font-family: inherit;
  resize: vertical;
}

/* Provide clearer focus state for form fields */
.contact-form input:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 4px rgba(82,255,255,0.08);
  border-color: rgba(82,255,255,0.6);
}

/* =====================
   FOOTER
   ===================== */

.site-footer {
  background: #050322;
  border-top: 1px solid rgba(134, 122, 249, 0.4);
  padding: 1.25rem 0 1.4rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-small {
  font-size: 0.85rem;
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-graphic-left img {
    width: 70%;
    max-width: 380px;
    transform: translateX(0);
    margin-inline: auto;
    margin-bottom: 1rem;
  }

  .hero-content {
    margin-left: 0;
  }

  .split,
  .split-reverse,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-reverse {
    grid-auto-flow: dense;
  }

  .packages-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-carousel {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .carousel-window {
    margin-top: 0;
    padding-top: 0;
    min-height: 220px;
  }

  .photo-carousel .carousel-slide img {
    height: 260px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3.4rem 0 3rem;
  }

  .hero {
    padding-top: 3.8rem;
    padding-bottom: 0;
  }

  .hero-banner {
    padding-top: 0;
  }

  .split-media {
    padding-top: 0;
  }

  .hero-banner-caption {
    font-size: 0.9rem;
  }

  .packages-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hide the decorative microphone / large hero graphic on small screens */
@media (max-width: 899px) {
  .hero-graphic,
  .hero-graphic-left {
    display: none !important;
  }
}

/* Respect users' motion preferences */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }
  .hero-banner-image,
  .carousel-slide,
  .nav-toggle span,
  .main-nav {
    transform: none !important;
  }
}
