/* Enable smooth scrolling for in-page navigation */
html {
  scroll-behavior: smooth;
}

/* Prevent sticky header from covering section titles when jumping via anchors */
:root {
  scroll-padding-top: 90px;

  /* Unified section spacing system (desktop baseline) */
  --section-pad-top: 120px;
  --section-pad-x: 60px;
  --section-pad-bottom: 120px;

  /* =====================================================
     Phase 3: Subtle section background tones (dark-on-dark)
     ===================================================== */
  --bg-0: #000000; /* base black */
  --bg-1: #0b0b0b; /* slightly lifted */
  --bg-2: #101010; /* more separation */
  --bg-3: #0e0f12; /* cooler tint option (unused for now) */
}


/* Reset default margin */
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: black;
  /* =====================================================
   Global typography baseline
   ===================================================== */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================
   Links: consistent behavior across the site
   ===================================================== */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

/* =====================================
   UNIFIED SECTION SPACING (C2)
   Apply to all major sections via .page-section
   ===================================== */
/* =====================================================
   Unified section spacing + Phase 3 background support
   ===================================================== */
.page-section {
  position: relative;
  padding: var(--section-pad-top) var(--section-pad-x) var(--section-pad-bottom);
  color: white;
}



/* Default paragraph readability (applies to all sections using .page-section) */
.page-section p {
  font-size: 1rem;
  line-height: 1.7;
}

/* Full-width section background layer
   - Works even when section content is max-width (e.g., About section)
   - Uses --section-bg per section (set in Step 3)
*/
.page-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: var(--section-bg, transparent);
  z-index: -1; /* sits behind section content */
}

/* =====================================================
   Section divider micro-polish
   ===================================================== */
.page-section::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100vw;
  height: 1px;

  /* Softer divider: slight gradient instead of a hard line */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.00),
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.00)
  );
}




/* =====================================================
   Phase 3: Section background assignments (differentiation)
   These match your existing section classes in index.html:
   - .services-section
   - .portfolio-section
   - .content-section (About)
   - .contact-section
   ===================================================== */
.services-section { --section-bg: var(--bg-1); }   /* Services */
.portfolio-section { --section-bg: var(--bg-0); }  /* Portfolio */
.content-section  { --section-bg: var(--bg-2); }   /* About */
.contact-section  { --section-bg: var(--bg-1); }   /* Contact */


/* HEADER */
.site-header {
  position: sticky;      /* keeps header visible while scrolling */
  top: 0;                /* stick to top edge */
  left: 0;
  right: 0;

  padding: 14px 20px;    /* slightly tighter, consistent spacing */
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(0, 0, 0, 0.7); /* readable over hero + sections */
  backdrop-filter: blur(6px);     /* modern glass effect (supported browsers) */

  z-index: 100;          /* stay above hero + content */
}

.logo img {
  height: 50px;
}

.main-nav {
  display: flex;
  gap: 20px;          /* space between links */
}

.main-nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap; /* prevents wrapping */
}

/* HERO SECTION */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* Hero readability overlay (keeps text readable on bright slides) */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none; /* overlay shouldn't block clicks */
}

/* Ensure slides sit under the overlay */
.slide {
  z-index: 0;
}

/* Ensure hero text sits above the overlay */
.hero-text {
  z-index: 2;
}


/* SLIDES */
.slide {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* HERO TEXT */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.6s ease;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3rem;
  margin: 0;
}

.hero-text p {
  font-size: 1.5rem;
  margin-top: 10px;
}

/* =====================================
   Phase 4 – Mobile hero image overrides
   Prevents aggressive cropping on small screens
   ===================================== */

@media (max-width: 480px) {
  .hero-section .slide:nth-child(1) {
    background-image: url("images/slide1_mobile.jpg") !important;
  }

  .hero-section .slide:nth-child(2) {
    background-image: url("images/slide2_mobile.jpg") !important;
  }

  .hero-section .slide:nth-child(3) {
    background-image: url("images/slide3_mobile.jpg") !important;
  }
}



/* SECTION TWO */
.services-section {
  /* spacing handled by .page-section */
}

/* Section title */
/* =====================================================
   Section titles: consistent hierarchy and rhythm
   ===================================================== */
.section-title {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.02em; /* less “spaced out,” more premium */
  margin-top: 0;
  margin-bottom: 72px;   /* slightly tighter rhythm */
}


/* Group titles */
.group-title {
  font-size: 1.4rem;
  margin-bottom: 40px;
  font-weight: 500;
}

