/*
Theme Name: DB Energie Pro
Theme URI: https://db-energie.td
Author: DB Energie
Author URI: https://db-energie.td
Description: Theme WordPress professionnel pour DB Energie - Solutions solaires et electriques a N'Djamena, Tchad. Design moderne avec animations epoustouflantes, optimise SEO local.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: db-energie
Tags: one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════
   VARIABLES & RESET
   ═══════════════════════════════════════════ */

:root {
  --db-blue: #0f4c81;
  --db-blue-dark: #0a3558;
  --db-blue-light: #e8f4fd;
  --db-green: #16a34a;
  --db-green-dark: #0d7a34;
  --db-green-light: #f0fdf4;
  --whatsapp: #25D366;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
  --radius: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ═══════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════ */

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

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .section { padding: 7rem 0; }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-title { font-size: 2.75rem; }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 1rem auto 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-label-green {
  background-color: var(--db-green-light);
  color: var(--db-green);
}

.section-label-blue {
  background-color: var(--db-blue-light);
  color: var(--db-blue);
}

.section-label-yellow {
  background-color: #fef9c3;
  color: #a16207;
}

.text-center { text-align: center; }
.text-blue { color: var(--db-blue); }
.text-green { color: var(--db-green); }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-blue {
  background: linear-gradient(135deg, var(--db-blue), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-green {
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.btn-green:hover {
  box-shadow: 0 8px 25px rgba(22, 163, 74, 0.45);
  transform: translateY(-2px);
}

.btn-blue {
  background: linear-gradient(135deg, var(--db-blue), #3b82f6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.35);
}

.btn-blue:hover {
  box-shadow: 0 8px 25px rgba(15, 76, 129, 0.45);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--db-green);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

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

.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #1fb855;
  transform: scale(1.02);
}

/* ═══════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition-slow);
  padding: 0.75rem 0;
}

.navbar.scrolled {
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand .logo-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
  transition: var(--transition);
}

.navbar-brand:hover .logo-icon {
  transform: rotate(5deg) scale(1.05);
}

.navbar-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: var(--transition);
}

.navbar-brand .logo-text .green {
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom logo image */
.navbar-brand .custom-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand .custom-logo {
  max-height: 2.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .navbar-brand .custom-logo {
    max-height: 2.5rem;
  }
}

.navbar-brand .custom-logo-link .site-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: var(--transition);
}

.navbar-brand .custom-logo-link .site-name .green {
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar:not(.scrolled) .navbar-brand .custom-logo-link .site-name {
  color: #fff;
}

.navbar.scrolled .navbar-brand .custom-logo-link .site-name {
  color: var(--gray-900);
}

.navbar:not(.scrolled) .navbar-brand .logo-text {
  color: #fff;
}

.navbar.scrolled .navbar-brand .logo-text {
  color: var(--gray-900);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .navbar-links { display: flex; }
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  transition: var(--transition);
}

.navbar:not(.scrolled) .navbar-links a {
  color: rgba(255,255,255,0.9);
}

.navbar:not(.scrolled) .navbar-links a:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
}

.navbar.scrolled .navbar-links a {
  color: var(--gray-700);
}

.navbar.scrolled .navbar-links a:hover {
  color: var(--db-green);
  background-color: var(--db-green-light);
}

.navbar-links .btn {
  margin-left: 1rem;
}

.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: var(--transition);
}

@media (min-width: 1024px) {
  .navbar-toggle { display: none; }
}

.navbar-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.navbar:not(.scrolled) .navbar-toggle {
  color: #fff;
}

.navbar:not(.scrolled) .navbar-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}

.navbar.scrolled .navbar-toggle {
  color: var(--gray-800);
}

.navbar.scrolled .navbar-toggle:hover {
  background-color: var(--gray-100);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  padding-top: 5rem;
  animation: slideDown 0.3s ease;
}

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

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 0.5rem;
  transition: var(--transition);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a:hover {
  background-color: var(--db-green-light);
  color: var(--db-green);
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,53,88,0.92), rgba(15,76,129,0.82), rgba(10,53,88,0.75));
}

/* Animated glow effects */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-glow-1 {
  top: -5rem;
  right: -5rem;
  width: 24rem;
  height: 24rem;
  background-color: rgba(22,163,74,0.12);
}

.hero-glow-2 {
  bottom: 2.5rem;
  left: -5rem;
  width: 30rem;
  height: 30rem;
  background-color: rgba(22,163,74,0.06);
  animation-delay: 3s;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Hero particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(34, 197, 94, 0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 0 4rem;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: #facc15;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin-top: 1.5rem;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3.25rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4rem; }
}

.hero h1 .green {
  background: linear-gradient(135deg, var(--db-green), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1.25rem; }
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeInUp 0.8s ease 0.6s forwards;
  opacity: 0;
}

@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }
}

