/* Progress bar is now in animations.css (GSAP-driven scaleX) */

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--s2) 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(6, 10, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--s1) 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

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

.navbar__links {
  display: none;
  gap: var(--s4);
  align-items: center;
}

@media (min-width: 768px) {
  .navbar__links {
    display: flex;
  }
}

.navbar__links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.navbar__cta {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 10px 20px;
  font-family: 'Syne', sans-serif !important;
  font-weight: 700;
  font-size: 0.8rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.navbar__cta:hover {
  background: var(--accent);
  color: #000 !important;
}

/* Mobile menu toggle */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.navbar__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-primary);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
}

.navbar__mobile.active {
  display: flex;
}

.navbar__mobile a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--text-primary);
  transition: color 0.2s;
}

.navbar__mobile a:hover {
  color: var(--accent);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  padding: 13px 28px;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: var(--s3);
  color: transparent;
  -webkit-text-stroke: 1px var(--text-primary);
}

@media (prefers-color-scheme: light) {
  .hero__title {
    -webkit-text-stroke: 1px #000;
  }
}

.hero-cycle-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

.hero__title .hero-cycle {
  color: var(--accent);
  -webkit-text-stroke: 0;
  display: inline-block;
  will-change: transform;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: var(--s5);
  line-height: 1.7;
}

.hero__buttons {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}

/* ── Trusted / Client Strip ── */
#trusted {
  padding: var(--s6) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.ticker-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.ticker {
  display: flex;
  align-items: center;
  gap: var(--s6);
  animation: ticker-scroll 25s linear infinite;
  white-space: nowrap;
}

.ticker__item {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.3s;
  flex-shrink: 0;
  padding: 0 var(--s3);
}

.ticker__item:hover {
  filter: none;
  color: var(--text-primary);
}

/* ── Service Cards ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.service-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
}

.service-card:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
}

.service-card__number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-card__title {
  font-size: 1.25rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-card__arrow {
  position: absolute;
  bottom: var(--s4);
  right: var(--s4);
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s;
}

.service-card:hover .service-card__arrow {
  color: var(--accent);
  transform: translate(4px, -4px);
}

/* ── Process Section ── */
.process-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
}

@media (min-width: 768px) {
  .process-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--s6);
  }
}

.process-sticky {
  display: none;
}

@media (min-width: 768px) {
  .process-sticky {
    display: flex;
    flex-direction: column;
    gap: var(--s4);
    position: sticky;
    top: 140px;
    align-self: start;
    height: fit-content;
  }
}

.process-sticky__counter {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.process-sticky__current {
  color: var(--accent);
  transition: color 0.3s ease;
}

.process-sticky__sep {
  color: var(--text-muted);
  font-size: 2rem;
}

.process-sticky__total {
  color: var(--text-muted);
  font-size: 2.5rem;
}

.process-sticky__visual {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-sticky__visual span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--text-muted);
  opacity: 0.1;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: start;
}

.process-step__number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 6vw, 6rem);
  color: var(--text-primary);
  opacity: 0.08;
  line-height: 1;
}

.process-step__content {
  padding-top: var(--s1);
}

.process-step__title {
  margin-bottom: var(--s1);
}

.process-step__desc {
  font-size: 0.95rem;
  max-width: 480px;
}

/* ── Demo Cards ── */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

@media (min-width: 768px) {
  .demo-grid {
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  }
}

.demo-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.demo-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 24px 48px rgba(0, 0, 0, 0.5);
}

.demo-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
}

.demo-card__media img,
.demo-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder gradient for demos without media */
.demo-card__media--placeholder {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #0d1525 50%, var(--bg-surface) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-card__media--placeholder span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--text-muted);
  opacity: 0.3;
}

.demo-card__info {
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.demo-card__link {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: var(--s1);
  transition: opacity 0.2s;
}

.demo-card__link:hover {
  opacity: 0.7;
}

/* ── Work / Projects ── */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}

@media (min-width: 768px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.work-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.work-card:hover {
  border-color: var(--border-hover);
}

.work-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--bg-surface), #0d1525);
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card__image span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  color: var(--text-muted);
  opacity: 0.25;
}

.work-card__body {
  padding: var(--s3);
}

.work-card__tags {
  display: flex;
  gap: var(--s1);
  margin-top: var(--s2);
  flex-wrap: wrap;
}

.work-card__tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Featured work card (real project, spans the full grid) ── */
a.work-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card__image--shot {
  display: block;
  background: var(--bg-surface);
}

.work-card__image--shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.work-card__badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 3px 9px;
  margin-bottom: var(--s2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.work-card__link {
  display: inline-block;
  margin-top: var(--s3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

a.work-card:hover {
  border-color: var(--accent-dim);
}

a.work-card:hover .work-card__link {
  color: #ff8a4a;
}

a.work-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .work-card.work-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }

  .work-card.work-card--featured .work-card__image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 340px;
    border-right: 1px solid var(--border);
  }

  .work-card.work-card--featured .work-card__body {
    padding: var(--s4);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .work-card.work-card--featured .work-card__badge,
  .work-card.work-card--featured .work-card__link,
  .work-card.work-card--featured .work-card__tags {
    align-self: flex-start;
  }
}


/* ── About Section ── */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  align-items: center;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about__text p {
  margin-bottom: var(--s3);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  margin-top: var(--s4);
}

.stat__number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
}

.stat__label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--s1);
}

.about__visual {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--bg-surface), #0d1525, var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__visual span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: var(--text-muted);
  opacity: 0.15;
}

/* ── Testimonials ── */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: var(--s5) var(--s4);
  text-align: center;
}

.testimonial-card__quote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto var(--s4);
  font-style: italic;
}

.testimonial-card__quote::before {
  content: '\201C';
  color: var(--accent);
  font-size: 2em;
  line-height: 0;
  vertical-align: -0.2em;
  margin-right: 4px;
}

.testimonial-card__name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonial-card__role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin-top: var(--s4);
}

.carousel-nav button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}

.carousel-nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── CTA Banner ── */
#cta {
  text-align: center;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--s4);
  position: relative;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s6) 0 var(--s4);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s5);
  margin-bottom: var(--s6);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(4, 1fr);
  }
}

.footer__brand p {
  margin-top: var(--s2);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer__col h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s2);
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--s3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s2);
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__socials {
  display: flex;
  gap: var(--s2);
}

.footer__socials a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer__socials a:hover {
  color: var(--accent);
}

/* ── Scroll Navigation (Top / Bottom) ── */
.scroll-nav {
  position: fixed;
  right: 20px;
  bottom: 32px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-nav.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.scroll-nav__btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hover);
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s, opacity 0.25s;
}

.scroll-nav__btn:first-child {
  border-radius: 6px 6px 0 0;
}

.scroll-nav__btn:last-child {
  border-radius: 0 0 6px 6px;
}

.scroll-nav__btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(255, 106, 26, 0.08);
  box-shadow: 0 0 12px rgba(255, 106, 26, 0.15);
}

.scroll-nav__btn.disabled {
  opacity: 0.25;
  pointer-events: none;
}

@media (max-width: 480px) {
  .scroll-nav {
    right: 12px;
    bottom: 20px;
  }

  .scroll-nav__btn {
    width: 34px;
    height: 34px;
  }
}
