@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --navy: #08152c;
  --navy-900: #031636;
  --navy-700: #0f2445;
  --sky: #e9f2ff;
  --card: #ffffff;
  --muted: #5c6578;
  --text: #06122a;
  --accent: #d93c2c;
  --accent-dark: #a52a1e;
  --line: #dfe7f4;
  --radius-lg: 32px;
  --max-width: 1200px;
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
  background-color: var(--sky);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loader-logo {
  width: 120px;
  height: 120px;
  animation: logoPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.loader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loader-text {
  color: var(--navy);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
  animation: textFade 2s ease-in-out infinite;
}

.loader-progress {
  width: 200px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #d93c2c 0%, #ff6b5a 50%, #d93c2c 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
  animation: shimmer 2s linear infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes textFade {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes progressBar {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  padding-left: 1.25rem;
}

.container {
  width: min(90vw, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 3rem 0;
}

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

.section-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2rem, 1vw, 3rem);
  margin: 0 0 1rem;
  color: var(--text);
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 640px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(6, 18, 42, 0.08);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.25rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  color: var(--text);
  padding-bottom: 0.35rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  width: 26px;
  height: 20px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
  position: absolute;
}

.nav-toggle span:first-child {
  top: 0;
  left: 0;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.nav-toggle span:last-child {
  bottom: 0;
  left: 0;
}

/* Transform hamburger to X when menu is open */
.nav-toggle.active span:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.nav-toggle.active span:last-child {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Submenu Styles */
.nav-links li {
  position: relative;
}

.has-submenu {
  position: relative;
}

.submenu-toggle {
  font-size: 0.7em;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
  display: inline-block;
}

@media (min-width: 901px) {
  .has-submenu:hover .submenu-toggle {
    transform: rotate(180deg);
  }

  .has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  list-style: none;
  padding: 0.75rem 0;
  margin: 0.5rem 0 0 0;
  min-width: 240px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(8, 21, 44, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.submenu li {
  margin: 0;
}

.submenu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95em;
}

.submenu a:hover {
  background-color: rgba(220, 38, 38, 0.08);
  color: var(--accent);
  padding-left: 1.5rem;
}

.submenu a::after {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: none;
}

.btn-primary {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 18px 35px rgba(217, 60, 44, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: var(--accent-dark);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  color: white;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-link {
  color: var(--text);
  border: 1px solid var(--line);
  background: transparent;
  padding-inline: 1.5rem;
}

.btn-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero-cover {
  position: relative;
  color: white;
  padding: 6rem 0 8rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  height: 85vh;
  z-index: 1;
}

.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 10, 20, 0.85), rgba(4, 10, 20, 0.35));
  z-index: 0;
}

.hero-cover > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

.hero-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.8rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-text {
  color: #e7ebf5;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.stats-panel {
  position: relative;
  margin-top: -9rem;
  padding: 3rem 3.5rem;
  background: var(--card);
  border-radius: 40px;
  box-shadow: 0 35px 80px rgba(8, 21, 44, 0.18);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  z-index: 10;
}

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

.stat-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: rgba(217, 60, 44, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.stat-card h3 {
  font-size: 4rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin: 0;
  color: var(--accent);
}

.stat-card p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Slider */
.slider {
  position: relative;
  
}

.slider-window {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1.5rem;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-card {
  flex: 0 0 clamp(240px, 28vw, 320px);
  min-height: 320px;
  border-radius: 28px;
  padding: 1.5rem;
  position: relative;
  color: white;
  display: flex;
  align-items: flex-end;
  scroll-snap-align: start;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* box-shadow: 0 18px 45px rgba(8, 21, 44, 0.2); */
}

.slider-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.slider-card > div {
  position: relative;
  z-index: 1;
}

.slider-card-link {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-card-link:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateX(4px);
}

.slider-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.slider-card p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Project Card Styles (for projects page) */
.project-card {
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 18px 45px rgba(8, 21, 44, 0.15);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  height: 420px;
  min-height: 420px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(8, 21, 44, 0.25);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 0;
  height: 50%;
  bottom: 0;
  top: 50%;
}



.project-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  margin-bottom: -6em;
  color: white;
  transition: margin-bottom 0.3s ease;
  text-align: center;
}

.project-card:hover h3 {
  margin-bottom: 0.75rem;
}

.project-card p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: center;
}

.project-card:hover p {
  opacity: 1;
  transform: translateY(0);
}

.project-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  width: fit-content;
}

.project-card:hover .project-card-btn {
  opacity: 1;
  transform: translateY(0);
}

.slider-btn {
  position: absolute;
  top: -70px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: white;
  box-shadow: 0 15px 30px rgba(8, 21, 44, 0.15);
  cursor: pointer;
  font-weight: 700;
}

.slider-btn[data-slide="prev"] {
  right: 60px;
}

.slider-dots {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c7cfdd;
}

.slider-dots span.active {
  background: var(--accent);
}

.vision-section {
  background: var(--card);
}

.blog-section {
  background: var(--card);
  padding: 4rem 0;
}

.blog-hero {
  background-size: cover;
  background-position: center;
}

.blog-filters {
  padding: 2rem 0;
  background: var(--card);
  border-bottom: 1px solid rgba(8, 21, 44, 0.08);
}

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.blog-category-btn {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid rgba(8, 21, 44, 0.1);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-category-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.blog-category-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

@media (max-width: 640px) {
  .blog-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .blog-category-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
}
.section1{
  padding: 1em;
}

.vision-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem;
  /* padding: 3rem; */
  background: var(--card);
  /* border-radius: var(--radius-lg); */
  /* box-shadow: 0 18px 45px rgba(8, 21, 44, 0.08); */
  width: 100%;
  align-items: center;
}

.vision-content {
  max-width: 580px;
}

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

.vision-media img {
  border-radius: 24px;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.about-panels {
  background: var(--sky);
}
.about-panels.panel1 {
  background: var(--card);
}

.about-panels .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: 28px;
  /* border: 1px solid var(--line); */
  /* box-shadow: 0 18px 40px rgba(8, 21, 44, 0.08); */
}

.about-panel-label {
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 900;
  line-height: 1.4;

}

.about-panel-label strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: normal;
  color: var(--navy);
  text-transform: none;
}

.about-panel-body p {
  margin-top: 0;
  color: var(--muted);
}

.about-icons-section {
  background: var(--card);
  padding-bottom: 3rem;
}

.about-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.about-icon {
  flex: 1 1 180px;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 600;
}

.about-icon img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.counsel-section {
  background: var(--card);
}

.counsel-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.counsel-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.counsel-label strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.5rem;
  color: var(--navy);
  text-transform: none;
}

.counsel-label p {
  margin-top: 1.25rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
}

.counsel-section {
  background: var(--card);
}

.counsel-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.counsel-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
}

