/* ═══════════════════════════════════════════════════════
   OWNAZ SOLUTIONS — styles.css
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties (Light) ── */
:root {
  --bg: #ffffff;
  --bg-alt: rgba(0, 112, 205, 0.025);
  --surface: rgba(255, 255, 255, 0.72);
  --navy: #0B355B;
  --blue: #0070CD;
  --blue-dark: #005fa8;
  --text: #0B355B;
  --muted: rgba(11, 53, 91, 0.62);
  --faint: rgba(11, 53, 91, 0.38);
  --border: rgba(0, 112, 205, 0.15);
  --border-sub: rgba(11, 53, 91, 0.12);
  --card-bg: rgba(255, 255, 255, 0.82);
  --shadow: rgba(0, 112, 205, 0.18);
  --icon-bg: rgba(0, 112, 205, 0.08);
  --tag-bg: rgba(0, 112, 205, 0.08);
  --tag-bdr: rgba(0, 112, 205, 0.22);
  --tag-color: #0070CD;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --ft-bg: #0B355B;
  --ft-text: rgba(255, 255, 255, 0.72);
  --ft-muted: rgba(255, 255, 255, 0.42);
  --fade-l: rgba(255, 255, 255, 1);
}

/* ── CSS Custom Properties (Dark) ── */
[data-theme="dark"] {
  --bg: #07101e;
  --bg-alt: rgba(79, 168, 245, 0.03);
  --surface: rgba(255, 255, 255, 0.05);
  --navy: #ddeaf8;
  --blue: #4fa8f5;
  --blue-dark: #3b90d6;
  --text: #ddeaf8;
  --muted: rgba(221, 234, 248, 0.60);
  --faint: rgba(221, 234, 248, 0.38);
  --border: rgba(79, 168, 245, 0.20);
  --border-sub: rgba(221, 234, 248, 0.10);
  --card-bg: rgba(255, 255, 255, 0.05);
  --shadow: rgba(79, 168, 245, 0.22);
  --icon-bg: rgba(79, 168, 245, 0.10);
  --tag-bg: rgba(79, 168, 245, 0.10);
  --tag-bdr: rgba(79, 168, 245, 0.25);
  --tag-color: #4fa8f5;
  --nav-bg: rgba(7, 16, 30, 0.85);
  --ft-bg: #030810;
  --ft-text: rgba(255, 255, 255, 0.60);
  --ft-muted: rgba(255, 255, 255, 0.35);
  --fade-l: rgba(7, 16, 30, 1);
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.35s, color 0.35s;
  margin: 0;
}

#wave-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

#page {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.35s, border-color 0.35s, transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

#navbar.scrolled {
  box-shadow: 0 4px 32px rgba(11, 53, 91, 0.1);
}

#navbar.nav-hidden {
  transform: translateY(-100%);
}

/* ═══════════════════════════════════════
   FLOATING SOCIAL BUTTONS
   ═══════════════════════════════════════ */

.floating-socials {
  position: fixed;
  right: 22px;
  bottom: 32px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(0,0,0,0.28);
}

.float-phone {
  background: #0B355B;
}

.float-whatsapp {
  background: #25D366;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 3px 6px;
  transition: background 0.35s;
}

[data-theme="dark"] .logo-wrap {
  background: white;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.3s;
}

.nav-link:hover {
  color: var(--blue);
}

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

#theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--icon-bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}

#theme-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hamburger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--icon-bg);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
}

.hamburger-btn:hover {
  border-color: var(--blue);
}

#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--nav-bg);
}

#mobile-menu.open {
  display: flex;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--shadow);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  border: 1.5px solid var(--border-sub);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ═══════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════ */

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tag-bg);
  border: 1px solid var(--tag-bdr);
  color: var(--tag-color);
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 5px 14px;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gradient-text {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(135deg, #8ecff9 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-tag {
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1.14;
  margin: 0 0 16px;
}

.section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.72;
}

.icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

#hero {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 22px;
}

.hero-sub {
  font-size: 16px;
  line-height: 1.72;
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 38px;
}

/* Stats */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 44px;
}

.stat-item {
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--border-sub);
}

.stat-item:last-child {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

/* ── Hero Showcase (replaces Three.js canvas) ── */
.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 14px;
  align-content: start;
}

.sc-full {
  grid-column: 1 / -1;
}

.sc-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.sc-card:hover {
  border-color: var(--blue);
  box-shadow: 0 10px 32px var(--shadow);
}

.sc-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-body {
  min-width: 0;
}

.sc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Floating keyframes */
@keyframes sc-float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-9px);
  }
}

.sc-a1 {
  animation: sc-float 4.2s ease-in-out infinite 0.0s;
}

.sc-a2 {
  animation: sc-float 3.8s ease-in-out infinite 0.6s;
}

.sc-a3 {
  animation: sc-float 4.6s ease-in-out infinite 1.1s;
}

.sc-a4 {
  animation: sc-float 4.0s ease-in-out infinite 0.4s;
}

.sc-a5 {
  animation: sc-float 5.0s ease-in-out infinite 1.6s;
}

