/* ─────────────────────────────────────────────────────────────
   Synapse AI Portfolio – styles.css
   Dark theme · Purple accent (~15%) · Blue secondary (~5%)
   80% neutral dark surfaces · Minimal, engineering-focused
───────────────────────────────────────────────────────────── */

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

:root {
  /* Backgrounds — 80% of the visual weight */
  --bg:        #0d0f14;
  --bg-card:   #141720;
  --bg-raised: #191d27;
  --bg-subtle: #0f1117;

  /* Borders */
  --border:    #222636;
  --border-h:  #6d28d9;   /* purple — only on hover/active */

  /* Accent — purple, used sparingly */
  --accent:        #6d28d9;
  --accent-mid:    #7c3aed;
  --accent-light:  #a78bfa;
  --accent-glow:   rgba(109, 40, 217, 0.18);

  /* Blue — secondary accent for AI/tech elements */
  --blue:      #3b82f6;
  --blue-dim:  #1d4ed8;

  /* Text */
  --text-primary:   #e8e9f0;
  --text-secondary: #7c8196;
  --text-muted:     #454960;

  /* Tags — purple-tinted, intentional */
  --tag-bg:     rgba(109, 40, 217, 0.1);
  --tag-color:  #a78bfa;
  --tag-border: rgba(109, 40, 217, 0.2);

  /* Tech chips — brighter than body, subtle blue tint */
  --chip-bg:     rgba(59, 130, 246, 0.07);
  --chip-color:  #c4c8da;
  --chip-border: rgba(59, 130, 246, 0.18);

  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 4px 28px rgba(0,0,0,0.5);

  --font-sans:    'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ── Layout ───────────────────────────────────────────────── */
.section-inner,
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.logo-accent { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent-mid) !important;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 0.855rem !important;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  transform: translateY(-1px);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-mid);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-1px);
}

.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ── Tags ─────────────────────────────────────────────────── */
.tag {
  background: var(--tag-bg);
  color: var(--tag-color);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--tag-border);
}

/* Only the tags inside the 4 What We Build cards */
.services-grid .tag {
  font-size: 0.7rem;
}

/* ── Tech chips — blue-tinted, brighter text ──────────────── */
.tech-chip {
  background: var(--chip-bg);
  color: var(--chip-color);
  border: 1px solid var(--chip-border);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 5px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tech-chip:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.32);
  color: var(--text-primary);
}

/* ── Section shared ───────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

.sub-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* ── Hero Left ────────────────────────────────────────────── */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(109, 40, 217, 0.1);
  border: 1px solid rgba(109, 40, 217, 0.25);
  color: var(--accent-light);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-title-line,
.gradient-text {
  display: block;
  white-space: nowrap;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #818cf8 60%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
  font-weight: 400;

}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  margin-bottom: 20px;
  width: fit-content;
}

.stat { text-align: center; padding: 0 16px; }
.stat:first-child { padding-left: 0; }
.stat:last-child  { padding-right: 0; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Founder credibility — replaced by image, keeping selector for safety */
.hero-credibility { margin-top: 24px; }

/* Founder credibility — image */
.credibility-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* ── Hero Background glow ─────────────────────────────────── */
.hero-bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 75% 50%, rgba(109,40,217,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 30% 40% at 80% 30%, rgba(99,102,241,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Hero Right — image ───────────────────────────────────── */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(40px);
}

.hero-orbital-img {
  width: 100%;
  max-width: 580  px;
  height: auto;
  display: block;
  /* Blend image edges into the dark background */
  mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, black 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 88% 88% at 50% 50%, black 60%, transparent 100%);
}

/* ── Services ─────────────────────────────────────────────── */
.services-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

/* Three-column layout: left wider, right two narrower */
.services-two-col {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.80fr;
  gap: 40px;
  align-items: start;
}

.services-left {
  padding-right: 0;
}

.services-right {
  border-left: 1px solid var(--border);
  padding-left: 28px;
  padding-right: 0;
}

.services-third {
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

.services-left .section-title,
.services-right .section-title,
.services-third .section-title {
  margin-bottom: 16px;
}

/* Tech list inside third column — stacked vertically, compact */
.services-tech-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-intro {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* Left: 2×2 service card grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  flex-shrink: 0;
}

.service-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-tagline {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-light);
  line-height: 1.4;
}

.service-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

/* Right: What Can We Automate? */
.automate-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.automate-group {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 15px;
}

.automate-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.automate-group-title svg {
  color: var(--accent-light);
  flex-shrink: 0;
}

.automate-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 8px;
}

.automate-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.automate-items li {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-left: 13px;
  position: relative;
}

.automate-items li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--accent-light);
  font-weight: 700;
}

/* ── Projects ─────────────────────────────────────────────── */
.projects-section {
  padding: 56px 0 72px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 24px;
}

/* Tighter header spacing for projects section only */
.projects-section .section-header {
  margin-bottom: 20px;
}

.projects-section .section-title {
  margin-bottom: 4px;
}

