/* ============================================
   RECAS Group - Global Styles
   Premium Corporate Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #14224F;
  --navy-dark: #0B1530;
  --navy-light: #1C3068;
  --teal: #10E698;
  --teal-dark: #0CB87A;
  --teal-light: #3DFBB2;
  --blue: #21B2DE;
  --gold: #D4A853;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gray-100: #E8ECF1;
  --gray-200: #CBD2DC;
  --gray-300: #9BA5B4;
  --gray-400: #6B7788;
  --gray-500: #4A5568;
  --text-dark: #1A202C;
  --text-body: #2D3748;
  --text-muted: #718096;

  --font-heading: 'Inter', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-accent: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol { list-style: none; }

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

/* ---------- Typography ---------- */
.heading-xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

.heading-lg {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
}

.heading-md {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

.heading-sm {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
}

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
}

.text-teal { color: var(--teal); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

.grid {
  display: grid;
  gap: 30px;
}

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

.flex {
  display: flex;
  align-items: center;
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Header / Navigation ----------
   Premium mega-menu header system
   Codex-designed: glassmorphic shell, staggered mega-menu, full-screen mobile overlay
   State hooks: .site-header.is-scrolled, .nav-item.is-open, .mobile-nav.is-open, body.menu-open
   ---------- */

/* -- Header bar -- JLL-inspired: always visible, clean, well-spaced -- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  background: rgba(11, 21, 48, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(11, 21, 48, 0.97);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  height: 40px;
  flex-shrink: 0;
  transition: var(--transition);
}

.header.scrolled .logo {
  height: 36px;
}

/* -- Desktop nav links -- */
.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
  margin: 0 auto;
}

.nav-links > a,
.nav-links .dropdown-toggle {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links > a:hover,
.nav-links .dropdown-toggle:hover,
.nav-links > a.active {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

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

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 260px;
  background: rgba(11, 21, 48, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 14px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), visibility 0.25s ease;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 8px;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
  letter-spacing: 0;
  text-transform: none;
}

.dropdown-menu a:hover {
  color: #fff;
  background: rgba(16, 230, 152, 0.1);
}

/* -- Header CTA button -- */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #72ffd0, #10E698 60%);
  color: #071121;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(16,230,152,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(16,230,152,0.3);
  color: #071121;
}

.header-cta-btn svg {
  width: 14px;
  height: 14px;
}

/* -- Subtle bottom gradient line on scroll -- */
.header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16,230,152,0.5) 50%, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.header.scrolled::after {
  opacity: 1;
}

/* -- Hamburger toggle -- */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  z-index: 1001;
  position: relative;
  flex-shrink: 0;
  transition: var(--transition);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 999px;
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), opacity 0.2s ease;
}

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

/* -- Full-screen mobile overlay -- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,21,48,0.98), rgba(6,12,28,0.99));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-overlay-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  padding: 90px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mobile-overlay .mob-link {
  display: flex;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: #fff;
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}

.mobile-overlay.open .mob-link { opacity: 1; transform: translateY(0); }
.mobile-overlay.open .mob-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-overlay.open .mob-link:nth-child(2) { transition-delay: 0.08s; }
.mobile-overlay.open .mob-link:nth-child(3) { transition-delay: 0.11s; }
.mobile-overlay.open .mob-link:nth-child(4) { transition-delay: 0.14s; }
.mobile-overlay.open .mob-link:nth-child(5) { transition-delay: 0.17s; }
.mobile-overlay.open .mob-link:nth-child(6) { transition-delay: 0.20s; }
.mobile-overlay.open .mob-link:nth-child(7) { transition-delay: 0.23s; }
.mobile-overlay.open .mob-link:nth-child(8) { transition-delay: 0.26s; }

.mobile-overlay .mob-cta {
  margin-top: auto;
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease 0.3s, transform 0.45s cubic-bezier(0.22,1,0.36,1) 0.3s;
}

.mobile-overlay.open .mob-cta { opacity: 1; transform: translateY(0); }

/* -- Tablet breakpoint: hide desktop nav, show hamburger -- */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .header-cta-btn { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(11, 21, 48, 0.92) 0%,
    rgba(20, 34, 79, 0.75) 50%,
    rgba(11, 21, 48, 0.85) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 120px 0 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(16, 230, 152, 0.12);
  border: 1px solid rgba(16, 230, 152, 0.25);
  border-radius: var(--radius-xl);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 800;
}

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

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Animated gradient line */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--teal));
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
  z-index: 3;
}

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

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: 180px 0 100px;
  background: var(--navy-dark);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  z-index: 1;
}

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

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

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

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue), var(--teal));
  background-size: 200% 100%;
  animation: gradientSlide 3s ease infinite;
  z-index: 2;
}

/* Decorative shapes */
.page-hero .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  z-index: 1;
}

.page-hero .shape-1 {
  width: 400px;
  height: 400px;
  background: var(--teal);
  top: -100px;
  right: -100px;
}

.page-hero .shape-2 {
  width: 250px;
  height: 250px;
  background: var(--blue);
  bottom: -50px;
  left: 10%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--teal);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 230, 152, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #20BD5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
}

.btn-signal {
  background: #3A76F0;
  color: white;
}

.btn-signal:hover {
  background: #2D5FC0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(58, 118, 240, 0.35);
}

.btn-email {
  background: var(--navy);
  color: white;
}

.btn-email:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 34, 79, 0.35);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

