/* ============================================================
   NexaCore — Global Stylesheet
   Font: Syne (headings) + DM Sans (body)
   Theme: Crisp white · Steel blue accents · Soft gradients
   ============================================================ */

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

:root {
  --blue:        #3b82f6;
  --blue-dark:   #2563eb;
  --blue-light:  #eff6ff;
  --navy:        #0f172a;
  --slate:       #334155;
  --muted:       #64748b;
  --border:      #e2e8f0;
  --surface:     #f8fafc;
  --white:       #ffffff;
  --radius:      14px;
  --radius-lg:   22px;
  --shadow-sm:   0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md:   0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg:   0 12px 40px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.06);
  --shadow-xl:   0 24px 60px rgba(15,23,42,.15);
  --transition:  0.28s cubic-bezier(0.4,0,0.2,1);
  --section-gap: 120px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  line-height: 1.18;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 0.95rem; }

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
}

.section  { padding: var(--section-gap) 0; }
.section--alt { background: var(--surface); }

/* ── TYPOGRAPHY UTILITIES ── */
.gradient-text {
  background: linear-gradient(120deg, var(--blue) 0%, #8b5cf6 55%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(59,130,246,.18);
  padding: 5px 14px;
  border-radius: 100px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  margin-top: 16px;
  letter-spacing: -0.03em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-top: 14px;
  font-weight: 300;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-desc { margin: 14px auto 0; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 100px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(59,130,246,.38);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,.48);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border: 1.5px solid var(--border);
  color: var(--navy);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 100px;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-light); transform: translateY(-2px); }

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
[data-delay="80"]  { transition-delay: 80ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="160"] { transition-delay: 160ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="240"] { transition-delay: 240ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="320"] { transition-delay: 320ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="480"] { transition-delay: 480ms; }
[data-delay="500"] { transition-delay: 500ms; }


/* ================================================================
   HEADER
   ================================================================ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding var(--transition), background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue), #8b5cf6);
  color: #fff;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.logo-text {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
}
.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }

.header-cta { margin-left: auto; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ================================================================
   HERO
   ================================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f7ff 0%, var(--white) 60%);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59,130,246,.18) 0%, transparent 70%);
  top: -120px; right: -80px;
}
.hero-orb--2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(139,92,246,.14) 0%, transparent 70%);
  bottom: 0; left: -60px;
  animation-delay: -4s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  50%       { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  width: fit-content;
}
.stat {
  display: flex;
  flex-direction: column;
  padding: 22px 36px;
  line-height: 1;
}
.stat-num {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  display: inline;
}
.stat > span:nth-child(2) {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--blue);
  display: inline;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  align-self: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeInUp 1s ease 1.5s both;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}


/* ================================================================
   SERVICES
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--icon-color, var(--blue)) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { opacity: 1; }

.service-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  margin-bottom: 20px;
  transition: transform var(--transition);
}
.service-card:hover .service-icon-wrap { transform: scale(1.08) rotate(-4deg); }
.service-icon-wrap svg {
  width: 24px; height: 24px;
  stroke: var(--icon-color);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 16px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.service-tags span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.service-card:hover .service-link { gap: 8px; }


/* ================================================================
   ABOUT
   ================================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-img-frame {
  position: relative;
}
.about-img-inner {
  position: relative;
  width: 100%;
  padding-bottom: 90%;
  background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 50%, #cffafe 100%);
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-pattern-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.12) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: var(--radius-lg);
}
.about-float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  animation: floatCard 5s ease-in-out infinite;
  white-space: nowrap;
}
.about-float-card svg { width: 20px; height: 20px; flex-shrink: 0; }
.about-float-card--1 { top: -18px; left: 20px; animation-delay: 0s; }
.about-float-card--2 { bottom: 30px; right: -18px; animation-delay: -2.5s; }
@keyframes floatCard {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.about-content p {
  color: var(--muted);
  font-weight: 300;
  margin-top: 18px;
  line-height: 1.75;
  font-size: 0.97rem;
}
.about-list {
  margin: 28px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--slate);
}
.about-list li svg { width: 20px; height: 20px; flex-shrink: 0; }


/* ================================================================
   TECHNOLOGIES
   ================================================================ */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.tech-category {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.tech-category h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
}

.tech-chips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tech-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--slate);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.tech-chip:hover {
  border-color: var(--blue);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}
.tech-chip-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}


/* ================================================================
   PORTFOLIO
   ================================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(520px, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.portfolio-img {
  height: 240px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.portfolio-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Browser mockup */
