﻿/* â”€â”€ Material Symbols â”€â”€ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}
.icon-filled { font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24; }

/* â”€â”€ Font helpers â”€â”€ */
.font-heading, .font-headline { font-family: 'Cormorant Garamond', serif; }
.font-body, .font-sans { font-family: 'Public Sans', sans-serif; }
.font-mono, .font-label { font-family: 'JetBrains Mono', monospace; }

/* â”€â”€ Body background â”€â”€ */
body {
  background-color: #050505;
  background-image: radial-gradient(rgba(255,215,0,0.03) 1px, transparent 0);
  background-size: 24px 24px;
}

/* â”€â”€ Gradient text â”€â”€ */
.heading-gradient {
  background: linear-gradient(135deg, #ffe792 0%, #fd8b00 50%, #ff725e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-gradient-text {
  background: linear-gradient(to right, #ffe792, #fd8b00, #ff725e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient {
  background: linear-gradient(to right, #ffe792, #fd8b00, #ff725e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* â”€â”€ Glass card â”€â”€ */
.glass-card {
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,215,0,0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255,140,0,0.15);
}

/* â”€â”€ Kinetic card â”€â”€ */
.kinetic-card {
  background: #0e0e0e;
  border: 1px solid rgba(255,215,9,0.1);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.kinetic-card:hover {
  border-color: #ffd709;
  background: #151515;
  transform: translateY(-2px);
}

/* â”€â”€ FAQ card (accordion) â”€â”€ */
.faq-card {
  background: rgba(15,15,15,0.95);
  border: 1px solid rgba(255,215,0,0.15);
  transition: all 0.3s ease;
  overflow: hidden;
}
.faq-card:hover { border-color: #ffd700; box-shadow: 0 0 15px rgba(255,140,0,0.15); }

/* â”€â”€ Kinetic button â”€â”€ */
.kinetic-btn {
  background: linear-gradient(to right, #ffd700, #ff8c00);
  color: #000;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kinetic-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,140,0,0.4); }

/* â”€â”€ CTA button â”€â”€ */
.cta-btn {
  background: linear-gradient(to right, #ffd700, #ff8c00);
  color: #000;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(255,215,0,0.3); }

/* â”€â”€ Section label â”€â”€ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 2px solid #ffd709;
  padding-left: 1rem;
  margin-bottom: 2rem;
}
.section-label span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #fd8b00;
}

/* â”€â”€ Shared font theme (Inter override â€” matches original shared-font-theme) â”€â”€ */
.shared-font-theme :not(.material-symbols-outlined) {
  font-family: 'Inter', 'Public Sans', sans-serif !important;
}
.shared-font-theme h1,
.shared-font-theme h2,
.shared-font-theme h3,
.shared-font-theme h4,
.shared-font-theme h5,
.shared-font-theme h6 {
  letter-spacing: 0.01em;
}

/* â”€â”€ Layout helpers â”€â”€ */
.tight-layout { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* â”€â”€ Dot grid background â”€â”€ */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,215,9,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* â”€â”€ Nav active â”€â”€ */
.active-nav { border-bottom-color: #ffd709 !important; color: #ffd709 !important; }

/* â”€â”€ Trusted-by scroll â”€â”€ */
.trusted-track {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.trusted-track.is-grabbing { cursor: grabbing; }
.trusted-inner {
  display: flex;
  width: max-content;
  will-change: transform;
}
.trusted-set { gap: 1.5rem; padding: 0 1.5rem; flex-shrink: 0; }
.trusted-logo {
  flex: 0 0 auto;
  width: clamp(140px, calc((100vw - 9rem) / 4), 260px);
  height: clamp(2.75rem, 4vw, 3.5rem);
  object-fit: contain;
}
.trusted-logo--seb { height: clamp(3.1rem, 10vw, 3.9rem); }

.trusted-logo-item {
  filter: grayscale(1);
  opacity: 0.4;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.trusted-logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* â”€â”€ Portfolio filter â”€â”€ */
.portfolio-item { transition: opacity 0.3s ease, transform 0.3s ease; }
.portfolio-item.hidden-item { display: none; }
.filter-btn.active-filter { border-color: #ffd709 !important; color: #ffd709 !important; }

/* â”€â”€ Pagination â”€â”€ */
.pagination { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.pagination span, .pagination a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem; color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.pagination a:hover, .pagination .active { border-color: #ffd709; color: #ffd709; }

/* â”€â”€ Blog tag â”€â”€ */
.blog-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
}

/* â”€â”€ Hero (home page) â”€â”€ */
.hero-readable .hero-badge {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #ffe792;
}
.hero-readable .hero-title {
  font-family: 'Inter', 'Public Sans', sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
}
.hero-readable .hero-title .heading-gradient {
  display: inline-block;
  padding: 0.04em 0.02em;
  line-height: 1.15;
  font-style: normal;
}
.hero-readable .hero-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  color: rgba(245,245,245,0.86);
}

/* â”€â”€ Services text gradient â”€â”€ */
.text-gradient-services {
  background: linear-gradient(to bottom right, #ffe792, #fd8b00, #ff725e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 1024px) { .trusted-logo { width: clamp(120px, calc((100vw - 7rem) / 3), 220px); } }
@media (max-width: 640px)  { .trusted-logo { width: calc((100vw - 4rem) / 2); height: 2.5rem; } }

/* â”€â”€ Portfolio bento grid â”€â”€ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.bento-grid > * { min-width: 0; }

/* â”€â”€ Portfolio card glow â”€â”€ */
.card-glow { transition: box-shadow 0.4s ease, transform 0.4s ease; }
.card-glow:hover { box-shadow: 0 0 25px rgba(255,114,94,0.15); }

/* Premium motion system */
[data-parallax-section] { position: relative; }
[data-parallax-layer] {
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-hero {
  min-height: min(880px, calc(100vh - 5rem));
  isolation: isolate;
}
.hero-content {
  position: relative;
  z-index: 3;
}
.hero-parallax-layer,
.hero-floating {
  pointer-events: none;
  position: absolute;
}
.hero-parallax-layer--grid {
  inset: 6% 6% 14%;
  border: 1px solid rgba(255, 215, 9, 0.08);
  background-image:
    linear-gradient(rgba(255, 215, 9, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 9, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, #000 42%, transparent 82%);
  opacity: 0.35;
  z-index: 0;
}
.hero-parallax-layer--particles {
  inset: 12% 10% auto;
  height: 60%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 231, 146, 0.24) 0 2px, transparent 2.5px),
    radial-gradient(circle at 70% 20%, rgba(253, 139, 0, 0.22) 0 2px, transparent 2.5px),
    radial-gradient(circle at 40% 70%, rgba(255, 114, 94, 0.18) 0 2px, transparent 2.5px),
    radial-gradient(circle at 85% 65%, rgba(255, 215, 9, 0.18) 0 1.5px, transparent 2px);
  background-size: 280px 220px;
  opacity: 0.55;
  z-index: 1;
}
.hero-floating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 7, 0.72);
  color: rgba(255, 231, 146, 0.82);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.hero-floating--terminal { top: 16%; left: 4%; }
.hero-floating--api { top: 22%; right: 4%; }
.hero-floating--deploy { bottom: 26%; right: 4%; }

/* .trusted-inner will-change is already set inline above */

.services-parallax__texture,
.footer-cta__texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(255, 215, 9, 0.06), transparent 40%),
    radial-gradient(circle at 15% 20%, rgba(253, 139, 0, 0.14), transparent 32%),
    radial-gradient(circle at 85% 75%, rgba(255, 114, 94, 0.12), transparent 28%);
  opacity: 0.8;
  pointer-events: none;
}
.services-parallax {
  margin-top: 1.5rem;
  padding-top: 5.5rem;
}
.services-parallax::before {
  content: "";
  position: absolute;
  top: -3.5rem;
  left: 0;
  right: 0;
  height: 7rem;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, 0.7) 55%, rgba(5, 5, 5, 1) 100%);
  pointer-events: none;
}
.services-parallax__texture {
  inset: 2.5rem 0 0;
}
.services-card {
  position: relative;
  z-index: 1;
  padding: 2.25rem;
}
.services-card > .material-symbols-outlined {
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.services-card.row-span-1 > .material-symbols-outlined {
  font-size: 1.7rem;
  margin-bottom: 0;
}
.services-card.row-span-1 {
  align-items: center;
  gap: 1rem;
}
.services-card h3 {
  line-height: 1.1;
}

.case-study-card { transform-origin: center bottom; }
.case-study-media { isolation: isolate; }
.case-study-image {
  transform: translate3d(0, 0, 0) scale(1.02);
  will-change: transform;
}
.case-study-copy {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.why-codeziper__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 215, 9, 0.08), transparent 28%),
    radial-gradient(circle at 18% 72%, rgba(253, 139, 0, 0.08), transparent 24%);
  pointer-events: none;
}
.why-codeziper__visual { perspective: 1200px; }
.why-codeziper__image { transform-origin: center center; }

.process-timeline { position: relative; }
.process-timeline__steps {
  position: relative;
}
.process-step {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background-color 0.28s ease;
}
.process-step .w-12,
.process-step h3,
.process-step p {
  transition: transform 0.28s ease, color 0.28s ease;
}
.process-step:hover {
  transform: translate3d(0, -6px, 0);
  border-color: rgba(255, 215, 9, 0.35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  background: rgba(19, 19, 19, 0.98);
}
.process-step:hover .w-12 {
  transform: scale(1.05);
}
.process-step:hover h3,
.process-step:hover p {
  transform: translate3d(0, -2px, 0);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: clip;
  padding-top: 0;
  transition:
    grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    padding-top 0.28s ease;
}
.accordion-panel__inner {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding-left: 1.2rem;
  padding-bottom: 0;
}
.accordion-panel__inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: calc(100% - 1rem);
  background: rgba(255, 215, 9, 0.2);
  transform: translateY(-50%);
}
.accordion-answer-label {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: rgba(255, 231, 146, 0.78);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.accordion-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 0.35rem;
}
.accordion-panel.is-open .accordion-panel__inner {
  padding-bottom: 1.5rem;
}

.footer-cta__card { isolation: isolate; }
.footer-cta__content {
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .process-timeline__intro {
    text-align: center;
  }
  .process-timeline__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .process-step {
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .process-step .w-12 {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 767px) {
  .hero-floating { display: none; }
  .hero-parallax-layer--grid { inset: 10% 0 20%; background-size: 52px 52px; }
  .hero-parallax-layer--particles { inset: 18% 0 auto; }
  .services-parallax {
    margin-top: 0.75rem;
    padding-top: 4rem;
  }
  .services-parallax::before {
    top: -2.5rem;
    height: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  .kinetic-btn,
  .cta-btn,
  .glass-card,
  .faq-card,
  .case-study-image,
  [data-parallax-layer] {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
  }
}

/* Mobile menu */
.mobile-menu-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, -0.75rem, 0);
  transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.36s;
  will-change: max-height, opacity, transform;
}

.mobile-menu-panel.is-open {
  max-height: 28rem;
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition: max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease, transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0s;
}

#mobile-menu-toggle.is-active {
  border-color: rgba(255, 215, 9, 0.45);
  background: rgba(255, 215, 9, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-panel,
  .mobile-menu-panel.is-open {
    transition: none;
    transform: none;
  }
}
