/* ============================================
   IVPL Modern Website - Main Stylesheet
   INFOVIRGIN Technology Solutions Pvt Ltd
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Primary Colors */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;

  /* Secondary / Accent */
  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #22d3ee;

  /* Dark Palette */
  --dark-900: #0a1628;
  --dark-800: #111d35;
  --dark-700: #1a2a4a;
  --dark-600: #243656;

  /* Neutral */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Feedback */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  --gradient-dark: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(26,42,74,0.9) 50%, rgba(37,99,235,0.3) 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1), 0 6px 10px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15), 0 12px 24px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.15);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-700);
  background-color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section--gray {
  background-color: var(--gray-50);
}

.section--dark {
  background: var(--gradient-dark);
  color: #fff;
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark p {
  color: #fff;
}

.section--dark p {
  color: rgba(255,255,255,0.75);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 640px;
  color: var(--gray-500);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-white { color: #fff !important; }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37,99,235,0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--dark-900);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--dark-900);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

.btn svg,
.btn i {
  font-size: 1.1em;
  transition: transform var(--transition-fast);
}

.btn:hover svg,
.btn:hover i {
  transform: translateX(3px);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}

.navbar.scrolled .nav-link {
  color: var(--dark-900);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--primary);
}

.navbar.scrolled .navbar-logo .logo-dark { display: block; }
.navbar.scrolled .navbar-logo .logo-light { display: none; }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-900);
  text-decoration: none;
  z-index: 1001;
}

.navbar-logo .logo-dark { display: none; }

.navbar.scrolled .navbar-logo {
  color: var(--dark-900);
}

.navbar-logo span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-logo svg {
  width: 36px;
  height: 36px;
}

.navbar-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: all var(--transition-base);
}

.navbar-logo .logo-img-light { display: none; }
.navbar-logo .logo-img-dark { display: block; }

.navbar.scrolled .navbar-logo .logo-img-light { display: none; }
.navbar.scrolled .navbar-logo .logo-img-dark { display: block; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--dark-900);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-50);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  background: var(--primary-50);
}

.nav-link .arrow {
  font-size: 0.7em;
  transition: transform var(--transition-fast);
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  border: 1px solid var(--gray-100);
}

@media (min-width: 1025px) {
  .nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
  }
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-dropdown a:hover {
  background: var(--primary-50);
  color: var(--primary);
  transform: translateX(4px);
}

.nav-dropdown .dropdown-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

/* Nav CTA */
.nav-cta {
  margin-left: 16px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark-900);
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  transform-origin: center;
}

.navbar.scrolled .nav-toggle span {
  background: var(--dark-900);
}

.nav-toggle.active span {
  background: #fff !important;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1050;
    transform: translateX(100%);
    opacity: 1;
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    padding: 14px 24px;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
  }

  .nav-dropdown {
    position: static;
    min-width: 100%;
    background: rgba(255,255,255,0.05);
    box-shadow: none;
    border: none;
    transform: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    padding: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-item.dropdown-open .nav-dropdown {
    max-height: 500px;
    padding: 8px;
  }

  .nav-dropdown a {
    color: rgba(255,255,255,0.7);
  }

  .nav-dropdown a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateX(0);
  }

  .nav-dropdown .dropdown-icon {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 16px;
  }

  .navbar.scrolled .nav-link {
    color: rgba(255,255,255,0.85);
  }

  .navbar.scrolled .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
  }

  .navbar.scrolled .nav-toggle.active span {
    background: #fff !important;
  }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: var(--dark-900);
  overflow: hidden;
  width: 100%;
  padding-top: 130px;
  padding-bottom: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(37,99,235,0.08) 0%, transparent 40%);
  z-index: 2;
}

/* Animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: float 8s ease-in-out infinite;
}

.hero-orb--1 {
  width: min(400px, 80vw); height: min(400px, 80vw);
  background: rgba(37,99,235,0.2);
  top: -10%; right: 0;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: min(300px, 60vw); height: min(300px, 60vw);
  background: rgba(6,182,212,0.15);
  bottom: -5%; left: 10%;
  animation-delay: -3s;
}

.hero-orb--3 {
  width: min(200px, 50vw); height: min(200px, 50vw);
  background: rgba(37,99,235,0.1);
  top: 40%; left: 50%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  width: 100%;
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 560px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stat h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat h3 .text-accent {
  -webkit-text-fill-color: var(--accent);
}

.hero-stat p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* Hero visual (right side) */
.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  z-index: 10;
  flex: 1;
  display: none;
}

@media (min-width: 1025px) {
  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    flex: 1;
  }
}

.hero-visual-graphic {
  width: 400px;
  height: 400px;
  position: relative;
}

.hero-ring {
  position: absolute;
  border: 2px solid rgba(37,99,235,0.2);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}

.hero-ring--1 {
  inset: 0;
  border-color: rgba(37,99,235,0.15);
}

.hero-ring--2 {
  inset: 40px;
  border-color: rgba(6,182,212,0.15);
  animation-direction: reverse;
  animation-duration: 15s;
}