.hero-trust {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  animation: fadeInUp 0.8s ease 0.8s forwards;
  opacity: 0;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-trust svg {
  width: 1rem;
  height: 1rem;
  color: var(--db-green);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 10;
}

.hero-scroll-dot {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 9999px;
  padding: 0.25rem;
  position: relative;
}

.hero-scroll-dot::after {
  content: '';
  width: 0.375rem;
  height: 0.5rem;
  background: rgba(255,255,255,0.6);
  border-radius: 9999px;
  position: absolute;
  top: 0.25rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { top: 0.25rem; opacity: 1; }
  50% { top: 1rem; opacity: 0.3; }
}

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

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */

.services {
  background-color: var(--gray-50);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(22,163,74,0.04), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.services::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(15,76,129,0.04), transparent 70%);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--db-green), #22c55e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: rgba(22,163,74,0.1);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--db-green-light), rgba(22,163,74,0.15));
  color: var(--db-green);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(22,163,74,0.25);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}

.service-card p {
  margin-top: 0.75rem;
  color: var(--gray-600);
  line-height: 1.6;
  font-size: 0.9375rem;
}

.service-features {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.service-features svg {
  width: 1rem;
  height: 1rem;
  color: var(--db-green);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════ */

.process {
  background: #fff;
  position: relative;
}

.process-timeline {
  position: relative;
  margin-top: 4rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--db-green), var(--db-blue), var(--db-green));
  display: none;
}

@media (min-width: 1024px) {
  .process-timeline::before { display: block; }
}

.process-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .process-grid { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  text-align: center;
  position: relative;
}

.process-icon-wrap {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--db-green), var(--db-blue));
  color: #fff;
  box-shadow: 0 10px 30px rgba(22,163,74,0.2);
  position: relative;
  transition: var(--transition);
}

.process-step:hover .process-icon-wrap {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(22,163,74,0.3);
}

.process-icon-wrap svg {
  width: 2.25rem;
  height: 2.25rem;
}

.process-num {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--db-green);
  color: var(--db-green);
  font-size: 0.6875rem;
  font-weight: 700;
}

.process-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.process-step p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   WHY US
   ═══════════════════════════════════════════ */

.why-us {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(22,163,74,0.08), transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.why-us .section-label { color: var(--db-green); }
.why-us .section-title { color: #fff; }
.why-us .section-subtitle { color: rgba(255,255,255,0.75); }

.why-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background-color: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--db-green), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.why-card:hover::before {
  opacity: 1;
}

.why-card:hover {
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.why-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: rgba(22,163,74,0.15);
  color: var(--db-green);
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  color: #fff;
  transform: scale(1.1);
}

.why-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.why-card p {
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* Stats */
.stats-section {
  margin-top: 4rem;
  padding: 3rem 2rem;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(22,163,74,0.1), rgba(15,76,129,0.1));
  border: 1px solid rgba(255,255,255,0.05);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 1024px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--db-green), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   REALISATIONS
   ═══════════════════════════════════════════ */

.realisations {
  background-color: #fff;
}

.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.project-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent, transparent);
}

.project-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(22,163,74,0.3);
}

.project-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  padding: 1.5rem 1.5rem 0;
}

.project-card p {
  padding: 0.5rem 1.5rem 1.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */

.about {
  background: linear-gradient(180deg, var(--gray-50), #fff);
}

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

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

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

.about-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,76,129,0.2), transparent);
}

.about-floating-card {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: linear-gradient(135deg, var(--db-blue), var(--db-blue-dark));
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  color: #fff;
  z-index: 2;
  animation: floatCard 6s ease-in-out infinite;
}

@media (min-width: 640px) {
  .about-floating-card { right: -1.5rem; }
}

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

.about-floating-card .value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4ade80, var(--db-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-floating-card .label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.about-content .section-label {
  margin-bottom: 0.75rem;
  display: block;
}

.about-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-top: 1.5rem;
}

.about-checklist {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--gray-700);
}

.about-checklist svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--db-green);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.about-content .btn {
  margin-top: 2rem;
}

/* ═══════════════════════════════════════════
   TEAM - 3 TOP, 3 BOTTOM
   ═══════════════════════════════════════════ */

.team {
  background-color: var(--gray-50);
}

.team-row {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .team-row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .team-row { grid-template-columns: repeat(3, 1fr); }
}

.team-row:first-of-type {
  margin-top: 4rem;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
}

.team-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
  border-color: rgba(22,163,74,0.15);
}

.team-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}

.team-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15,76,129,0.5), transparent);
  pointer-events: none;
}

/* Social overlay on hover */
.team-social-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(1rem);
  transition: var(--transition);
}

.team-card:hover .team-social-overlay {
  opacity: 1;
  transform: translateY(0);
}

.team-social-overlay a {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: var(--transition);
}

.team-social-overlay a:hover {
  background: var(--db-green);
  transform: scale(1.1);
}

.team-info {
  padding: 1.5rem;
}

.team-info h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.team-role {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--db-green);
  background: linear-gradient(135deg, var(--db-green-light), rgba(22,163,74,0.1));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

.team-info p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */

.testimonials {
  background: #fff;
}

.testimonials-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 640px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-quote-icon {
  color: rgba(22,163,74,0.1);
  margin-bottom: 1rem;
}

.testimonial-quote-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  color: #facc15;
  fill: #facc15;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */

.cta-banner {
  background: linear-gradient(135deg, var(--db-green-dark), var(--db-green), var(--db-green-dark));
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.cta-banner::before {
  top: -8rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
}

.cta-banner::after {
  bottom: -6rem;
  left: -6rem;
  width: 16rem;
  height: 16rem;
}

.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  position: relative;
}

@media (min-width: 640px) {
  .cta-banner h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .cta-banner h2 { font-size: 2.75rem; }
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 640px;
  margin: 1rem auto 0;
  position: relative;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  position: relative;
}

@media (min-width: 640px) {
  .cta-actions { flex-direction: row; justify-content: center; }
}

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */

.contact {
  background: linear-gradient(180deg, var(--gray-50), #fff);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 3fr 2fr; }
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  border: 1px solid var(--gray-100);
}

@media (min-width: 1024px) {
  .contact-form-card { padding: 2.5rem; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--gray-700);
  background: #fff;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--db-green);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
}

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

/* Contact info sidebar */
.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.contact-info-card > p {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
  line-height: 1.6;
}

.contact-info-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: var(--transition);
  text-decoration: none;
}

.contact-info-item:hover {
  color: var(--db-green);
}

.contact-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--db-green-light);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--db-green);
}

.contact-info-item:hover .contact-info-icon {
  background: var(--db-green);
}

.contact-info-item:hover .contact-info-icon svg {
  color: #fff;
}

.contact-whatsapp {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--db-green-light);
  border: 1px solid rgba(22,163,74,0.15);
  transition: var(--transition);
  text-decoration: none;
}

.contact-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22,163,74,0.3);
}

.contact-whatsapp-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--db-green), #22c55e);
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-whatsapp:hover .contact-whatsapp-icon {
  transform: scale(1.1);
}

.contact-whatsapp-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.contact-whatsapp .title {
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.9375rem;
}

.contact-whatsapp .desc {
  font-size: 0.8125rem;
  color: var(--db-green);
}

.contact-call {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-2xl);
  background: var(--db-blue-light);
  border: 1px solid rgba(15,76,129,0.1);
  transition: var(--transition);
  text-decoration: none;
}

.contact-call:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.contact-call-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--db-blue), #3b82f6);
  flex-shrink: 0;
}

.contact-call-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.contact-call .title {
  font-weight: 700;
  color: var(--db-blue);
  font-size: 0.9375rem;
}

.contact-call .desc {
  font-size: 0.8125rem;
  color: var(--gray-600);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background-color: var(--gray-900);
  padding: 5rem 0 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60rem;
  height: 30rem;
  background: radial-gradient(ellipse, rgba(22,163,74,0.06), transparent 70%);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  position: relative;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.footer-brand .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-brand .footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand .custom-logo {
  max-height: 2.25rem;
  width: auto;
}

@media (min-width: 640px) {
  .footer-brand .custom-logo {
    max-height: 2.5rem;
  }
}

.footer-brand .logo-text .green {
  background: linear-gradient(135deg, var(--db-green), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--db-green), transparent);
}

.footer-links a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.9375rem;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--db-green);
  padding-left: 0.5rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-400);
  padding: 0.5rem 0;
}

.footer-contact svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--db-green);
  flex-shrink: 0;
}

.footer-contact a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-contact a:hover {
  color: var(--db-green);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ═══════════════════════════════════════════
   FLOATING BUTTONS
   ═══════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--whatsapp), #1fb855);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
  transition: var(--transition);
  animation: floatPulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
}

@keyframes floatPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(37,211,102,0.35); }
  50% { box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 999;
  width: 3rem;
  height: 3rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--db-blue), #3b82f6);
  color: #fff;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.back-to-top.visible {
  display: flex;
  animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--db-blue-dark), var(--db-blue));
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ═══════════════════════════════════════════
   STUNNING ANIMATIONS
   ═══════════════════════════════════════════ */

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

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in down */
.fade-in-down {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-down.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in left */
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Fade in right */
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Scale in */
.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 100ms; }
.stagger > *:nth-child(3) { transition-delay: 200ms; }
.stagger > *:nth-child(4) { transition-delay: 300ms; }
.stagger > *:nth-child(5) { transition-delay: 400ms; }
.stagger > *:nth-child(6) { transition-delay: 500ms; }

/* Morphing decorative shapes */
@keyframes morphShape {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%; }
}

.decor-shape {
  position: absolute;
  background: linear-gradient(135deg, rgba(22,163,74,0.08), rgba(15,76,129,0.05));
  animation: morphShape 15s ease-in-out infinite;
  pointer-events: none;
}

/* Shimmer effect */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Rotating border animation */
@keyframes rotateBorder {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════
   WP ADMIN BAR FIX
   ═══════════════════════════════════════════ */

body.admin-bar .navbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}

/* ═══════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--db-green), var(--db-blue));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--db-green-dark), var(--db-blue-dark));
}

/* ═══════════════════════════════════════════
   RESPONSIVE FINE-TUNING
   ═══════════════════════════════════════════ */

@media (max-width: 640px) {
  .hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .team-photo { aspect-ratio: 3/4; }
  .project-img { aspect-ratio: 16/10; }
}
