/* Star Software Solutions — Premium One-Page */

:root {
  --bg: #06080f;
  --bg-alt: #0c1019;
  --bg-card: rgba(255, 255, 255, 0.03);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.07);

  --text: #f0f2f8;
  --text-muted: #8b93a7;
  --text-dim: #5c6378;

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --green: #25d366;
  --green-glow: rgba(37, 211, 102, 0.35);

  --gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #f59e0b 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.08) 100%);

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 72px;
  --pad-x: 1.25rem;
  --max-w: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ── Loader ── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader__bar {
  width: 120px;
  height: 3px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gradient);
  border-radius: 2px;
  animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes loaderSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Typography ── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head { margin-bottom: 3rem; max-width: 680px; }
.section-head--center { text-align: center; margin-inline: auto; }

.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-head__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section { padding: 5rem 0; position: relative; }
.section--alt { background: var(--bg-alt); }

/* ── Glass card ── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid var(--glass-border);
  color: var(--text);
  background: var(--glass);
}

.btn--ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: var(--glass-hover);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

.btn__loader {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Progress bar ── */
.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: width 1.4s var(--ease);
}

.progress-bar--accent span {
  background: linear-gradient(90deg, var(--gold), #fbbf24);
}

.progress-bar.is-animated span { width: var(--progress-width, 0%); }

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  z-index: 2;
}

.header__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.header__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}

.header__nav a:not(.header__cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}

.header__nav a:not(.header__cta):hover,
.header__nav a:not(.header__cta).is-active { color: var(--text); }

.header__nav a:not(.header__cta).is-active::after,
.header__nav a:not(.header__cta):hover::after { width: 100%; }

.header__cta {
  padding: 0.55rem 1.25rem !important;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text) !important;
  transition: background 0.25s, border-color 0.25s, transform 0.25s !important;
}

.header__cta::after { display: none !important; }

.header__cta:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-shrink: 0;
  z-index: 2;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ── */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.menu-backdrop.is-visible { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 300;
  width: min(320px, 88vw);
  height: 100dvh;
  background: var(--bg-alt);
  border-left: 1px solid var(--glass-border);
  padding: 1.25rem var(--pad-x) 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}

.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-menu__logo { width: 36px; height: 36px; object-fit: contain; }

.mobile-menu__close {
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.mobile-menu__link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--glass-border);
  transition: color 0.2s, padding-left 0.2s;
}

.mobile-menu__link:hover { color: var(--accent-light); padding-left: 0.5rem; }

.mobile-menu__link--cta {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  text-align: center;
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
}

.mobile-menu__contacts {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mobile-menu__contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

.mobile-menu__contact svg { width: 18px; height: 18px; }
.mobile-menu__contact--wa { background: var(--green); border-color: var(--green); color: #fff; }

body.menu-open { overflow: hidden; }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 12s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.4), transparent 70%);
  top: -10%;
  right: -10%;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.3), transparent 70%);
  bottom: 10%;
  left: -15%;
  animation-delay: -6s;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__text {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero__btns {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero__ceo {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  max-width: fit-content;
}

.hero__ceo-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--glass-border);
  flex-shrink: 0;
}

.hero__ceo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__ceo strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero__ceo span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero__visual { width: 100%; max-width: 480px; }

