/* ========================================================================== 
   WECANGET — styles.css (DARK MODE ONLY)
   ========================================================================== */

/* THEME TOKENS */
:root{
  --bg: #172554;
  --surface: #131e45;
  --surface-2: #1d2e6b;
  --primary: #93C5FD;
  --primary-600: #60A5FA;
  --secondary: #C4B5FD;
  --accent: #6EE7B7;
  --muted: #94A3B8;
  --text: #F8FAFC;
  --text-2: #E6EEF8;
  --border: #2d3b6c;

  --font-sans: "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Liberation Sans", sans-serif;
  --font-head: "Helvetica Neue", Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --base-size: 16px;
  --line-height: 1.6;

  --container-max: 1200px;
  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 3rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 10px rgba(2,6,23,0.6);
  --shadow-md: 0 10px 30px rgba(2,6,23,0.7);

  --bp-sm: 520px;
  --bp-md: 820px;
  --bp-lg: 1100px;
}

/* RESET & BASE */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html,body { height: 100%; }
html { font-size: var(--base-size); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: var(--line-height);
}

/* Links & images */
a { color: var(--primary); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================

   LOGO STYLING - Responsive & Optimized
   ========================================================================== */

/* LOGO CONTAINER */
.logo {
  flex-shrink: 0; /* Prevent logo from shrinking in flex layout */
  display: flex;
  align-items: center;
}

/* LOGO IMAGE - Desktop Default */
.logo img {
  height: 60px; /* Fixed height for consistency */
  width: auto; /* Maintain aspect ratio */
  display: block;
  object-fit: contain; /* Ensure image scales properly */
  transition: all 0.3s ease; /* Smooth scaling on resize */
}

/* LOGO LINK */
.logo a {
  display: block;
  line-height: 0; /* Remove extra space below image */
}

/* TABLET RESPONSIVE (820px and below) */
@media (max-width: 820px) {
  .logo img {
    height: 55px; /* Slightly smaller on tablet */
  }
}

/* MOBILE RESPONSIVE (520px and below) */
@media (max-width: 520px) {
  .logo img {
    height: auto;
    width: auto;
    max-width: none; /* Remove any width restrictions */
  }
  
  .logo {
    flex: 1; /* Allow logo container to expand */
    min-width: 0; /* Allow shrinking */
  }
}

/* EXTRA SMALL MOBILE (375px and below) */
@media (max-width: 375px) {
  .logo img {
    height: 48px; /* Even smaller for very small screens */
  }
}

/* HIGH-DPI (RETINA) DISPLAYS */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo img {
    /* Ensure you have @2x logo version for retina displays */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* PRINT STYLING */
@media print {
  .logo img {
    filter: brightness(0); /* Make logo black for printing */
    max-width: 120px;
  }
}

/* DARK MODE COMPATIBILITY (Already dark, but future-proof) */
@media (prefers-color-scheme: dark) {
  .logo img {
    /* Logo should already be optimized for dark background */
    opacity: 0.95;
  }
}

/* REDUCED MOTION PREFERENCE */
@media (prefers-reduced-motion: reduce) {
  .logo img {
    transition: none; /* Remove animations for accessibility */
  }
}

/* LARGE DESKTOP ENHANCEMENT (1200px and above) */
@media (min-width: 1200px) {
  .logo img {
    height: 65px; /* Slightly larger on big screens */
    max-width: 220px;
  }
}

/* ==========================================================================
   END OF LOGO STYLING
   ========================================================================== */

/* Accessibility helpers */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility spacing */
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.text-center { text-align: center; }

/* TYPOGRAPHY */
h1,h2,h3,h4,h5 { font-family: var(--font-head); color: var(--text); margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--text-2); }
.lead { color: var(--muted); font-size: 1rem; }

.header-row { 
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;
    padding:.9rem 2%;
    margin: 0;
    width: 100%;
}
.main-nav .nav-list { 
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    gap:.6rem;
    align-items:center;
}
.nav-link{ 
    color:var(--text); 
    padding:1rem 1.5rem; 
    border-radius:8px; 
    font-weight:600; 
    font-size:.98rem;
    background: var(--surface-2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    background: var(--primary);
    color: #062038;
    transform: translateY(-2px);
}

.header-cta .btn { font-size:.9rem; padding: .75rem 1.5rem; border-radius:8px; min-width: 225px;  }
.header-cta .btn-primary { background: linear-gradient(90deg,var(--primary), var(--primary-600)); color: #062038; box-shadow: var(--shadow-sm); border: none; }
.header-cta .btn-secondary { background: transparent; color: var(--primary); border: 1px solid rgba(255,255,255,0.06); }
.header-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* GRID, CARDS & SECTIONS */
.grid { display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items:stretch; }
.card { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid rgba(255,255,255,0.03); padding: 1rem; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--text-2); }
.card h3 { color:var(--text); margin-bottom:.5rem; }
.features { display:grid; gap:1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* BUTTONS */
.btn { display:inline-block; text-decoration:none; cursor:pointer; border:0; transition: transform .12s ease, box-shadow .12s ease; }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-600)); color: #062038; padding:.6rem 1rem; border-radius:8px; font-weight:700; box-shadow: 0 6px 18px rgba(8,16,40,0.45); }
.btn-primary:hover { transform: translateY(-3px); opacity:.98; }
.btn-secondary { background: transparent; color: var(--text-2); padding:.55rem .9rem; border-radius:8px; border: 1px solid rgba(255,255,255,0.04); font-weight:600; }

/* ==========================================================================
   COMBINED HERO & HEADER SECTION
   ========================================================================== */

.hero-innovative {
  position: relative;
  width: 100vw;
  margin-left: -50vw;
  left: 50%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0f1a3d;
}

/* ONE consistent header for ALL pages */
header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(19, 30, 69, 0.95) !important;
  backdrop-filter: blur(10px);
}