.counsel-label strong {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  text-transform: none;
  margin-top: 0.35rem;
}

.counsel-label p {
  color: var(--muted);
  margin-top: 1rem;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.bullets li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bullets li::before {
  content: "•";
  color: var(--accent);
  font-size: 1.5rem;
}

.blog-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.blog-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(8, 21, 44, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(8, 21, 44, 0.15);
}

.blog-card.featured {
  grid-column: span 2;
}

/* Blog card image wrapper (for blog.php) */
.blog-card-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.blog-card.featured .blog-card-image {
  height: 320px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Blog card image directly in card (for index.html) */
.blog-card > img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover > img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(220, 38, 38, 0.95);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.blog-card-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Blog card content directly in card (for index.html) */
.blog-card > img:first-child {
  margin-bottom: 0;
  border-radius: 24px 24px 0 0;
}

/* Style pour les cartes sans blog-card-content (index.html) - plus spécifique */
.blog-card > img ~ time {
  padding-left: 2rem;
  padding-right: 2rem;
}

.blog-card > img + time {
  padding-top: 1.5rem;
  padding-bottom: 0;
  margin-top: 0;
}

.blog-card > img ~ h3 {
  padding-left: 2rem;
  padding-right: 2rem;
  margin-top: 0;
}

.blog-card > img ~ p {
  padding-left: 2rem;
  padding-right: 2rem;
}

.blog-card time {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.blog-card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.blog-card.featured h3 {
  font-size: 2rem;
}

.blog-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.blog-card .card-link {
  margin: 0 2rem 2rem;
  margin-top: auto;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.blog-card .card-link:hover {
  gap: 0.75rem;
  color: var(--navy);
}

.blog-card .card-link span {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.blog-card .card-link:hover span {
  transform: translateX(4px);
}

.blog-card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease, color 0.3s ease;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-link:hover {
  gap: 0.75rem;
  color: var(--navy);
}

.blog-card-link span {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.blog-card-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .blog-card.featured {
    grid-column: span 1;
  }

  .blog-card-image {
    height: 200px;
  }

  .blog-card.featured .blog-card-image {
    height: 240px;
  }

  .blog-card > img {
    height: 200px;
  }

  .blog-card h3 {
    font-size: 1.25rem;
  }

  .blog-card.featured h3 {
    font-size: 1.5rem;
  }

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

.newsletter-block {
  margin: 4rem auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: white;
  padding: 3rem;
  display: grid;
  gap: 1.5rem;
  box-shadow: 0 18px 45px rgba(8, 21, 44, 0.25);
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 280px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.9rem 1.25rem;
  color: white;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

footer {
  background: linear-gradient(135deg, #08152c, #132a4d);
  color: white;
  padding: 4rem 0 2.5rem;
}

footer .footer-newsletter {
  background: var(--card);
  color: var(--text);
  border-radius: 32px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 25px 45px rgba(8, 21, 44, 0.18);
}

footer .footer-newsletter h3 {
  color: var(--text);
}

footer .footer-newsletter p {
  color: var(--muted);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
}

.footer-logo img {
  /* filter: brightness(0) invert(1); */
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;
  color: white;
}

.footer-menu,
.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-menu a,
.footer-social a {
  color: rgba(255, 255, 255, 0.85);
}

.social-icons {
  display: flex;
  gap: 0.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  color: white;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.social-icon svg .filled {
  fill: currentColor;
  stroke: none;
}

.footer-note {
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-align: center;
}

/* Page hero */
.page-hero {
  padding: 6rem 0 3rem;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 21, 44, 0.7);
  z-index: 0;
}

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

.breadcrumb {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  max-width: 640px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.detail-card {
  background: var(--card);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(8, 21, 44, 0.08);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-block {
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 15px 30px rgba(8, 21, 44, 0.08);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--card);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(8, 21, 44, 0.15);
}

.team-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.team-card h3 {
  margin: 1rem 1.2rem 0.2rem;
}

.team-card p {
  margin: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(217, 60, 44, 0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 45px rgba(8, 21, 44, 0.15);
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 55px rgba(8, 21, 44, 0.25);
}

.service-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 0 2rem 0.1rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0.95) 100%);
  color: white;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
}

.service-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: white;
  transition: margin-bottom 0.3s ease;
  text-align: center;
  line-height: 1.3;
}

.service-card:hover h2 {
  margin-bottom: 0.5rem;
}

.service-card p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
  text-align: center;
}

.service-card:hover p {
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  margin-bottom: 1.25rem;
}

.service-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--navy);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 0 auto;
  width: fit-content;
}

.service-card:hover .service-card-btn {
  opacity: 1;
  transform: translateY(0);
}

.plus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}

.cards-grid .card {
  border-radius: 24px;
  padding: 2rem;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(8, 21, 44, 0.08);
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  padding: 2.5rem;
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(8, 21, 44, 0.08);
}

.article-content p {
  color: var(--muted);
}

.share-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.share-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  background: transparent;
}

/* Service Detail Page */
.servic0l-wrapper {
  display: flex;
  flex-direction: column;
}

.service-detail-layout {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.service-detail-content {
  flex: 1;
  min-width: 0;
  background: var(--card);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(8, 21, 44, 0.08);
  display: flex;
  flex-direction: column;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.back-link:hover {
  color: var(--accent);
}

.back-link span {
  font-size: 1.2rem;
  color: var(--accent);
}

.service-detail-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 2rem;
  line-height: 1.2;
}

.service-detail-text {
  color: var(--text);
}

.service-detail-text p {
  margin: 0 0 1.5rem;
  line-height: 1.7;
  color: var(--muted);
}

.service-detail-text p:last-child {
  margin-bottom: 0;
}

.service-detail-images {
  flex: 0 0 auto;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: start;
}

.service-image-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.service-image-grid img {
  width: 100%;
  height: 305px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(8, 21, 44, 0.15);
}

.service-images-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  width: 100%;
  /* max-width: 600px; */
  /* background-color: red; */
}

.service-images-bottom img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(8, 21, 44, 0.15);
}