.filter-btn {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 500;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent-light);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-mid);
  border-color: var(--accent-mid);
  color: #fff;
}

/* Grid — 3 cards per page on desktop, carousel handles groups */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  flex: 1;
  min-width: 0;
  align-self: stretch;
}

/* Carousel wrapper — arrows flank the grid */
.projects-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Arrows — desktop only (hidden on mobile via media query) */
.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-raised);
  border: 1.5px solid rgba(167, 139, 250, 0.45);
  border-radius: 50%;
  color: var(--accent-light);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}

.carousel-arrow:hover:not(:disabled) {
  border-color: var(--accent-light);
  color: #fff;
  background: rgba(124, 58, 237, 0.18);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.carousel-arrow:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

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

/* Card */
.project-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.35s ease both;
}

.project-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.project-card.featured { border-color: rgba(109, 40, 217, 0.35); }

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover .card-image img { transform: scale(1.03); }

.card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-muted);
}

.card-image-placeholder svg { opacity: 0.15; }
.featured-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  left: auto;
  background: #f5b942;
  color: #111827;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-description {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.card-tech { display: flex; flex-wrap: wrap; gap: 5px; }

.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-actions .btn { flex: 1; justify-content: center; }

/* ── Project detail rows (problem / built) ────────────────── */
.project-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-detail-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-light);
}

.project-detail-text {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.capability-pill {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--chip-color);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 4px;
  padding: 2px 9px;
}

/* Loading / Empty */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--text-muted);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--accent-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hidden { display: none !important; }

/* ── Engineering Meets AI (combined about section) ────────── */
.about-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

/* Top row: about text left, how we work right */
.about-top {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.about-left .section-title {
  margin-bottom: 14px;
  white-space: nowrap;
}

.about-left p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 6px;
}

/* Compact horizontal team row */
.team-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.team-row-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.team-row-members {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.team-row-member {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.team-row-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

.team-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid var(--border-h);
  flex-shrink: 0;
}

.team-row-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.team-row-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.team-row-role {
  font-size: 0.74rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.founder-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.founder-role {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.founder-exp {
  font-size: 0.76rem;
  color: var(--accent-light);
  font-weight: 500;
}

/* Who We Help — inline pills */
.who-help { margin-top: 20px; }

.who-help-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 8px;
}

.who-help-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.who-pill {
  font-weight: 500;
  color: var(--text-primary);
}

.who-sep {
  color: var(--text-muted);
}

/* How We Work — right column */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-process-image {
  width: 90%;
  max-width: 560px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: -10px;
}
.process-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.process-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-light);
  opacity: 0.45;
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}

.process-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.process-text p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Technologies — full-width below */
.tech-block {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.tech-block .sub-section-title { margin-bottom: 28px; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.tech-category {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tech-category-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Smaller chips in the third column only */
.services-third .tech-chip {
  font-size: 0.68rem;
  padding: 2px 8px;
}

.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ── Contact + Enquiry (combined final section) ───────────── */
.contact-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.contact-left .section-title { margin-bottom: 12px; }

.contact-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.connect-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connect-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.connect-btn:hover {
  border-color: var(--accent-light);
  color: var(--text-primary);
  transform: translateX(3px);
}

/* Right: form */
.contact-right .sub-section-title { margin-bottom: 6px; }

.contact-form-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

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

.form-group label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.req { color: var(--accent-light); margin-left: 2px; }
.optional { color: var(--text-muted); font-weight: 400; }

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 9px 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group select { appearance: none; cursor: pointer; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  align-self: flex-start;
  padding: 11px 26px;
  font-size: 0.9rem;
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
}

.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.18);
  color: #4ade80;
}

.form-feedback svg { flex-shrink: 0; margin-top: 2px; }

.form-feedback strong { display: block; margin-bottom: 2px; color: #4ade80; }

.form-feedback--error {
  background: rgba(239, 68, 68, 0.07);
  border-color: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet: keep 3-column carousel grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .about-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .connect-links {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-links li:not(:last-child) { display: none; }

  /* Hero — stack to single column, orbital below */
  .hero { min-height: auto; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 48px 24px 40px;
    gap: 32px;
  }

  .hero-right { order: -1; }  /* orbital above text on mobile */

  .hero-orbital-img { max-width: 340px; margin: 0 auto; }

  .hero-stats { width: 100%; justify-content: center; }

  .services-two-col { grid-template-columns: 1fr; }
  .services-left, .services-right { padding-right: 0; }
  .services-right, .services-third { padding-left: 0; border-left: none; }
  .services-grid    { grid-template-columns: 1fr 1fr; }

  .projects-grid { grid-template-columns: 1fr; }
  .carousel-arrow { display: none; }
  .project-card.carousel-hidden { display: flex; }

  .tech-grid { grid-template-columns: 1fr 1fr; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; justify-content: center; }
  .filter-btn { padding: 5px 13px; font-size: 0.79rem; }
  .card-actions { flex-direction: column; }
  .tech-grid { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; justify-content: center; }
  .connect-btn { width: 100%; }
}