/* Ensure CTA buttons match services.css design on all pages */
.header-cta .btn {
  padding: 1rem 1.5rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none;
}

.header-cta .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-600)) !important;
  color: #062038 !important;
  border: 2px solid var(--primary) !important;
}

.header-cta .btn-primary:hover {
  background: transparent !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
}

.header-cta .btn-secondary {
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
}

.header-cta .btn-secondary:hover {
  background: var(--primary) !important;
  color: #062038 !important;
  transform: translateY(-2px);
}

/* Hero content adjustment - push down to account for header */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  margin-top: 80px; /* Space for header */
}

/* Wave Container */
.wave-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

/* Individual Wave Layers */
.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  animation: waveMove 8s linear infinite;
  opacity: 0.6;
}

/* Wave 1 - Main Crest Wave */
.wave-1 {
  background-image: 
    radial-gradient(ellipse 40% 15% at 50% 100%, #1e40af 30%, transparent 70%),
    radial-gradient(ellipse 40% 15% at 30% 100%, #1d4ed8 25%, transparent 65%),
    radial-gradient(ellipse 40% 15% at 70% 100%, #1e3a8a 35%, transparent 70%);
  background-size: 50% 100%, 40% 90%, 45% 95%;
  animation-duration: 12s;
  opacity: 0.7;
}

/* Wave 2 - Secondary Ripple Wave */
.wave-2 {
  background-image: 
    radial-gradient(ellipse 30% 8% at 20% 100%, #1e3a8a 20%, transparent 60%),
    radial-gradient(ellipse 30% 8% at 60% 100%, #1e40af 25%, transparent 65%),
    radial-gradient(ellipse 30% 8% at 90% 100%, #1d4ed8 15%, transparent 55%);
  background-size: 35% 80%, 30% 75%, 40% 85%;
  animation-duration: 10s;
  animation-direction: reverse;
  opacity: 0.5;
}

/* Wave 3 - Deep Undertow */
.wave-3 {
  background-image: 
    radial-gradient(ellipse 50% 5% at 40% 100%, #172554 15%, transparent 50%),
    radial-gradient(ellipse 50% 5% at 80% 100%, #1e3a8a 10%, transparent 45%);
  background-size: 60% 60%, 55% 65%;
  animation-duration: 15s;
  opacity: 0.4;
}

@keyframes waveMove {
  0% {
    transform: translateX(0) translateZ(0);
  }
  100% {
    transform: translateX(-50%) translateZ(0);
  }
}

/* Wave Foam/Crest Highlights */
.wave-foam {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 20%;
  background: 
    radial-gradient(ellipse 20% 80% at 25% 0%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(ellipse 20% 80% at 75% 0%, rgba(255,255,255,0.08) 0%, transparent 50%);
  background-size: 50% 100%;
  animation: waveMove 6s linear infinite;
  opacity: 0.3;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(147, 197, 253, 0.3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-innovative h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text), var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.typing-text {
  color: var(--primary);
  border-right: 3px solid var(--primary);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { border-color: var(--primary); }
  50% { border-color: transparent; }
}

.hero-innovative .lead {
  font-size: 1.4rem;
  color: var(--text-2);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Floating Service Icons */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.service-icon-float {
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float-icon 8s ease-in-out infinite;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.service-icon-float:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

.service-icon-float i {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes float-icon {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  33% { 
    transform: translateY(-30px) rotate(120deg); 
  }
  66% { 
    transform: translateY(15px) rotate(240deg); 
  }
}

/* Icon positions */
.icon-1 { top: 20%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 60%; left: 85%; animation-delay: -2s; }
.icon-3 { top: 80%; left: 15%; animation-delay: -4s; }
.icon-4 { top: 30%; left: 80%; animation-delay: -6s; }
.icon-5 { top: 70%; left: 70%; animation-delay: -1s; }
.icon-6 { top: 40%; left: 20%; animation-delay: -3s; }
/* ADD THESE 4 EXTRA ICONS FOR HEADER AREA */
.icon-7 { top: 10%; left: 25%; animation-delay: -5s; }
.icon-8 { top: 15%; left: 65%; animation-delay: -7s; }
.icon-9 { top: 25%; left: 45%; animation-delay: -1.5s; }
.icon-10 { top: 5%; left: 85%; animation-delay: -3.5s; }

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta .btn {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #062038;
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
  border: none;
}

.hero-cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(96, 165, 250, 0.6);
}

.hero-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile adjustments */
@media (max-width: 820px) {
  .hero-innovative {
    min-height: 100vh;
  }
  
  .hero-content {
    margin-top: 70px; /* Adjust for mobile header */
  }
  
  .hero-innovative h1 {
    font-size: 2.5rem;
  }
  
  .hero-innovative .lead {
    font-size: 1.2rem;
  }
  
  .service-icon-float {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Keep mobile menu with background for readability */
  .main-nav {
    background: var(--surface);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link {
    background: rgba(255, 255, 255, 0.02);
  }
}

@media (max-width: 520px) {
  .hero-innovative {
    min-height: 100vh;
  }
  
  .hero-content {
    margin-top: 60px; /* Adjust for smaller mobile header */
  }
  
  .hero-innovative h1 {
    font-size: 2rem;
  }
  
  .hero-innovative .lead {
    font-size: 1.1rem;
  }
  
  .service-icon-float {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  /* Reduce number of floating icons on mobile */
  .icon-3, .icon-5, .icon-6 {
    display: none;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-innovative {
    animation: none;
  }
  
  .particle, .service-icon-float {
    animation: none;
  }
  
  .typing-text {
    animation: none;
    border-right: none;
  }
}

/* ==========================================================================
   END OF COMBINED HERO & HEADER SECTION
   ========================================================================== */
   
/* =========================
   SERVICES — stacked reveal
   ========================= */
.services-section {
  padding: 0.25rem 0 1rem; /* Add minimal padding here */
  position: relative;
  overflow: visible;
  background: none;
  box-sizing: border-box;
}

/* Container for the service cards (centered content width) */
.service-cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: var(--container-max);
  margin: 0.5rem auto 2rem; /* Changed from 2rem to 0.5rem */
  padding: 0;
  box-sizing: border-box;
}

/* Card visuals — */
.service-card {
  width: 100%;
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  color: var(--text-2);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 14px 36px rgba(2,6,23,0.4);
  border: 1px solid var(--border);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transform: translateY(18px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.9,.2,1), opacity .45s ease, box-shadow .3s ease;
  box-sizing: border-box;
  margin-bottom: 2.5rem; /* Reduced from 3rem - less space between cards */
  border-left: 3px solid transparent;
  background: linear-gradient(135deg, var(--surface), var(--surface-2)) padding-box,
              linear-gradient(135deg, var(--primary), transparent) border-box;
}
.service-card:hover {
  border-left: 3px solid var(--primary);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(2,6,23,0.5);
}
/* Card body typography - CONSISTENT VERSION */
.card-body h3 {
  margin: 0 0 1rem;
  background: linear-gradient(135deg, var(--text-2), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.6rem;
  line-height: 1.3;
  display: inline-block;
}

.card-body .muted.small {
  margin-bottom: 1.8rem; /* Increased space below description */
  line-height: 1.5;
  font-size: 1.05rem;
  color: var(--primary-600);
}

.card-body ul {
  margin-left: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-2);
  list-style: none;
  font-size: 1rem;
  padding-left: 0;
}

.service-card.is-visible .card-body li {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.service-card.is-visible .card-body li:nth-child(1) { animation-delay: 0.1s; }
.service-card.is-visible .card-body li:nth-child(2) { animation-delay: 0.2s; }
.service-card.is-visible .card-body li:nth-child(3) { animation-delay: 0.3s; }
.service-card.is-visible .card-body li:nth-child(4) { animation-delay: 0.4s; }
.service-card.is-visible .card-body li:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-body li {
  margin-bottom: 0.4rem;
  line-height: 1.4;
  position: relative;
  padding-left: 1.2rem;
}

.card-body li::before {
  content: "✓";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
}

.card-body li:hover::before {
  transform: scale(1.2);
  color: var(--primary);
}

/* visible state (reveal) */
.service-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* icon block — larger to match full-width card */
.service-icon {
  width: 140px;
  min-width: 140px;
  height: 140px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
  box-sizing: border-box;
  margin-top: 0;
  /* Enhanced 3D Effects */
  box-shadow: 
    0 15px 35px rgba(2,6,23,0.5),
    0 5px 15px rgba(2,6,23,0.3),
    inset 0 4px 8px rgba(255,255,255,0.1),
    inset 0 -4px 8px rgba(0,0,0,0.4);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
}

/* Stronger inner glow for depth */
.service-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255,255,255,0.15) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Optional: Add hover effect for interactive 3D */
.service-icon:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 
    0 20px 40px rgba(2,6,23,0.6),
    0 8px 20px rgba(2,6,23,0.4),
    inset 0 4px 8px rgba(255,255,255,0.15),
    inset 0 -4px 8px rgba(0,0,0,0.5);
}

/* Font Awesome icon sizing */
.service-icon i {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Make card body take the remaining width */
.card-body {
  flex: 1 1 auto;
}

/* responsive: on narrow screens stack icon above */
@media (max-width: 820px) {
  .service-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.4rem;
    margin-bottom: 2rem; /* Adjusted for mobile */
  }
  
.service-icon {
  margin-bottom: .6rem;
  min-width: 92px;
  width: 92px;
  height: 92px;
  background: linear-gradient(145deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(255,255,255,0.1);
  /* Enhanced 3D for mobile */
  box-shadow: 
    0 10px 25px rgba(2,6,23,0.4),
    0 4px 12px rgba(2,6,23,0.3),
    inset 0 3px 6px rgba(255,255,255,0.1),
    inset 0 -3px 6px rgba(0,0,0,0.3);
}
  .service-icon i {
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
  
  .card-body ul {
    margin-left: 0;
    text-align: left;
  }
  
.card-body h3 {
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--text-2), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

  .card-body .muted.small {
    font-size: .95rem;
  }
}

/* large desktop: slightly enlarge the inner container */
@media (min-width: 1200px) {
  .service-cards {
    max-width: 1200px;
  }
}

/* Service container for card + external CTA */
.service-container {
  margin-bottom: 1.5rem; /* Reduced from 2rem - less space after CTA */
}

/* External CTA below the card - GLOWING PULSE EFFECT */
.service-cta-outer {
  text-align: center;
  margin-top: 0.5rem; /* Reduced from 1rem */
  padding: 0.5rem 0; /* Reduced from 1rem */
}

.service-cta-outer .btn {
  font-size: 1.1rem;
  padding: 1.1rem 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #062038;
  border: none;
  border-radius: 15px;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
  animation: pulse-glow 2s infinite;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
}

.service-cta-outer .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.service-cta-outer .btn:hover::before {
  left: 100%;
}

.service-cta-outer .btn:hover {
  transform: translateY(-3px);
  animation: none;
  box-shadow: 0 10px 40px rgba(96, 165, 250, 0.6);
  text-decoration: none;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(96, 165, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

/* =========================
   HOMEPAGE SERVICE "VIEW MORE" BUTTONS
   ========================= */

/* Style for View More button - matches existing service CTA design */
.service-view-more-btn {
  font-size: 1.1rem;
  padding: 1.1rem 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #062038;
  border: none;
  border-radius: 15px;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7);
  animation: pulse-glow 2s infinite;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-decoration: none;
  margin-top: 1.5rem;
}

.service-view-more-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.service-view-more-btn:hover::before {
  left: 100%;
}

.service-view-more-btn:hover {
  transform: translateY(-3px);
  animation: none;
  box-shadow: 0 10px 40px rgba(96, 165, 250, 0.6);
  text-decoration: none;
}

/* For service cards that need the button inside */
.service-card .service-view-more-btn {
  align-self: center;
  margin-top: 1.5rem;
}

/* Alternative: Secondary style button (for variety) */
.service-view-more-btn-secondary {
  background: transparent !important;
  color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  animation: none !important;
}

.service-view-more-btn-secondary:hover {
  background: var(--primary) !important;
  color: #062038 !important;
}

/* Mobile responsive for View More buttons */
@media (max-width: 820px) {
  .service-view-more-btn {
    width: 90%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 1rem;
  }
  
  .service-card .service-view-more-btn {
    width: 100%;
    max-width: none;
  }
}

/* Ensure service container has proper spacing for button */
.service-container {
  display: flex;
  flex-direction: column;
}


/* Mobile responsive for external CTAs */
@media (max-width: 820px) {
  .service-cta-outer {
    margin-top: 0.4rem; /* Reduced from 0.8rem */
    padding: 0.4rem 0; /* Reduced from 0.8rem */
  }
  
  .service-cta-outer .btn {
    width: 90%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1rem;
    margin-top: 0;
  }
}

/* =========================
   SERVICES HEADING & SUBHEADING
   ========================= */
.services-section .container:first-child {
  text-align: center;
  max-width: 900px;
  margin: 0.25rem auto !important;
  padding: 0.25rem 0 !important;
  margin-bottom: 0;
}

.services-section h2 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem; /* Reduced from 1.5rem */
  margin: 0.25rem 0 0.5rem !important;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.services-section .lead {
  color: var(--text-2);
  font-size: 1.8rem !important;
  line-height: 1.3 !important;
  font-weight: 500;
  text-align: center;
  margin: 0 auto 0.5rem !important;
  max-width: 900px;
}

/* Responsive heading sizes */
@media (max-width: 820px) {
  .services-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem; /* Reduced from 1rem */
  }
  
  .services-section .lead {
    font-size: 1.3rem; /* Fixed: was 2rem (too large!) */
    line-height: 1.3; /* Reduced from 1.5 */
  }
  
  .services-section {
    padding: 2rem 0 1rem; /* Reduced */
  }
}

@media (max-width: 520px) {
  .services-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .services-section .lead {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    line-height: 1.3;
  }
  
  .services-section {
    padding: 1.5rem 0 1rem; /* Reduced */
  }
}
/* END: services (scroll-reveal style) */


/* =========================
   FOOTER - Modern Clean Design
   ========================= */
.site-footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding: 3rem 2% 1.5rem;  /* Add 2% side padding */
  width: 100%;
}

/* Override container constraints for footer */
.site-footer > .container {
    max-width: 100% !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);  /* Remove minmax constraint */
  gap: 0.5rem;  /* Reduce gap further */
  margin-bottom: 2rem;
  max-width: 100%;
}

.footer-grid h4 {
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
}

.footer-grid h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  text-align: center;
  flex-direction: column;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  color: var(--primary-600);
  width: 100%;
  max-width: 100%
}

.social-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-inline a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.social-inline a:hover {
  color: var(--primary);
  background: rgba(255,255,255,0.03);
  text-decoration: none;
}

.social-inline span {
  color: var(--muted);
  opacity: 0.5;
}

/* Responsive footer */
@media (max-width: 820px) {
  .site-footer {
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);  /* 2 columns on tablet */
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding-top: 1.5rem;
  }
  
  .social-inline {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;  /* 1 column on mobile */
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-grid h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-links a:hover {
    transform: translateY(-2px);
  }
}
/* END: FOOTER - Modern Clean Design */

/* =========================
   LEGAL PAGES STYLING
   ========================= */
.legal-page {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.05);
  max-width: 900px;
}

.legal-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-header .lead {
  color: var(--muted);
  font-size: 1.1rem;
  font-style: italic;
}

.content-section {
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.content-section:hover {
  background: rgba(255,255,255,0.03);
  transform: translateX(5px);
}

.content-section h2 {
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-section h2::before {
  content: "•";
  color: var(--accent);
  font-size: 1.8rem;
}

.content-section h3 {
  color: var(--text);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
}

.content-section p {
  line-height: 1.7;
  margin-bottom: 1rem;
  color: var(--text-2);
}

.content-section ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-2);
  position: relative;
}

.content-section li::before {
  content: "▸";
  color: var(--primary);
  position: absolute;
  left: -1rem;
}

.content-section strong {
  color: var(--text);
  font-weight: 600;
}

.contact-info {
  background: linear-gradient(135deg, rgba(147, 197, 253, 0.1), transparent);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(147, 197, 253, 0.2);
  margin-top: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

/* Responsive legal pages */
@media (max-width: 820px) {
  .legal-page {
    padding: 2rem 1.5rem;
    margin: 1rem auto;
  }
  
  .legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
  
  .legal-header h1 {
    font-size: 2rem;
  }
  
  .content-section {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .content-section h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 520px) {
  .legal-page {
    padding: 1.5rem 1rem;
    margin: 0.5rem auto;
    border-radius: var(--radius-md);
  }
  
  .legal-header h1 {
    font-size: 1.8rem;
  }
  
  .content-section {
    padding: 1rem;
  }
  
  .content-section:hover {
    transform: none;
  }
}

/* =========================
   END OF LEGAL PAGES STYLING
   ========================= */
   
/* =========================
   SITEMAP PAGE STYLING
   ========================= */
.sitemap-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-links li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  transition: all 0.3s ease;
}

.sitemap-links li:hover {
  background: var(--surface);
  transform: translateX(5px);
}

.sitemap-links a {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}

.sitemap-links a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

.sitemap-links li::before {
  content: "▸";
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* =========================
   END OF SITEMAP PAGE STYLING
   ========================= */

/* ==========================================================================
   MOBILE MENU & RESPONSIVE HEADER
   ========================================================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Mobile CTA (hidden on desktop) */
.mobile-cta {
  display: none;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 820px) {
  /* Hide desktop CTA only */
  .header-cta {
    display: none;
  }
  
  /* Show mobile menu button */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Mobile menu styles */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
  }
  
  .main-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Navigation list in mobile menu */
  .nav-list {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    margin: 0;
  }
  
  .nav-list li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--text-2);
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    transform: none;
  }
  
  /* Show mobile CTA */
  .mobile-cta {
    display: block;
    padding: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  .mobile-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 1rem;
    padding: 1rem 2rem;
  }
  
  /* Header row adjustments */
  .header-row {
    position: relative;
    z-index: 101; /* Higher than hero content */
    gap: 0.5rem;
  }
  
  /* Better logo spacing on mobile */
  .logo {
    flex: 1;
    min-width: 0;
  }
  
  .logo img {
    max-width: none;
  }
  
  /* Mobile menu button spacing */
  .mobile-menu-toggle {
    margin-left: 1rem;
    flex-shrink: 0;
  }
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   END MOBILE MENU & RESPONSIVE HEADER
   ========================================================================== */
/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(96, 165, 250, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(96, 165, 250, 0.6);
  background: linear-gradient(135deg, var(--primary-600), var(--primary));
}

/* Mobile responsive */
@media (max-width: 520px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}
/* ==========================================================================
   END OF BACK TO TOP BUTTON
   ========================================================================== */
.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;  /* Match other buttons */
  border-radius: 8px;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  min-width: 140px;  /* Same minimum width */
  text-align: center;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  color: white;
  text-decoration: none;
}

.whatsapp-link {
  color: #25D366;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-link:hover {
  color: #128C7E;
  transform: translateX(5px);
}
/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.3s ease;
}
.dropdown-menu a:hover {
  background: var(--surface-2);
  color: var(--primary);
}
.has-dropdown { display: flex; align-items: center; gap: 0.3rem; }

/* ==========================================================================
   GENERAL PAGE NAVIGATION (For non-service pages)
   ========================================================================== */

/* These styles only apply to pages that DON'T load services.css */
.service-navigation {
    background: var(--surface-2);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    margin-top: var(--space-xl);
}

.service-navigation .nav-links {
    display: flex;
    justify-content: center !important; /* Center the links */
    align-items: center;
    gap: 3rem; /* Even spacing between centered links */
    flex-wrap: wrap;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.service-navigation .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--surface);
    border-radius: var(--radius-md);
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-family: var(--font-head);
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 160px;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.service-navigation .nav-link:hover {
    background: var(--primary);
    color: #062038;
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.3);
    border-color: transparent;
}

.service-navigation .nav-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.service-navigation .nav-link:hover i {
    transform: translateX(-3px);
}

.service-navigation .nav-link.next:hover i {
    transform: translateX(3px);
}

.service-navigation .nav-link.home {
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.service-navigation .nav-link.home:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-600));
}

/* Mobile responsiveness */
@media (max-width: 820px) {
    .service-navigation .nav-links {
        gap: 1.5rem;
        flex-direction: row;
        justify-content: center !important;
    }
    
    .service-navigation .nav-link {
        padding: 0.875rem 1.5rem;
        min-width: 140px;
    }
}

@media (max-width: 520px) {
    .service-navigation .nav-links {
        gap: 1rem;
        justify-content: center !important;
    }
    
    .service-navigation .nav-link {
        padding: 0.75rem 1rem;
        min-width: auto;
        flex: 1;
        max-width: 120px;
    }
    
    .service-navigation .nav-link span {
        font-size: 0.9rem;
    }
    
    .service-navigation .nav-link i {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 375px) {
    .service-navigation .nav-links {
        gap: 0.5rem;
    }
    
    .service-navigation .nav-link {
        padding: 0.6rem 0.8rem;
    }
    
    .service-navigation .nav-link span {
        display: none; /* Hide text on very small screens */
    }
    
    .service-navigation .nav-link.home span {
        display: inline; /* Keep Home text visible */
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   FIXED HEADER SPACING FIX
   ========================================================================== */

/* Add top padding to main content to account for fixed header */
/* But remove it for service page hero sections */
#main {
    padding-top: 80px; /* Match your header height */
}

/* Remove padding for service page hero sections */
.service-section.section-hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure form pages have proper spacing */
#main .container {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

/* Mobile adjustments */
@media (max-width: 820px) {
    #main {
        padding-top: 70px;
    }
    
    /* Service page hero mobile fix */
    .service-section.section-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 520px) {
    #main {
        padding-top: 60px;
    }
    
    #main .container {
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
    
    /* Service page hero mobile fix */
    .service-section.section-hero {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Mobile dropdown open state */
@media (max-width: 820px) {
    .dropdown.open .dropdown-menu {
        display: block !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 0.5rem !important;
        border-radius: 8px !important;
    }
}
/* Center Services text in mobile menu */
@media (max-width: 820px) {
    .has-dropdown {
        justify-content: center !important;
        text-align: center !important;
    }
}

/* Override services.css dropdown for mobile */
@media (max-width: 820px) {
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: none !important;
    }
    
    .dropdown.open .dropdown-menu {
        display: block !important;
    }
}

/* =========================
   FORM STYLES (For ALL forms - Service pages + Contact page)
   ========================= */

/* Base form styles - Used by ALL forms */
.contact-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--text-2);
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-sans);
  transition: all 0.3s cubic-bezier(.2,.9,.2,1);
  backdrop-filter: blur(10px);
}

.form-group select {
  background: rgba(255,255,255,0.03) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2393C5FD' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 1rem center/16px;
  appearance: none;
  color: var(--text);
}

.form-group select option {
  background: var(--surface-2);
  color: var(--text);
  padding: 1rem;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.15);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.03);
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
  margin-bottom: 0;
}

.checkbox-group label:hover {
  background: rgba(255,255,255,0.03);
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  accent-color: var(--primary);
  background: var(--surface-2);
  border-radius: 4px;
}

/* Form Button (Used by ALL forms) */
.contact-form .btn-primary {
  width: 100%;
  padding: 1.25rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #062038;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(8,16,40,0.4);
  transition: all 0.3s cubic-bezier(.2,.9,.2,1);
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.contact-form .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.contact-form .btn-primary:hover::before {
  left: 100%;
}

.contact-form .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(8,16,40,0.5);
}

.contact-form .btn-primary:active {
  transform: translateY(-1px);
}

.contact-form .btn-primary i {
  margin-right: 0.5rem;
}

/* Required field indicator */
.form-group label:after {
  content: " *";
  color: var(--accent);
  opacity: 0.8;
}

.form-group:has(select[required]) label:after,
.form-group:has(input[required]) label:after,
.form-group:has(textarea[required]) label:after {
  content: " *";
  color: var(--accent);
}

.form-group:not(:has([required])) label:after {
  content: "";
}

/* Form states */
.form-group.success input,
.form-group.success select,
.form-group.success textarea {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.1);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

/* =========================
   CONTACT PAGE SPECIFIC STYLES (Isolated)
   ========================= */

/* Contact page container */
.contact-page .container {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.contact-page .container h1 {
  font-size: 2.1rem;
  margin-bottom: 0.8rem;
  text-align: center;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-page .container .lead {
  text-align: center;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Contact Grid Layout */
.contact-page .contact-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-page .contact-grid-row.row-two {
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
}

/* Contact Cards */
.contact-page .contact-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(.2,.9,.2,1);
  display: flex;
  flex-direction: column;
}

.contact-page .contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.08);
}

.contact-page .contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-page .contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #062038;
}

.contact-page .contact-card h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.2rem;
}

/* Contact Options */
.contact-page .contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-page .btn-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  background: rgba(147, 197, 253, 0.1);
  border: 1px solid rgba(147, 197, 253, 0.2);
  color: var(--primary);
}