@media (max-width: 900px) {
  .navbar {
    flex-wrap: wrap;
    height: 5.25rem;
  }

  header {
    position: relative !important;
    z-index: 1000001 !important;
    isolation: isolate;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1000002 !important;
  }

  nav {
    position: relative;
    z-index: 1000002 !important;
  }

  /* Mobile menu overlay */
  .nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(8, 21, 44, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999999 !important;
    isolation: isolate;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links {
    position: fixed !important;
    right: 0 !important;
    top: 5.25rem !important;
    bottom: 0 !important;
    width: 280px;
    max-width: 85vw;
    background: white;
    flex-direction: column;
    padding: 2rem 0;
    border-radius: 0;
    box-shadow: -5px 0 30px rgba(8, 21, 44, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000000 !important;
    overflow-y: auto;
    gap: 0;
    isolation: isolate;
    will-change: transform;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(8, 21, 44, 0.08);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
    color: var(--text);
    font-weight: 500;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--accent);
    background-color: rgba(220, 38, 38, 0.05);
    border-left: 3px solid var(--accent);
  }

  /* Mobile Submenu */
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(8, 21, 44, 0.03);
    margin: 0;
    padding: 0;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-submenu.active .submenu {
    max-height: 500px;
  }

  .submenu a {
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    font-size: 0.9em;
    color: var(--muted);
  }

  .submenu a:hover {
    background-color: rgba(220, 38, 38, 0.08);
    color: var(--accent);
    padding-left: 3rem;
  }

  .submenu-toggle {
    float: right;
    transition: transform 0.3s ease;
  }

  .has-submenu.active .submenu-toggle {
    transform: rotate(180deg);
  }

  .slider-btn {
    display: none;
  }

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

  .service-detail-layout {
    flex-direction: column;
    gap: 2rem;
  }

  .service-detail-images {
    max-width: 100%;
  }

  .service-images-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}
.project-detail-page, .section.section2{
  background-color: var(--card);
}


@media (max-width: 640px) {
  .hero-cover {
    padding-top: 5rem;
    height: 90vh;
  }

  .vision-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .vision-content {
    max-width: 100%;
  }

  .about-panel {
    grid-template-columns: 1fr;
    padding: 1.75rem;
  }

  .about-icons {
    justify-content: center;
  }

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

  .stats-panel {
    margin-top: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-form input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0.65rem 1rem !important;
    border-radius: 8px !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.4 !important;
    font-size: 0.95rem !important;
    box-sizing: border-box !important;
  }
  .slider-track {
    padding-bottom: 1rem;
  }

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

  .service-card {
    height: 320px;
  }

  .service-detail-title {
    font-size: 2rem;
  }

  .service-detail-content {
    padding: 1.5rem;
  }

  .service-images-bottom {
    grid-template-columns: 1fr;
    margin-top: 1.5rem;
  }

  .service-image-grid img,
  .service-images-bottom img {
    height: 180px;
  }
}
@media (min-width: 1824px) {
 .hero-cover{
  height: 70vh;
 }
}

/* Article Page Styles */
.article-page {
  background: white;
}

.article-hero-section {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.article-header {
  margin: 2rem 0 3rem;
}

.article-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
  line-height: 1.2;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.article-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-main-image {
  width: 100%;
  margin: 3rem 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8, 21, 44, 0.15);
  max-height: 500px;
}

.article-main-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.article-content-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.article-meta h3,
.article-share h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 1rem;
}

