/* ============================================================
   AI Security Services — Premium Style System
   Vanilla CSS & Elegant Visual Themes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* ── Variables & Design Tokens ─────────────────────────────── */
:root {
  /* Light Theme */
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-2: #334155;
  --text-muted: #64748b;

  --primary: #0f172a;
  /* Elegant Deep Slate */
  --primary-dark: #020617;
  --primary-light: #334155;
  --accent: #d97706;
  /* Alert Gold */
  --accent-light: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;

  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);

  --radius: 12px;
  --radius-lg: 24px;
  --navbar-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #0f172a;
  --footer-text: #94a3b8;
  --footer-title: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.08);

  /* Theme dependent parameters */
  --hero-overlay: linear-gradient(to right, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.3) 100%);
  --card-hover-border: #0f172a;
}

[data-theme="dark"] {
  /* Dark Theme */
  --bg: #090e1a;
  /* Midnight Deep Blue */
  --bg-2: #020617;
  --surface: #111827;
  /* Charcoal Slate Surface */
  --surface-2: #1f2937;
  --border: #1f2937;
  --text: #ffffff;
  --text-2: #e2e8f0;
  --text-muted: #94a3b8;

  --primary: #38bdf8;
  /* Tech Sky Blue */
  --primary-dark: #0ea5e9;
  --primary-light: #7dd3fc;
  --accent: #fbbf24;
  /* Electric Amber Gold */
  --accent-light: #fde047;
  --navbar-bg: rgba(9, 14, 26, 0.95);
  --footer-bg: #020617;
  --footer-text: #94a3b8;
  --footer-title: #ffffff;
  --footer-border: rgba(255, 255, 255, 0.05);

  --hero-overlay: linear-gradient(to right, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 100%);
  --card-hover-border: #38bdf8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
}

/* Custom Shield Badge Cursor */
html,
body,
a,
button,
select,
input,
textarea {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M16 3L6 8v9c0 6.08 4.25 11.75 10 13 5.75-1.25 10-6.92 10-13V8L16 3z' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linejoin='round'/><circle cx='16' cy='15' r='3' fill='%23fbbf24'/></svg>") 16 16, auto;
}

/* ── Typography ────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-family: 'Playfair Display', serif;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: 'Playfair Display', serif;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p {
  color: var(--text-2);
}

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

.section {
  padding: 100px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

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

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

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

/* ── Navigation & Header System ────────────────────────────── */
.marquee-top {
  background: var(--primary);
  color: #fff;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 38px;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: scrollMarquee 25s linear infinite;
  gap: 40px;
}

.marquee-track span {
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

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

.navbar-top {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.85rem;
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  z-index: 999;
  height: 44px;
}

.navbar-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-top-left,
.navbar-top-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar-top-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
}

.navbar-top-item i {
  color: var(--accent-light);
}

.navbar-main {
  background: var(--navbar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 82px;
  left: 0;
  right: 0;
  z-index: 998;
  transition: all 0.3s;
  height: 76px;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.3rem;
  font-family: 'Playfair Display', serif;
  color: var(--text);
}

.brand-icon {
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

[data-theme="dark"] .brand-icon {
  background: var(--primary);
  color: var(--primary-dark);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.navbar-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.navbar-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--primary);
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--primary);
  transition: width 0.3s;
  border-radius: 100px;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger Close Anim */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Tray */
.mobile-menu {
  display: none;
  position: fixed;
  top: 158px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 28px;
  z-index: 997;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 158px);
  overflow-y: auto;
  transition: all 0.3s ease;
}

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

/* Header Scroll Hide System */
.marquee-top,
.navbar-top {
  transition: transform 0.3s ease;
}

body.scrolled .marquee-top {
  transform: translateY(-38px);
}

body.scrolled .navbar-top {
  transform: translateY(-82px);
}

body.scrolled .navbar-main {
  top: 0 !important;
  box-shadow: var(--shadow-md);
}

body.scrolled .mobile-menu {
  top: 76px !important;
}


.mobile-menu a {
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: var(--bg-2);
  color: var(--primary);
}

/* ── Sliding Hero Banner Section ────────────────────────────── */
.hero-slider-section {
  position: relative;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  margin-top: 158px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 6s linear;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
}

.hero-text-block {
  max-width: 650px;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero-text-block h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text-block p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-slider-nav {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-slider-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.hero-slider-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--accent-light);
  z-index: 10;
  transition: width 0.1s linear;
}

