
/* HEX #3A3F42 & #C7632C */

  :root {
    --bg: #000000;
    --surface: #000000;
    --surface2: #000000;
    --border: rgba(0, 0, 0, 0.08);
    --accent: #c8a96e;
    --accent2: #e8d5a3;
    --text: #ffffff;
    --muted: #7a786e;
    --nav-h: 160px;
  }
/* used to ensur the border-box is measured as total, if I decrease the padding, it will just squeeze text down */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }



  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    min-height: 100vh;/*100% viewport height*/
  }

  /* Rajdhani Bold used for all headings — imported via Google Fonts in index.html */
  h1, h2, h3, h4, h5, h6,
  .section-title,
  .modal-title,
  .card-title,
  .project-body h3,
  .news-item a {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--accent);
  }

  h1, h2, h3, h4, h5, h6,
  .section-title,
  .modal-title {
    font-size: 28px;
  }

  .section-eyebrow,
  .hero-sub,
  .info-bar-title,
  .card-tag {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 400;
  }

  .section {
    padding: 100px 0 60px;
  }

  .scene-wrapper {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 0 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #080808;
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
    min-height: 420px;
  }

  .scene-wrapper video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 420px;
  }

  .scene-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 1;
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Hotspot container — always row so the label sits to the RIGHT of the
     ring at every screen size. Column layout (label below) was causing
     overlap because the four hotspots are only 10% apart vertically;
     at small scene heights the label of one hotspot would bleed into
     the ring of the one below it. Row layout avoids this entirely. */
  .hotspot {
    position: absolute;
    cursor: pointer;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .hotspot-ring {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,0.3);
  }

  .hotspot-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
  }

  /* Label to the right of the ring at all sizes.
     - margin-left replaces margin-top now that layout is a row
     - white-space: normal lets text wrap so it never overflows horizontally
     - max-width caps the column so text wraps rather than sprawling right
     - clamp() scales font smoothly with viewport width
     - letter-spacing slightly reduced from 0.16em so uppercase text
       fits within the max-width without breaking onto too many lines */
  .hotspot-label {
    margin-left: 8px;
    color: var(--text);
    font-size: clamp(0.58rem, 1.4vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: normal;
    max-width: 220px;
    text-align: left;
    line-height: 1.4;
  }

  .info-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding-top: 12px;
  }

  .info-bar-title {
    font-size: 1.1rem;
    letter-spacing: 0.3rem;
    color: var(--accent2);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
  }

  .info-bar-desc,
  .modal-text,
  .project-body p,
  .card-desc,
  .news-item p {
    font-family: 'Poppins', sans-serif;
    line-height: 1.85;
    color: var(--muted);
    font-size: 0.96rem;
  }

  .info-bar-desc {
    max-width: 100%;
  }

  .image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    align-items: center;
    justify-items: center;
    margin-top: 12px;
  }

  .image-grid a {
    display: block;
    width: 100%;
    text-align: center;
  }

  .image-grid img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .image-grid img:hover {
    opacity: 1;
    transform: translateY(-1px);
  }

  .info-bar-meta {
    display: grid;
    gap: 12px;
  }

  .meta-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
  }

  .meta-label {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
  }

  .meta-value {
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
  }

  .modal {
    max-width: 780px;
  }

  /* Modal overlay & content (used by openModal/closeModal) */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 400;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }
  .modal-overlay.open { display: flex; }
  .modal-overlay .modal {
    background: linear-gradient(180deg, #0b0b0b, #0f0f0f);
    border-radius: 12px;
    padding: 18px;
    color: var(--text);
    max-width: 920px;
    width: min(92vw, 920px);
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
    margin: 0;
  }
  .modal-image-placeholder { margin-bottom: 14px; }
  .modal-image { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; border-radius: 8px; }

  /* Placeholder for missing images so defaults don't show wrong screenshots */
  .img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px dashed rgba(255,255,255,0.06);
    color: var(--muted);
    font-weight: 600;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
  }
  .img-placeholder.needs-image { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00)); color: #c9c7bf; }

  /* Card / gallery styles */
  .card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; align-items: start; align-content: start; }
  .card { background: rgba(255,255,255,0.02); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform 0.18s, box-shadow 0.18s; }
  .card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.45); }
  .card-thumb { height: 180px; background: #0a0a0a; display:flex; align-items:center; justify-content:center; color:var(--muted); font-weight:600; }
  .card-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
  .card-content { padding: 12px 14px; }
  .card-tag { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom:6px; }
  .card-title { font-weight:600; color:var(--text); margin-bottom:6px; }
  .card-desc { color:var(--muted); font-size: 0.95rem; }

  @media (max-width: 980px) {
    .info-bar { grid-template-columns: 1fr; }
    .scene-wrapper { width: 100%; min-height: 320px; }
  }

  /* tighter grid on small screens */
  @media (max-width: 720px) {
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
    .modal-overlay .modal { width: calc(100vw - 32px); }
  }

  @media (max-width: 420px) {
    .card-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  }

  @media (max-width: 620px) {
    .scene-wrapper { border-radius: 0; }
    .info-bar { gap: 18px; }
  }

  /* At 640px and below, shrink the label further so each hotspot stays
     close to the ring height (24px) and doesn't bleed into the next
     hotspot. Reducing letter-spacing is key — uppercase text with wide
     tracking takes up far more space than it appears at full size. */
  @media (max-width: 640px) {
    .hotspot-label {
      font-size: 0.58rem;
      letter-spacing: 0.06em;
      max-width: 80px;
    }
  }

/* === Image strip === */
.image-strip {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
  flex-wrap: wrap;
}

.image-strip-item {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
  overflow: hidden;
  background: var(--surface, #1a1a1a);
  border-radius: 8px;
}

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

.image-strip-item:has(img[src=""]),
.image-strip-item:has(img:not([src])) {
  display: none;
}

/* === Partials styling === */
.hero { padding: 48px 0; text-align: left; }
.hero-title { font-family: 'Bebas Neue', sans-serif; font-size: 46px; color: var(--accent); margin-bottom: 8px; }
.hero-sub { color: var(--muted); max-width: 720px; }

.features { display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.feature { background: rgba(255,255,255,0.02); padding: 18px; border-radius: 8px; flex: 1 1 220px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.gallery-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; display: block; }
.gallery-item figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }

.projects-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.project-card { background: rgba(255,255,255,0.02); border-radius: 8px; overflow: hidden; }
..project-card img { width: 100%; height: 140px; object-fit: cover; }
.project-body { padding: 12px; }

.section-news header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}
.section-news header h2 {
  margin-bottom: 16px;
}
.section-news header p {
  margin: 0 auto;
  max-width: 580px;
  color: var(--muted);
}

  /* Contact section layout */
  .contact-section { max-width: 980px; margin: 0 auto; padding: 24px; display: grid; gap: 16px; }
  .contact-section .section-eyebrow { color: var(--muted); font-size: 13px; letter-spacing: 0.18em; }
  .contact-section .section-title { font-size: 28px; color: var(--accent); }
  .contact-section .section-desc { color: var(--muted); max-width: 720px; }
  .contact-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
  .contact-item { background: rgba(255,255,255,0.02); padding: 12px; border-radius: 8px; }
  .contact-item span { display:block; color:var(--muted); font-size:12px; }
  .contact-section .btn-primary {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.16);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
  }
  .contact-section .btn-primary:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
    transform: translateY(-1px);
  }

.contact-columns { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; margin-top: 18px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px; margin-top: 6px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04); color: var(--text); border-radius: 6px; }
.contact-form label { font-size: 13px; color: var(--muted); }
.contact-form button { margin-top: 10px; background: var(--accent); color: #000; border: none; padding: 10px 14px; border-radius: 6px; cursor: pointer; }

.news-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.section-news .news-list { margin-left: 20%; max-width: 60%; }
.news-item time { color: var(--muted); font-size: 13px; display: block; }
.news-item a { color: var(--accent); font-weight: 500; text-decoration: none; }

@media (max-width: 820px) {
  .contact-columns { grid-template-columns: 1fr; }
}