/* ============================================
   Next Digital - app.css
   Corporate IT Services Site
   Light / Dark / System Theme
   ============================================ */

/* --- Font Face: Inter (self-hosted) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin-700-normal.woff2') format('woff2');
}

/* --- Theme: Light (default) --- */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-navbar: rgba(255, 255, 255, 0.85);
  --bg-navbar-scrolled: rgba(255, 255, 255, 0.95);
  --bg-footer: #0f172a;
  --bg-hero: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 50%, #f5f3ff 100%);
  --bg-hero-pattern: rgba(37, 99, 235, 0.03);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --text-on-accent: #ffffff;
  --text-footer: #94a3b8;
  --text-footer-heading: #f1f5f9;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: rgba(37, 99, 235, 0.1);
  --accent-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --accent-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);

  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 30px rgba(37, 99, 235, 0.12);

  --icon-color: #2563eb;
  --icon-bg: rgba(37, 99, 235, 0.08);

  --transition: 0.3s ease;
  --transition-theme: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* --- Theme: Dark --- */
[data-theme="dark"] {
  --bg-primary: #0a0a1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1e293b;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-navbar: rgba(10, 10, 26, 0.85);
  --bg-navbar-scrolled: rgba(10, 10, 26, 0.95);
  --bg-footer: #050510;
  --bg-hero: linear-gradient(135deg, #0a0a1a 0%, #0f172a 50%, #0a0a1a 100%);
  --bg-hero-pattern: rgba(59, 130, 246, 0.04);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-footer: #64748b;
  --text-footer-heading: #e2e8f0;

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: rgba(59, 130, 246, 0.12);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);

  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 8px 30px rgba(59, 130, 246, 0.15);

  --icon-color: #60a5fa;
  --icon-bg: rgba(59, 130, 246, 0.12);
}

/* System dark preference (when no explicit theme set) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #0a0a1a;
    --bg-secondary: #111827;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-navbar: rgba(10, 10, 26, 0.85);
    --bg-navbar-scrolled: rgba(10, 10, 26, 0.95);
    --bg-footer: #050510;
    --bg-hero: linear-gradient(135deg, #0a0a1a 0%, #0f172a 50%, #0a0a1a 100%);
    --bg-hero-pattern: rgba(59, 130, 246, 0.04);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --text-footer: #64748b;
    --text-footer-heading: #e2e8f0;

    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-light: rgba(59, 130, 246, 0.12);
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --accent-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-card-hover: 0 8px 30px rgba(59, 130, 246, 0.15);

    --icon-color: #60a5fa;
    --icon-bg: rgba(59, 130, 246, 0.12);
  }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden !important;
  scroll-padding-top: 80px;
  max-width: 100vw;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  margin: 0;
  padding: 0;
  overflow-x: hidden !important;
  max-width: 100vw;
  position: relative;
  line-height: 1.7;
  transition: var(--transition-theme);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--text-primary); }
p { margin: 0 0 1rem; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-navbar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition-theme), border-color 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background-color: var(--bg-navbar-scrolled);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.5rem 2rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: -0.02em;
}
.navbar-brand .brand-next { color: var(--text-primary); }
.navbar-brand .brand-digital { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: var(--text-secondary);
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  position: relative;
  transition: color var(--transition), background-color var(--transition);
}
.nav-links a:hover {
  color: var(--text-primary);
  background-color: var(--accent-light);
}
.nav-links a.active {
  color: var(--accent);
}

/* --- Navbar Actions --- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  width: 40px;
  height: 40px;
}
.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--accent-light);
}
.theme-toggle i[data-lucide] { width: 18px; height: 18px; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon,
.theme-toggle .icon-monitor { display: none; }
[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon { display: flex; }
:root:not([data-theme]) .theme-toggle .icon-monitor { display: flex; }

.btn-nav-cta {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}
.btn-nav-cta:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
  color: var(--text-on-accent);
}
.btn-nav-cta i[data-lucide] { width: 16px; height: 16px; }

/* Hamburger */
.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 0.5rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.navbar-toggler:hover {
  border-color: var(--accent);
  background-color: var(--accent-light);
}
.navbar-toggler svg { width: 20px; height: 20px; }
@media (max-width: 991px) {
  .nav-links, .nav-actions .btn-nav-cta { display: none; }
  .navbar-toggler { display: flex; }
  .navbar { padding: 0.75rem 1.25rem; }
}