/* ── Dynamic Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-2);
  border-color: var(--text-muted);
  transform: translateY(-3px);
}

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

/* ── Section Headers ────────────────────────────────────────── */
.section-header {
  max-width: 650px;
  margin: 0 auto 56px auto;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* ── About Us Snippet Section ──────────────────────────────── */
.about-split {
  display: grid;
  grid-template-columns: 52% 48%;
  gap: 56px;
  align-items: center;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.about-feat-item {
  display: flex;
  gap: 16px;
}

.about-feat-icon {
  width: 44px;
  height: 44px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

[data-theme="dark"] .about-feat-icon {
  background: rgba(56, 189, 248, 0.1);
  color: var(--primary);
}

.about-feat-title {
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.about-feat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Image Card Box System */
.img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

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

.img-card:hover img {
  transform: scale(1.06);
}

/* ── Service Card Grid ──────────────────────────────────────── */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-hover-border);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 54px;
  height: 54px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}

[data-theme="dark"] .service-icon {
  background: rgba(56, 189, 248, 0.1);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.service-link i {
  transition: transform 0.2s;
}

.service-card:hover .service-link i {
  transform: translateX(4px);
}

/* ── KPI Stats Counter Bar ──────────────────────────────────── */
.kpi-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.kpi-item {
  border-right: 1px solid var(--border);
  padding: 10px;
}

.kpi-item:last-child {
  border-right: none;
}

.kpi-num {
  font-size: 3rem;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* ── Testimonial Cards ──────────────────────────────────────── */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

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

.test-stars {
  color: #fbbf24;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.test-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 20px;
}

.test-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.test-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.test-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Port Coverage Maps / CTA Section ───────────────────────── */
.cta-banner {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin: 0 auto 28px auto;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Subpage Heroes ────────────────────────────────────────── */
.page-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 196px 0 64px;
  position: relative;
}

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

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb span {
  opacity: 0.5;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Interactive Photo Gallery ──────────────────────────────── */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--bg-2);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--card-hover-border);
}

.gallery-img-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #000;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  backdrop-filter: blur(8px);
}

.gallery-info {
  padding: 20px;
}

.gallery-info h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(12px);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav.prev {
  left: 24px;
}

.lightbox-nav.next {
  right: 24px;
}

.lightbox-content {
  max-width: 900px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 70vh;
  max-width: 100%;
  border-radius: 12px;
  object-fit: contain;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 20px;
}

/* ── Form System & Modals ────────────────────────────────────── */
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-2);
}

.form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] .form-control:focus {
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Popup Modal Box */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 500px;
  width: 100%;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.3s;
  box-shadow: var(--shadow-lg);
}

.popup-overlay.show .popup-box {
  transform: scale(1) translateY(0);
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-2);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Toast Messages */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--success);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
  z-index: 9998;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--danger);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}

/* Scroll-to-top */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 90px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 9990;
  box-shadow: var(--shadow-sm);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

/* ── Floating WhatsApp Button ───────────────────────────────── */
.global-wa-container {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
}

.global-wa-tooltip {
  background: #25D366;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.global-wa-btn {
  width: 46px;
  height: 46px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  text-decoration: none;
  animation: waPulse 2.5s infinite;
  transition: transform 0.3s;
}

.global-wa-container:hover .global-wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.global-wa-btn:hover {
  transform: scale(1.1);
}

@keyframes waPulse {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6), 0 0 0 6px rgba(37, 211, 102, 0.08);
  }
}

/* ── Footer Badges Section ──────────────────────────────────── */
.footer-trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--footer-border);
  border-bottom: 1px solid var(--footer-border);
  margin: 32px 0;
  text-align: center;
}

.trust-badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--footer-text);
  font-size: 0.82rem;
}

.trust-badge-item i {
  font-size: 1.6rem;
  color: var(--accent);
}

.trust-badge-item strong {
  color: var(--footer-title);
}

/* ── Full Footer Section ────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr;
  gap: 48px;
}

.footer-col-title {
  color: var(--footer-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 20px 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--footer-text);
}

.footer-links a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.8rem;
}

/* ── Scroll Reveal Anim ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* ── Responsive Viewport Collapsing ────────────────────────── */
@media (max-width: 1024px) {
  .navbar-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

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

  .footer-trust-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .marquee-top {
    font-size: 0.72rem;
  }

  .navbar-top {
    display: none;
  }

  .navbar-main {
    top: 38px;
  }

  .mobile-menu {
    top: 114px;
    max-height: calc(100vh - 114px);
  }

  .hero-slider-section {
    margin-top: 114px;
  }

  .page-hero {
    padding: 158px 0 48px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .kpi-item {
    border-right: none;
  }

  .cta-banner {
    padding: 40px 24px;
  }

  .hero-slider-nav {
    right: 20px;
    bottom: 20px;
  }

  .global-wa-container {
    bottom: 84px;
    right: 16px;
    gap: 6px;
  }

  .global-wa-btn {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .global-wa-tooltip {
    display: none;
  }

  .scroll-top {
    bottom: 84px;
    right: 74px;
    width: 46px;
    height: 46px;
  }
}

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ── Dark Mode UI Balance Overrides ────────────────────────── */
[data-theme="dark"] .form-control {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .form-control:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

[data-theme="dark"] .btn-primary {
  background: var(--primary) !important;
  color: #020617 !important;
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--primary-light) !important;
  color: #020617 !important;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25) !important;
}

[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .gallery-card,
[data-theme="dark"] .popup-box {
  background: #111827 !important;
  border-color: #1f2937 !important;
}

[data-theme="dark"] .testimonial-card:hover,
[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .gallery-card:hover {
  border-color: var(--card-hover-border) !important;
}

[data-theme="dark"] .filter-btn {
  background: #111827;
  border-color: #1f2937;
  color: #e2e8f0;
}

[data-theme="dark"] .filter-btn:hover {
  background: #1f2937;
}

[data-theme="dark"] .filter-btn.active {
  background: var(--primary);
  color: #020617;
  border-color: var(--primary);
}