/* =========================================================================
   1. CSS Custom Properties (Tokens)
   ========================================================================= */
:root {
  /* Colors - Light Theme (Default) */
  --c-primary: #59AE43; /* Brand Green */
  --c-primary-dark: #3a7a2a;
  --c-secondary: #0B60A8; /* Brand Blue */
  --c-bg: #ffffff;
  --c-surface: #f8fafc;
  --c-text: #0f172a;
  --c-text-muted: #64748b;
  --c-border: #e2e8f0;
  --c-dark: #072a4f; /* Deep brand blue replacing plain black */

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --s-xs: 0.25rem;
  --s-sm: 0.5rem;
  --s-md: 1rem;
  --s-lg: 2rem;
  --s-xl: 4rem;

  /* Layout */
  --container-max: 1200px;
  --radius-card: 16px;
  --radius-sm: 8px;
  --radius-circle: 50%;
  
  /* Utilities */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Colors - Dark Theme */
[data-theme="dark"] {
  --c-bg: #020617;      /* Deeper navy background */
  --c-surface: #0f172a;  /* Surface for cards */
  --c-surface-hover: #1e293b;
  --c-text: #f8fafc;
  --c-text-muted: #94a3b8;
  --c-border: rgba(255,255,255,0.08);
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.5);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5);
}

/* =========================================================================
   2. Reset & Base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font-sans); color: var(--c-text); background-color: var(--c-bg);
  line-height: 1.6; overflow-x: hidden; transition: background-color var(--transition), color var(--transition);
}
[data-theme="dark"] .logo-light { display: none !important; }
[data-theme="dark"] .logo-dark  { display: block !important; }
[data-theme="light"] .logo-dark { display: none !important; }
[data-theme="light"] .logo-light { display: block !important; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }

/* =========================================================================
   3. Typography
   ========================================================================= */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; font-weight: 700; color: var(--c-text); margin-bottom: var(--s-sm); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
p { margin-bottom: var(--s-md); }

.text-primary { color: var(--c-primary); }
.text-muted { color: var(--c-text-muted); }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.text-dark-hero { color: #0f172a !important; }
.text-lite-hero { color: #ffffff !important; }
.hero-cta-outline { border-color: currentColor !important; color: inherit !important; background: transparent; }
.hero-cta-outline:hover { background: rgba(255,255,255,0.1); }
.text-dark-hero .hero-cta-outline:hover { background: rgba(0,0,0,0.05); }

.search-result-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; cursor: pointer; border-bottom: 1px solid var(--c-border); transition: var(--transition); }
.search-result-item:hover { background: var(--c-surface); }
.search-result-item:last-child { border-bottom: none; }

.parallax-bg { background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; }
@media (max-width: 768px) { .parallax-bg { background-attachment: scroll; } }

/* Fix hero animation entry */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-reveal].active { opacity: 1; transform: translateY(0); }
[data-reveal="fade-in"] { transform: translateY(0); }
[data-reveal="fade-in"].active { opacity: 1; }

/* =========================================================================
   4. Layout Utilities
   ========================================================================= */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--s-md); }
.section { padding-top: var(--s-xl); padding-bottom: var(--s-xl); }
.py-lg { padding-top: var(--s-xl); padding-bottom: var(--s-xl); }
.py-md { padding-top: var(--s-lg); padding-bottom: var(--s-lg); }
.mt-sm { margin-top: var(--s-md); }
.mt-md { margin-top: var(--s-lg); }
.mt-lg { margin-top: calc(var(--s-xl) * 0.75); }
.mt-xl { margin-top: var(--s-xl); }
.mb-xs { margin-bottom: var(--s-xs); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: var(--s-xs); }
.gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }
.gap-lg { gap: var(--s-lg); }
.gap-xl { gap: var(--s-xl); }