.card-image .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,21,48,0.7), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover .card-image .card-overlay {
  opacity: 1;
}

.card-body {
  padding: 28px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(16, 230, 152, 0.1);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Dark card variant */
.card-dark {
  background: var(--navy);
  border-color: rgba(255,255,255,0.08);
}

.card-dark:hover {
  border-color: rgba(16, 230, 152, 0.2);
}

.card-dark .card-title { color: var(--white); }
.card-dark .card-text { color: rgba(255,255,255,0.65); }
.card-dark .card-tag {
  background: rgba(16, 230, 152, 0.15);
  color: var(--teal);
}

/* ---------- Section Titles ---------- */
.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

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

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.8;
}

.section-header.center p {
  margin: 0 auto;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 60px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ---------- Business Areas (Home) ---------- */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.business-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.business-card.card-dark {
  background: var(--navy);
  border-color: rgba(255,255,255,0.08);
}

.business-card.card-dark h3 { color: var(--white); }
.business-card.card-dark p { color: rgba(255,255,255,0.65); }
.business-card.card-dark .card-tag { background: rgba(16,230,152,0.15); color: var(--teal); }
.business-card.card-dark .business-icon { color: var(--teal); }

.business-card.card-dark:hover {
  border-color: rgba(16,230,152,0.2);
  background: var(--navy-light);
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

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

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.business-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(16, 230, 152, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 24px;
}

.business-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.business-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Featured Projects ---------- */
.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-showcase .card-image {
  aspect-ratio: 16/9;
}

/* ---------- About / Chairman Section ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

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

.about-image img {
  border-radius: var(--radius-lg);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  opacity: 0.2;
  transform: translate(15px, 15px);
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.quote {
  position: relative;
  padding: 28px 32px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--teal);
  margin: 30px 0;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--navy);
  font-style: italic;
  line-height: 1.8;
}

/* ---------- People Section ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--gray-100);
  transition: var(--transition);
}

.team-card:hover .team-avatar {
  border-color: var(--teal);
}

.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.team-card .role {
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- Technology Section ---------- */
.tech-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.tech-card {
  display: flex;
  gap: 20px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.tech-card .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(16, 230, 152, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.tech-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tech-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: var(--navy-dark);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,230,152,0.08), transparent);
  top: -200px;
  right: -100px;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact Page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 48px 32px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.contact-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
}

.contact-card.whatsapp .contact-icon {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
}

.contact-card.signal .contact-icon {
  background: rgba(58, 118, 240, 0.12);
  color: #3A76F0;
}

.contact-card.email .contact-icon {
  background: rgba(20, 34, 79, 0.1);
  color: var(--navy);
}

.contact-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.contact-card .contact-detail {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.floating-btn.whatsapp { background: #25D366; }
.floating-btn.signal { background: #3A76F0; }
.floating-btn.email-float { background: var(--navy); }

.floating-cta .tooltip {
  position: absolute;
  right: 70px;
  background: var(--navy-dark);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.floating-btn:hover + .tooltip,
.floating-btn:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--teal);
  transform: translateX(4px);
}

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

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

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

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

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

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

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

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

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

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

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ---------- Section Variants (JLL-inspired alternation) ---------- */
.section-dark {
  background: var(--navy-dark);
}

.section-dark .section-label { color: var(--teal); }
.section-dark .section-label::before { background: var(--teal); }
.section-dark h2 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }

/* Light gray section - prevents white-on-white monotony */
.section-light {
  background: var(--off-white);
}

/* Mid-tone navy (not as dark as section-dark) */
.section-navy {
  background: var(--navy);
}

.section-navy .section-label { color: var(--teal); }
.section-navy .section-label::before { background: var(--teal); }
.section-navy h2 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.6); }
.section-navy .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.section-navy .card:hover { border-color: rgba(16,230,152,0.2); }
.section-navy .card-title { color: var(--white); }
.section-navy .card-text { color: rgba(255,255,255,0.6); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

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

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb .sep {
  opacity: 0.4;
}

/* ---------- Project Detail ---------- */
.project-detail {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}

.project-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.project-detail-image img {
  width: 100%;
  height: auto;
}

.project-info h2 {
  margin-bottom: 20px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.project-meta-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.project-meta-item .label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  min-width: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-meta-item .value {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Loading animation ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 230, 152, 0.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .project-showcase { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .project-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .tech-features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .hero-content { padding: 140px 0 60px; }
  .page-hero { padding: 140px 0 60px; }
  .hero-cta { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .floating-cta {
    bottom: 20px;
    right: 20px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .container { padding: 0 16px; }
  .hero-content { padding: 120px 0 40px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Particle / Ambient Background ---------- */
.ambient-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.ambient-bg .particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(16, 230, 152, 0.08);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-30px) translateX(15px); }
  50% { transform: translateY(-10px) translateX(-15px); }
  75% { transform: translateY(-40px) translateX(10px); }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(16, 230, 152, 0.2);
  color: var(--navy-dark);
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.lang-btn {
  padding: 5px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.lang-btn:hover {
  color: rgba(255,255,255,0.8);
}

.lang-btn.active {
  color: var(--navy-dark);
  background: var(--teal);
  font-weight: 800;
}

@media (max-width: 1024px) {
  .lang-switcher {
    position: fixed;
    top: 18px;
    right: 70px;
    z-index: 1002;
    background: rgba(11,21,48,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* ---------- RTL Support ---------- */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .section-label::before { margin-right: 0; margin-left: 10px; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--navy-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-dark);
}