.article-meta time {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.article-share-icons {
  display: flex;
  gap: 1rem;
}

.article-share-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border-radius: 50%;
  color: var(--text);
  transition: all 0.3s ease;
  border: 2px solid rgba(8, 21, 44, 0.1);
}

.article-share-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-3px);
}

.article-share-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text);
}

.article-share-icon:hover svg {
  color: white;
}

.article-body {
  max-width: 800px;
  color: var(--text);
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-body p {
  margin: 0 0 2rem;
  color: var(--text);
}

.article-body p:last-child {
  margin-bottom: 0;
}

.article-image-large {
  width: 100%;
  margin: 3rem 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(8, 21, 44, 0.12);
}

.article-image-large img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.article-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.article-images-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(8, 21, 44, 0.12);
}

@media (max-width: 900px) {
  .article-content-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .article-sidebar {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(8, 21, 44, 0.1);
  }

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

  .article-images-grid {
    grid-template-columns: 1fr;
  }

  .article-images-grid img {
    height: 250px;
  }
}

@media (max-width: 640px) {
  .article-sidebar {
    flex-direction: column;
    gap: 2rem;
  }

  .article-title {
    font-size: 1.75rem;
  }

  .article-body {
    font-size: 1rem;
  }
}

/* Project Detail Page Styles */
.project-detail-hero {
  padding-top: 2rem;
}

