/* ============================================
   Bhagya Technologies — Premium Design System
   ============================================ */

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

:root {
  --bg: #ffffff;
  --bg-alt: #fafbfc;
  --fg: #0a0f1e;
  --fg-soft: #1a2038;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-glow: rgba(13, 148, 136, 0.15);
  --accent-fg: #ffffff;
  --muted: #f4f6f9;
  --muted-fg: #5b6b82;
  --border: rgba(15, 23, 42, 0.07);
  --border-strong: rgba(15, 23, 42, 0.12);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 0 0 1px var(--border), 0 4px 12px rgba(0,0,0,0.04), 0 16px 32px rgba(0,0,0,0.04);
  --shadow-elevated: 0 0 0 1px var(--border-strong), 0 8px 20px rgba(0,0,0,0.06), 0 32px 64px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.12);
  --radius: 20px;
  --radius-inner: 14px;
  --radius-sm: 10px;
  --whatsapp: #25D366;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --gradient-hero: linear-gradient(135deg, #0a0f1e 0%, #111827 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, #0d9488, #14b8a6, #2dd4bf);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(13,148,136,0.02) 100%);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.blueprint-bg {
  background-image:
    linear-gradient(rgba(241,245,249,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241,245,249,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-5 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  padding: 16px 32px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--fg);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 15, 30, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 32px rgba(10, 15, 30, 0.3);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--accent-fg);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.btn-accent:hover {
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.btn-white {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.btn-white:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(0,0,0,0.04);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.accent-dot { color: var(--accent); }

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

.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  transition: color 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.mobile-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
}

/* Mobile menu */
.nav-links.mobile-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px;
  gap: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  animation: fadeDown 0.3s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero (Dark, immersive) --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.5;
}
.hero-orb-1 {
  top: -10%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.25) 0%, transparent 70%);
  animation: orbFloat1 8s ease-in-out infinite;
}
.hero-orb-2 {
  bottom: -15%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  animation: orbFloat2 10s ease-in-out infinite;
}
.hero-orb-3 {
  top: 30%; left: 40%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, transparent 70%);
  animation: orbFloat3 12s ease-in-out infinite;
}
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15px, -20px) scale(1.1); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 64px;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 128px;
    padding-bottom: 80px;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

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

.hero .label::before {
  background: var(--accent-light);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  text-wrap: balance;
  line-height: 1.05;
}

.hero-highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  max-width: 50ch;
  line-height: 1.7;
  text-wrap: pretty;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; }
}

/* Trust badges */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-trust-avatars {
  display: flex;
}
.trust-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border: 2px solid rgba(10,15,30,0.8);
  margin-right: -8px;
}
.hero-trust-text {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-left: 8px;
}
.hero-trust-text strong {
  color: rgba(255,255,255,0.8);
}

/* Browser mockup */
.hero-visual {
  position: relative;
  display: none;
}
@media (min-width: 1024px) {
  .hero-visual { display: block; }
}

.hero-browser {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.hero-browser:hover {
  transform: perspective(1200px) rotateY(-1deg) rotateX(1deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.browser-dots {
  display: flex; gap: 6px;
}
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #22c55e; }
.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.browser-body { padding: 20px; }
.browser-nav-mock {
  height: 8px; width: 60%;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 24px;
}
.browser-hero-mock {
  padding: 24px 0;
}
.mock-badge {
  height: 6px; width: 80px;
  background: var(--accent);
  border-radius: 3px;
  margin-bottom: 14px;
  opacity: 0.6;
}
.mock-heading {
  height: 14px; width: 85%;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin-bottom: 10px;
}
.mock-heading-sm {
  width: 55%;
  margin-bottom: 16px;
}
.mock-text {
  height: 8px; width: 70%;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin-bottom: 20px;
}
.mock-buttons {
  display: flex; gap: 10px;
}
.mock-btn-primary {
  height: 28px; width: 90px;
  background: rgba(255,255,255,0.15);
  border-radius: 14px;
}
.mock-btn-secondary {
  height: 28px; width: 90px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
}
.browser-cards-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.mock-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 16px;
}
.mock-card-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--gradient-accent);
  opacity: 0.4;
  margin-bottom: 12px;
}
.mock-card-lines div {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 6px;
}
.mock-card-lines div:last-child { width: 60%; }

