/* sections.css - Per-section layout and styling */
/* Requirements: 3.3, 3.4, 3.6, 3.7, 4.5–4.13, 5.1, 5.2, 5.3, 5.4, 5.5 */

/* ==========================================================================
   NAVBAR
   Sticky navigation bar — fixed at top, transparent by default,
   glass/blur effect on scroll via JS-toggled .navbar--scrolled class.
   Requirements: 3.3, 3.4, 3.6, 3.7
   ========================================================================== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background var(--duration-normal) var(--easing-smooth),
              backdrop-filter var(--duration-normal) var(--easing-smooth),
              border-color var(--duration-normal) var(--easing-smooth);
  border-bottom: 1px solid transparent;
}

/* Scrolled state — toggled by JS when user scrolls past hero */
#navbar.navbar--scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: hsla(240, 15%, 6%, 0.8);
  border-bottom-color: hsla(270, 100%, 60%, 0.1);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

/* Brand / site identity */
.navbar__brand {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-smooth);
}

.navbar__brand:hover {
  color: var(--color-accent);
}

/* Desktop navigation links — horizontal, centered gap */
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__link {
  position: relative;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-smooth);
}

.navbar__link:hover {
  color: var(--color-accent);
}

/* Subtle underline accent on hover */
.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width var(--duration-fast) var(--easing-smooth);
}

.navbar__link:hover::after {
  width: 100%;
}

/* Navbar CTA button — compact primary style */
.navbar__cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 8px;
}

/* Round icon inside CTA buttons — signals "click = get in touch" */
.navbar__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: hsla(0, 0%, 100%, 0.2);
  flex-shrink: 0;
}

/* Hamburger button — displayed on mobile, hidden on desktop (via responsive.css) */
.navbar__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: color var(--duration-fast) var(--easing-smooth);
}

.navbar__hamburger:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   NAVBAR OVERLAY
   Full-viewport fixed overlay for mobile navigation.
   Animated entrance/exit controlled via .navbar__overlay--active class.
   Requirements: 3.6, 3.7
   ========================================================================== */

.navbar__overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: hsla(240, 15%, 4%, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;

  /* Hidden state — animated exit */
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--easing-smooth),
              visibility 0ms linear 300ms;
}

/* Active state — animated entrance */
.navbar__overlay.navbar__overlay--active {
  opacity: 1;
  visibility: visible;
  transition: opacity 350ms var(--easing-smooth),
              visibility 0ms linear 0ms;
}

/* Overlay navigation container */
.navbar__overlay-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar__overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Overlay link styling — large font, centered */
.navbar__overlay-link {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--duration-fast) var(--easing-smooth),
              transform var(--duration-fast) var(--easing-smooth);

  /* Stagger entrance animation setup */
  opacity: 0;
  transform: translateY(20px);
}

.navbar__overlay-link:hover {
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Overlay CTA — stands out as a pill button among the plain links */
.navbar__overlay-link--cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 600;
  color: hsl(0, 0%, 100%);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-glow));
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 16px hsla(270, 100%, 60%, 0.3);
}

.navbar__overlay-link--cta:hover {
  color: hsl(0, 0%, 100%);
  transform: translateY(-2px);
}

.navbar__overlay-link--cta .navbar__cta-icon {
  width: 26px;
  height: 26px;
}

/* Staggered link entrance when overlay is active */
.navbar__overlay--active .navbar__overlay-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms var(--easing-smooth),
              transform 400ms var(--easing-smooth),
              color var(--duration-fast) var(--easing-smooth);
}

.navbar__overlay--active li:nth-child(1) .navbar__overlay-link {
  transition-delay: 100ms;
}

.navbar__overlay--active li:nth-child(2) .navbar__overlay-link {
  transition-delay: 200ms;
}

.navbar__overlay--active li:nth-child(3) .navbar__overlay-link {
  transition-delay: 300ms;
}

.navbar__overlay--active li:nth-child(4) .navbar__overlay-link {
  transition-delay: 400ms;
}

/* When overlay is NOT active, reset stagger delays for exit */
.navbar__overlay:not(.navbar__overlay--active) .navbar__overlay-link {
  transition-delay: 0ms;
}