.db-grid { display: grid; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.max-w-md { max-width: 600px; }
.mx-auto { margin-inline: auto; }
.block { display: block; }
.unstyled { list-style: none; }

.bg-surface { background-color: var(--c-surface); }
.bg-dark { background-color: var(--c-dark); }
.bg-base { background-color: var(--c-bg); }
.text-white { color: #fff; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.border-t { border-top: 1px solid var(--c-border); }
.border-t-primary { border-top: 3px solid var(--c-primary); }

.rounded { border-radius: var(--radius-sm); }
.rounded-circle { border-radius: var(--radius-circle); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  padding: 0.75rem 1.5rem; border-radius: 99px; font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--c-primary); color: #fff; box-shadow: 0 4px 14px rgba(89,174,67,0.3); }
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(89,174,67,0.4); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--c-primary); color: #000; }
.btn-outline.light { border-color: #fff; color: #fff; }
.btn-outline.light:hover { background: #fff; color: #000; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.icon-btn { display: inline-flex; padding: 0.5rem; border-radius: 50%; color: inherit; transition: background 0.2s; }
.icon-btn:hover { background: rgba(128,128,128,0.1); }

/* Forms */
.form-group { width: 100%; margin-bottom: var(--s-md); }
.form-control {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  background: var(--c-bg); color: var(--c-text); transition: border var(--transition), box-shadow var(--transition);
}
.form-control:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(89,174,67,0.15); }

/* Badges */
.badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 99px; font-size: 0.75rem; font-weight: 600; }
.badge-sm { padding: 0.15rem 0.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-primary { background: rgba(89,174,67,0.1); color: var(--c-primary); }
.badge-blue { background: rgba(59,130,246,0.1); color: #3b82f6; }

/* =========================================================================
   5. Components
   ========================================================================= */

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; height: 88px; z-index: 50;
  display: flex; align-items: center; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05); transition: all var(--transition); color: #0f172a;
}
[data-theme="dark"] .navbar {
  background: rgba(2, 6, 23, 0.85); border-bottom: 1px solid rgba(255,255,255,0.08); color: #fff;
}
.navbar.scrolled { height: 74px; background: #ffffff; box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-bottom: none; }
[data-theme="dark"] .navbar.scrolled { background: #020617; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-logo img {  
  margin-top: auto;
  max-height: 100px;
  width: auto;
  object-fit: contain; }
.nav-links { display: flex; gap: var(--s-lg); }
.nav-links a { font-size: 0.9rem; font-weight: 500; opacity: 0.8; transition: opacity var(--transition), color var(--transition); position: relative; }
.nav-links a:hover { opacity: 1; color: var(--c-primary); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background: var(--c-primary); transition: width var(--transition); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: var(--s-sm); }
.mobile-menu-btn { display: none; }

/* Theme Icons */
[data-theme="light"] .sun { display: none; }
[data-theme="light"] .moon { display: block; }
[data-theme="dark"]  .sun { display: block; }
[data-theme="dark"]  .moon { display: none; }

/* Mobile Sidebar */
.mobile-sidebar {
  position: fixed; top: 0; right: 0; width: 300px; height: 100vh; background: var(--c-surface); z-index: 100;
  transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
.mobile-sidebar.open { transform: translateX(0); }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: var(--s-md) var(--s-lg); border-bottom: 1px solid var(--c-border); }
.sidebar-links { display: flex; flex-direction: column; padding: var(--s-md) 0; overflow-y: auto; }
.sidebar-links a { padding: var(--s-md) var(--s-lg); font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid var(--c-border); transition: background var(--transition); }
.sidebar-links a:hover { background: var(--c-bg); color: var(--c-primary); }

/* Search Overlay */
.search-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.9); z-index: 150;
  display: flex; flex-direction: column; align-items: center; padding-top: 15vh;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.search-overlay.active { opacity: 1; pointer-events: auto; }
.search-box { width: 90%; max-width: 700px; position: relative; }
.search-box input {
  width: 100%; background: transparent; border: none; border-bottom: 2px solid rgba(255,255,255,0.2);
  color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; padding-bottom: 0.5rem; transition: border 0.3s;
}
.search-box input:focus { outline: none; border-color: var(--c-primary); }
.search-box input::placeholder { color: rgba(255,255,255,0.2); }
.close-search { position: absolute; right: 0; top: 0; font-size: 3rem; color: #fff; opacity: 0.5; transition: 0.2s; }
.close-search:hover { opacity: 1; color: var(--c-primary); }
.search-results { width: 90%; max-width: 700px; margin-top: 2rem; max-height: 50vh; overflow-y: auto; color: #fff; }
.search-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: background 0.2s; }
.search-item:hover { background: rgba(255,255,255,0.05); }

/* Hero */
.hero-section {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background-size: cover; background-position: center center; background-repeat: no-repeat; color: #fff;
}
.hero-container { position: relative; z-index: 10; padding-top: 72px; padding-bottom: 2rem; width: 100%; }
.eyebrow { display: inline-block; padding: 0.4rem 1rem; background: rgba(89,174,67,0.2); border: 1px solid var(--c-primary); color: var(--c-primary); border-radius: 99px; font-weight: 600; font-size: 0.9rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-title { max-width: 800px; margin-bottom: 1rem; text-wrap: balance; }
.hero-subtitle { font-size: 1.25rem; opacity: 0.8; max-width: 600px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); width: 40px; height: 40px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; animation: bounce 2s infinite; transition: border 0.3s; z-index: 20;
}
.scroll-down:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* Hero Slider */
.hero-slider-wrap {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide:not(.active) {
  z-index: 0;
}

/* Prev / Next arrows */
.hero-arrow {
  position: absolute; top: 50%; z-index: 20; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
@media (max-width: 768px) {
  .hero-arrow { display: none !important; }
}
.hero-arrow:hover { background: var(--c-primary); border-color: var(--c-primary); transform: translateY(-50%) scale(1.1); }
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

/* Dot indicators */
.hero-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 20;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 99px;
  background: rgba(255,255,255,0.4); border: none;
  transition: width 0.3s, background 0.3s;
}
.hero-dot.active { width: 28px; background: var(--c-primary); }



/* About */
.about-image-wrapper { position: relative; z-index: 1; }
.blob-shape { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: morph 8s ease-in-out infinite both alternate; }
.accent-box { position: absolute; bottom: -2rem; right: -2rem; width: 150px; height: 150px; background: radial-gradient(circle, var(--c-primary) 10%, transparent 11%); background-size: 15px 15px; z-index: -1; opacity: 0.3; }
.text-prose { font-size: 1.05rem; line-height: 1.8; }
.placeholder-img { width: 100%; aspect-ratio: 4/3; background: var(--c-border); display: flex; align-items: center; justify-content: center; }

/* Services */
.service-card {
  background: var(--c-surface); border-radius: var(--radius-card); padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md); transition: all var(--transition);
  border: 1px solid var(--c-border); position: relative; overflow: hidden;
}
[data-theme="dark"] .service-card { 
  background: linear-gradient(145deg, var(--c-surface), #131c31);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--c-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--c-primary); }
[data-theme="dark"] .service-card:hover { border-color: var(--c-primary); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6); }
.service-card:hover::before { transform: scaleX(1); }
.icon-box {
  width: 100px; height: 60px; border-radius: 12px; background: rgba(89,174,67,0.1);
  color: var(--c-primary); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.5rem; transition: transform 0.3s;
}
.service-card:hover .icon-box { transform: scale(1.1) rotate(5deg); background: var(--c-primary); color: #fff; }
.card-link { font-weight: 700; color: var(--c-primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; display: inline-block; margin-top: 1rem; }
.card-link:hover { color: var(--c-primary-dark); }

/* Stats */
.stat-value { font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.stat-label { font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Projects */
.project-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  padding: 0.5rem 1.25rem; border-radius: 99px; font-weight: 600; font-size: 0.85rem;
  background: var(--c-surface); color: var(--c-text); border: 1px solid var(--c-border); transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.project-card { border-radius: var(--radius-card); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-md); transition: all 0.4s; }
[data-theme="dark"] .project-card { background: linear-gradient(145deg, var(--c-surface), #131c31); }
.project-img-wrapper { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-card:hover .project-img-wrapper img { transform: scale(1.05); }
.project-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.project-card:hover .project-overlay { opacity: 1; }
.project-info { padding: 1.5rem; }

/* Why Us */
.feature-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.feature-item { display: flex; gap: 1rem; }
.feature-icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; background: rgba(89,174,67,0.1); display: flex; align-items: center; justify-content: center; }

/* Carousel */
.carousel-viewport { overflow: hidden; width: 100%; cursor: grab; padding-bottom: 1rem; }
.carousel-viewport:active { cursor: grabbing; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); will-change: transform; }
.carousel-slide { min-width: 100%; flex-shrink: 0; padding: 0 1rem; box-sizing: border-box; }
@media(min-width: 768px) { .carousel-slide { min-width: 50%; } }
@media(min-width: 1024px) { .carousel-slide { min-width: 33.333%; } }
.testimonial-card { background: var(--c-surface); padding: 2rem; border-radius: var(--radius-card); height: 100%; display: flex; flex-direction: column; border: 1px solid var(--c-border); transition: all var(--transition); }
[data-theme="dark"] .testimonial-card { background: linear-gradient(145deg, var(--c-surface), #111a2e); }
.stars { color: #e2e8f0; font-size: 1.2rem; letter-spacing: 2px; }
.star.filled { color: var(--c-primary); }
.testi-msg { font-size: 1.05rem; font-style: italic; flex-grow: 1; margin-bottom: 2rem; }
.testi-author { display: flex; align-items: center; gap: 1rem; margin-top: auto; }
.avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--c-primary); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.carousel-dots { display: flex; gap: 0.5rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border); cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--c-primary); width: 24px; border-radius: 99px; }
.nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-border); display: flex; align-items: center; justify-content: center; background: var(--c-surface); color: var(--c-text); transition: 0.2s; }
.nav-btn:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Chat Widget */
.chat-widget { position: fixed; bottom: 2rem; right: 2rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; }
.chat-fab { width: 60px; height: 60px; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 1.8rem; box-shadow: var(--shadow-lg); transition: transform 0.2s, box-shadow 0.2s; display: flex; align-items: center; justify-content: center; }
.chat-fab:hover { transform: scale(1.05); box-shadow: var(--shadow-xl); }
.chat-panel {
  position: absolute; bottom: 80px; right: 0; width: 350px; height: 450px; max-height: 80vh;
  background: var(--c-bg); border-radius: var(--radius-card); box-shadow: var(--shadow-xl); border: 1px solid var(--c-border);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.95); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: bottom right;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.chat-header { background: var(--c-dark); color: #fff; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.close-chat { color: #fff; font-size: 1.5rem; opacity: 0.7; transition: 0.2s; }
.close-chat:hover { opacity: 1; text-shadow: 0 0 5px rgba(255,255,255,0.5); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; background: var(--c-surface); }
.msg { padding: 0.75rem 1rem; border-radius: 12px; font-size: 0.9rem; max-width: 85%; word-wrap: break-word; line-height: 1.4; }
.bot-msg { background: var(--c-bg); border: 1px solid var(--c-border); align-self: flex-start; border-bottom-left-radius: 2px; }
.user-msg { background: var(--c-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.chat-input-area { padding: 1rem; background: var(--c-bg); border-top: 1px solid var(--c-border); display: flex; gap: 0.5rem; align-items: center; }
.chat-input-area input { flex: 1; padding: 0.75rem 1rem; border-radius: 99px; border: 1px solid var(--c-border); font-size: 0.9rem; background: var(--c-surface); color: var(--c-text); outline: none; }
.chat-input-area input:focus { border-color: var(--c-primary); }
.chat-input-area button { width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; padding-left: 2px; }

/* WhatsApp Floating Widget */
.wa-widget { position: fixed; z-index: 80; cursor: pointer; transition: transform 0.3s; }
.wa-widget.pos-bottom-right { bottom: 2rem; right: 2rem; }
.wa-widget:not(.pos-bottom-right) { bottom: 2rem; left: 2rem; }
/* Adjust position if chat widget is open (JS handles this optionally, or just use css offsets) */
@media(min-width: 768px) { .wa-widget.pos-bottom-right { right: calc(2rem + 80px); } }
.wa-widget a { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; position: relative; }
.wa-icon { width: 60px; height: 60px; z-index: 2; position: relative; transition: transform 0.3s; }
.wa-widget:hover .wa-icon { transform: scale(1.1); }
.wa-pulse {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #25d366; border-radius: 50%; z-index: 1;
  animation: pulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.wa-tooltip {
  position: absolute; background: var(--c-dark); color: #fff; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.75rem;
  top: 50%; transform: translateY(-50%); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s;
}
.wa-widget.pos-bottom-right .wa-tooltip { right: 80px; transform: translateY(-50%) translateX(10px); }
.wa-widget.pos-bottom-right:hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }
.wa-widget:not(.pos-bottom-right) .wa-tooltip { left: 80px; transform: translateY(-50%) translateX(-10px); }
.wa-widget:not(.pos-bottom-right):hover .wa-tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.lightbox.active img { transform: scale(1); }
.close-lightbox { position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 3rem; cursor: pointer; opacity: 0.7; transition: 0.2s; }
.close-lightbox:hover { opacity: 1; }

/* Contact Forms */
.contact-form-card { border-top: 4px solid var(--c-primary); }

/* =========================================================================
   6. Animations
   ========================================================================= */
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); } 40% { transform: translate(-50%, -15px); } 60% { transform: translate(-50%, -7px); } }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes morph { 0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; } 50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; } 75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; } 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } }

/* Ripple Effect */
[data-ripple] { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, 0.3); animation: rippleEffect 0.6s linear; pointer-events: none;
}
[data-theme="light"] [data-ripple].btn-outline .ripple, [data-theme="light"] .icon-btn .ripple { background: rgba(0, 0, 0, 0.1); }
[data-theme="dark"] [data-ripple].btn-primary .ripple { background: rgba(0, 0, 0, 0.2); }
@keyframes rippleEffect { to { transform: scale(4); opacity: 0; } }

