/* ============================================================
   ARKAN CONSULTANTS - Professional Design System
   Built from scratch - 2026
   ============================================================ */

/* ---- Google Fonts (Local) ---- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/QGYyz_MVcBeNP4NjuGObqx1XmO1I4TC1O4a0EwItq6fNIg3232.woff2') format('woff2');
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/QGYyz_MVcBeNP4NjuGObqx1XmO1I4e6yO4a0EwItq6fNIge47e.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA85c2.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKoduKmMEVuI6fAZ9hiJ-Ek-_EeAe7b9.woff2') format('woff2');
}

/* ---- CSS Variables / Design Tokens ---- */
:root {
  /* Primary Palette (from Logo) */
  --primary: #2563eb;
  --primary-dark: #1e3a8a;
  --primary-deeper: #0f172a;
  --primary-light: #60a5fa;
  --primary-lighter: #93c5fd;
  --primary-surface: #eff6ff;
  --accent: #0284c7;
  --accent-light: #38bdf8;

  /* Neutrals */
  --bg: #ebf3fe;
  --bg-alt: #e0ecfd;
  --surface: #d2e3fc;
  --border: #c4dafb;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Semantic */
  --success: #10b981;
  --gold: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(37,99,235,0.3);

  /* Typography */
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ---- Dark Mode Variables ---- */
[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-alt: #101827;
  --surface: #1a2236;
  --border: #1e293b;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.4);
  --primary-surface: #131d35;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.3rem); }

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Section ---- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-surface);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,0.15);
}

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

.section-header p {
  font-size: 1.1rem;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

/* Background strip behind header - always visible so logo/nav are readable */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  pointer-events: none;
}

[data-theme="dark"] .header::before {
  background: rgba(11, 15, 25, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.header.scrolled {
  padding: 10px 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 1001;
}

.header-logo img {
  height: 72px;
  width: auto;
  transition: transform var(--transition), filter var(--transition);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

[data-theme="dark"] .header-logo img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 20px rgba(96, 165, 250, 0.3));
}

.header.scrolled .header-logo img {
  height: 52px;
}

.header-logo:hover img {
  transform: scale(1.08);
}

[data-theme="dark"] .header-logo:hover img {
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(96, 165, 250, 0.5));
}

.header-logo span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--text);
  transition: color var(--transition);
  letter-spacing: 0.3px;
}

[data-theme="dark"] .header-logo span {
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  position: relative;
}

[data-theme="dark"] .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}

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

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

[data-theme="dark"] .nav-dropdown-toggle {
  color: rgba(255, 255, 255, 0.85);
}

.nav-dropdown-toggle:hover {
  color: var(--primary);
  background: var(--primary-surface);
}

[data-theme="dark"] .nav-dropdown-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-dropdown-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background: var(--bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary) !important;
  font-size: 0.88rem;
  transition: all var(--transition);
}

.nav-dropdown-menu a:hover {
  background: var(--primary-surface) !important;
  color: var(--primary) !important;
  transform: translateX(4px);
}

.nav-dropdown-menu a .icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* CTA Button in Header */
.header-cta {
  padding: 10px 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}

.header-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37,99,235,0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

[data-theme="dark"] .menu-toggle span {
  background: #fff;
}

/* Force active menu close icon to match theme color so it is visible against the white menu drawer */
.menu-toggle.active span {
  background: var(--text) !important;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--primary-deeper);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Show poster image as fallback background (always present behind video) */
.hero-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/images/backgrounds/dubai-skyline.jpg') center/cover no-repeat;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg,
    rgba(15,23,42,0.88) 0%,
    rgba(30,58,138,0.75) 40%,
    rgba(37,99,235,0.6) 100%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
}

.hero-particles .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge .stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--primary-lighter));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.45);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-3px);
}

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

.btn-dark-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-surface);
  transform: translateY(-3px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollMouse 1.5s ease infinite;
}

@keyframes scrollMouse {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--bg);
  padding: 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: -50px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  position: relative;
  transition: background var(--transition);
}

.stat-item:hover {
  background: var(--primary-surface);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  background: var(--bg-alt);
  overflow: hidden;
}

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Top gradient line */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light), var(--primary));
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shimmer overlay */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(37,99,235,0.03) 45%,
    rgba(37,99,235,0.06) 50%,
    rgba(37,99,235,0.03) 55%,
    transparent 60%
  );
  transition: none;
  z-index: 0;
}

.service-card:hover::after {
  left: 100%;
  transition: left 0.7s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(37,99,235,0.12), 0 8px 20px rgba(0,0,0,0.08);
  border-color: rgba(37,99,235,0.25);
}

.service-card:hover::before {
  transform: scaleX(1);
  animation: gradientFlow 2s linear infinite;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.service-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.service-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.service-content {
  padding: 24px 28px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content p {
  flex-grow: 1;
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-surface), rgba(37,99,235,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  font-size: 1.7rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 25px rgba(37,99,235,0.35);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--primary);
}

.service-card p {
  font-size: 0.92rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.service-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.service-card:hover .service-link::after {
  width: calc(100% - 22px);
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-link svg {
  transform: translateX(5px);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--primary);
  color: #fff;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: float 3s ease-in-out infinite;
}

.about-image-float .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.about-image-float .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.about-content h2 {
  margin-bottom: 20px;
}

.about-content > p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  transition: all var(--transition);
}

.about-feature:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-sm);
}

.about-feature .check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.about-feature span {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(15,23,42,0.9) 0%,
    rgba(30,58,138,0.85) 50%,
    rgba(2,132,199,0.8) 100%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 20px;
}

.cta-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

/* ============================================================
   IMAGE SLIDESHOW
   ============================================================ */
.slideshow-section {
  padding: 0;
  overflow: hidden;
}

.slideshow-container {
  position: relative;
  height: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin: 0 24px;
  box-shadow: var(--shadow-xl);
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slideshow-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid rgba(255,255,255,0.6);
}

.slideshow-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,99,235,0.2);
}

.why-card .icon-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
  color: #fff;
  transition: transform var(--transition);
}

.why-card:hover .icon-circle {
  transform: scale(1.1) rotate(10deg);
}

.why-card h3 {
  margin-bottom: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-deeper);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-about .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-about .footer-logo img {
  height: 45px;
}

.footer-about .footer-logo span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  line-height: 1.8;
}

.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(6px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-contact-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.footer-contact-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

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

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ============================================================
   THEME TOGGLE – iPhone-style switch (inside header)
   ============================================================ */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  margin-left: 12px;
  z-index: 1001;
}

.theme-switch {
  position: relative;
  width: 56px;
  height: 30px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Hidden native checkbox */
.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

/* Track */
.theme-switch .switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #87CEEB 0%, #60A5FA 100%);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(255, 255, 255, 0.1);
  transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Dark mode track */
[data-theme="dark"] .theme-switch .switch-track {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(255, 255, 255, 0.04);
}

/* Knob */
.theme-switch .switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 0%, #f0f0f0 100%);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Knob moved right in dark mode */
[data-theme="dark"] .theme-switch .switch-knob {
  transform: translateX(26px);
  background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Hover glow effect */
.theme-switch:hover .switch-knob {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.22),
    0 1px 3px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 12px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .theme-switch:hover .switch-knob {
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 1px 3px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 12px rgba(148, 163, 184, 0.3);
}

/* Active press effect */
.theme-switch:active .switch-knob {
  width: 28px;
}

[data-theme="dark"] .theme-switch:active .switch-knob {
  transform: translateX(22px);
  width: 28px;
}

/* Sun icon in track (left side) */
.theme-switch .switch-icon-sun {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  z-index: 1;
  color: #fbbf24;
  opacity: 1;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-switch .switch-icon-sun {
  opacity: 0.3;
}

/* Moon icon in track (right side) */
.theme-switch .switch-icon-moon {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  z-index: 1;
  color: #e2e8f0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

[data-theme="dark"] .theme-switch .switch-icon-moon {
  opacity: 1;
  color: #fbbf24;
}

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  box-shadow: 0 4px 15px rgba(37,99,235,0.3);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 25px rgba(37,99,235,0.4);
}

/* ============================================================
   SERVICE PAGE HERO
   ============================================================ */
.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, var(--primary-deeper), var(--primary-dark));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(37,99,235,0.08);
  animation: float 6s ease-in-out infinite;
}

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

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: rgba(255,255,255,0.9);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
  color: var(--primary-light);
}

/* ============================================================
   SERVICE DETAIL PAGE
   ============================================================ */
.service-detail {
  padding: 80px 0;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.service-detail-content h2 {
  margin-bottom: 20px;
}

.service-detail-content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.service-detail-features {
  margin-top: 32px;
}

.service-detail-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail-feature:last-child {
  border-bottom: none;
}

.service-detail-feature .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.service-detail-feature h4 {
  margin-bottom: 6px;
}

.service-detail-feature p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.service-detail-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 120px;
}

.service-detail-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-form {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.contact-info-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.2);
}

.contact-info-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-info-card p {
  font-size: 0.9rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.3); }
  50% { box-shadow: 0 0 40px rgba(37,99,235,0.5); }
}