.contact-page .btn-contact:hover {
  transform: translateX(5px);
  background: rgba(147, 197, 253, 0.2);
  border-color: rgba(147, 197, 253, 0.4);
}

.contact-page .btn-whatsapp {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.2);
  color: #25D366;
}

.contact-page .btn-whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.4);
}

.contact-page .contact-details {
  flex: 1;
}

.contact-page .contact-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.contact-page .contact-value {
  font-size: 0.95rem;
  color: var(--text);
}

.contact-page .address-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-page .address-text {
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

/* Email Contacts Card */
.contact-page .email-contacts-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.contact-page .card-description {
  color: var(--text-2);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-page .email-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.5rem 0;
}

.contact-page .email-item {
  display: flex;
  align-items: right !important;
  gap: 1rem !important;
  padding: 1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
  font-size: 1.1rem !important;
}

.contact-page .email-item:hover {
  background: rgba(255,255,255,0.03);
}

.contact-page .email-item i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.contact-page .email-item a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 1.1rem;
  flex: 1;
}

.contact-page .email-item a:hover {
  color: var(--primary);
}

.contact-page .contact-note,
.contact-page .response-info,
.contact-page .email-note {
  padding-top: 1rem;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.contact-page .contact-note p,
.contact-page .response-info p,
.contact-page .email-note p {
  color: var(--text-2);
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-page .contact-note i,
.contact-page .response-info i,
.contact-page .email-note i {
  color: var(--primary);
}

/* Contact Page Form Card */
.contact-page .contact-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-page .contact-form-section h3 {
  margin-top: 0;
  margin-bottom: 1.2rem;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1.1rem;
  text-align: center;
}

/* Contact Page Form Overrides */
.contact-page .contact-form {
  padding: 1.6rem;
}

.contact-page .contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-page .contact-form label i {
  margin-right: 0.5rem;
  color: var(--primary);
}

.contact-page .contact-form textarea {
  min-height: 100px;
  max-height: 150px;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-page .contact-grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-page .contact-grid-row.row-two {
    grid-template-columns: 1fr;
  }
  
  .contact-page .contact-card:nth-child(3) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .contact-page .contact-grid-row {
    grid-template-columns: 1fr;
  }
  
  .contact-page .contact-card-header {
    gap: 0.75rem;
  }
  
  .contact-page .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .contact-page .office-image {
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
  }
  
  .contact-page .contact-form-card,
  .contact-page .email-contacts-card {
    padding: 1.5rem;
  }
  
  .contact-page .contact-form {
    padding: 1.5rem;
  }
  
  .contact-page .contact-form textarea {
    min-height: 90px;
    max-height: 130px;
  }
  
  .contact-page .container h1 {
    font-size: 2rem;
  }
  
  .contact-page .container .lead {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
}

@media (max-width: 520px) {
  .contact-page .contact-form {
    padding: 1.5rem 1rem;
    margin: 0 -0.5rem;
  }
  
  .contact-page .contact-form .btn-primary {
    padding: 1rem 1.4rem;
    font-size: 1rem;
  }
  
  .contact-page .container {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }
}
/* =========================
   CONTACT PAGE – IMAGE CARD
   ========================= */

.contact-page .contact-image-card {
  padding: 0 !important;
  background: url("/assets/images/contactus.png") center center / cover no-repeat;
  border: none;
  box-shadow: var(--shadow-md);
  min-height: 100%;
  display: block;
}

/* Ensure no inner spacing even if browser injects nodes */
.contact-page .contact-image-card > * {
  display: none !important;
}

/* Tablet */
@media (max-width: 820px) {
  .contact-page .contact-image-card {
    min-height: 220px;
    border-radius: var(--radius-lg);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .contact-page .contact-image-card {
    min-height: 200px;
  }
}

/* =========================
   END OF FORM STYLES (For ALL forms - Service pages + Contact page)
   ========================= */
/* ==========================================================================
   CART BUTTON STYLES - GLOBAL
   ========================================================================== */

/* Header layout adjustments for cart */
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 20px;
}

.header-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-cart {
    display: flex;
    align-items: center;
    margin-left: auto;
    order: 2;
}

/* Cart button styling */
.cart-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: #f8fafc;
    border-radius: 50%;
    color: #3b82f6;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.4rem;
}

.cart-button:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Cart badge/count */
.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    border: 2px solid white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .header-cart {
        order: 1;
        margin-left: 0;
        margin-right: 15px;
    }
    
    .header-cta {
        order: 2;
        margin-left: 0;
    }
    
    .cart-button {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    
    .cart-count-badge {
        min-width: 22px;
        height: 22px;
        font-size: 12px;
        top: -5px;
        right: -5px;
    }
    
    .mobile-menu-toggle {
        order: 3;
    }
}
/* END OF STYLES */