* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #08090b;
  --panel: #101216;
  --panel2: #15171c;
  --text: #f5f5f5;
  --muted: #9b9da5;
  --line: rgba(255,255,255,.09);
  --accent: #e8e8e8;
}
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.navbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw; background: rgba(8,9,11,.88);
  backdrop-filter: blur(15px); border-bottom: 1px solid var(--line);
}
.brand { font-weight: 900; letter-spacing: -.04em; font-size: 1.2rem; }
.brand span { font-weight: 500; margin-left: 7px; color: #888; letter-spacing: .08em; }
nav { display: flex; gap: 28px; }
nav a { color: #b9bbc2; font-size: .92rem; transition: .2s; }
nav a:hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; color: white; font-size: 1.5rem; }
.hero {
  min-height: 82vh; padding: 8vw 6vw;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 6vw;
  align-items: center; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 80% 30%, rgba(255,255,255,.08), transparent 35%);
}
.eyebrow { color: #8f929a; font-size: .75rem; font-weight: 800; letter-spacing: .18em; margin-bottom: 14px; }
h1 { font-size: clamp(3.5rem, 8vw, 7rem); line-height: .92; letter-spacing: -.065em; max-width: 850px; }
h1 span { color: #777; }
.hero-text { max-width: 620px; color: var(--muted); font-size: 1.15rem; margin: 28px 0; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.button { display: inline-block; padding: 13px 22px; border-radius: 7px; font-weight: 800; font-size: .9rem; border: 1px solid var(--line); }
.primary { background: #f2f2f2; color: #08090b; }
.secondary { background: transparent; color: white; }
.hero-card {
  min-height: 370px; padding: 35px; display: flex; flex-direction: column; justify-content: end;
  background: linear-gradient(145deg, #181b21, #0b0c0f);
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); position: relative; overflow: hidden;
}
.hero-card strong { font-size: 2.4rem; line-height: 1.05; letter-spacing: -.04em; }
.hero-card p { color: #888; font-size: .75rem; letter-spacing: .2em; margin-bottom: 15px; }
.card-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.08); filter: blur(50px); top: -70px; right: -70px; }
.section { padding: 110px 6vw; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 700px; margin-bottom: 45px; }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; margin-bottom: 16px; }
.section-heading > p:last-child, .about p, .contact-box > p:not(.eyebrow) { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.service-card { padding: 30px; min-height: 250px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.icon { font-size: 1.7rem; margin-bottom: 35px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: .9rem; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.project-image { height: 260px; display: grid; place-items: center; background: linear-gradient(135deg,#191c22,#0d0e11); color: #555; font-weight: 900; letter-spacing: .15em; }
.project-info { padding: 22px; }
.project-info p { color: var(--muted); font-size: .85rem; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
.about p { font-size: 1.2rem; max-width: 650px; }
.contact { text-align: center; }
.contact-box { max-width: 750px; margin: auto; }
.contact-box .button { margin-top: 25px; }
footer { padding: 30px 6vw; display: flex; justify-content: space-between; gap: 20px; color: #777; font-size: .8rem; }
@media (max-width: 850px) {
  nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; padding: 25px 6vw; background: #0b0c0f; border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero, .about { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  footer { flex-direction: column; }
}

/* =========================================
   JPS WORKSHOP - PROJECT CARDS
   ========================================= */

#featured-projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Individual project card */
#featured-projects .project {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(145deg, #121419, #0d0f12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Card hover */
#featured-projects .project:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Project image */
#featured-projects .project-image {
  position: relative;
  height: 260px;
  overflow: hidden;
  display: block;
  background: #0c0d10;
}

/* Actual project image */
#featured-projects .project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s ease;
}

/* Image zoom on hover */
#featured-projects .project:hover .project-image img {
  transform: scale(1.05);
}

/* Dark image overlay */
#featured-projects .project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 30%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
}

/* Category badge */
#featured-projects .project-category {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Project information */
#featured-projects .project-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
}

/* Project title */
#featured-projects .project-info h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

/* Project description */
#featured-projects .project-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* View project link */
#featured-projects .project-view {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  transition: gap 0.2s ease, color 0.2s ease;
}

#featured-projects .project:hover .project-view {
  gap: 11px;
}

/* Loading state */
#featured-projects .projects-loading {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 20px 0;
}

/* =========================================
   PROJECT PAGE
   ========================================= */

.project-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 6vw;
}

.project-page-header {
  max-width: 800px;
  margin-bottom: 45px;
}

.project-page-header .project-category {
  display: inline-flex;
  padding: 7px 11px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: #c7c9cf;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-page-header h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin-bottom: 18px;
}

.project-page-header p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
}

/* Main project image */
.project-main-image {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

/* Project description */
.project-description {
  max-width: 850px;
  margin: 70px auto;
}

.project-description h2,
.project-gallery-section h2 {
  margin-bottom: 20px;
}

.project-description p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
}

/* Gallery */
.project-gallery-section {
  margin-top: 80px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.05);
}

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

@media (max-width: 1000px) {
  #featured-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  #featured-projects {
    grid-template-columns: 1fr;
  }

  #featured-projects .project-image {
    height: 230px;
  }

  .project-page {
    padding: 65px 6vw;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-main-image {
    border-radius: 12px;
  }
}