/* Floating badges */
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.hero-float-speed {
  top: 15%; right: -16px;
  animation: floatBadge 4s ease-in-out infinite;
}
.hero-float-mobile {
  bottom: 25%; left: -24px;
  animation: floatBadge 5s ease-in-out infinite 1s;
}
.hero-float-seo {
  bottom: 8%; right: 10%;
  animation: floatBadge 6s ease-in-out infinite 0.5s;
}
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Stats Bar --- */
.stats-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
  display: none;
}

@media (min-width: 768px) {
  .stat-item:not(:last-child)::after { display: block; }
}

.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.04em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-fg);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding-top: 140px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
  background: var(--muted);
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
}

.page-header::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-header .hero-title {
  color: var(--fg);
}

.page-header .hero-subtitle {
  color: var(--muted-fg);
}

@media (min-width: 1024px) {
  .page-header {
    padding-top: 180px;
    padding-bottom: 96px;
  }
}

/* --- Sections --- */
.section {
  padding: 96px 0;
}

.section-muted {
  background: var(--muted);
}

.section-dark {
  background: var(--gradient-hero);
  color: #fff;
}

.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.6); }
.section-dark .label { color: var(--accent-light); }
.section-dark .label::before { background: var(--accent-light); }

.section-header {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-header-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted-fg);
  line-height: 1.7;
  text-wrap: pretty;
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background-image: var(--gradient-card);
}

.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.card-index {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.4;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 10px;
}

.card-desc {
  color: var(--muted-fg);
  line-height: 1.7;
  text-wrap: pretty;
  font-size: 14px;
}

.card-center { text-align: center; }

.card-center .card-icon {
  margin-left: auto;
  margin-right: auto;
}

.card-title-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 6px;
}

.card-desc-sm {
  color: var(--muted-fg);
  font-size: 13px;
  line-height: 1.5;
}

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  text-align: center;
  padding: 40px 24px;
  position: relative;
  counter-increment: step;
}

.process-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  margin-bottom: 16px;
  line-height: 1;
}

.process-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 8px;
}

.process-desc {
  font-size: 14px;
  color: var(--muted-fg);
  line-height: 1.6;
}

/* --- Testimonials --- */
.testimonial-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 15px;
  color: var(--fg-soft);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  display: block;
  margin-bottom: 8px;
}

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

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.testimonial-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
}

.testimonial-role {
  font-size: 12px;
  color: var(--muted-fg);
}

/* --- Portfolio Cards --- */
.portfolio-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.portfolio-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.portfolio-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.portfolio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-img-wrap img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.portfolio-overlay span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  padding: 28px 32px 32px;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-glow);
  padding: 5px 14px;
  border-radius: 9999px;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.25s ease;
  z-index: 10;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.25s ease;
  z-index: 10;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.2);
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-content {
  max-width: 900px;
  width: 90%;
  background: var(--fg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1) translateY(0);
}

.lightbox-content img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.lightbox-info {
  padding: 28px 32px 32px;
}

.lightbox-info h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.lightbox-info p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin-bottom: 16px;
}

.lightbox-info .tag {
  background: rgba(13,148,136,0.2);
  color: var(--accent-light);
}

@media (max-width: 640px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lightbox-info { padding: 20px 24px 24px; }
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient-hero);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
  margin: 0 auto;
}

.cta-content .section-title {
  color: #fff;
}

.cta-content .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
}

/* --- Contact --- */
.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  margin-bottom: 4px;
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
  display: block;
  transition: color 0.2s;
}