.project-detail-main-image {
  width: 100%;
  margin: 2rem 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(8, 21, 44, 0.15);
  max-height: 500px;
  position: relative;
}

.project-detail-main-image img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  display: block;
  object-fit: cover;
}

.project-detail-video {
  width: 100%;
  height: 100%;
  max-height: 500px;
  display: none;
  object-fit: cover;
  border-radius: 24px;
}

.project-detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.project-detail-title-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.project-detail-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.project-detail-intro {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.project-detail-intro p {
  margin: 0;
}

.project-detail-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.project-detail-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-detail-section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.project-detail-column p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.project-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-detail-list li {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 1.5rem;
  position: relative;
}

.project-detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.project-detail-list li strong {
  color: var(--text);
  font-weight: 600;
}

.project-detail-gallery {
  margin: 3rem 0;
}

.project-detail-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.project-detail-images-grid img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(8, 21, 44, 0.12);
}

.project-detail-conclusion {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.project-detail-conclusion-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 2rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.project-detail-conclusion p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.project-detail-conclusion p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .project-detail-header {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-detail-title {
    font-size: 2rem;
  }

  .project-detail-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-detail-images-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-images-grid img {
    height: 250px;
  }

  .project-detail-conclusion-title {
    font-size: 1.75rem;
  }
}

/* Contact Page - Modern Design */

.contact-content-modern {
  padding: 6rem 0;
  background: var(--sky);
  position: relative;
  z-index: 1;
}

.contact-layout-modern {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: stretch;
}

.contact-info-modern {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-info-sticky {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-section-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.contact-section-desc {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 3rem;
}

.contact-cards-modern {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.contact-card-modern {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--card);
  border-radius: 24px;
  border: 2px solid transparent;
  color: inherit;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.contact-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(217, 60, 44, 0.05) 0%, rgba(255, 107, 90, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.contact-card-modern:hover::before {
  opacity: 1;
}

.contact-card-modern:hover {
  border-color: rgba(217, 60, 44, 0.1);
  box-shadow: 0 10px 40px rgba(6, 18, 42, 0.08);
}

.contact-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.contact-card-modern:hover .contact-card-bg {
  opacity: 0.03;
}

.contact-card-icon-wrapper {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.contact-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.contact-card-modern:hover .contact-card-icon {
  box-shadow: 0 8px 20px rgba(217, 60, 44, 0.2);
}

.contact-card-icon svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
}

.contact-card-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.contact-card-content h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  transition: color 0.3s ease;
}

.contact-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-card-details span {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-form-modern-wrapper {
  position: relative;
  display: flex;
  height: 100%;
}

.contact-form-modern {
  background: var(--card);
  padding: 3.5rem;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(6, 18, 42, 0.08);
  border: 1px solid rgba(6, 18, 42, 0.06);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.contact-form-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.contact-form-header {
  margin-bottom: 2.5rem;
}

.contact-form-title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.75rem;
}

.contact-form-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.contact-form-fields {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.contact-input-group {
  position: relative;
}

.contact-textarea-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-input,
.contact-textarea {
  width: 100%;
  padding: 1.25rem 0 0.5rem;
  border: none;
  border-bottom: 2px solid var(--line);
  background: transparent;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.contact-textarea {
  resize: vertical;
  min-height: 150px;
  padding-top: 1.5rem;
  flex: 1;
}

.contact-label {
  position: absolute;
  top: 1.25rem;
  left: 0;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
}

.contact-input:focus + .contact-label,
.contact-input:not(:placeholder-shown) + .contact-label,
.contact-textarea:focus + .contact-label,
.contact-textarea:not(:placeholder-shown) + .contact-label {
  top: 0;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.contact-input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-input:focus ~ .contact-input-line,
.contact-textarea:focus ~ .contact-input-line {
  width: 100%;
}

.contact-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  margin-top: 1rem;
}

.contact-submit-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

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

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(217, 60, 44, 0.4);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn span {
  position: relative;
  z-index: 1;
}

.contact-submit-btn svg {
  width: 20px;
  height: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.contact-submit-btn:hover svg {
  transform: translateX(4px);
}

.contact-form-message {
  display: none;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: -1rem;
  font-weight: 500;
}

.contact-form-message.visible {
  display: block;
  animation: slideInMessage 0.3s ease-out;
}

.contact-form-message.error {
  background: #fee;
  border-left: 4px solid #c33;
  color: #c33;
}

.contact-form-message.success {
  background: #efe;
  border-left: 4px solid #1fc46a;
  color: #17a85a;
}

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

@media (max-width: 900px) {
  .contact-layout-modern {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .contact-info-sticky {
    position: static;
  }

  .contact-hero-modern {
    min-height: 60vh;
    padding: 6rem 0 4rem;
  }

  .contact-form-modern {
    padding: 2.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(94vw, var(--max-width));
  }

  .hero-cover {
    padding: 4rem 0 5rem;
    height: auto;
  }

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

  .hero-text {
    font-size: 1rem;
  }

  .stats-panel {
    margin-top: -4rem;
    padding: 2rem;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-window {
    overflow-x: auto;
  }

  .slider-track {
    display: flex;
    gap: 1rem;
  }

  .slider-card {
    min-width: 240px;
  }

  .vision-card,
  .impact-grid,
  .projects-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-grid,
  .project-detail-header,
  .project-detail-content-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    padding: 1.5rem;
  }

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


  .contact-content-modern {
    padding: 4rem 0;
  }

  .contact-layout-modern {
    gap: 3rem;
  }

  .contact-section-title {
    font-size: 2rem;
  }

  .contact-form-modern {
    padding: 2rem;
    border-radius: 24px;
  }

  .contact-form-title {
    font-size: 1.75rem;
  }

  .contact-card-modern {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .contact-card-icon {
    width: 56px;
    height: 56px;
  }

  .contact-card-icon svg {
    width: 24px;
    height: 24px;
  }

}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255, 77, 41, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 0;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 77, 41, 0.4);
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(0.98);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-2px);
}

/* Animation de pulsation subtile */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(255, 77, 41, 0.3);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 77, 41, 0.5);
  }
}

.scroll-to-top.visible {
  animation: pulse 3s ease-in-out infinite;
}

@media (max-width: 768px) {
  .scroll-to-top {
    width: 48px;
    height: 48px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .scroll-to-top svg {
    width: 20px;
    height: 20px;
  }
}
