/* ========== NESSVORA SHARED STYLES ========== */
:root {
  --blue: #0866FF;
  --cyan: #00D4FF;
  --purple: #8A2BE2;
  --pink: #FF2D87;
  --green: #25D366;
  --green-dark: #128C7E;
  --orange: #FF8A3D;
  --gradient: linear-gradient(135deg, #0866FF 0%, #00D4FF 50%, #8A2BE2 100%);
  --gradient-warm: linear-gradient(135deg, #FF2D87 0%, #FF8A3D 100%);
  --gradient-cool: linear-gradient(135deg, #00D4FF 0%, #0866FF 100%);
}

html[data-theme="light"] {
  --bg: #F7F9FC;
  --bg-alt: #EEF2F9;
  --bg-card: #FFFFFF;
  --bg-nav: rgba(247,249,252,0.85);
  --text: #0B1437;
  --text-muted: #5A6B8C;
  --border: rgba(8,102,255,0.12);
  --shadow: 0 10px 40px rgba(8,102,255,0.08);
  --shadow-lg: 0 20px 60px rgba(8,102,255,0.15);
  --gradient-soft: linear-gradient(135deg, rgba(8,102,255,0.08), rgba(138,43,226,0.08));
  --grid-line: rgba(8,102,255,0.06);
  --hero-glow-1: rgba(0,212,255,0.35);
  --hero-glow-2: rgba(138,43,226,0.25);
}

html[data-theme="dark"] {
  --bg: #0B0F1A;
  --bg-alt: #060912;
  --bg-card: #11172A;
  --bg-nav: rgba(11,15,26,0.7);
  --text: #F2F5FA;
  --text-muted: #8892B0;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --gradient-soft: linear-gradient(135deg, rgba(8,102,255,0.15), rgba(138,43,226,0.15));
  --grid-line: rgba(8,102,255,0.05);
  --hero-glow-1: rgba(8,102,255,0.25);
  --hero-glow-2: rgba(138,43,226,0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg); color: var(--text);
  overflow-x: hidden; line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-glow::before, .bg-glow::after {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  filter: blur(120px); opacity: 0.6;
}
.bg-glow::before { background: var(--hero-glow-1); top: 5%; left: -10%; animation: float1 12s ease-in-out infinite; }
.bg-glow::after { background: var(--hero-glow-2); bottom: 10%; right: -10%; animation: float2 14s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(100px, 50px); } }
@keyframes float2 { 50% { transform: translate(-100px, -80px); } }

/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 5%; backdrop-filter: blur(20px);
  background: var(--bg-nav); border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.3s ease;
}
.logo { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.logo-mark {
  height: 56px; width: auto;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease;
}
.logo-mark img { height: 100%; width: auto; display: block; object-fit: contain; }
.logo:hover .logo-mark { transform: scale(1.05); }
.logo span { display: none; }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--gradient); border-radius: 2px; }
.nav-links .enquire-link {
  color: white !important; background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 8px 18px; border-radius: 999px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links .enquire-link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37,211,102,0.35); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease; font-size: 18px;
}
.theme-toggle:hover { transform: rotate(20deg); border-color: var(--blue); box-shadow: 0 4px 16px rgba(8,102,255,0.25); }
html[data-theme="light"] .theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .moon { display: inline; }
html[data-theme="dark"] .theme-toggle .sun { display: inline; }
html[data-theme="dark"] .theme-toggle .moon { display: none; }
.mobile-toggle { display: none; background: transparent; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* BUTTONS */
.btn-primary {
  background: var(--gradient); color: white;
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(8,102,255,0.35); transition: all 0.3s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(8,102,255,0.5); }
.btn-secondary {
  background: transparent; color: var(--text);
  padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--border); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.3s ease;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

/* PAGE HERO */
.page-hero {
  padding: 160px 5% 80px; text-align: center; position: relative;
}
.page-hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gradient-soft); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 18px; font-size: 13px;
  font-weight: 500; margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 1px;
}
.page-hero h1 {
  font-size: clamp(36px, 6vw, 72px); font-weight: 800;
  letter-spacing: -2px; line-height: 1.05; margin-bottom: 20px;
}
.page-hero h1 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-hero p { font-size: 19px; color: var(--text-muted); max-width: 720px; margin: 0 auto; }

/* SECTIONS */
section { padding: 80px 5%; position: relative; }
.container { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-tag {
  font-family: 'JetBrains Mono', monospace; color: var(--blue);
  font-size: 13px; font-weight: 500; letter-spacing: 2px;
  margin-bottom: 14px; text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 48px); font-weight: 800;
  letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px;
}
.section-head h2 .grad { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-head p { font-size: 17px; color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* FOOTER */
footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 5% 30px; }
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; max-width: 320px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); text-decoration: none;
  transition: all 0.2s; font-size: 16px;
}
.social-links a:hover { color: white; border-color: transparent; transform: translateY(-2px); }
.social-links a.fb:hover { background: #1877F2; }
.social-links a.ig:hover { background: linear-gradient(135deg, #E1306C, #F77737); }
.social-links a.li:hover { background: #0A66C2; }
.social-links a.wa:hover { background: var(--green); }
.social-links a.tw:hover { background: #1DA1F2; }
footer h4 { font-size: 14px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: 20px; color: var(--text); }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
footer ul a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-muted);
}

/* WHATSAPP FLOATING */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  cursor: pointer; transition: all 0.3s ease; text-decoration: none;
}
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--green); animation: wa-pulse 2s infinite; z-index: -1;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float svg { width: 32px; height: 32px; fill: white; }
.wa-float:hover { transform: scale(1.1); }
.wa-tooltip {
  position: absolute; right: 72px; top: 50%; transform: translateY(-50%);
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  box-shadow: var(--shadow);
}
.wa-tooltip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px; background: var(--text);
}
.wa-float:hover .wa-tooltip { opacity: 1; }

.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); flex-direction: column; padding: 24px; gap: 18px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { width: 56px; height: 56px; bottom: 20px; right: 20px; }
}

/* ============================================================
   CROSS-BROWSER + RESPONSIVE GLOBALS
   ============================================================ */
/* Prevent any element from forcing horizontal scroll on mobile */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
/* Safari backdrop-filter prefix safety */
.glass, [class*="backdrop-blur"] { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
/* Prevent iOS Safari from zooming on input focus (font-size >= 16px) */
@supports (-webkit-touch-callout: none) {
  input, select, textarea { font-size: 16px !important; }
}
/* Smooth scrolling fallback for browsers without scroll-behavior support */
@supports not (scroll-behavior: smooth) { html { scroll-behavior: auto; } }
/* Better tap targets on touch devices */
@media (hover: none) and (pointer: coarse) {
  a, button, [role="button"] { min-height: 40px; }
  .lift:hover { transform: none; }
}
/* Mobile section padding tightening */
@media (max-width: 640px) {
  section { padding-left: 16px; padding-right: 16px; }
  .max-w-7xl, .max-w-6xl, .max-w-5xl { width: 100%; }
}
/* Tablet-only tweaks */
@media (min-width: 641px) and (max-width: 1024px) {
  /* nothing custom yet — rely on tailwind sm: / md: */
}
/* Honor reduced-motion preference everywhere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
/* High-DPI image rendering */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  img { image-rendering: -webkit-optimize-contrast; }
}
/* Print styles — clean B&W */
@media print {
  .nv-bg-root, .wa-float, nav, footer, .nv-cursor, .nv-cursor-ring { display: none !important; }
  body { background: white !important; color: black !important; }
  a { color: black !important; text-decoration: underline; }
}