/* Normalize service subheadings spacing */
.services-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
}

/* =====================================
   SERVICE EXPLANATION BLOCKS
   ===================================== */


.service-details {
  padding: 0; /* section padding is handled by .page-section */
}

/* Individual explanation row */
.service-detail {
  max-width: 1200px;
  margin: 0 auto 80px auto; /* reduce vertical gap between blocks */
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Prevent extra whitespace before the next section */
.service-detail:last-child {
  margin-bottom: 0;
}


/* Alternate layout */
.service-detail.reverse {
  flex-direction: row-reverse;
}

/* Text column */
.detail-text {
  flex: 1;
}

.detail-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.detail-text p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Image column */
.detail-image {
  flex: 1;
}

/* Services images */
.detail-image img {
  width: 100%;
  height: 320px;        /* matches the placeholder height */
  object-fit: cover;
  display: block;
  border-radius: 14px;  /* matches portfolio tile rounding */
}


/* Image placeholder */
.detail-image-placeholder {
  width: 100%;
  height: 320px;
  background-color: #2a2a2a;
}

/* =====================================
   Responsive: stack explanation blocks on smaller screens
   ===================================== */
@media (max-width: 900px) {
  .detail-image-placeholder {
    width: 100%;
    height: 240px;
    background-color: #2a2a2a;
  }

  .service-detail,
  .service-detail.reverse {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
  }

  .detail-text h3 {
    font-size: 1.5rem;
  }

  .detail-image-placeholder {
    height: 240px;
  }

  /* NEW: real service images on mobile */
  .detail-image img {
    height: 240px;
  }
}


/* =====================================
   SECTION THREE: PORTFOLIO
   Simple 9-image grid (no featured, no captions)
   ===================================== */

/* Portfolio section container */
.portfolio-section {
  /* spacing handled by .page-section */
}

/* Grid container: 3×3 on desktop */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop default */
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Portfolio tile: uniform sizing */
.portfolio-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* uniform square tiles */
  overflow: hidden;
  cursor: pointer;     /* indicates interactivity */
  border-radius: 14px; /* finished tiles */
}

/* Portfolio images */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* fill tile without distortion */
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: zoom-in;     /* clear cue: click to enlarge */
}

/* Subtle hover cue (desktop polish) */
.portfolio-item:hover img {
  transform: scale(1.03);
  opacity: 0.95;
}

/* Responsive rules can stay (we're not testing mobile yet, but this is safe) */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Phase 4 – Task 4: prevent header overflow on small screens */
  .site-header {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav a {
    white-space: normal; /* override desktop nowrap */
    font-size: 16px;
  }
}



/* =====================================
   LIGHTBOX / MODAL STYLES
   ===================================== */

/* Fullscreen dark overlay */
.lightbox {
  position: fixed;              /* stays fixed on screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* semi-transparent black */
  display: none;                /* hidden by default */
  align-items: center;          /* center vertically (when flex) */
  justify-content: center;      /* center horizontally (when flex) */
  z-index: 1000;                /* above all other content */
  cursor: zoom-out;             /* cue: click outside to close (if your JS supports it) */
}

/* When JS shows the lightbox, switch to flex so centering works */
.lightbox.show {
  display: flex;
}

/* Container for the enlarged image */
.lightbox-content img {
  max-width: 90vw;              /* prevent overflow horizontally */
  max-height: 90vh;             /* prevent overflow vertically */
  display: block;
  margin: 0 auto;               /* safety centering */
  cursor: default;              /* don’t show zoom-out when hovering the image itself */
}

/* Close button for lightbox */
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* =====================================
   SECTION FOUR: SIMPLE TWO-COLUMN LAYOUT
   ===================================== */

/* Section container */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  /* spacing handled by .page-section */
  display: flex;
  align-items: center;
  gap: 80px;
}

/* Text column */
.content-text {
  flex: 1;
}

/* Section title */
.content-text h2:not(.section-title) {
  margin-bottom: 24px;
}