/* ==========================================================================
   HERO SECTION
   Full viewport height with animated gradient background, cursor glow,
   floating geometric shapes, staggered text reveal, and parallax-ready elements.
   Requirements: 4.5, 4.6, 4.7, 4.8, 4.9, 4.10, 4.11, 4.12, 4.13
   ========================================================================== */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 6rem 4rem;
  padding-inline: var(--space-content);
  overflow: hidden;

  /* Animated gradient background — subtle dark with hint of accent */
  background: linear-gradient(
    135deg,
    hsl(240, 15%, 6%) 0%,
    hsl(260, 20%, 8%) 25%,
    hsl(270, 15%, 6%) 50%,
    hsl(280, 20%, 8%) 75%,
    hsl(240, 15%, 6%) 100%
  );
  background-size: 400% 400%;
  animation: gradient-shift 10s ease infinite;
}

/* --------------------------------------------------------------------------
   Cursor Glow
   Radial gradient following cursor (positioned via JS on desktop).
   200px radius, accent color, low opacity, no pointer events.
   -------------------------------------------------------------------------- */

.hero__glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    hsla(270, 100%, 60%, 0.15) 0%,
    hsla(270, 100%, 60%, 0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
  transform: translate(-200px, -200px);
  transition: opacity var(--duration-fast) var(--easing-smooth);
  will-change: transform;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Floating Geometric Shapes
   Absolute positioned, various sizes (10–40px), accent color at low opacity,
   mix of border-radius (rounded + sharp), dispersed across section.
   Parallax-ready via data-parallax attribute (controlled by JS).
   -------------------------------------------------------------------------- */

.hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  contain: layout style;
}

.hero__shape {
  position: absolute;
  display: block;
  background: hsla(270, 100%, 60%, 0.12);
  will-change: transform;
}

/* Shape 1 — small rounded (12px) */
.hero__shape:nth-child(1) {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  top: 15%;
  left: 10%;
  animation-duration: 8s;
}

/* Shape 2 — medium sharp/diamond (18px) */
.hero__shape:nth-child(2) {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  top: 25%;
  right: 12%;
  animation-duration: 11s;
}

/* Shape 3 — large rounded (24px) */
.hero__shape:nth-child(3) {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  bottom: 30%;
  left: 8%;
  animation-duration: 9s;
}

/* Shape 4 — small sharp (10px) */
.hero__shape:nth-child(4) {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: 60%;
  right: 20%;
  animation-duration: 13s;
}

/* Shape 5 — medium rounded (16px) */
.hero__shape:nth-child(5) {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  bottom: 20%;
  right: 8%;
  animation-duration: 10s;
}

/* Shape 6 — large sharp (40px) */
.hero__shape:nth-child(6) {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  top: 10%;
  left: 60%;
  opacity: 0.6;
  animation-duration: 15s;
}

/* --------------------------------------------------------------------------
   Hero Content
   Centered layout above glow/shapes.
   -------------------------------------------------------------------------- */

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 800px;
}

/* --------------------------------------------------------------------------
   Hero Headline — Staggered text reveal setup
   Each span rendered as inline-block for individual animation control.
   In .animations-enabled context, starts hidden (opacity 0) for reveal.
   -------------------------------------------------------------------------- */

.hero__headline {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.hero__headline span {
  display: inline-block;
}

/* When animations are enabled, headline spans start invisible for stagger */
.animations-enabled .hero__headline span {
  opacity: 0;
}

/* --------------------------------------------------------------------------
   Hero Subtitle & CTA spacing
   -------------------------------------------------------------------------- */

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 0;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}


/* ==========================================================================
   BELOW-FOLD PERFORMANCE
   Use content-visibility: auto on sections below the hero fold to defer
   rendering until they're near the viewport. contain-intrinsic-size provides
   a size estimate to prevent layout shift (CLS).
   Requirements: 16.2, 16.5
   ========================================================================== */

#skills,
#about,
#services,
#details,
#process,
#cta,
#contact,
#footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}


/* ==========================================================================
   SKILLS BLOCK
   Positioned directly below hero. 4 items in a horizontal row on desktop,
   vertical stack on mobile (handled by responsive.css via .skills__list).
   No fake statistics or client counts — only numbered skill areas.
   ========================================================================== */

#skills {
  padding-block: var(--space-section);
  padding-inline: var(--space-content);
}

.skills__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-content);
}

.skills__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  background: hsla(240, 15%, 10%, 0.4);
  border: 1px solid hsla(270, 100%, 60%, 0.1);
  border-radius: var(--border-radius);
  transition: border-color var(--duration-fast) var(--easing-smooth),
              box-shadow var(--duration-fast) var(--easing-smooth);
}

.skills__item:hover {
  border-color: hsla(270, 100%, 60%, 0.3);
  box-shadow: 0 0 12px hsla(270, 100%, 60%, 0.08);
}

