:root {
  --bg: #ffffff;
  --text: #0b0b0f;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #111827;
  --accent: #111827;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --sidebar-width: 320px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

.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;
}

/* Layout */
.main { padding: 24px 16px 64px; }
.section { padding: 48px 0; border-bottom: 1px dashed var(--border); }
.container { width: min(1100px, 100%); margin: 0 auto; padding: 0 8px; }
.container--wide {
  width: min(1400px, 100%);
}

.stars-container-back, .stars-container-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.stars-container-back {
  z-index: -1;
}

.stars-container-front {
  z-index: 1;
}

.star {
  position: absolute;
  width: 50px; /* Initial size, can be randomized by JS */
  height: 50px;
  background-image: url('assets/Orvin_star.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0;
  animation: moveStar 15s linear infinite;
}

@keyframes moveStar {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  10%, 90% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(var(--translateX)) rotate(360deg);
  }
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 12px 0 24px;
  transform: translateY(-4vh);
  will-change: transform;
  position: relative; /* Add this */
}

.hero .container {
  position: relative;
  z-index: 0;
}

.hero__logo {
  width: clamp(192px, 36vw, 480px);
  height: auto;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
}
.hero__brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--brand);
  font-size: clamp(22px, 3.5vw, 32px);
  margin-bottom: 8px;
}
.hero__title { margin: 0 0 12px; font-size: clamp(40px, 8vw, 72px); letter-spacing: -0.02em; }
.hero__subtitle { margin: 0; color: var(--muted); font-size: clamp(16px, 2.6vw, 22px); }

/* Down arrow button */
.down-arrow {
  margin: 24px auto 0;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: #ffffff;
  color: var(--brand);
  text-decoration: none;
  transition: background-color 200ms ease, transform 200ms ease;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.down-arrow:hover { background: #f9fafb; transform: translateY(2px); }

/* Showcase section */
#showcase .clients__grid {
  grid-template-columns: minmax(0, 800px); /* Make the single card larger */
}

#showcase h2 {
  font-size: clamp(26px, 5vw, 48px); /* Increase title size */
}

/* Clients section */
.clients h2 {
  margin: 0 0 16px;
  text-align: center;
}
.clients__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 600px));
  gap: 24px;
  justify-content: center;
}
.clients__grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}
.client-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr;
  transition: transform 0.2s ease-out;
}
.client-card:hover {
  transform: scale(1.05);
}
.client-card__image {
  overflow: hidden;
}
.client-card__image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.client-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.client-card__title {
  margin: 0 0 9px;
  font-size: 27px;
}
.client-card__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

/* View more link */
.clients__more {
  display: block;
  width: fit-content;
  margin: 24px auto 0;
  padding: 8px 16px;
  color: var(--brand);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 180ms ease;
}
.clients__more:hover { background: #f0f2f5; }

.text-center {
  text-align: center;
}

.more-text {
  margin-top: 24px;
  font-style: italic;
  color: var(--muted);
}

/* Timeline */
.timeline {
  padding: 96px 0;
}
.timeline__heading {
  margin: 0 0 48px;
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: -0.01em;
  text-align: center;
}
.timeline__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  position: relative;
}
.timeline__list::before {
  content: ""; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: var(--border);
}
.timeline__item {
  position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-left: 56px; padding-bottom: 20px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 20px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent);
}
.timeline__time { color: var(--muted); font-weight: 600; padding-top: 2px; }
.timeline__title {
  margin: 0 0 6px;
  font-size: 22px;
}
.timeline__desc {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 700px) {
  .timeline__item { grid-template-columns: 1fr; padding-left: 56px; }
  .timeline__list::before { left: 28px; }
  .timeline__item::before { left: 20px; }
}

.contact__heading { margin: 0 0 16px; font-size: clamp(26px, 4vw, 40px); }
.contact__alt { margin: 0 0 12px; color: var(--muted); }
.contact__alt a { color: var(--brand); text-decoration: none; }
.contact__alt a:hover { text-decoration: underline; }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact__form .field { display: flex; flex-direction: column; gap: 6px; }
.contact__form label { font-weight: 600; }
.contact__form .req { color: #e11d48; }
.contact__form input {
  width: 100%; padding: 10px 0; border: none; border-bottom: 2px solid var(--border); background: transparent; font: inherit;
}
.contact__form input:focus { outline: none; border-bottom-color: var(--brand); }
.contact__form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--text); border-radius: 4px; background: #fff; font: inherit; min-height: 160px;
}
.contact__form textarea:focus { outline: none; border-color: var(--brand); }
.contact__form button {
  align-self: start; padding: 12px 18px; border-radius: 6px; border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer; font-weight: 600;
}
.contact__form button:hover { background: #f9fafb; }
@media (max-width: 700px) { .contact__form .row { grid-template-columns: 1fr; } }

.placeholder-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.placeholder-card, .placeholder-tile {
  height: 140px; border: 2px dashed var(--border); border-radius: 12px;
  display: grid; place-items: center; color: var(--muted);
}

.placeholder-form { display: flex; flex-direction: column; gap: 12px; }
.placeholder-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.placeholder-form input, .placeholder-form textarea {
  width: 100%; padding: 12px; border: 1px dashed var(--border); border-radius: 10px; background: #fafafa;
}
.placeholder-form button {
  align-self: start; padding: 10px 14px; border-radius: 10px; border: 1px dashed var(--border); background: #fff; color: var(--muted);
}

.footer { padding: 24px 16px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.muted { color: var(--muted); }

@media (max-width: 900px) {
  .placeholder-grid { grid-template-columns: 1fr 1fr; }
  .clients__grid.three-cols { grid-template-columns: 1fr; }
  .client-card { height: 300px; }
}
@media (max-width: 600px) {
  .placeholder-grid { grid-template-columns: 1fr; }
  .placeholder-form .row { grid-template-columns: 1fr; }
  .clients__grid { grid-template-columns: 1fr; }
  .client-card { height: 280px; }
  .hero { transform: translateY(-2vh); }
}

/* Toast Notification */
.toast {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

.toast.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}


