/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* =========================
   THEME TOKENS (edit me)
   ========================= */
:root{
  --accent: #0f62fe;      /* crisp blue; try #14b8a6 (teal) or #e11d48 (crimson) */
  --ink: #111;            /* primary text / dark UI */
  --ink-2: #222;          /* secondary dark */
  --line: #d9d9d9;        /* light divider */
  --paper: #ffffff;       /* page background for sections/cards */
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;            /* no horizontal scroll */
  background: transparent;       /* let fixed background show through */
  color: var(--ink);
  font-family: 'Segoe UI', Arial, sans-serif;
}

/* rigid look */
* { border-radius: 0 !important; }
.navbar, .projects-title-bar, .project-subtitle-bar { box-shadow: none !important; }

/* media never overflow */
img, video, canvas { max-width: 100%; height: auto; display: block; }

/* ========================================================================== */
/* Fixed Background (locked on desktop + iOS)                                 */
/* ========================================================================== */
html::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;  /* behind all content */
  background: url("../img/WKR_Background.JPEG") center 55% / cover no-repeat #000;
  pointer-events: none;
}

/* ========================================================================== */
/* Navbar                                                                     */
/* ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #121212;
  padding: 12px 24px;
  color: white;
  border-bottom: 2px solid var(--accent);
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  background-color: #1e1e1e;
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #2a2a2a;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}

.nav-links li a:hover {
  background-color: #2a2a2a;
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ========================================================================== */
/* Hero Section (content window only — background handled by html::before)    */
/* ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;               /* how tall the hero feels */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: transparent !important;
  border: 0 !important;
  margin: 0;
  /* removed grey overlay box-shadow */
}

@supports (height: 100svh){
  .hero { min-height: 80svh; }    /* stable viewport on iOS */
}

/* you used .hero-text in HTML; keep both */
.hero-text, .hero-content {
  z-index: 1;
  padding: 0 16px;
}
.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 .4rem 0;
  letter-spacing: .02em;
  font-weight: 800;
  color: #e8e8e8;
}
.hero p {
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
  color: #e8e8e8;

}
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.8rem;   /* bigger headline */
  }
  .hero p {
    font-size: 1.3rem;   /* slightly larger paragraph */
  }
}
/* ========================================================================== */
/* Projects Section                                                           */
/* ========================================================================== */
.projects-section {
  background-color: var(--paper);
  padding: 0;
  margin: 0;
}

.projects-title-bar {
  width: 100%;
  background-color: #111;
  padding: 12px 0;
  text-align: center;
  border-bottom: 2px solid var(--accent);
}
.projects-title-bar h2 {
  color: #fff;
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.projects-intro {
  color: var(--ink-2);
  text-align: center;
  padding: 14px 16px;
  margin: 12px auto 28px;
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-wrapper {
  margin-bottom: 32px;
}

.project-subtitle-bar {
  width: 100%;
  background-color: #111;
  padding: 12px 24px;
  text-align: left;
  margin: 32px 0 14px;
  border-bottom: 2px solid var(--accent);
}
.project-subtitle-bar h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.project-content-box {
  background-color: var(--paper);
  padding: 24px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.project-content-box img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 0;
  object-fit: contain;
}

.project-description {
  max-width: 900px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
  margin: 10px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.project-description p { margin: 0; }

/* ========================================================================== */
/* Slideshow                                                                  */
/* ========================================================================== */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 16px;
  user-select: none;
  overflow: hidden;                 /* keep everything inside */
}
.slides {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: none;          /* hard edge, no softness */
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain !important;               /* fill frame; may crop */
  object-position: center center !important;
  display: none;
  border: 0;
}
.slide.is-active { display: block; }

/* square, crisp arrows */
.slideshow .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  width: 36px; height: 36px;
  cursor: pointer;
  z-index: 5;
}
.slideshow .nav:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.slideshow .prev { left: 10px; }
.slideshow .next { right: 10px; }

/* square dots */
.slideshow .dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 10px 0 0;
}
.slideshow .dot {
  width: 8px; height: 8px;
  background: #fff;
  border: 1px solid #111;
  cursor: pointer;
}
.slideshow .dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ========================================================================== */
/* Generic content sections (info/contact)                                    */
/* ========================================================================== */
main {
  padding: 24px;
  max-width: 900px;
  margin: auto;
}
section {
  margin-bottom: 32px;
  padding: 24px;
  background-color: var(--paper);
  border-left: 4px solid #121212;
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
h2 {
  color: #121212;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
  margin-top: 0;
}

/* ========================================================================== */
/* Responsive tweaks                                                          */
/* ========================================================================== */
@media (max-width: 768px) {
  .hero { min-height: 60vh; }    /* consistent with base min-height */
}
/* ============================================= */
/* Mobile / Portrait Hero Background Override    */
/* ============================================= */
@media (max-width: 768px), (orientation: portrait) {
  html::before {
    background-image: url("../img/WKR_Background_vertical.JPEG");
    background-position: center center;
    background-size: cover;
  }
}
/* tighten everything up on smaller screens */
@media (max-width: 640px) {
  .nav-links {
    gap: 10px;          /* reduce spacing between items */
  }
  .nav-links li a {
    padding: 6px 10px;  /* smaller buttons */
    font-size: 0.85rem; /* slightly smaller text */
  }
}

/* even tighter for very narrow phones */
@media (max-width: 420px) {
  .nav-links {
    gap: 6px;
  }
  .nav-links li a {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}