.p-mock-browser {
  width: 90%;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.p-mock-bar {
  background: #f1f5f9;
  padding: 8px 12px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.p-mock-bar span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
}
.p-mock-bar span:nth-child(1) { background: #fca5a5; }
.p-mock-bar span:nth-child(2) { background: #fcd34d; }
.p-mock-bar span:nth-child(3) { background: #86efac; }
.p-mock-content { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.p-mock-nav { height: 10px; background: #e2e8f0; border-radius: 4px; width: 60%; }
.p-mock-hero { height: 52px; background: linear-gradient(90deg, #dbeafe, #ede9fe); border-radius: 6px; }
.p-mock-cards { display: flex; gap: 6px; }
.p-mock-cards div { flex: 1; height: 36px; background: #f1f5f9; border-radius: 5px; }
.p-mock-sidebar { width: 28%; height: 80px; background: #f1f5f9; border-radius: 5px; }
.p-mock-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.p-mock-chart { height: 44px; background: linear-gradient(90deg,#ede9fe,#dbeafe); border-radius: 5px; }
.p-mock-table { height: 30px; background: #f1f5f9; border-radius: 5px; }
.p-mock-content.flex-row { flex-direction: row; }
.p-mock-ecom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px 0 0; }
.p-mock-ecom-grid div { height: 52px; background: linear-gradient(135deg,#fef3c7,#fde68a); border-radius: 5px; }

/* Phone mockup */
.p-mock-phone {
  width: 120px;
  background: var(--white);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15);
  border: 6px solid #f1f5f9;
}
.p-mock-phone-screen { display: flex; flex-direction: column; gap: 6px; }
.p-mock-phone-header { height: 16px; background: linear-gradient(90deg,#a7f3d0,#6ee7b7); border-radius: 5px; }
.p-mock-phone-card { height: 52px; background: linear-gradient(135deg,#d1fae5,#a7f3d0); border-radius: 8px; }
.p-mock-phone-list { display: flex; flex-direction: column; gap: 4px; }
.p-mock-phone-list div { height: 10px; background: #f1f5f9; border-radius: 3px; }

.portfolio-info { padding: 26px 28px 28px; }
.portfolio-tag {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 100px;
  padding: 3px 10px;
}
.portfolio-info h3 {
  font-size: 1.25rem;
  margin: 12px 0 8px;
}
.portfolio-info p {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 14px;
}
.portfolio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.portfolio-chips span {
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
}


/* ================================================================
   WHY CHOOSE US
   ================================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.why-icon {
  width: 52px; height: 52px;
  background: color-mix(in srgb, var(--c) 10%, transparent);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform var(--transition);
}
.why-card:hover .why-icon { transform: scale(1.08); }
.why-icon svg { width: 24px; height: 24px; stroke: var(--c); }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.why-card p { font-size: 0.875rem; color: var(--muted); font-weight: 300; line-height: 1.65; }


/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials-section { overflow: hidden; }

.testimonials-carousel { position: relative; }

.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.testimonial-card {
  min-width: calc(33.333% - 16px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card > p {
  font-size: 0.93rem;
  color: var(--slate);
  line-height: 1.75;
  font-style: italic;
  font-weight: 300;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-author span  { font-size: 0.78rem; color: var(--muted); }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}
.carousel-btn {
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--slate);
  background: var(--white);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn:hover { border-color: var(--blue); background: var(--blue-light); transform: scale(1.06); }

.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
  border: none;
}
.carousel-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }


/* ================================================================
   CONTACT
   ================================================================ */
.contact-section { background: linear-gradient(180deg, var(--white) 0%, #f0f7ff 100%); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info p {
  color: var(--muted);
  font-weight: 300;
  margin-top: 18px;
  margin-bottom: 36px;
  line-height: 1.75;
  font-size: 0.97rem;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-bottom: 36px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  background: var(--blue-light);
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; stroke: var(--blue); }
.contact-detail strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 2px; }
.contact-detail span   { color: var(--muted); font-weight: 300; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition);
}
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); transform: translateY(-2px); }

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--navy);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  resize: vertical;
  outline: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #94a3b8; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
.form-group select option { color: var(--navy); }
.form-group select:invalid { color: #94a3b8; }

.contact-form .btn-primary { margin-top: 4px; font-size: 0.95rem; padding: 15px; }
.contact-form .btn-primary svg { width: 16px; height: 16px; }

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: -4px;
}


/* ================================================================
   FOOTER
   ================================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 72px 0 0; }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-mark { background: linear-gradient(135deg,var(--blue),#8b5cf6); }
.footer-brand p {
  margin-top: 16px;
  font-size: 0.88rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 280px;
}
.footer-brand .social-links { margin-top: 24px; }
.footer-brand .social-link { border-color: rgba(255,255,255,.15); color: rgba(255,255,255,.5); }
.footer-brand .social-link:hover { border-color: var(--blue); color: var(--white); background: rgba(59,130,246,.2); }

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.9);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 0.87rem;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  margin-bottom: 12px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 300;
}

/* ================================================================
   TOAST
   ================================================================ */
.toast {
  position: fixed;
  bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
  .testimonial-card { min-width: calc(50% - 12px); }
}

@media (max-width: 900px) {
  :root { --section-gap: 80px; }

  .nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.98); flex-direction: column; align-items: center; justify-content: center; gap: 36px; z-index: 999; backdrop-filter: blur(16px); }
  .nav a { font-size: 1.5rem; font-weight: 700; }
  .nav.open { display: flex; }
  .hamburger { display: flex; }
  .header-cta { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-img-inner { padding-bottom: 55%; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .testimonial-card { min-width: calc(80% - 12px); }
}

@media (max-width: 700px) {
  .hero-stats { width: 100%; flex-wrap: wrap; }
  .stat-divider { display: none; }
  .stat { border-top: 1px solid var(--border); width: 50%; }
  .stat:nth-child(1), .stat:nth-child(3) { border-top: none; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .testimonial-card { min-width: calc(90% - 12px); }
  .contact-form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn-lg { width: 100%; justify-content: center; }
}