/* --- Mobile Offcanvas Menu --- */
.offcanvas-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.offcanvas-overlay.active { opacity: 1; visibility: visible; }

.offcanvas {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.3s ease, background-color 0.4s ease;
  display: flex;
  flex-direction: column;
}
.offcanvas.active { transform: translateX(0); }

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.offcanvas-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.offcanvas-title .brand-digital { color: var(--accent); }
.offcanvas-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.offcanvas-close:hover { color: var(--text-primary); }
.offcanvas-close svg { width: 22px; height: 22px; }

.offcanvas-body { padding: 1.5rem; flex: 1; }
.offcanvas-body .nav-list { display: flex; flex-direction: column; gap: 0.25rem; }
.offcanvas-body .nav-list a {
  color: var(--text-secondary);
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition);
}
.offcanvas-body .nav-list a i[data-lucide] {
  width: 20px;
  height: 20px;
  color: var(--text-tertiary);
  transition: color var(--transition);
}
.offcanvas-body .nav-list a:hover {
  background-color: var(--accent-light);
  color: var(--accent);
}
.offcanvas-body .nav-list a:hover i[data-lucide] { color: var(--accent); }
.offcanvas-body .nav-list a.active {
  background-color: var(--accent-light);
  color: var(--accent);
}
.offcanvas-body .nav-list a.active i[data-lucide] { color: var(--accent); }

.offcanvas-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.offcanvas-footer .btn-nav-cta {
  width: 100%;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
  border-radius: 12px;
}
.offcanvas-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.offcanvas-theme-toggle span {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  font-weight: 500;
}
@media (min-width: 992px) {
  .offcanvas, .offcanvas-overlay { display: none !important; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-hero);
  overflow: hidden;
  padding-top: 80px;
  transition: var(--transition-theme);
}
.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-hero-pattern) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-hero-pattern) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  top: -10%;
  right: -5%;
  background: rgba(37, 99, 235, 0.2);
}
.hero-glow-2 {
  bottom: -15%;
  left: -10%;
  background: rgba(124, 58, 237, 0.15);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}
.hero-badge i[data-lucide] { width: 14px; height: 14px; }

.hero h1 {
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.hero h1 .text-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn-primary {
  background: var(--accent-gradient);
  color: var(--text-on-accent);
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
  background: var(--accent-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  color: var(--text-on-accent);
}
.btn-primary i[data-lucide] { width: 18px; height: 18px; }

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-light);
  transform: translateY(-2px);
}
.btn-secondary i[data-lucide] { width: 18px; height: 18px; }

/* --- Section Shared --- */
.section {
  padding: 100px 0;
  transition: var(--transition-theme);
}
.section-alt {
  background-color: var(--bg-secondary);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.section-label i[data-lucide] { width: 16px; height: 16px; }
.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Service Cards (Homepage Grid) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1199px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}
.service-card .card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}
.service-card:hover .card-icon {
  background: var(--accent-gradient);
}
.service-card .card-icon i[data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--icon-color);
  transition: color var(--transition);
}
.service-card:hover .card-icon i[data-lucide] { color: #fff; }
.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition);
}
.card-link:hover { gap: 0.6rem; }
.card-link i[data-lucide] { width: 16px; height: 16px; }

/* --- Pillar Label (Services Page) --- */
.pillar-section { margin-bottom: 5rem; }
.pillar-section:last-child { margin-bottom: 0; }
.pillar-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}
.pillar-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}
.pillar-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* --- Service Detail Block (Services Page) --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail.reversed { direction: rtl; }
.service-detail.reversed > * { direction: ltr; }
@media (max-width: 767px) {
  .service-detail, .service-detail.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
    margin-bottom: 4rem;
  }
}