.skills__number {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.skills__separator {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.skills__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}


/* ==========================================================================
   DETAILS SECTION
   Requirements: 8.1, 8.2, 8.3, 8.4
   Bold typographic section with asymmetric layout, scroll-transform effect,
   overlapping accent elements, and full-bleed presence.
   ========================================================================== */

#details {
  position: relative;
  padding-block: calc(var(--space-section) * 1.5);
  overflow: hidden;
}

/* Asymmetric two-column grid: headline takes ~60%, points take ~40%
   with offset vertical positioning for visual tension */
.details__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-content);
}

/* Headline wrapper — pushed down to create asymmetry */
.details__headline-wrap {
  padding-top: 3rem;
}

/* Prominent heading — at least 2× base (2rem min), using clamp for fluid sizing */
.details__headline {
  font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.02em;
  /* GPU-ready for scroll transform */
  will-change: transform, opacity;
  transition: transform var(--duration-slow) var(--easing-smooth),
              opacity var(--duration-slow) var(--easing-smooth);
}

/* Accent span — neon purple treatment on second line */
.details__headline-accent {
  color: var(--color-accent);
  display: block;
  margin-top: 0.15em;
  text-shadow: 0 0 40px hsla(270, 100%, 60%, 0.3);
}

/* Points wrapper — offset upward relative to headline for overlap feel */
.details__points-wrap {
  padding-top: 1rem;
  border-left: 2px solid hsla(270, 100%, 60%, 0.2);
  padding-left: 2rem;
}

/* Points list */
.details__points {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.details__point {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--duration-fast) var(--easing-smooth),
              transform var(--duration-fast) var(--easing-smooth);
}

.details__point:hover {
  color: var(--color-accent-glow);
  transform: translateX(4px);
}

/* Marker — small accent dot/diamond */
.details__point-marker {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--color-accent);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 8px hsla(270, 100%, 60%, 0.5);
}

/* Decorative overlapping accent line — full-bleed horizontal element */
.details__accent-line {
  position: absolute;
  bottom: 15%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsla(270, 100%, 60%, 0.4) 20%,
    hsla(270, 100%, 60%, 0.6) 50%,
    hsla(270, 100%, 60%, 0.4) 80%,
    transparent 100%
  );
  pointer-events: none;
}

/* Additional full-bleed glow behind headline area */
#details::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, hsla(270, 100%, 60%, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}


/* ==========================================================================
   FOOTER
   Minimalist design with max 2 decorative elements, dark theme consistent.
   Requirements: 13.1, 13.2, 13.3, 13.4
   ========================================================================== */

#footer {
  padding-block: 3rem 2rem;
  border-top: 1px solid hsla(270, 100%, 60%, 0.1);
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.footer__role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  border: 1px solid hsla(270, 100%, 60%, 0.15);
  border-radius: 50%;
  transition: color var(--duration-fast) var(--easing-smooth),
              border-color var(--duration-fast) var(--easing-smooth),
              box-shadow var(--duration-fast) var(--easing-smooth);
}

.footer__link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 0 12px hsla(270, 100%, 60%, 0.2);
}

.footer__link:focus-visible {
  outline: 2px solid var(--color-accent-glow);
  outline-offset: 2px;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}


/* ==========================================================================
   PROCESS SECTION
   Requirements: 9.1, 9.2, 9.3, 9.4, 9.5
   4 steps with connector line showing sequential progression.
   Staggered fade-up on viewport entry via data-aos.
   ========================================================================== */

#process {
  padding-block: var(--space-section);
  padding-inline: var(--space-content);
}

#process h2 {
  margin-bottom: 3rem;
}

.process__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-content);
  padding-top: 2rem;
}

/* Horizontal connector line across all steps */
.process__timeline::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    hsla(270, 100%, 60%, 0.1),
    var(--color-accent) 20%,
    var(--color-accent) 80%,
    hsla(270, 100%, 60%, 0.1)
  );
  z-index: 0;
}

.process__step {
  position: relative;
  padding-top: 2.5rem;
  z-index: 1;
}

/* Dot on the connector line for each step */
.process__step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px hsla(270, 100%, 60%, 0.5),
              0 0 24px hsla(270, 100%, 60%, 0.2);
  z-index: 2;
}

/* Vertical mini-line from dot to content */
.process__step::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 1.5rem;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    hsla(270, 100%, 60%, 0)
  );
  z-index: 1;
}