.hero-ring--3 {
  inset: 80px;
  border-color: rgba(37,99,235,0.2);
  animation-duration: 25s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-ring-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(37,99,235,0.5);
}

.hero-ring--1 .hero-ring-dot { top: -6px; left: 50%; }
.hero-ring--2 .hero-ring-dot { bottom: -6px; right: 20%; }
.hero-ring--3 .hero-ring-dot { top: 30%; left: -6px; }

.hero-center-icon {
  position: absolute;
  inset: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,0.1);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
}

.hero-center-icon svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 24px;
  }

  .hero-stat {
    flex: 1 1 40%;
    text-align: center;
  }

  .hero-stat h3 {
    font-size: 1.75rem;
  }

  .hero-stat p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 110px 0 50px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 14px;
  }

  .hero-stats {
    gap: 12px;
  }

  .hero-stat h3 {
    font-size: 1.5rem;
  }
}

/* ---------- Page Banner ---------- */
.page-banner {
  position: relative;
  padding: 160px 0 80px;
  background: var(--dark-900);
  overflow: hidden;
  width: 100%;
}

.page-banner .hero-bg-pattern {
  position: absolute;
  inset: 0;
}

.page-banner .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.page-banner-content {
  position: relative;
  z-index: 10;
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 16px;
}

.page-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 560px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb span { color: rgba(255,255,255,0.3); }

.breadcrumb .current { color: var(--accent); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.card img {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card:hover img {
  transform: scale(1.06);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-md);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: scale(1.05);
}

.card h4 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.card-link svg {
  transition: transform var(--transition-fast);
}

.card-link:hover svg {
  transform: translateX(4px);
}

/* Dark Card */
.card--dark {
  background: var(--dark-800);
  border-color: rgba(255,255,255,0.08);
}

.card--dark h4 { color: #fff; }
.card--dark p { color: rgba(255,255,255,0.6); }

.card--dark .card-icon {
  background: rgba(37,99,235,0.15);
}

.card--dark:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Glass Card */
.card--glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.1);
}

.card--glass h4 { color: #fff; }
.card--glass p { color: rgba(255,255,255,0.65); }

/* ---------- Feature Grid ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-row--reverse {
  direction: rtl;
}

.feature-row--reverse > * {
  direction: ltr;
}

.feature-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  border-radius: var(--radius-xl);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-image:hover img {
  transform: scale(1.03);
}

.feature-image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.feature-image-badge h4 {
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.feature-image-badge p {
  font-size: 0.85rem;
  margin: 0;
}

.feature-content .section-label {
  margin-bottom: 12px;
}

.feature-content h2 {
  margin-bottom: 20px;
}

.feature-content > p {
  margin-bottom: 28px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.feature-list li svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--success);
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row--reverse {
    direction: ltr;
  }

  .feature-image img {
    aspect-ratio: 16/10;
    object-fit: cover;
  }

  .feature-content h2 {
    font-size: 1.5rem;
  }

  .feature-content > p {
    font-size: 0.95rem;
  }

  .feature-list li {
    font-size: 0.9rem;
  }
}

/* ---------- Stats / Counter ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-item {
  text-align: center;
  padding: 32px 16px;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.section--dark .stat-number {
  color: #fff;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

.section--dark .stat-label {
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }
}

/* ---------- Partners / Logo Grid ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-align: center;
  gap: 12px;
}

.partner-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.partner-card .partner-icon {
  width: 80px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  transition: all var(--transition-base);
}

.partner-card .partner-icon img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  filter: grayscale(80%) opacity(0.7);
  transition: all var(--transition-base);
}

.partner-card:hover .partner-icon img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

.partner-card:hover .partner-icon {
  background: transparent;
}

.partner-card h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-900);
  margin: 0;
}

.partner-card p {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin: 0;
}

/* Logo Marquee */
.logo-marquee {
  overflow: hidden;
  padding: 40px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logo-marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

.logo-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  white-space: nowrap;
  opacity: 0.5;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.logo-marquee-item img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  transition: all var(--transition-base);
}

.logo-marquee-item:hover {
  opacity: 1;
}

.logo-marquee-item:hover img {
  filter: grayscale(0%) brightness(1);
  transform: scale(1.1);
}

.section--dark .logo-marquee-item img {
  filter: grayscale(100%) brightness(1.5);
}

.section--dark .logo-marquee-item:hover img {
  filter: grayscale(0%) brightness(1);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- CTA Section ---------- */
.cta-section {
  position: relative;
  padding: 100px 0;
  background: var(--gradient-primary);
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.cta-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Service Detail ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

.service-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.service-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--gray-600);
  font-size: 0.925rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.service-nav a:hover {
  color: var(--primary);
  background: var(--primary-50);
  border-left-color: var(--primary);
}

.service-nav a.active {
  color: var(--primary);
  background: var(--primary-50);
  border-left-color: var(--primary);
  font-weight: 600;
}

.service-main h2 {
  margin-bottom: 20px;
}

.service-main p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.service-feature-card {
  padding: 28px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

.service-feature-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.service-feature-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}

.service-feature-card h5 {
  margin-bottom: 8px;
  color: var(--dark-900);
}

.service-feature-card p {
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }

  .service-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .service-nav a {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .service-nav a.active {
    border-left: none;
    border-bottom-color: var(--primary);
  }

  .service-features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.contact-info-card:hover {
  background: #fff;
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  border-radius: var(--radius-sm);
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-card h5 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.contact-info-card p {
  margin: 0;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark-900);
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.925rem;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.4);
}

/* ---------- Animations (Scroll Reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger delay classes */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- Accordion ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark-900);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
}