.service-detail-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}
.service-detail-icon i[data-lucide] { width: 28px; height: 28px; color: #fff; }

.service-detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.service-detail-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.feature-list { padding: 0; }
.feature-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color var(--transition);
}
.feature-list li:hover { color: var(--text-primary); }
.feature-list li i[data-lucide] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--accent);
  margin-right: 0.75rem;
  margin-top: 0.2rem;
}

.service-visual {
  width: 100%;
  height: 380px;
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}
.service-visual:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.service-visual-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual-icon i[data-lucide] {
  width: 80px;
  height: 80px;
  color: var(--accent);
  opacity: 0.3;
}
@media (max-width: 767px) {
  .service-visual { height: 240px; }
}

/* --- Why Choose Us Cards --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 991px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .why-grid { grid-template-columns: 1fr; } }

.why-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.35s ease;
}
.why-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}
.why-card .card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  border-radius: 16px;
  margin: 0 auto 1.25rem;
  transition: all var(--transition);
}
.why-card:hover .card-icon { background: var(--accent-gradient); }
.why-card .card-icon i[data-lucide] {
  width: 26px;
  height: 26px;
  color: var(--icon-color);
  transition: color var(--transition);
}
.why-card:hover .card-icon i[data-lucide] { color: #fff; }
.why-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.why-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  transition: var(--transition-theme);
}
.cta-block {
  background: var(--accent-gradient);
  border-radius: 24px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.cta-block::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  pointer-events: none;
}
.cta-block .container { position: relative; z-index: 2; }
.cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.btn-cta {
  background: #fff;
  color: #1d4ed8;
  border: none;
  border-radius: 12px;
  padding: 0.875rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #1d4ed8;
}
.btn-cta i[data-lucide] { width: 18px; height: 18px; }
@media (max-width: 767px) {
  .cta-block { padding: 3rem 1.5rem; }
  .cta-title { font-size: 1.75rem; }
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-footer);
  padding: 60px 0 0;
  border-top: 1px solid var(--border);
  transition: var(--transition-theme);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 2.5rem;
}
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-footer-heading);
}
.footer-brand .brand-digital { color: var(--accent); }
.footer-description {
  color: var(--text-footer);
  line-height: 1.7;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.footer-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-footer-heading);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: var(--text-footer);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copyright {
  color: var(--text-footer);
  margin: 0;
  font-size: 0.8rem;
}
.footer-tagline {
  color: var(--text-footer);
  margin: 0;
  font-size: 0.8rem;
}
@media (max-width: 575px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 140px 0 60px;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  transition: var(--transition-theme);
}
.page-header .hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--bg-hero-pattern) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-hero-pattern) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}
@media (max-width: 767px) {
  .page-header { padding: 120px 0 40px; }
  .page-header h1 { font-size: 2rem; }
}

/* --- Contact Form --- */
.contact-section {
  padding: 60px 0 100px;
  transition: var(--transition-theme);
}
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  transition: var(--transition-theme);
}
@media (max-width: 575px) { .contact-form { padding: 2rem 1.25rem; } }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-grid .full-width { grid-column: 1 / -1; }
@media (max-width: 575px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; }
.form-group label {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.form-actions .btn-primary {
  width: 100%;
  justify-content: center;
}

/* --- Legal Content (Privacy / Terms) --- */
.legal-section {
  padding: 40px 0 100px;
  transition: var(--transition-theme);
}
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}
.legal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.legal-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.legal-content ul li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
.legal-content a {
  color: var(--accent);
  transition: color var(--transition);
}
.legal-content a:hover { text-decoration: underline; }
.legal-footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.legal-footer p {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* --- 404 Page --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-hero);
  transition: var(--transition-theme);
  padding: 2rem;
}
.error-code {
  font-size: 8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h2 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.error-page p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }
  .section-header { margin-bottom: 2.5rem; }
  .service-detail-title { font-size: 1.5rem; }
  .footer { padding: 40px 0 0; }
  .error-code { font-size: 5rem; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .hero h1 { font-size: 3rem; }
  .section-title { font-size: 2.25rem; }
}

/* --- Overflow Prevention --- */
section { overflow-x: hidden; max-width: 100vw; }
html, body { overflow-x: hidden !important; max-width: 100vw !important; position: relative; }
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }
