:root {
  --color-primary: #0B3A5B; /* Deep Ice Blue */
  --color-secondary: #38BDF8; /* Cool Cyan */
  --color-bg: #F8FCFF; /* Ice White */
  --color-surface: #EAF4FA; /* Soft Blue Gray */
  --color-text: #082032; /* Dark Navy for Text */
  --color-text-light: #5A7184;
  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px 0 rgba(11, 58, 91, 0.1);
  
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 12px;
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Tajawal', sans-serif;
}

html, body {
  overflow-x: hidden;
}
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Utilities */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #1a5c8c);
  color: #fff;
  box-shadow: 0 4px 15px rgba(11, 58, 91, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(11, 58, 91, 0.4);
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  background: #2ea8e0;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-primary);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.header.scrolled {
  padding: 10px 0;
  background: rgba(248, 252, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

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

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--color-secondary);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: var(--transition-smooth);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.8) 0%, transparent 1%);
  background-size: 30px 30px;
  opacity: 0.5;
  animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* New Split CSS */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ac-split-wrapper {
  position: relative;
  width: min(620px, 92vw);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  filter: drop-shadow(0 20px 40px rgba(11, 58, 91, 0.15));
}

.ac-hero-unit {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 3;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ac-split-half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background-image: url("assets/images/ac-unit.png");
  background-size: 200% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 4;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  pointer-events: none;
}

.ac-split-left {
  left: 0;
  background-position: left center;
}

.ac-split-right {
  right: 0;
  background-position: right center;
}

.split-light {
  position: absolute;
  top: 8%;
  bottom: 8%;
  right: 50%;
  width: 4px;
  transform: translateX(50%) scaleY(0);
  background: linear-gradient(to bottom, transparent, #38BDF8, #ffffff, #38BDF8, transparent);
  box-shadow: 0 0 25px rgba(56,189,248,.9);
  opacity: 0;
  z-index: 5;
  transition: opacity .4s ease, transform .7s ease;
}

/* Scroll Classes */
.hero.is-splitting .ac-hero-unit {
  opacity: 0;
  transform: scale(1.02);
}

.hero.is-splitting .ac-split-half {
  opacity: 1;
}

.hero.is-splitting .ac-split-left {
  transform: translateX(-38px);
}

.hero.is-splitting .ac-split-right {
  transform: translateX(38px);
}

.hero.is-splitting .split-light {
  opacity: 1;
  transform: translateX(50%) scaleY(1);
}

.hero.split-open .ac-split-left {
  transform: translateX(-115%);
}

.hero.split-open .ac-split-right {
  transform: translateX(115%);
}

.hero.split-open .split-light {
  opacity: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.7;
  animation: bounceHint 2s infinite;
}

@keyframes bounceHint {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

/* General layout utilities for sections */
.section-desc {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.centered {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* 1. Detailed Services Section */
.services-section {
  padding: 100px 0;
  background: var(--color-bg);
  position: relative;
  z-index: 20;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}
.service-card {
  padding: 40px 30px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(11, 58, 91, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(11, 58, 91, 0.1);
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(to top, rgba(56, 189, 248, 0.1), transparent);
  transition: height 0.4s ease;
  z-index: 0;
}
.service-card:hover::before { height: 100%; }
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.service-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.2;
}
.service-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
}
.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}
.service-card p {
  color: var(--color-text-light);
  margin-bottom: 25px;
  position: relative;
  z-index: 1;
}
.btn-sm {
  padding: 8px 20px;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

/* 2. Common AC Problems Section */
.ac-problems-section {
  padding: 100px 0;
  background: var(--color-surface);
}
.problems-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.problems-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}
.problems-ac-img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 40px rgba(11, 58, 91, 0.15));
}
.glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  z-index: 1;
}
.floating-badge {
  position: absolute;
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 10px 20px rgba(11, 58, 91, 0.1);
  z-index: 3;
  animation: float 4s ease-in-out infinite;
}
.badge-1 { top: 10%; right: 10%; animation-delay: 0s; }
.badge-2 { top: 50%; left: -5%; animation-delay: 1s; }
.badge-3 { bottom: 15%; right: 20%; animation-delay: 2s; }

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

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.accordion-item {
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11, 58, 91, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
}
.accordion-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--color-text);
  font-weight: 700;
}
.accordion-icon {
  width: 24px;
  height: 24px;
  position: relative;
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  transition: all 0.3s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::before { width: 14px; height: 2px; }
.accordion-icon::after { width: 2px; height: 14px; }
.accordion-item.active .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.accordion-item.active .accordion-header h3 { color: var(--color-primary); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.accordion-body p {
  padding: 0 20px 20px;
  color: var(--color-text-light);
  margin: 0;
}

/* 3. Process Section */
.process-section {
  padding: 100px 0;
  background: var(--color-bg);
  overflow: hidden;
}
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 60px;
  gap: 20px;
}
.timeline-line {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to left, transparent, var(--color-secondary), transparent);
  z-index: 1;
}
.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 2;
}
.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-surface);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.2);
}
.timeline-step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.timeline-step p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* 4. Service Areas Section */
.service-areas-section {
  padding: 100px 0;
  background: var(--color-surface);
  position: relative;
}
.areas-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
}
.chip {
  padding: 10px 24px;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: default;
}
.chip:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(11, 58, 91, 0.05);
  border-color: var(--color-secondary);
}
.areas-footer-text {
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* 5. Before & After Section */
.before-after-section {
  padding: 100px 0;
  background: var(--color-bg);
}
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
.compare-card {
  padding: 40px;
  border-radius: var(--radius-lg);
}
.before-card {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.after-card {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 0 40px rgba(56, 189, 248, 0.05);
}
.compare-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.before-card .compare-header { color: #64748b; }
.after-card .compare-header { color: var(--color-secondary); }
.compare-header h3 { margin: 0; color: inherit; }
.compare-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-weight: 500;
}
.before-card .compare-list li::before {
  content: "×";
  color: #ef4444;
  font-size: 1.5rem;
  font-weight: bold;
}
.after-card .compare-list li::before {
  content: "âœ“";
  color: #10b981;
  font-weight: bold;
}
.comparison-footer {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* 6. Mid CTA Section */
.mid-cta-section {
  padding: 60px 0 100px;
  background: var(--color-bg);
}
.mid-cta-card {
  background: linear-gradient(135deg, var(--color-primary), #154c79);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mid-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 60%);
  z-index: 1;
}
.mid-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.mid-cta-content h2 { color: #fff; margin-bottom: 15px; }
.mid-cta-content p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }
.mid-cta-icon {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.2);
  transform: rotate(-15deg);
}
.mid-cta-content .cta-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* Sticky Mobile CTA */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  z-index: 1000;
  border-top: 1px solid var(--color-surface);
}

.mobile-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.mobile-cta-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  color: #fff;
  gap: 4px;
}

.mobile-cta-btn.call { background: var(--color-primary); }
.mobile-cta-btn.whatsapp { background: #25D366; }
.mobile-cta-btn.check { background: var(--color-secondary); }

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  min-width: 200px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border: 1px solid var(--glass-border);
}
.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--color-text);
  font-weight: 500;
  transition: background 0.3s ease;
}
.dropdown-menu a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

/* Internal Hero (Service Pages) */
.internal-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0B3A5B 0%, #154c79 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.internal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to top, var(--color-bg), transparent);
}
.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--color-secondary);
}
.breadcrumb a:hover {
  text-decoration: underline;
}
.breadcrumb span {
  opacity: 0.5;
}
.internal-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.internal-hero-text h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 20px;
}
.internal-hero-text p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.internal-hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.internal-hero-visual img {
  max-width: 80%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
  animation: floatImage 6s ease-in-out infinite;
}

/* Service Page Content */
.service-content-section {
  padding: 60px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.main-content {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.main-content h2 {
  font-size: 1.8rem;
  margin: 30px 0 20px;
  border-right: 4px solid var(--color-secondary);
  padding-right: 15px;
}
.main-content h2:first-child {
  margin-top: 0;
}
.main-content p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.main-content ul {
  margin-bottom: 20px;
  padding-right: 20px;
}
.main-content ul li {
  margin-bottom: 10px;
  color: var(--color-text-light);
  position: relative;
}
.main-content ul li::before {
  content: 'âœ“';
  color: var(--color-secondary);
  position: absolute;
  right: -20px;
  font-weight: bold;
}

/* Sidebar */
.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar-widget {
  background: var(--color-surface);
  padding: 30px;
  border-radius: var(--radius-lg);
}
.sidebar-widget h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.related-services-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.related-services-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.related-services-list a:hover {
  border-color: var(--color-secondary);
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.1);
}

/* Footer */
.main-footer {
  background: #082032;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about .logo-main {
  color: #fff;
}
.footer-about p {
  margin-top: 15px;
  margin-bottom: 20px;
}
.footer-links h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.2rem;
}
.footer-links ul li {
  margin-bottom: 12px;
}
.footer-links a:hover {
  color: var(--color-secondary);
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero-actions, .trust-badges {
    justify-content: center;
  }
  .hero-subtitle {
    margin: 0 auto 30px;
  }
  .problems-layout { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .internal-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .breadcrumb {
    justify-content: center;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html, body {
  overflow-x: hidden;
}
body {
    padding-bottom: 70px; /* Space for mobile CTA */
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 30px 30px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: var(--transition-smooth);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }
  
  .header-actions {
      display: none;
  }

  .ac-split-wrapper {
    width: min(360px, 92vw);
    margin: 0 auto;
  }

  .hero.split-open .ac-split-left {
    transform: translateX(-42px);
  }

  .hero.split-open .ac-split-right {
    transform: translateX(42px);
  }

  .timeline {
    flex-direction: column;
    gap: 30px;
  }
  
  .timeline-line {
    top: 0;
    bottom: 0;
    left: auto;
    right: 24px;
    width: 2px;
    height: auto;
    background: linear-gradient(to bottom, transparent, var(--color-secondary), transparent);
  }
  
  .timeline-step {
    display: flex;
    text-align: right;
    align-items: flex-start;
    gap: 20px;
  }
  
  .step-number {
    margin: 0;
    flex-shrink: 0;
    z-index: 2;
  }
  
  .mid-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }
  
  .mid-cta-icon {
    display: none;
  }
  
  .mid-cta-content .cta-actions {
    justify-content: center;
  }

  .mobile-sticky-cta {
    display: block;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 20px;
    display: none;
  }
  
  .nav-item-dropdown.active .dropdown-menu {
    display: block;
  }
}

/* ==========================================================================
   Prompt 4 Sections: Why Us, Work Gallery, Customer Experience, FAQ, Final CTA
   ========================================================================== */

/* --- Why Us Section --- */
.why-us-section {
  padding: 80px 0;
  position: relative;
  background: var(--bg-color);
  overflow: hidden;
}
.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}
@media (min-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr 2fr;
  }
}
.why-us-large-card {
  padding: 40px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.why-us-large-card h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--color-primary);
  position: relative;
  z-index: 1;
}
.why-us-large-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}
.why-us-large-card svg {
  position: absolute;
  bottom: -20px;
  left: -20px;
  opacity: 0.05;
  z-index: 0;
}
.why-us-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .why-us-features {
    grid-template-columns: repeat(2, 1fr);
  }
}
.why-us-features .feature-card {
  padding: 25px;
  border-radius: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}
.why-us-features .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 168, 255, 0.1);
  border-color: rgba(0, 168, 255, 0.3);
}
.why-us-features .feature-card svg {
  color: var(--color-primary);
  margin-bottom: 15px;
}
.why-us-features .feature-card h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}
.why-us-features .feature-card p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0;
}

/* --- Work Gallery Section --- */
.work-gallery-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(226, 232, 240, 0.5) 100%);
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery-card {
  background: var(--bg-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-5px);
}
.gallery-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #f0f4f8;
}
.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover .gallery-image-wrapper img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
}
.gallery-badge {
  background: var(--color-primary);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}
.gallery-content {
  padding: 20px;
}
.gallery-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}
.gallery-content p {
  font-size: 0.95rem;
  color: var(--text-color);
  margin: 0;
}
.gallery-cta {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.gallery-cta p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-dark);
}
.mt-3 {
  margin-top: 15px;
}
.justify-center {
  justify-content: center;
}

/* --- Customer Experience Section --- */
.customer-experience-section {
  padding: 80px 0;
  background: var(--bg-color);
}
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 768px) {
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .experience-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.experience-card {
  padding: 30px 20px;
  text-align: center;
  border-radius: 16px;
}
.experience-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 168, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--color-primary);
}
.experience-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--color-dark);
}
.experience-card p {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* --- Modified Service Areas Section --- */
.areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}
@media (min-width: 992px) {
  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.area-card {
  padding: 30px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.area-card h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 15px;
}
.areas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}
.areas-chips .chip {
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  background: white;
  border: 1px solid rgba(0, 168, 255, 0.2);
  color: var(--color-dark);
  transition: all 0.3s ease;
}
.areas-chips .chip:hover {
  background: var(--color-primary);
  color: white;
}
.area-desc {
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}
.mt-4 {
  margin-top: 40px;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(226, 232, 240, 0.5) 0%, var(--bg-color) 100%);
}
.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0;
}
/* Reusing the existing .accordion classes for FAQ */

/* --- Final CTA Section --- */
.final-cta-section {
  padding: 40px 0 80px; /* added padding top */
  background: var(--bg-color);
}
.final-cta-card {
  position: relative;
  border-radius: 24px;
  padding: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.2);
}
.final-cta-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #154c79 0%, var(--color-primary) 100%);
  opacity: 0.95;
  z-index: 0;
}
.final-cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.final-cta-content h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 15px;
}
.final-cta-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.6;
}
.final-cta-icon {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.2);
}
@media (max-width: 768px) {
  .final-cta-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
  .final-cta-icon {
    display: none;
  }
  .final-cta-content .cta-actions {
    justify-content: center;
  }
}

/* Adjust layout for mobile spacing due to sticky CTA */
@media (max-width: 768px) {
  html, body {
  overflow-x: hidden;
}
body {
    padding-bottom: 80px;
  }
  .final-cta-section {
    padding-bottom: 40px;
  }
}

/* ==========================================================================
   Motion System & Animations
   ========================================================================== */

/* 1. Hero Ambient Effects */
.aurora-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(11, 58, 91, 0.05) 40%, transparent 70%);
  z-index: 0;
  animation: breatheGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes breatheGlow {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

.air-stream {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  height: 1px;
  width: 150px;
  opacity: 0;
  animation: airDrift 10s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes airDrift {
  0% { transform: translateX(100vw); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateX(-50vw); opacity: 0; }
}
.air-stream:nth-child(1) { top: 20%; animation-delay: 0s; animation-duration: 12s; width: 200px; }
.air-stream:nth-child(2) { top: 40%; animation-delay: 3s; animation-duration: 9s; width: 120px; }
.air-stream:nth-child(3) { top: 70%; animation-delay: 1s; animation-duration: 15s; width: 250px; }
.air-stream:nth-child(4) { top: 85%; animation-delay: 5s; animation-duration: 11s; width: 180px; }

.ac-floating {
  animation: floatingAC 5s ease-in-out infinite alternate;
}
@keyframes floatingAC {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

/* 2. Scroll Reveal Animations */
.reveal-up, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: opacity, transform;
}

.js-ready .reveal-up {
  opacity: 0;
  transform: translateY(30px);
}
.js-ready .reveal-left {
  opacity: 0;
  transform: translateX(-30px);
}
.js-ready .reveal-right {
  opacity: 0;
  transform: translateX(30px);
}
.js-ready .reveal-scale {
  opacity: 0;
  transform: scale(0.95);
}

.js-ready .reveal-in {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* 3. Button Active states & animated glow */
.btn:active {
  transform: scale(0.96) !important;
}
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shineSwipe 4s infinite;
}
@keyframes shineSwipe {
  0%, 70% { left: -100%; }
  100% { left: 200%; }
}

/* 4. Frost Edge Shine on Cards */
.glass-panel, .gallery-card, .area-card, .feature-card {
  position: relative;
  overflow: hidden;
}
.glass-panel::after, .gallery-card::after, .area-card::after, .feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: rotate(45deg) translateY(100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 0;
}
.glass-panel:hover::after, .gallery-card:hover::after, .area-card:hover::after, .feature-card:hover::after {
  transform: rotate(45deg) translateY(-100%);
}
.glass-panel:hover, .area-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

/* 5. Icons Micro Interactions */
.service-card:hover .service-icon, .feature-card:hover svg, .experience-card:hover .experience-icon {
  transform: scale(1.1) rotate(3deg);
  transition: transform 0.3s ease;
}
.service-icon, .experience-icon {
  transition: transform 0.3s ease;
}

/* 6. Header Load Animation */
.header {
  animation: fadeDown 0.8s ease-out forwards;
}
@keyframes fadeDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* 7. FAQ Accordion Active Glow */
.accordion-item.active {
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, #fff 0%, rgba(234, 244, 250, 0.5) 100%);
}

/* 8. Image Zoom in Gallery */
.gallery-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 58, 91, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.gallery-card:hover .gallery-image-wrapper::after {
  opacity: 1;
}
.gallery-card:hover .gallery-content h3 {
  color: var(--color-secondary);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* 9. Final CTA Icy Gradient */
.final-cta-bg {
  animation: icyBreathing 10s ease-in-out infinite alternate;
}
@keyframes icyBreathing {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(5deg) brightness(1.1); }
}

/* Delay Utils */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
  .ac-split-half,
  .ac-hero-unit,
  .split-light,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .reveal-scale,
  .glass-panel,
  .gallery-card,
  .area-card,
  .feature-card,
  .btn,
  .accordion-item {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