.accordion-header:hover {
  color: var(--primary);
}

.accordion-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 0.8rem;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
  background: var(--primary);
  color: #fff;
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-body-inner {
  padding: 0 24px 20px;
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--gray-200);
  overflow-x: auto;
}

.tab-btn {
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--gray-500);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ---------- Privacy Policy ---------- */
.policy-content h3 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 1.35rem;
}

.policy-content h4 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.policy-content p {
  margin-bottom: 16px;
  line-height: 1.9;
}

.policy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--gray-600);
  line-height: 1.8;
}

.policy-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-900);
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(37,99,235,0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Misc ---------- */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 16px 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--primary-50);
  color: var(--primary);
  border-radius: var(--radius-full);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ---------- Smooth Page Load ---------- */
body {
  animation: pageEnter 0.5s ease-out;
}

@keyframes pageEnter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Image Overlay Effect ---------- */
.feature-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,22,40,0.15) 100%);
  border-radius: var(--radius-xl);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-image:hover::after {
  opacity: 1;
}

/* ==========================================
   COMPREHENSIVE RESPONSIVE OVERRIDES
   ========================================== */

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 20px;
  }

  .page-banner {
    padding: 130px 0 60px;
  }

  .page-banner h1 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }

  .page-banner p {
    font-size: 1rem;
  }

  .cta-section {
    padding: 70px 0;
  }

  .feature-row {
    gap: 48px;
  }

  .partner-card {
    padding: 20px 12px;
  }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 16px;
  }

  .page-banner {
    padding: 110px 0 48px;
  }

  .page-banner p {
    font-size: 0.95rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-desc {
    font-size: 1rem;
  }

  .section-label {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Partner grid */
  .partner-card {
    padding: 16px 10px;
  }

  .partner-card .partner-icon {
    width: 64px;
    height: 44px;
  }

  .partner-card .partner-icon img {
    max-height: 36px;
  }

  .partner-card h5 {
    font-size: 0.8rem;
  }

  .partner-card p {
    font-size: 0.75rem;
  }

  /* Logo marquee */
  .logo-marquee {
    padding: 24px 0;
  }

  .logo-marquee-track {
    gap: 40px;
  }

  .logo-marquee-item {
    height: 36px;
    padding: 0 12px;
  }

  .logo-marquee-item img {
    height: 28px;
    max-width: 90px;
  }

  /* Cards */
  .card {
    padding: 24px;
  }

  /* Service detail inline images */
  .feature-row[style*="margin-bottom:80px"] {
    margin-bottom: 48px !important;
  }

  /* Stat section */
  .stat-item {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
  }

  /* Footer */
  .footer {
    padding: 60px 0 0;
  }

  .footer-brand p {
    font-size: 0.875rem;
  }

  /* Accordion */
  .accordion-header {
    padding: 16px 20px;
    font-size: 0.95rem;
  }

  .accordion-body {
    padding: 0 20px 16px;
    font-size: 0.9rem;
  }

  /* Tabs */
  .tabs {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* --- Small mobile (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --section-padding: 48px 0;
    --container-padding: 0 14px;
  }

  .page-banner {
    padding: 100px 0 36px;
  }

  .page-banner h1 {
    font-size: 1.4rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }

  /* Feature sections */
  .feature-row[style*="margin-bottom:80px"] {
    margin-bottom: 36px !important;
  }

  .feature-content h2.section-title {
    font-size: 1.25rem;
  }

  .feature-content > p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .feature-list {
    gap: 12px;
    margin-bottom: 24px;
  }

  .feature-list li {
    font-size: 0.85rem;
    gap: 8px;
  }

  .feature-list li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* Service sidebar navigation on small screens */
  .service-nav a {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  /* Contact */
  .contact-grid {
    gap: 32px;
  }

  .form-input,
  .form-textarea {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer h5 {
    font-size: 1rem;
  }
}

/* --- Ensure no horizontal overflow on any section --- */
section,
.page-banner,
.cta-section,
.footer {
  max-width: 100vw;
  overflow-x: hidden;
}

/* --- Prevent long words from overflowing on mobile --- */
h1, h2, h3, h4, p, li, span, a {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* --- Prevent inline style overflow on service images --- */
.feature-image img[style] {
  max-width: 100%;
  width: 100% !important;
}

/* --- Prevent SVG overflow (non-icon large graphics only) --- */
svg:not([width]) {
  max-width: 100%;
}

/* --- Navbar logo on very small screens --- */
@media (max-width: 360px) {
  .navbar-logo img {
    height: 32px;
  }

  .navbar-logo span {
    font-size: 1.1rem;
  }
}