.process__number {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.process__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.process__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 280px;
}


/* ==========================================================================
   PORTFOLIO SECTION (Hidden placeholder for future activation)
   Requirements: 10.1, 10.2, 10.3, 10.4
   Removing .portfolio--hidden class makes the section visible in flow.
   No navbar link points to this section.
   ========================================================================== */

.portfolio--hidden {
  display: none;
}

#portfolio {
  padding-block: var(--space-section);
  padding-inline: var(--space-content);
}

#portfolio h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio__card {
  background: hsla(240, 15%, 10%, 0.6);
  border: 1px solid hsla(270, 100%, 60%, 0.1);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--duration-fast) var(--easing-smooth),
              border-color var(--duration-normal) var(--easing-smooth),
              box-shadow var(--duration-normal) var(--easing-smooth);
}

.portfolio__card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px hsla(270, 100%, 60%, 0.15),
              0 0 16px hsla(270, 100%, 60%, 0.1);
}

.portfolio__card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: hsla(240, 15%, 12%, 0.8);
}

.portfolio__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio__card-content {
  padding: 1.5rem;
}

.portfolio__card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.portfolio__card-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio__card-link {
  font-size: 0.875rem;
  font-weight: 600;
}


/* ==========================================================================
   CTA SECTION
   Visually prominent call-to-action block with gradient background,
   glow/shadow effects, and generous padding. Fade/slide-up animation
   via data-aos on viewport entry.
   Requirements: 11.1, 11.2, 11.3, 11.4, 11.5
   ========================================================================== */

#cta {
  position: relative;
  padding-block: clamp(6rem, 14vh, 10rem);
  padding-inline: var(--space-content);
  background: linear-gradient(
    160deg,
    hsla(270, 80%, 12%, 0.9) 0%,
    hsla(260, 60%, 8%, 0.95) 50%,
    hsla(240, 40%, 6%, 1) 100%
  );
  overflow: hidden;
}

/* Glow / shadow effect behind the section */
#cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(
    ellipse at center,
    hsla(270, 100%, 60%, 0.12) 0%,
    hsla(270, 100%, 60%, 0.04) 40%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

/* Top border accent line for visual separation */
#cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    hsla(270, 100%, 60%, 0.4),
    transparent
  );
  pointer-events: none;
}

.cta__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.cta__heading {
  font-size: clamp(1.75rem, 4vw, var(--text-2xl));
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  max-width: 700px;
}

.cta__text {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.cta__btn {
  font-size: 1.125rem;
  padding: 1rem 2.25rem;
  box-shadow: 0 6px 24px hsla(270, 100%, 60%, 0.35),
              0 0 40px hsla(270, 100%, 60%, 0.1);
}

.cta__btn:hover {
  box-shadow: 0 8px 36px hsla(270, 100%, 60%, 0.5),
              0 0 60px hsla(270, 100%, 60%, 0.15);
}


/* ==========================================================================
   CONTACT SECTION
   Requirements: 12.1, 12.2, 12.3, 12.4, 17.3
   Contact form with floating labels, inline validation, configurable endpoint.
   ========================================================================== */

#contact {
  padding-block: var(--space-section);
  padding-inline: var(--space-content);
}

.contact__container {
  max-width: 1080px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact__container {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 5rem;
    align-items: start;
  }

  .contact__aside {
    position: sticky;
    top: 7rem;
  }
}

.contact__heading {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.contact__lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 32ch;
  margin-bottom: 2.5rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Submit button spacing */
.contact__submit {
  margin-top: 1rem;
  align-self: flex-start;
  min-width: 200px;
  justify-content: center;
}

/* Direct contact cards (left column) */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: hsla(240, 15%, 10%, 0.6);
  border: 1px solid hsla(270, 100%, 60%, 0.1);
  border-radius: var(--border-radius);
  color: var(--color-text);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--easing-smooth),
              border-color var(--duration-normal) var(--easing-smooth),
              box-shadow var(--duration-normal) var(--easing-smooth);
}

.contact__info-card:hover,
.contact__info-card:focus-visible {
  transform: translateX(4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px hsla(270, 100%, 60%, 0.12);
}

.contact__info-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: hsla(270, 100%, 60%, 0.12);
  color: var(--color-accent-glow);
}

.contact__info-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact__info-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.contact__info-value {
  font-size: var(--text-base);
  font-weight: 600;
}

/* Success / error message container overrides for contact section */
.contact__message {
  margin-bottom: 1.5rem;
}

.contact__message[hidden] {
  display: none;
}
