/* =========================================================
   Codart Solutions — Modern Software House Company Profile
   Inspired by Kreasi Digital Agency Design (60-30-10 System)
   ========================================================= */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-tinted: #f8fafc;
  --bg-dark: #0b1120;
  --bg-dark-card: #111827;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Brand Accent */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --indigo: #4f46e5;
  --emerald: #10b981;
  --amber: #f59e0b;

  /* Text */
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --text-light: #f8fafc;
  --text-light-muted: #94a3b8;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 50px -12px rgba(15, 23, 42, 0.16);
  --shadow-primary: 0 10px 25px -8px rgba(37, 99, 235, 0.45);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ================= RESET & BASE ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Icons sizing */
.icon-xs { width: 15px; height: 15px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.icon-md { width: 22px; height: 22px; flex-shrink: 0; }

.is-hidden,
[hidden] {
  display: none !important;
}

/* ================= LAYOUT HELPERS ================= */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

.section--tinted {
  background-color: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag--dark {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.2);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.section-title--light {
  color: var(--text-light);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section-desc--light {
  color: var(--text-light-muted);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 15px 28px;
  font-size: 0.95rem;
}

.btn--full {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--indigo) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(37, 99, 235, 0.55);
}

.btn--outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ================= NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.navbar__inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand__text span {
  font-weight: 600;
  color: var(--primary);
  margin-left: 2px;
}

.brand--light .brand__text {
  color: #ffffff;
}

.brand--light .brand__text span {
  color: #93c5fd;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.mobile-menu {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}

.mobile-menu.is-open {
  max-height: 420px;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0 24px;
}

.mobile-link {
  font-weight: 500;
  color: var(--text-main);
  padding: 6px 0;
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero__bg-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 100%);
  height: 460px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.13) 0%, rgba(79, 70, 229, 0.06) 45%, transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.hero__content {
  max-width: 820px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.hero__title {
  font-size: clamp(2.35rem, 5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 34px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Hero Visual Showcase */
.hero__showcase {
  position: relative;
}

.hero__image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
  aspect-ratio: 16 / 7.5;
}

.hero__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.08) 0%, rgba(11, 17, 32, 0.45) 100%);
}

/* Floating Glass Badges */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-md);
  animation: floatY 5s ease-in-out infinite;
}

.float-card--top {
  top: 24px;
  right: 24px;
}

.float-card--bottom {
  bottom: 24px;
  left: 24px;
  animation-delay: 1.6s;
}

.float-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.float-card__icon--blue {
  background: #dbeafe;
  color: var(--primary);
}

.float-card__icon--green {
  background: #d1fae5;
  color: var(--emerald);
}

.float-card__value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.float-card__label {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Stats Bar */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--border-dark);
}

.stat-item:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
}

.stat-item__label {
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

/* ================= CLIENTS MARQUEE ================= */
.clients {
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--border);
}

.clients__label {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.clients__marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.clients__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.clients__track:hover {
  animation-play-state: paused;
}

.client-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #64748b;
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.client-badge:hover {
  opacity: 1;
  color: var(--text-main);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= ABOUT SECTION ================= */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
  background: var(--bg-tinted);
}

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

.about__card-accent {
  position: absolute;
  bottom: -24px;
  right: -20px;
  max-width: 280px;
  background: var(--bg-dark);
  color: #ffffff;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-dark);
}

.about__card-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.about__card-accent p {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}

.pillars {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 32px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pillar__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pillar__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pillar__desc {
  font-size: 0.935rem;
  color: var(--text-muted);
}

/* ================= SERVICES SECTION ================= */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: #bfdbfe;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.service-card:hover .service-card__icon {
  background: var(--primary);
  color: #ffffff;
}

.service-card__title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex-grow: 1;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card__tags li {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-subtle);
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* ================= PORTFOLIO SECTION ================= */
.portfolio__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
}

.portfolio__top .section-title {
  margin-bottom: 0;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-tinted);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-full);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.filter-btn:hover {
  color: var(--text-main);
}

.filter-btn.is-active {
  background: var(--bg-dark);
  color: #ffffff;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.25s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.project-card.is-hidden {
  display: none;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: var(--bg-dark);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.project-card:hover .project-card__media img {
  transform: scale(1.05);
}

.project-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(11, 17, 32, 0.78);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.project-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card__title {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.project-card__metric {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--emerald);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s ease;
}

.project-card__link:hover {
  gap: 7px;
}

/* ================= PROCESS & TECH STACK (DARK) ================= */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.process-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s var(--ease);
}

.process-step:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(37, 99, 235, 0.08);
  transform: translateY(-4px);
}

.process-step__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 16px;
}

.process-step__title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.process-step__desc {
  font-size: 0.92rem;
  color: var(--text-light-muted);
}

.tech-stack {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--border-dark);
}

.tech-stack__title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
  margin-bottom: 20px;
}

.tech-stack__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tech-stack__pills span {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
}

/* ================= TEAM SECTION ================= */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-tinted);
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card__name {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.team-card__role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.team-card__bio {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ================= TESTIMONIALS SLIDER ================= */
.testimonial-slider {
  max-width: 820px;
  margin-inline: auto;
}

.testimonial-track {
  position: relative;
}

.testimonial-card {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  animation: fadeSlide 0.45s var(--ease);
}

.testimonial-card.is-active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.testimonial-card__stars {
  display: inline-flex;
  gap: 4px;
  color: var(--amber);
  margin-bottom: 20px;
}

.star-filled {
  fill: var(--amber);
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-main);
  margin-bottom: 28px;
}

.testimonial-card__author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.testimonial-card__author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-main);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #cbd5e1;
  transition: width 0.3s var(--ease), background-color 0.3s ease;
}

.slider-dot.is-active {
  width: 28px;
  background: var(--primary);
}

/* ================= FAQ ACCORDION ================= */
.faq__container {
  max-width: 820px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.accordion__item.is-open {
  border-color: #bfdbfe;
  box-shadow: var(--shadow-sm);
}

.accordion__trigger {
  width: 100%;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.accordion__icon {
  color: var(--text-subtle);
  transition: transform 0.3s var(--ease);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.accordion__item.is-open .accordion__panel {
  max-height: 260px;
}

.accordion__panel p {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ================= CONTACT SECTION ================= */
.contact__wrapper {
  background: var(--bg-dark);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: start;
  box-shadow: var(--shadow-lg);
}

.contact__title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
}

.contact__desc {
  color: var(--text-light-muted);
  font-size: 0.98rem;
  margin-bottom: 36px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.contact-item__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light-muted);
}

.contact-item__value {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
}

/* Contact Form */
.contact__form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 0.94rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-main);
  background: var(--bg-tinted);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-choice {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-tinted);
  transition: all 0.2s ease;
}

.pill-choice.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.form-status {
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 20px;
}

.form-status.is-success {
  color: #059669;
}

.form-status.is-error {
  color: #dc2626;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 72px 0 32px;
  border-top: 1px solid var(--border-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}

.footer__tagline {
  font-size: 0.92rem;
  margin: 16px 0 22px;
  max-width: 320px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  color: #e2e8f0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.footer__socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.footer__col h4 {
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer__col a:hover {
  color: #ffffff;
}

.footer__bottom {
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a:hover {
  color: #ffffff;
}

/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.72);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.modal.is-open .modal__dialog {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}

.modal__media {
  aspect-ratio: 16 / 8;
  overflow: hidden;
  background: var(--bg-dark);
}

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

.modal__content {
  padding: 32px;
}

.modal__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.modal__title {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal__client {
  font-size: 0.92rem;
  color: var(--text-subtle);
  margin-bottom: 24px;
}

.modal__grid,
.modal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.modal__grid h4,
.modal__meta h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

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

.modal__impact {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--emerald);
}

.modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal__tags span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-tinted);
  border: 1px solid var(--border);
  color: var(--text-main);
}

.modal__actions {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ================= BACK TO TOP ================= */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: #ffffff;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary);
}

/* ================= SCROLL REVEAL ================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE BREAKPOINTS ================= */
@media (max-width: 1024px) {
  .services__grid,
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__grid,
  .team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid,
  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__card-accent {
    right: 16px;
    bottom: 16px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links,
  .navbar__actions .btn {
    display: none;
  }

  .menu-toggle,
  .mobile-menu {
    display: flex;
  }

  .hero__image-frame {
    aspect-ratio: 4 / 3;
  }

  .float-card {
    display: none;
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 24px;
  }

  .stat-item {
    border-left: none;
    padding-left: 0;
  }

  .services__grid,
  .portfolio__grid,
  .process__grid,
  .team__grid,
  .form-row,
  .modal__grid,
  .modal__meta,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 28px 22px;
  }

  .contact__wrapper {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .contact__form {
    padding: 24px 20px;
  }
}