/* Scroll animation classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children - fast, smooth animation */
.stagger-children > * {
  opacity: 0;
  transform: translateY(25px) scale(0.97);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .header-logo img { height: 60px; }
  .header.scrolled .header-logo img { height: 46px; }
  .header-logo span { font-size: 1.3rem; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* ---- Mobile Header ---- */
  .header { padding: 12px 0; }
  .header.scrolled { padding: 8px 0; }

  .header-logo img {
    height: 52px;
  }
  .header.scrolled .header-logo img {
    height: 42px;
  }
  .header-logo span {
    font-size: 1.15rem;
  }

  /* ---- Mobile Navigation ---- */
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 24px 40px;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    color: var(--text) !important;
    font-size: 1.1rem;
    padding: 12px 24px;
    width: 100%;
    text-align: center;
    border-radius: var(--radius-md);
    background: none !important;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: var(--primary-surface) !important;
    color: var(--primary) !important;
  }

  /* Dropdown - hidden by default on mobile, shown on click */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    color: var(--text) !important;
    font-size: 1.1rem;
    padding: 12px 24px;
    border-radius: var(--radius-md);
  }

  .nav-dropdown-toggle:hover {
    background: var(--primary-surface) !important;
    color: var(--primary) !important;
  }

  .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    left: auto !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--surface) !important;
    border-radius: var(--radius-md) !important;
    margin-top: 4px !important;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0s 0.35s;
    padding: 0;
    min-width: unset !important;
    width: 100% !important;
    display: none; /* Hide element completely when closed */
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block !important; /* Show element when open */
    max-height: 1000px !important; /* High enough to contain all items without truncation */
    opacity: 1 !important;
    visibility: visible !important;
    padding: 8px !important;
    transform: none !important;
    left: auto !important;
    transition: max-height 0.45s ease, opacity 0.25s ease;
  }

  /* Override desktop hover on mobile */
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    max-height: 0 !important;
    padding: 0 !important;
    display: none !important;
    transform: none !important;
    left: auto !important;
  }
  .nav-dropdown.open:hover .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 1000px !important;
    padding: 8px !important;
    display: block !important;
    transform: none !important;
    left: auto !important;
  }

  .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    justify-content: flex-start;
    color: var(--text-secondary) !important;
    background: transparent !important;
  }

  .nav-dropdown-menu a:hover {
    background: var(--primary-surface) !important;
    color: var(--primary) !important;
  }

  .menu-toggle { display: flex; }

  /* ---- Mobile Grids ---- */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .service-card:hover {
    transform: translateY(-5px);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -30px;
  }

  .stat-item {
    padding: 28px 16px;
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .about-features { grid-template-columns: 1fr; }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .why-card {
    padding: 32px 24px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* ---- Mobile Hero ---- */
  .hero-content {
    padding: 130px 20px 90px;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 8px 16px;
    margin-bottom: 24px;
  }

  .hero-description {
    font-size: 1rem;
    margin: 0 auto 32px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  /* ---- Mobile Slideshow ---- */
  .slideshow-container { height: 260px; margin: 0 16px; }

  /* ---- Mobile About ---- */
  .about-image img { height: 300px; }
  .about-image-float {
    position: relative;
    bottom: auto;
    right: auto;
    display: inline-block;
    margin-top: 16px;
  }

  /* ---- Mobile CTA ---- */
  .cta-section { padding: 80px 0; }
  .cta-content h2 { font-size: 1.6rem; }
  .cta-content p { font-size: 1rem; }

  /* ---- Mobile Contact ---- */
  .contact-form { padding: 24px 20px; }

  /* ---- Mobile Service Detail ---- */
  .service-detail-image {
    position: static;
  }
  .service-detail-image img {
    height: 300px;
  }
  .page-hero {
    padding: 120px 0 60px;
  }

  /* ---- Mobile Floating Buttons ---- */
  .theme-switch-wrapper {
    margin-left: 8px;
  }
  .theme-switch {
    width: 48px;
    height: 26px;
  }
  .theme-switch .switch-knob {
    width: 20px;
    height: 20px;
  }
  [data-theme="dark"] .theme-switch .switch-knob {
    transform: translateX(22px);
  }
  [data-theme="dark"] .theme-switch:active .switch-knob {
    transform: translateX(18px);
  }
  .theme-switch .switch-icon-sun {
    width: 12px;
    height: 12px;
    left: 6px;
  }
  .theme-switch .switch-icon-moon {
    width: 10px;
    height: 10px;
    right: 6px;
  }
  .whatsapp-btn {
    width: 50px;
    height: 50px;
    right: 16px;
    bottom: 16px;
  }
  .whatsapp-btn svg {
    width: 24px;
    height: 24px;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    right: 16px;
    bottom: 76px;
  }

  /* ---- Mobile Section Header ---- */
  .section-header {
    margin: 0 auto 40px;
  }
  .section-header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-description { font-size: 0.95rem; }
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-buttons .btn {
    justify-content: center;
    padding: 14px 24px;
  }

  .header-logo img { height: 44px; }
  .header.scrolled .header-logo img { height: 38px; }
  .header-logo span { font-size: 1.05rem; }

  .stat-item { padding: 20px 10px; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.8rem; }

  .service-card {
    padding: 24px 18px;
  }
  .service-icon {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }

  .about-image img { height: 240px; }

  .slideshow-container { height: 200px; margin: 0 12px; }

  .why-card .icon-circle {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }

  .footer-about p { font-size: 0.85rem; }
  .footer-links a { font-size: 0.85rem; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-description { font-size: 0.88rem; }
  .hero-content { padding: 120px 16px 80px; }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }

  .header-logo img { height: 38px; }
  .header.scrolled .header-logo img { height: 34px; }
  .header-logo span { font-size: 0.95rem; }

  .container { padding: 0 16px; }

  .stats-grid { margin-top: -20px; }
  .stat-item { padding: 16px 8px; }
  .stat-number { font-size: 1.5rem; }
  .stat-label { font-size: 0.75rem; }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .section-header h2 { font-size: 1.5rem; }

  .about-image img { height: 200px; }

  .slideshow-container { height: 180px; }

  .cta-content h2 { font-size: 1.4rem; }
  .cta-content p { font-size: 0.9rem; }
}

/* ============================================================
   TAX CALCULATOR SECTION
   ============================================================ */
.calculator-section {
  position: relative;
  background: var(--bg);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 992px) {
  .calc-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.calc-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}

.calc-card:hover {
  box-shadow: var(--shadow-lg);
}

.calc-title-box {
  margin-bottom: 24px;
}

.calc-title-box h3 {
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.calc-title-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.calc-form-group {
  margin-bottom: 28px;
}

.calc-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.calc-input-header label {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.calc-number-input-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.calc-number-input-wrapper input {
  width: 140px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
}

.calc-number-input-wrapper .currency-label {
  position: absolute;
  right: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.calc-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.calc-range-slider {
  flex-grow: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.calc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.calc-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease;
}

.calc-range-slider::-moz-range-thumb:hover {
  transform: scale(1.25);
}

/* Results Card (Sidebar) */
.calc-results-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-md);
}

.calc-results-header {
  border-bottom: 2px dashed var(--border);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.calc-results-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.calc-results-header p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.calc-row span:first-child {
  color: var(--text-secondary);
}

.calc-row span:last-child {
  font-weight: 600;
  color: var(--text);
}

.calc-row.highlighted-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin: 20px 0;
}

.calc-row.tax-row {
  margin-bottom: 12px;
}

.calc-row.tax-row span:last-child {
  color: #ef4444; /* Red color for tax */
  font-size: 1.3rem;
  font-weight: 800;
}

[data-theme="dark"] .calc-row.tax-row span:last-child {
  color: #fca5a5;
}

.calc-row.net-row span:last-child {
  color: var(--success);
  font-size: 1.3rem;
  font-weight: 800;
}

.calc-formula-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 20px;
  background: rgba(0,0,0,0.02);
  padding: 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

[data-theme="dark"] .calc-formula-desc {
  background: rgba(255,255,255,0.02);
}

.calc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
  background: var(--success);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.calc-cta-btn:hover {
  transform: translateY(-2px);
  background: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.calc-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
  position: relative;
  background: var(--bg-alt);
}

.faq-container {
  max-width: 850px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.faq-header {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  outline: none;
}

.faq-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  font-family: var(--font-body);
  transition: color var(--transition);
  padding-right: 20px;
  line-height: 1.4;
}

.faq-item.active .faq-header h3 {
  color: var(--primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 28px;
}

.faq-item.active .faq-content {
  /* max-height is set in JS */
  padding-bottom: 24px;
}

.faq-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   FAQ CUSTOM QUESTION BOX
   ============================================================ */
.faq-ask-box {
  margin-top: 48px;
  text-align: center;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.faq-ask-box h4 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--text);
  font-family: var(--font-heading);
}

.faq-ask-box p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.faq-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.faq-input-group input {
  flex-grow: 1;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.faq-input-group input:focus {
  border-color: var(--primary);
}

.faq-input-group button {
  padding: 14px 28px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .faq-ask-box {
    padding: 24px 16px;
    margin-left: 16px;
    margin-right: 16px;
  }
  .faq-input-group {
    flex-direction: column;
    align-items: stretch;
  }
  .faq-input-group button {
    justify-content: center;
    width: 100%;
  }
  .faq-input-group input {
    width: 100%;
  }
}

