/* ============================================
   KC Softwares — Design System
   ============================================ */

:root {
  /* Arctic Professional — light SaaS theme */
  --bg-primary: #F8FAFC;
  --bg-secondary: #EFF6FF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.14);

  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  --accent: #2563EB;
  --accent-light: #3B82F6;
  --accent-glow: rgba(37, 99, 235, 0.22);
  --accent-secondary: #0EA5E9;
  --gradient: linear-gradient(135deg, #2563EB 0%, #0EA5E9 100%);

  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --header-height: 72px;
  --container: 1200px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.nav-open {
  overflow: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Typography ---- */

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  margin-bottom: 64px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), backdrop-filter var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-mark {
  display: none;
}

.logo-img {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
}

.logo-text {
  color: var(--text-primary);
}

/* ---- Nav Dropdown ---- */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.dropdown-chevron {
  transition: transform var(--transition);
}

.nav-dropdown.open .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  padding: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav-links a.active {
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  margin-left: 8px;
}

.nav-cta:hover {
  opacity: 0.9;
  background: var(--gradient) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: calc(var(--header-height) + 48px) 24px 80px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.hero-glow--1 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  opacity: 0.08;
  top: -10%;
  left: -5%;
}

.hero-glow--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-secondary);
  opacity: 0.08;
  bottom: 10%;
  right: 10%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Hero Visual */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.25), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.code-window {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.code-window-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-content {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-content .kw { color: #c678dd; }
.code-content .fn { color: #61afef; }
.code-content .str { color: #98c379; }
.code-content .prop { color: #e5c07b; }
.code-content .var { color: #e06c75; }

/* ---- Services ---- */

.services {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.service-card--featured {
  border-color: rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, var(--bg-card) 100%);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent-light);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-tags li {
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 100px;
}

/* ---- Process ---- */

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Portfolio ---- */

.portfolio {
  background: var(--bg-secondary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portfolio-card {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.portfolio-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.portfolio-card-visual {
  width: 140px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card-visual--cloud {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
}

.portfolio-card-visual--it {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.portfolio-card-visual--hardware {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
}

.portfolio-icon {
  font-size: 2.5rem;
}

.portfolio-card-body {
  padding: 28px;
  flex: 1;
}

.portfolio-card-body--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 48px;
}

.portfolio-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.portfolio-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 8px 0 12px;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.portfolio-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: color var(--transition);
}

.portfolio-link:hover {
  color: var(--accent-secondary);
}

.portfolio-card--cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 100%);
  border-style: dashed;
}

.portfolio-card--cta h3 {
  margin-bottom: 8px;
}

.portfolio-card--cta p {
  margin-bottom: 24px;
}

/* Recent Projects Grid */

.portfolio-subheading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.portfolio-subheading:not(:first-of-type) {
  margin-top: 48px;
}

.recent-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.recent-project-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.recent-project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.recent-project-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
}

.recent-project-icon--payroll { background: linear-gradient(135deg, #10b981, #059669); }
.recent-project-icon--lanchat { background: linear-gradient(135deg, #00a884, #008f72); }
.recent-project-icon--crate { background: linear-gradient(135deg, #f59e0b, #d97706); }
.recent-project-icon--mdm { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.recent-project-icon--rdp { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.recent-project-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.recent-project-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- Page Layout (Enquiry & Projects) ---- */

.page-main {
  padding-top: var(--header-height);
}

.page-hero {
  padding: 64px 0 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ---- Enquiry Page ---- */

.enquiry-section {
  padding: 80px 0 120px;
}

.enquiry-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.enquiry-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.enquiry-benefits {
  list-style: none;
  margin-bottom: 32px;
}

.enquiry-benefits li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.benefit-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

.enquiry-contact-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.enquiry-contact-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.enquiry-contact-card p {
  margin-bottom: 6px;
}

.enquiry-contact-card a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.enquiry-contact-card a:hover {
  color: var(--accent-light);
}

.enquiry-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.enquiry-form h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.form-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin: 28px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-section-label:first-of-type {
  margin-top: 0;
}

/* ---- Project Pages ---- */

.project-hero {
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.project-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.15;
  z-index: -1;
}

.project-hero--payroll::before { background: linear-gradient(135deg, #10b981, #059669); }
.project-hero--lanchat::before { background: linear-gradient(135deg, #00a884, #008f72); }
.project-hero--cratetrack::before { background: linear-gradient(135deg, #f59e0b, #d97706); }
.project-hero--mdm::before { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.project-hero--rdp::before { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  transition: color var(--transition);
}

.back-link:hover {
  color: var(--accent-light);
}

.project-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  background: rgba(99, 102, 241, 0.15);
  border-radius: 100px;
  margin-bottom: 16px;
}

.project-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.project-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-meta span {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
}

.project-content {
  padding: 80px 0 120px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.project-details h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.project-details h3 {
  font-size: 1.1rem;
  margin: 32px 0 16px;
}

.project-details p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
}

.component-grid,
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.component-card,
.flow-item {
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.component-card strong,
.flow-item span {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.component-card span,
.flow-item small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.arch-box {
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.arch-box--highlight {
  border-color: var(--accent);
  color: var(--accent-light);
}

.arch-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.capability-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cap-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.cap-row:last-child {
  border-bottom: none;
}

.cap-row:nth-child(odd) {
  background: var(--bg-secondary);
}

.cap-yes {
  color: #22c55e;
  font-weight: 700;
}

.project-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.sidebar-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.sidebar-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--accent-light);
}

.sidebar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- About ---- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.highlight strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.highlight span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.about-card-header {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.about-card blockquote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.about-card-footer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tech-stack {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.tech-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ---- Contact ---- */

.contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  border-radius: var(--radius-md);
  color: var(--accent-light);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item a,
.contact-item p {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-item a:hover {
  color: var(--accent-light);
}

.contact-form {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ---- Footer ---- */

.footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a,
.footer-links li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom a:hover {
  color: var(--accent-light);
}

/* ---- Animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-height) + 32px);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .process-timeline::before {
    display: none;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 24px) 16px 48px;
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 16px 0;
  }

  .stat-divider {
    display: none;
  }

  .stat {
    min-width: 80px;
    text-align: center;
  }

  .hero-visual {
    padding: 0 8px;
    width: 100%;
  }

  .hero-image-wrap {
    max-width: 100%;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--border);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
    gap: 4px;
  }

  .nav-links.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a,
  .nav-links button {
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-cta {
    margin-left: 0 !important;
    margin-top: 8px;
  }

  .lang-toggle {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card {
    flex-direction: column;
  }

  .portfolio-card-visual {
    width: 100%;
    height: 100px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .enquiry-form {
    padding: 20px 16px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    min-height: 48px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .btn {
    min-height: 48px;
    padding: 12px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .about-highlights {
    flex-direction: column;
    gap: 16px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: none;
    width: 100%;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
    transform: none;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .enquiry-layout,
  .project-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .enquiry-sidebar {
    order: 2;
  }

  .enquiry-form,
  .enquiry-sidebar {
    order: unset;
  }

  .enquiry-layout .enquiry-form {
    order: 1;
  }

  .enquiry-layout .enquiry-sidebar {
    order: 2;
  }

  .project-sidebar {
    position: static;
  }

  .component-grid,
  .flow-grid,
  .resources-grid,
  .play-store-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-card--portrait img {
    max-height: 360px;
    margin: 0 auto;
  }

  .legal-nav {
    gap: 8px;
  }

  .legal-nav a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .legal-content h2 {
    font-size: 1.15rem;
  }

  .page-hero {
    padding: calc(var(--header-height) + 32px) 0 32px;
  }

  .page-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  .whatsapp-float {
    bottom: calc(16px + env(safe-area-inset-bottom));
    right: calc(16px + env(safe-area-inset-right));
    width: 52px;
    height: 52px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 20px;
  }

  .faq-question {
    padding: 16px;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .error-page .btn {
    display: block;
    width: 100%;
    margin: 8px 0 !important;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .service-card {
    padding: 20px;
  }

  .play-store-card .url-box {
    font-size: 0.7rem;
  }
}

@media (max-width: 768px) and (pointer: coarse) {
  .service-card,
  .testimonial-card,
  .portfolio-card {
    transform: none !important;
  }
}

/* ---- WhatsApp Float ---- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
  color: #fff;
}

/* ---- Language Toggle ---- */

.lang-toggle {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  cursor: pointer;
  font-family: var(--font-sans);
}

.lang-toggle:hover {
  color: var(--text-primary) !important;
  border-color: var(--border-hover) !important;
}

/* ---- Testimonials ---- */

.testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.testimonial-card--active {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.12);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.35);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- FAQ ---- */

.faq-list {
  max-width: 800px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Screenshot Mockups ---- */

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.screenshot-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-card);
}

.screenshot-card--portrait img {
  aspect-ratio: 9 / 16;
  max-height: 420px;
  object-fit: cover;
}

.screenshot-caption {
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  text-align: center;
}

.screenshot-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.mockup-body {
  padding: 20px;
  min-height: 160px;
}

.mockup-row {
  height: 10px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
}

.mockup-row--short { width: 60%; }
.mockup-row--accent { background: rgba(99, 102, 241, 0.35); width: 80%; }
.mockup-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.mockup-card {
  height: 48px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.mockup-label {
  padding: 10px 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* ---- Blog ---- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.blog-card-image {
  height: 140px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.15));
}

.blog-card-body {
  padding: 24px;
}

.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}

.blog-card h3 {
  font-size: 1.1rem;
  margin: 8px 0 12px;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-light);
}

.article-content {
  max-width: 720px;
}

.article-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}

.article-content p,
.article-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.article-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

/* ---- Resources / Brochures ---- */

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.resource-card:hover {
  border-color: var(--accent);
}

.resource-icon {
  font-size: 1.8rem;
}

.resource-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.resource-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Privacy / Legal ---- */

.legal-content {
  max-width: 720px;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

/* ---- Product Showcase Slider ---- */

.product-showcase {
  background: var(--bg-secondary);
  overflow: hidden;
}

.product-slider {
  position: relative;
  margin-top: 32px;
}

.product-slider-track {
  position: relative;
  min-height: 420px;
}

.product-slide {
  display: none;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  animation: productFadeIn 0.5s ease;
}

.product-slide.is-active {
  display: grid;
}

@keyframes productFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-slide-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--bg-card);
}

.product-slide-visual img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.product-slide-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.product-slide-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.product-slide-tagline {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-slide-bullets {
  list-style: none;
  margin-bottom: 24px;
}

.product-slide-bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.product-slide-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
}

.product-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.product-slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.product-slider-btn:hover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.product-slider-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 280px;
}

.product-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.product-slider-dot.is-active {
  background: var(--accent);
  transform: scale(1.25);
}

.project-hero--pharmaqr { background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), transparent); }
.project-hero--carwash { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent); }
.project-hero--costing { background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent); }
.project-hero--tracetrack { background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), transparent); }
.project-hero--vhdbackup { background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), transparent); }

@media (max-width: 900px) {
  .product-slide {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-slide-visual {
    order: -1;
  }

  .product-slider-track {
    min-height: auto;
  }
}

/* ---- Visual Effects ---- */

.fx-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.service-card,
.portfolio-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.service-card:hover,
.portfolio-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after {
  transform: translateX(120%);
}

.hero-image {
  transition: transform 0.2s ease-out;
}

.gradient-text {
  background-size: 200% auto;
  animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.legal-nav a {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.legal-nav a:hover,
.legal-nav a.active {
  color: var(--text-primary);
  border-color: var(--accent);
}

.play-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.play-store-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.play-store-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.play-store-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.play-store-card .url-box {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 10px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  word-break: break-all;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.ticket-confirm {
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-md);
  color: #86efac;
  margin-bottom: 20px;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 404 ---- */

.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}

.error-products {
  max-width: 720px;
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.error-products h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.error-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  list-style: none;
}

.error-product-links a {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.error-product-links a:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-light);
  color: var(--text-primary);
}

/* ---- Honeypot ---- */

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---- Form alt contact ---- */

.form-alt-contact {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-alt-contact a {
  color: var(--accent-light);
}