/* Scroll Reveal */
[data-reveal] { transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); opacity: 0; }
[data-reveal="fade-up"] { transform: translateY(30px); }
[data-reveal="fade-right"] { transform: translateX(-30px); }
[data-reveal="fade-left"] { transform: translateX(30px); }
[data-reveal="scale-up"] { transform: scale(0.9); }
[data-reveal].revealed { opacity: 1; transform: translate(0) scale(1); }

/* =========================================================================
   7. Responsive Overrides
   ========================================================================= */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .wa-widget.pos-bottom-right { right: 2rem; }
}

@media (max-width: 768px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .mobile-col { flex-direction: column; gap: var(--s-md); align-items: flex-start; }
  .nav-links, .cta-btn, .search-toggle { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-title { font-size: 2.2rem; }
  .section { padding-top: var(--s-lg); padding-bottom: var(--s-lg); }
  .gap-xl, .gap-lg { gap: var(--s-md); }
  
  .chat-panel { width: calc(100vw - 2rem); right: -1rem; bottom: 70px; }
  .chat-widget { bottom: 6.5rem; }
  .wa-widget { transform: scale(0.85); transform-origin: bottom right; }

  .hero-container { padding-inline: 1.5rem; padding-top: 100px; padding-bottom: 4rem; }
  .hero-title { font-size: 2.5rem; line-height: 1.1; }
  .hero-subtitle { font-size: 1.1rem; }

  .contact-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .form-grid { grid-template-columns: 1fr !important; }
}

/* Accessibility Preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
