/* ===== Base ===== */
:root {
  --bg: #0a0c10;
  --bg-soft: #11141a;
  --text: #e8eaee;
  --text-dim: #9aa1ad;
  --accent: #5cc8ff;
  --radius: 14px;
  --nav-h: 72px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

h1, h2 {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

img {
  display: block;
  max-width: 100%;
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  z-index: 100;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav__logo {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.nav__logo span {
  color: var(--accent);
}

.nav__links a {
  display: inline-block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 6px;
  margin-left: clamp(10px, 3vw, 30px);
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=2000&q=80") center / cover no-repeat;
  animation: kenburns 22s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.25) 45%, var(--bg) 100%);
}

.hero__content {
  position: relative;
  padding: 0 24px;
  max-width: 820px;
}

.hero__kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__sub {
  color: var(--text-dim);
  font-size: clamp(16px, 2vw, 19px);
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn--light {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--light:hover {
  background: #fff;
  color: var(--bg);
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 24px;
  height: 40px;
  margin-left: -12px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}

.hero__scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text);
  animation: scrollhint 1.8s ease-in-out infinite;
}

@keyframes scrollhint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ===== Sections ===== */
.section-head {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 24px;
}

.section-head h2,
.about h2,
.contact h2 {
  font-size: clamp(30px, 4.5vw, 46px);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-dim);
}

/* ===== Gallery ===== */
.gallery {
  padding: clamp(70px, 10vw, 120px) 0;
  overflow: hidden;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
  padding: 0 24px;
}

.filter {
  font: 500 13px/1 "Inter", sans-serif;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 13px 22px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.4);
}

.filter.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.carousel__track {
  display: flex;
  gap: clamp(14px, 2.5vw, 32px);
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 min(74vw, 1100px);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(0.93);
  opacity: 0.35;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.65s ease;
  cursor: pointer;
}

.slide.is-active {
  transform: none;
  opacity: 1;
  cursor: zoom-in;
}

.slide.is-hidden {
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 70px 26px 22px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  font-size: 17px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.slide.is-active figcaption {
  opacity: 1;
  transform: none;
}

.slide figcaption span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 4px;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.carousel__arrow--prev { left: clamp(10px, 4vw, 48px); }
.carousel__arrow--next { right: clamp(10px, 4vw, 48px); }

.carousel__count {
  text-align: center;
  margin-top: 26px;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

/* ===== Services ===== */
.services {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 26px);
}

.service {
  background: var(--bg-soft);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px) clamp(24px, 2.5vw, 32px);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.service:hover {
  transform: translateY(-6px);
  border-color: rgba(92, 200, 255, 0.4);
  background: #141821;
}

.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(92, 200, 255, 0.1);
  color: var(--accent);
  margin-bottom: 22px;
}

.service__icon svg {
  width: 26px;
  height: 26px;
}

.service h3 {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.service__tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}

.service > p:not(.service__tag) {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 20px;
}

.service__list {
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.service__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== About ===== */
.about {
  background: var(--bg-soft);
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 56px);
}

.about__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.about__text p {
  color: var(--text-dim);
  margin: 18px 0;
  max-width: 52ch;
}

.about__stats {
  list-style: none;
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 30px;
}

.about__stats li {
  font-size: 13px;
  color: var(--text-dim);
}

.about__stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 26px;
  color: var(--text);
  margin-bottom: 4px;
}

.about__photo img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

/* ===== Contact ===== */
.contact {
  padding: clamp(90px, 12vw, 150px) 24px;
  text-align: center;
}

.contact p {
  color: var(--text-dim);
  margin: 14px auto 34px;
  max-width: 46ch;
}

/* ===== Footer ===== */
.footer {
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(5, 6, 9, 0.94);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev  { left: 22px; }
.lightbox__next  { right: 22px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about__inner {
    grid-template-columns: 1fr;
  }

  .about__photo {
    order: -1;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 480px;
  }

  .nav__links a {
    margin-left: clamp(10px, 4vw, 22px);
  }

  .slide {
    flex-basis: 86vw;
    aspect-ratio: 4 / 3;
  }

  .slide figcaption {
    font-size: 15px;
    padding: 50px 18px 16px;
  }

  .carousel__arrow {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .about__stats {
    flex-wrap: wrap;
    row-gap: 18px;
  }

  .lightbox__prev { left: 10px; }
  .lightbox__next { right: 10px; }

  /* keep lightbox arrows clear of the photo on small screens */
  .lightbox__prev, .lightbox__next {
    top: auto;
    bottom: 60px;
  }

  .lightbox__caption {
    bottom: 18px;
  }

  .lightbox__img {
    max-height: 72vh;
  }
}

/* very small phones (iPhone SE and below) */
@media (max-width: 400px) {
  .nav {
    padding: 0 12px;
  }

  .nav__logo {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .nav__links a {
    margin-left: 11px;
    padding: 14px 2px;
    font-size: 12px;
  }

  .slide {
    flex-basis: 92vw;
  }

  .filters {
    gap: 8px;
  }

  .filter {
    padding: 13px 16px;
  }

  .carousel__arrow--prev { left: 6px; }
  .carousel__arrow--next { right: 6px; }

  .hero__title {
    font-size: clamp(36px, 11vw, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .carousel__track, .slide { transition: none; }
  html { scroll-behavior: auto; }
}
