/*
Theme Name: ECG - Elite Consulting Group
Theme URI: https://ecg.sn
Author: Elite Consulting Group
Author URI: https://ecg.sn
Description: Thème professionnel pour Elite Consulting Group - Cabinet de conseil stratégique
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecg
*/

/* ===========================
   VARIABLES CSS
   =========================== */
:root {
  /* Couleurs principales - Palette professionnelle ECG */
  --color-primary: #1a365d;
  --color-secondary: #2563eb;
  --color-accent: #f59e0b;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;

  /* Couleurs de texte */
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-text-light: #9ca3af;

  /* Couleurs de fond */
  --color-bg-light: #f9fafb;
  --color-bg-white: #ffffff;
  --color-bg-dark: #111827;

  /* Typographie */
  --font-primary:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --font-size-h1: 3.5rem;
  --font-size-h2: 2.5rem;
  --font-size-h3: 2rem;
  --font-size-h4: 1.5rem;
  --font-size-body: 1.125rem;
  --font-size-small: 0.875rem;

  /* Espacements */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Autres */
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ===========================
   RESET & BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  background-color: var(--color-bg-dark);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===========================
   TYPOGRAPHIE
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

h1 {
  font-size: var(--font-size-h1);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

p {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

/* ===========================
   UTILITIES
   =========================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-bg {
  background-color: var(--color-bg-light);
}

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

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
  background-color: var(--color-secondary);
  color: white;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.main-navigation ul {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.main-navigation a {
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.main-navigation a:hover {
  color: var(--color-secondary);
}

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

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a365d 0%, #2563eb 100%);
  color: white;
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  color: var(--color-accent);
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* ===========================
   STATS SECTION
   =========================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  transition: none;
}

.stat-item:hover {
  transform: none;
  background: transparent;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

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

/* ===========================
   EXPERTISE SECTION
   =========================== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--spacing-lg);
}

.section-title {
  font-size: var(--font-size-h2);
  margin-bottom: var(--spacing-sm);
}

.section-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
}

/* Expertise grid - Surchargé par design-styles.css */
.expertise-grid {
  gap: var(--spacing-md);
}

/* Expertise cards - Styles de base, surchargés par design-styles.css */
.expertise-card {
  transition: var(--transition);
}

.expertise-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  color: white;
}

.expertise-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.expertise-description {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===========================
   SERVICES SECTION
   =========================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

/* Service card - Styles de base, surchargés par design-styles.css */
.service-card {
  transition: var(--transition);
  overflow: hidden;
}

.service-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-md);
  background: var(--color-bg-light);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-icon-large {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto var(--spacing-md);
  box-shadow: var(--shadow-md);
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
}

.service-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}

.service-features li {
  padding: 0.75rem 0;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: flex-start;
}

.service-features li::before {
  content: '▸';
  color: var(--color-accent);
  font-weight: bold;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* ===========================
   TEAM SECTION
   =========================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.team-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.team-image-wrapper {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
}

.team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.team-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 4rem;
  font-weight: 700;
}

.team-content {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  text-align: center;
}

.team-position {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.team-slogan {
  color: var(--color-text-secondary);
  font-style: italic;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.team-contact-links {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.team-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--color-bg-light);
  border-radius: var(--border-radius);
  color: var(--color-text-primary);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.team-contact-link:hover {
  background: var(--color-secondary);
  color: white;
  transform: translateY(-2px);
}

.team-contact-link span {
  font-size: 1rem;
}

.team-details-btn {
  margin-top: auto;
}

/* Team Modal Styles */
.team-modal-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.team-modal-content .team-image-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 4px solid var(--color-secondary);
}

.team-modal-content .team-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-modal-content .team-image-placeholder {
  border-radius: 50%;
  font-size: 3rem;
}

.team-modal-content .team-name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.team-modal-content .team-position {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.team-modal-content .team-slogan {
  font-size: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 1.5rem;
}

.team-modal-content .team-bio {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
  text-align: left;
}

.team-modal-content .team-bio ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.team-modal-content .team-bio li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.team-modal-content .team-bio li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}

.team-modal-content .team-contact-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-bg-light);
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background-color: var(--color-bg-dark);
  color: white;
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --spacing-xl: 4rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    transition: var(--transition);
    padding: var(--spacing-md);
  }

  .main-navigation.active {
    left: 0;
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .service-detail-header {
    padding: 4rem 0 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  div[style*='grid-template-columns: 1fr 1fr'] {
    grid-template-columns: 1fr !important;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  #contact .container > div[style*='grid-template-columns'] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
}

/* ===========================
   ENHANCED ANIMATIONS
   =========================== */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

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

.hero-section {
  animation: fadeIn 1s ease-out;
}

.expertise-card,
.service-card,
.team-card {
  animation: fadeIn 0.6s ease-out;
}

/* ===========================
   ENHANCED BUTTONS
   =========================== */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-primary) 100%
  );
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

/* ===========================
   ENHANCED CARDS
   =========================== */
.expertise-card,
.service-card {
  position: relative;
  overflow: hidden;
}

.expertise-card::after,
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s;
}

.expertise-card:hover::after,
.service-card:hover::after {
  left: 100%;
}

/* ===========================
   FORM MESSAGES
   =========================== */
.form-message {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  animation: slideInRight 0.5s ease;
}

.form-message-success {
  background: #10b981;
  color: white;
  border-left: 4px solid #059669;
}