.contact-value:hover {
  color: var(--accent);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-height: 350px;
}

/* --- Footer --- */
.footer {
  background: var(--fg);
  color: rgba(255,255,255,0.5);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 20px;
}

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

.footer-links a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  font-size: 12px;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.social-links {
  display: flex;
  gap: 24px;
}

.social-links a {
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.social-links a:hover { color: var(--accent-light); }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  background: var(--whatsapp);
  padding: 16px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35), 0 0 0 4px rgba(37, 211, 102, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45), 0 0 0 8px rgba(37, 211, 102, 0.08);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

/* --- Animations --- */
.animate {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 1024px) {
  .hero-content {
    padding-top: 160px;
    padding-bottom: 128px;
  }
  .section {
    padding: 128px 0;
  }
  .cta-section {
    padding: 128px 0;
  }
}

/* --- Divider --- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ============================================
   MOBILE-FRIENDLY ENHANCEMENTS
   ============================================ */

/* --- Small screens (max 480px) --- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-grid {
    padding-top: 100px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .hero-ctas {
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 14px;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-trust-text {
    margin-left: 0;
  }

  .stats-bar {
    padding: 32px 0;
  }

  .stats-grid {
    gap: 24px;
  }

  .stat-number {
    font-size: 28px;
  }

  .stat-label {
    font-size: 10px;
  }

  .section {
    padding: 56px 0;
  }

  .section-header,
  .section-header-center {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .card {
    padding: 24px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-desc {
    font-size: 13px;
  }

  .process-step {
    padding: 24px 16px;
  }

  .process-number {
    font-size: 36px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-quote {
    font-size: 14px;
  }

  .testimonial-quote::before {
    font-size: 36px;
  }

  .cta-section {
    padding: 56px 0;
  }

  .cta-content .section-subtitle {
    margin-bottom: 28px;
  }

  .cta-content .btn {
    width: 100%;
    justify-content: center;
  }

  .portfolio-info {
    padding: 20px;
  }

  .portfolio-info .card-title {
    font-size: 15px;
  }

  .portfolio-info .card-desc {
    font-size: 13px;
  }

  .tag {
    font-size: 9px;
    padding: 4px 10px;
  }

  .page-header {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  .page-header .hero-title {
    font-size: 1.75rem;
  }

  .contact-card {
    gap: 24px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-value {
    font-size: 14px;
    word-break: break-all;
  }

  .map-container {
    min-height: 280px;
  }

  .footer {
    padding: 48px 0 28px;
  }

  .footer-grid {
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer-logo {
    font-size: 18px;
  }

  .footer-desc {
    font-size: 13px;
  }

  .footer-bottom {
    padding-top: 20px;
    font-size: 11px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 14px;
  }

  .lightbox-content {
    width: 95%;
  }

  .lightbox-info h3 {
    font-size: 18px;
  }

  .lightbox-info p {
    font-size: 13px;
  }
}

/* --- Medium screens (max 768px) --- */
@media (max-width: 768px) {
  .nav-container {
    height: 64px;
  }

  .nav-links.mobile-open {
    top: 64px;
  }

  .nav-links.mobile-open .nav-link {
    padding: 8px 0;
    font-size: 12px;
  }

  .nav-links.mobile-open .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 8px;
  }

  .hero {
    min-height: auto;
  }

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

  .grid-5 > :last-child {
    grid-column: 1 / -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .portfolio-overlay {
    opacity: 1;
    background: rgba(10, 15, 30, 0.45);
  }
}

/* Touch-friendly: larger tap targets */
@media (hover: none) and (pointer: coarse) {
  .btn {
    min-height: 48px;
  }

  .btn-sm {
    min-height: 44px;
    padding: 12px 20px;
  }

  .nav-link {
    padding: 8px 4px;
  }

  .footer-links a {
    padding: 6px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .social-links a {
    padding: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