/* Paragraph spacing */
.content-text p {
  margin-bottom: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Image column */
.content-image {
  flex: 1;
}

/* About section image */
.content-image img {
  width: 100%;
  height: auto;        /* show full image (no crop) */
  display: block;
  border-radius: 14px;
}



/* Image placeholder */
.content-image-placeholder {
  width: 100%;
  height: 360px;
  background-color: #2a2a2a;
}

/* =====================================
   SECTION FOUR: RESPONSIVE STACKING
   Stack text and image on smaller screens
   ===================================== */

@media (max-width: 900px) {

  /* Stack text and image vertically */
  .content-section {
    flex-direction: column;
    padding: 80px 24px;      /* reduce padding on small screens */
    gap: 40px;               /* tighter spacing when stacked */
  }

  /* Center text for better mobile readability */
  .content-text {
    text-align: center;
  }

  /* Slightly reduce image height on mobile */
  .content-image-placeholder {
    height: 240px;
  }

  .content-image img {
    height: 240px;
  }

}

/* =====================================
   SECTION FIVE: CONTACT
   Minimal, frictionless styling
   ===================================== */

/* Contact section container */
.contact-section {
  /* spacing handled by .page-section */
  max-width: 700px;
  margin: 0 auto;
}

/* Intro text under the title */
.contact-intro {
  text-align: center;
  margin-top: 0px;
  margin-bottom: 60px;
  opacity: 0.85;
}

/* Form layout */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Grouping for inputs */
.form-group {
  display: flex;
  flex-direction: column;
}

/* Labels */
.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  opacity: 0.9;
}

/* =====================================================
   Phase 3: Micro-contrast polish — Form fields
   ===================================================== */

/* Text inputs and textarea */
.contact-form input[type="email"],
.contact-form textarea {
  background-color: rgba(255, 255, 255, 0.06); /* subtle lift on dark */
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: white;
  padding: 12px;
  font-size: 14px;

  border-radius: 12px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

/* Hover: tiny contrast bump */
.contact-form input[type="email"]:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Focus: visible, premium ring */
.contact-form input[type="email"]:focus-visible,
.contact-form textarea:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Phase 4 – Task 5: Disabled form field styling */
.contact-form input:disabled,
.contact-form textarea:disabled {
  background-color: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.45);
  cursor: not-allowed;
}

.contact-form input:disabled::placeholder,
.contact-form textarea:disabled::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* Textarea resizing control */
.contact-form textarea {
  resize: vertical;
}

/* Honeypot field (hidden from users) */
.honeypot {
  display: none;
}

/* GDPR checkbox group */
.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* Privacy policy link */
.checkbox-group a {
  color: white;
  text-decoration: underline;
}

/* =====================================================
   Phase 3: Micro-contrast polish — Submit button
   ===================================================== */

/* Submit button */
.submit-button {
  margin-top: 20px;
  padding: 14px;
  background-color: white;
  color: black;
  border: none;
  font-size: 14px;
  cursor: pointer;

  /* Micro-contrast polish */
  border-radius: 14px; /* match image rounding */
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); /* subtle depth */
}

/* Hover feedback (premium, subtle) */
.submit-button:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Keyboard focus (accessibility) */
.submit-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

/* Disabled state (form inactive) */
.submit-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Contact form status note (form inactive) */
.contact-status {
  text-align: center;
  margin-top: -30px;
  margin-bottom: 30px;
  opacity: 0.85;
}



/* =====================================
   FOOTER
   Minimal, unobtrusive styling
   ===================================== */

/* Footer container */
.site-footer {
  padding: 60px 24px;
  background-color: #0f0f0f; /* slightly darker for separation */
  color: white;
}

/* Inner footer layout */
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  opacity: 0.8;
}

/* Footer brand / copyright */
.footer-brand {
  margin-bottom: 12px;
}

/* Footer navigation */
.footer-nav {
  margin-bottom: 12px;
}

/* Footer links */
.footer-nav a {
  color: white;
  text-decoration: underline;
  margin: 0 8px;
}

/* Footer contact text */
.footer-contact {
  opacity: 0.7;
}

/* =====================================
   LEGAL PAGES (privacy.html)
   Minimal, readable layout
   ===================================== */

.legal-page {
  /* Reuse your black theme, but make the text readable */
  color: white;
}

.legal-header {
  padding: 24px;
}

.legal-home-link {
  display: inline-block;
  font-size: 14px;
  color: white;
  text-decoration: none;
  opacity: 0.8;
}

.legal-home-link::before {
  content: "← ";
  opacity: 0.7;
}

.legal-home-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px 24px;
}

.legal-container h1 {
  margin-top: 0;
  margin-bottom: 24px;
}

.legal-container h2 {
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-container p {
  line-height: 1.7;
  opacity: 0.9;
}

.legal-container ul {
  line-height: 1.7;
  opacity: 0.9;
}

/* =========================
   Mobile spacing normalization
   ========================= */

@media (max-width: 480px) {
  .page-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-title {
    margin-top: 0;
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  #video-creation {
    margin-bottom: 0;
  }
}