.form-message-error {
  background: #ef4444;
  color: white;
  border-left: 4px solid #dc2626;
}

/* ===========================
   LOADING STATES
   =========================== */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ===========================
   ENHANCED HEADER
   =========================== */
.site-header {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.main-navigation a {
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-navigation a:hover::after {
  width: 80%;
}

/* ===========================
   ENHANCED STATS
   =========================== */
.stat-item {
  position: relative;
}

/* Stat item pseudo-element supprimé - Pas de carrés pour les stats */

/* ===========================
   SCROLL INDICATOR
   =========================== */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-accent)
  );
  z-index: 9999;
  transition: width 0.1s ease;
}

/* ===========================
   ENHANCED TYPOGRAPHY
   =========================== */
.hero-title {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   ACCESSIBILITY
   =========================== */
@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;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===========================
   SCROLL TO TOP BUTTON
   =========================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(
    135deg,
    var(--color-secondary),
    var(--color-primary)
  );
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}

/* ===========================
   CUSTOM STYLES (fusionné depuis custom.css)
   Animations, formulaires, modales, etc.
   =========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.slide-in-left { animation: slideInLeft 0.8s ease-out forwards; }
.slide-in-right { animation: slideInRight 0.8s ease-out forwards; }
.scale-in { animation: scaleIn 0.6s ease-out forwards; }
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.stagger-item.active { opacity: 1; transform: translateY(0); }
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.hover-glow { transition: box-shadow 0.3s ease; }
.hover-glow:hover { box-shadow: 0 0 30px rgba(37, 99, 235, 0.4); }
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--color-text-primary); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: var(--font-primary);
  transition: all 0.3s ease;
  background: var(--color-bg-white, #fff);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-secondary, #1a365d);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group.error input,
.form-group.error textarea,
.form-group.error select { border-color: #ef4444; }
.form-error { color: #ef4444; font-size: 0.875rem; margin-top: 0.5rem; display: none; }
.form-group.error .form-error { display: block; animation: fadeIn 0.3s ease; }
.form-success {
  background: #10b981;
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  text-align: center;
  display: none;
  animation: scaleIn 0.5s ease;
}
.form-success.active { display: block; }
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.loading { pointer-events: none; opacity: 0.7; }
.service-detail-header {
  background: linear-gradient(135deg, var(--color-primary, #1a365d) 0%, var(--color-secondary, #2563eb) 100%);
  color: white;
  padding: 6rem 0 4rem;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}
.service-detail-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}
.service-detail-content { position: relative; z-index: 1; }
.service-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  animation: scaleIn 0.6s ease;
}
.service-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--color-bg-light, #f3f4f6);
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}
.service-feature-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.service-feature-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-secondary, #2563eb), var(--color-primary, #1a365d));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.services-archive-header {
  background: var(--color-bg-light, #f3f4f6);
  padding: 6rem 0 4rem;
  margin-top: 70px;
  text-align: center;
}
.services-filter { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.filter-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--color-secondary, #2563eb);
  color: white;
  border-color: var(--color-secondary, #2563eb);
  transform: translateY(-2px);
}
.card-animated { position: relative; overflow: hidden; }
.card-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.card-animated:hover::before { left: 100%; }
.parallax-section { position: relative; overflow: hidden; }
.parallax-bg {
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 200%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary, #2563eb), var(--color-primary, #1a365d));
  border-radius: 4px;
  transition: width 1s ease;
  animation: shimmer 2s infinite;
}
.breadcrumbs { padding: 1rem 0; font-size: 0.875rem; color: var(--color-text-secondary, #6b7280); }
.breadcrumbs a { color: var(--color-secondary, #2563eb); transition: color 0.3s ease; }
.breadcrumbs a:hover { color: var(--color-primary, #1a365d); }
.breadcrumbs span { margin: 0 0.5rem; color: var(--color-text-light, #9ca3af); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--border-radius);
}
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  padding: 1rem;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-secondary, #6b7280);
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-close:hover { background: var(--color-error, #ef4444); color: white; transform: rotate(90deg); }
.team-modal-content { padding: 3rem 2rem; }
.team-modal-content .team-image-wrapper {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  overflow: hidden;
  border: 4px solid var(--color-secondary);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}
.team-modal-content .team-image,
.team-modal-content .team-image-modal {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-modal-content .team-image-placeholder { border-radius: 50%; font-size: 3rem; }
.team-modal-content .team-name { font-size: 2rem; margin-bottom: 0.5rem; }
.team-modal-content .team-position { font-size: 1.125rem; margin-bottom: 0.5rem; }
.team-modal-content .team-slogan {
  font-size: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--color-bg-light);
  padding-bottom: 1.5rem;
}
.team-modal-content .team-bio {
  color: var(--color-text-secondary);
  line-height: 1.8;
  font-size: 1.0625rem;
  text-align: left;
  margin-bottom: 2rem;
}
.team-modal-content .team-bio ul { list-style: none; padding: 0; margin: 1rem 0; }
.team-modal-content .team-bio li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}
.team-modal-content .team-bio li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: bold;
}
.team-modal-content .team-contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-bg-light);
}
@media (max-width: 768px) {
  .team-modal-content { padding: 2rem 1.5rem; }
  .team-modal-content .team-image-wrapper { width: 150px; height: 150px; }
  .team-modal-content .team-name { font-size: 1.5rem; }
  .modal-content { padding: 1.5rem; max-width: 95%; }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .menu-toggle,
  .scroll-to-top {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}