.sc-a6 {
  animation: sc-float 4.4s ease-in-out infinite 0.9s;
}

.sc-a7 {
  animation: sc-float 3.6s ease-in-out infinite 1.3s;
}

/* ═══════════════════════════════════════
   TECH STACK MARQUEE
   ═══════════════════════════════════════ */

#tech {
  padding: 72px 0;
  background-color: var(--bg);
  overflow: hidden;
}

.marquee-outer {
  position: relative;
  overflow: hidden;
}

.marquee-outer::before,
.marquee-outer::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 140px;
  z-index: 2;
  pointer-events: none;
}

.marquee-outer::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-outer::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 8px 0;
  animation: marquee-l 32s linear infinite;
  will-change: transform;
}

.marquee-track.rev {
  animation: marquee-r 36s linear infinite;
  margin-top: 14px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-l {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-r {
  from {
    transform: translateX(-50%);
  }

  to {
    transform: translateX(0);
  }
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  white-space: nowrap;
  cursor: default;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  flex-shrink: 0;
}

.tech-badge:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 18px var(--shadow);
  transform: translateY(-2px);
}

.tech-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  /* natural brand colours in light mode; inverted to off-white in dark mode */
}

[data-theme="dark"] .tech-icon {
  filter: brightness(0) invert(1) opacity(0.85);
}

/* custom icon box for logos not on SimpleIcons (e.g. Infisical) */
.tech-icon-box {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */

#services {
  padding: 112px 0;
  background-color: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  transition: transform 0.35s cubic-bezier(.25, .8, .25, 1), box-shadow 0.35s, border-color 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
}

.service-card:hover {
  box-shadow: 0 20px 52px var(--shadow);
  border-color: var(--blue);
}

.service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy);
  margin: 0 0 10px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 16px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ═══════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════ */

#process {
  padding: 80px 0;
  background: linear-gradient(135deg, #0B355B 0%, #0d4070 50%, #0070CD 100%);
}

[data-theme="dark"] #process {
  background: linear-gradient(135deg, #030912 0%, #071830 50%, #0a3060 100%);
}

.process-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: white;
}

.process-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 15px;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.68;
}

/* ═══════════════════════════════════════
   TESTIMONIALS MARQUEE
   ═══════════════════════════════════════ */

#clients {
  padding: 112px 0;
  background-color: var(--bg-alt);
  overflow: hidden;
}

/* Override marquee-outer fade for bg-alt */
#clients .marquee-outer::before {
  background: linear-gradient(90deg, var(--bg-alt), transparent);
}

#clients .marquee-outer::after {
  background: linear-gradient(-90deg, var(--bg-alt), transparent);
}

.t-card {
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  width: 340px;
  flex-shrink: 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.t-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 40px var(--shadow);
}

.t-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.t-stars svg {
  flex-shrink: 0;
}

.t-quote {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
  flex: 1;
  margin-bottom: 18px;
  font-style: italic;
  position: relative;
  padding-left: 6px;
}

.t-quote::before {
  content: '\201C';
  font-size: 52px;
  line-height: 0;
  font-family: Georgia, serif;
  color: var(--blue);
  opacity: 0.2;
  position: absolute;
  top: 18px;
  left: -6px;
  pointer-events: none;
}

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

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}

.t-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}

.t-role {
  font-size: 11px;
  color: var(--faint);
  margin-top: 2px;
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */

#contact {
  padding: 112px 0;
  background-color: var(--bg);
}

.contact-card {
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 52px 48px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-family: 'Inter', sans-serif;
}

.form-field {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border-sub);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--card-bg);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.35s, color 0.35s;
  -webkit-appearance: none;
  appearance: none;
}

.form-field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 112, 205, 0.12);
}

[data-theme="dark"] .form-field:focus {
  box-shadow: 0 0 0 4px rgba(79, 168, 245, 0.12);
}

.form-field::placeholder {
  color: var(--faint);
}

.form-field.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.12);
}

.form-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #e53e3e;
  font-weight: 500;
  min-height: 16px;
  line-height: 1.4;
}

.form-success {
  display: none;
  text-align: center;
  padding: 18px;
  border-radius: 14px;
  background: var(--icon-bg);
  border: 1px solid var(--border);
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

footer {
  background: var(--ft-bg);
  color: var(--ft-text);
  padding: 52px 24px 32px;
  transition: background 0.35s;
}

.ft-link {
  color: var(--ft-text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition: color 0.2s;
}

.ft-link:hover {
  color: var(--blue);
}

.ft-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: white;
  margin-bottom: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════ */

/* Large desktop: 4-col services */
@media (max-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-showcase {
    display: none;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .service-card {
    padding: 22px 18px;
  }

  .contact-card {
    padding: 32px 24px;
  }

  .section-header {
    margin-bottom: 44px;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-sub);
    padding: 14px 0;
    margin-right: 0;
    margin-bottom: 0;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .contact-card {
    padding: 26px 18px;
  }

  .hero-headline {
    font-size: 2.1rem;
  }

  .t-card {
    width: 290px;
  }
}