.hero__dashboard {
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.hero__dashboard-head {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero__dot--red { background: #ef4444; }
.hero__dot--amber { background: #f59e0b; }
.hero__dot--green { background: #22c55e; }

.hero__metrics { display: flex; flex-direction: column; gap: 1.25rem; }

.hero__metric-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.hero__metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.hero__dashboard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.hero__dashboard-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  color: var(--accent-light);
}

.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

/* ── Marquee ── */
.marquee {
  position: relative;
  z-index: 1;
  padding: 1.25rem 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(6,8,15,0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee__track span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  white-space: nowrap;
}

.marquee__track span::after {
  content: '◆';
  margin-left: 3rem;
  color: var(--accent);
  font-size: 0.5rem;
  vertical-align: middle;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── About ── */
.about-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.about-card {
  padding: 2rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.25);
  box-shadow: 0 12px 40px rgba(59,130,246,0.08);
}

.about-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--gradient-subtle);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.about-card__icon svg { width: 24px; height: 24px; color: var(--accent-light); }

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.about-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.about-overview {
  padding: 2rem;
  background: var(--gradient-subtle);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--radius-lg);
  text-align: center;
}

.about-overview p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 800px;
  margin-inline: auto;
}

.about-overview strong { color: var(--text); }

/* ── Services ── */
.services-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.service-card {
  position: relative;
  padding: 2rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: var(--shadow);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.1);
  border-radius: 10px;
  margin-bottom: 1.25rem;
}

.service-card__icon svg { width: 22px; height: 22px; color: var(--accent-light); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.service-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Technologies ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tech-card {
  padding: 1.5rem;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

.tech-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(59,130,246,0.3);
  box-shadow: 0 8px 32px rgba(59,130,246,0.1);
}

.tech-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.tech-card__icon--react { background: rgba(97,218,251,0.12); color: #61dafb; }
.tech-card__icon--node { background: rgba(51,153,51,0.12); color: #6cc24a; }
.tech-card__icon--php { background: rgba(119,123,180,0.12); color: #777bb4; font-size: 0.85rem; }
.tech-card__icon--python { background: rgba(55,118,171,0.12); color: #3776ab; font-size: 0.9rem; }
.tech-card__icon--flutter { background: rgba(2,180,228,0.12); color: #02b4e4; }
.tech-card__icon--db { background: rgba(245,158,11,0.12); color: var(--gold); font-size: 0.75rem; }
.tech-card__icon--aws { background: rgba(255,153,0,0.12); color: #ff9900; }
.tech-card__icon--docker { background: rgba(36,150,237,0.12); color: #2496ed; font-size: 1.3rem; }

.tech-card h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tech-card p { font-size: 0.8rem; color: var(--text-dim); }

/* ── Portfolio ── */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.portfolio-filter {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.3s var(--ease);
}

.portfolio-filter:hover { border-color: rgba(255,255,255,0.15); color: var(--text); }

.portfolio-filter.is-active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.portfolio-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), opacity 0.4s, box-shadow 0.4s;
}

.portfolio-card.is-hidden {
  display: none;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-card__visual {
  height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.portfolio-card__visual--1 { background: linear-gradient(135deg, #1e3a5f, #0c1019); }
.portfolio-card__visual--2 { background: linear-gradient(135deg, #312e81, #0c1019); }
.portfolio-card__visual--3 { background: linear-gradient(135deg, #134e4a, #0c1019); }
.portfolio-card__visual--4 { background: linear-gradient(135deg, #713f12, #0c1019); }
.portfolio-card__visual--5 { background: linear-gradient(135deg, #581c87, #0c1019); }
.portfolio-card__visual--6 { background: linear-gradient(135deg, #1e40af, #0c1019); }

.portfolio-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
}

.portfolio-card__body { padding: 1.5rem; }

.portfolio-card__body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.portfolio-card__body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.portfolio-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-card__stack li {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 6px;
  color: var(--accent-light);
}

/* ── Stats ── */
.stats-section {
  background: var(--gradient-subtle);
  border-block: 1px solid rgba(59,130,246,0.1);
}

.stats-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2.5rem;
}

.stat-card {
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.35s var(--ease);
}

.stat-card:hover { transform: translateY(-4px); }

.stat-card__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-card__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.achievements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.achievement span { color: var(--gold); font-size: 0.7rem; }

/* ── Process ── */
.process-track { position: relative; }

.process-line {
  display: none;
  position: absolute;
  top: 28px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0.3;
}

.process-steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.process-step {
  padding: 1.75rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s;
  position: relative;
}

.process-step:hover {
  transform: translateX(6px);
  border-color: rgba(59,130,246,0.25);
}

.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--gradient);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: #fff;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-step p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Testimonials ── */
.testimonials-wrap {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding-inline: 3rem;
}

.testimonial {
  padding: 2.5rem;
  text-align: center;
}

.testimonial__stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.testimonial p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial footer strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.testimonial footer span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.testimonials-pagination {
  position: relative !important;
  margin-top: 1.5rem !important;
}

.testimonials-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--text-dim);
  opacity: 1;
  transition: all 0.3s;
}

.testimonials-pagination .swiper-pagination-bullet-active {
  width: 24px;
  border-radius: 4px;
  background: var(--accent);
}

.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  z-index: 2;
}

.swiper-btn svg { width: 20px; height: 20px; }
.swiper-btn:hover { background: var(--glass-hover); border-color: rgba(255,255,255,0.15); }
.swiper-btn--prev { left: 0; }
.swiper-btn--next { right: 0; }

/* ── CEO ── */
.ceo-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.ceo-photo {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.ceo-photo__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
}

.ceo-photo__frame img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
}

.ceo-photo__badge {
  position: absolute;
  bottom: -1rem;
  right: -0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  box-shadow: var(--shadow);
}

.ceo-photo__badge img { width: 32px; height: 32px; object-fit: contain; }
.ceo-photo__badge strong { display: block; font-size: 0.85rem; }
.ceo-photo__badge span { font-size: 0.75rem; color: var(--text-dim); }

.ceo-content__role {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.ceo-content__message p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.ceo-content__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.ceo-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.25s, transform 0.25s;
  width: fit-content;
}

.ceo-contact svg { width: 20px; height: 20px; flex-shrink: 0; }
.ceo-contact:hover { border-color: rgba(255,255,255,0.15); transform: translateX(4px); }
.ceo-contact--wa:hover { border-color: var(--green); }
.ceo-contact--wa svg { color: var(--green); }

/* ── Contact ── */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info__list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s;
}

.contact-info__item:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.contact-info__item--static { cursor: default; }
.contact-info__item--static:hover { transform: none; }

.contact-info__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(59,130,246,0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-info__icon svg { width: 20px; height: 20px; color: var(--accent-light); }
.contact-info__icon--wa { background: rgba(37,211,102,0.1); }
.contact-info__icon--wa svg { color: var(--green); }

.contact-info__item small {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.1rem;
}

.contact-info__item span:last-child { font-weight: 600; font-size: 0.95rem; }

.contact-form {
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(59,130,246,0.5);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option { background: var(--bg-alt); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 0.35rem;
  min-height: 1.1em;
}

.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 10px;
  color: #86efac;
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: rgba(239,68,68,0.5);
}

/* ── Footer ── */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-alt);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__logo { width: 48px; height: 48px; object-fit: contain; margin-bottom: 1rem; }

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.footer__social a svg { width: 20px; height: 20px; }
.footer__social a:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.15); }
.footer__social a:last-child:hover { background: rgba(37,211,102,0.15); border-color: var(--green); color: var(--green); }

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer__col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--accent-light); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.footer__bottom p { font-size: 0.8rem; color: var(--text-dim); }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: 1.5rem;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--green-glow);
  transition: transform 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 1; }

.wa-float:hover { transform: scale(1.08); }

.wa-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── Responsive ── */
@media (min-width: 640px) {
  :root { --pad-x: 1.75rem; }

  .hero__btns { flex-direction: row; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .ceo-content__contacts { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 768px) {
  :root { --header-h: 76px; --pad-x: 2rem; }

  .header__toggle { display: none; }
  .header__nav { display: flex; }

  .section { padding: 6.5rem 0; }

  .hero__content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
    padding-bottom: 4rem;
  }

  .hero__copy { max-width: none; }
  .hero__visual { max-width: none; }

  .about-grid { grid-template-columns: repeat(3, 1fr); }

  .tech-grid { grid-template-columns: repeat(4, 1fr); }

  .stats-grid { grid-template-columns: repeat(4, 1fr); }

  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-line { display: block; }

  .ceo-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
  }

  .ceo-photo { max-width: none; }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }

  .footer__top {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__links { grid-template-columns: repeat(3, 1fr); gap: 3rem; }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .process-steps { grid-template-columns: repeat(3, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1400px) {
  :root { --max-w: 1320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .hero-anim { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .wa-float__pulse { animation: none; }
}
