/* ============================================
   UNC MALI - Custom Stylesheet
   Palette: Vert/Terre (Nature)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2D6A4F;
  --primary-dark: #1B4332;
  --primary-light: #40916C;
  --secondary: #8B6914;
  --secondary-light: #B8860B;
  --earth: #6B4226;
  --earth-light: #A0522D;
  --beige: #F5F0E8;
  --beige-dark: #E8DFD0;
  --cream: #FDF8F0;
  --text-dark: #2C2C2C;
  --text-muted: #6C757D;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

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

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

/* --- Utility --- */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
  margin: 1rem auto 1.5rem;
}

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

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

.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(45, 106, 79, 0.4);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.btn-outline-custom {
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 12px 34px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
}

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

/* --- Navbar --- */
.navbar-unc {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
  padding: 15px 0;
  transition: var(--transition);
  z-index: 1050;
}

.navbar-unc.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar-unc .navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-unc .navbar-brand .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.navbar-unc .nav-link {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 18px !important;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.navbar-unc .nav-link:hover,
.navbar-unc .nav-link.active {
  color: var(--primary);
  background: rgba(45, 106, 79, 0.08);
}

.lang-switch {
  background: var(--beige);
  border: 1px solid var(--beige-dark);
  border-radius: 50px;
  padding: 4px;
  display: flex;
  gap: 2px;
}

.lang-switch .lang-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.lang-switch .lang-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  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='1'%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");
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1590650153855-d9e808231d41?w=1920&q=80') center/cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: overlay;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-badge i {
  color: var(--secondary-light);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-title .highlight {
  color: var(--secondary-light);
}

.hero-text {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

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

.btn-hero {
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-primary {
  background: var(--white);
  color: var(--primary-dark);
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  color: var(--primary-dark);
}

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

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-3px);
}

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

.hero-image-wrapper {
  position: relative;
}

.hero-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-float-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  animation: floatY 3s ease-in-out infinite;
  color: var(--text-dark);
}

.hero-float-card.card-1 {
  top: 15%;
  left: -30px;
  animation-delay: 0s;
}

.hero-float-card.card-2 {
  bottom: 15%;
  right: -20px;
  animation-delay: 1.5s;
}

.hero-float-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.hero-float-card .icon.green { background: rgba(45,106,79,0.1); color: var(--primary); }
.hero-float-card .icon.gold { background: rgba(139,105,20,0.1); color: var(--secondary); }

.hero-float-card h6 {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-float-card .value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

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

/* --- Stats Bar --- */
.stats-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
}

.stat-item {
  text-align: center;
  padding: 10px;
}

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 12px;
  transition: var(--transition);
}

.stat-icon.green { background: rgba(45,106,79,0.1); color: var(--primary); }
.stat-icon.gold { background: rgba(139,105,20,0.1); color: var(--secondary); }
.stat-icon.earth { background: rgba(107,66,38,0.1); color: var(--earth); }
.stat-icon.brown { background: rgba(160,82,45,0.1); color: var(--earth-light); }

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- About Section --- */
.about-section .about-image-wrapper {
  position: relative;
}

.about-section .about-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.about-accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-accent-box .number {
  font-size: 2.5rem;
  font-weight: 800;
}

.about-accent-box .label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 2rem;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: start;
}

.about-feature .feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(45,106,79,0.1);
  color: var(--primary);
}

.about-feature h5 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--primary-dark);
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Regions --- */
.region-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.region-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.region-card .region-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.region-card .region-body {
  padding: 24px;
}

.region-card h4 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.region-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Gallery / Photothèque --- */
.gallery-section .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.gallery-overlay p {
  font-size: 0.85rem;
  opacity: 0.8;
  margin: 0;
}

.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.gallery-filter .filter-btn {
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  background: var(--beige);
  color: var(--text-muted);
}

.gallery-filter .filter-btn.active,
.gallery-filter .filter-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Videotheque --- */
.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.video-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.video-card:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary);
  color: var(--white);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.video-info {
  padding: 20px;
}

.video-info h5 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--primary-dark);
}

.video-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Team --- */
.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

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

.team-card .team-img-wrapper {
  position: relative;
  overflow: hidden;
}

.team-card .team-img-wrapper img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.team-card .team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  transition: bottom 0.4s ease;
}

.team-card:hover .team-social {
  bottom: 0;
}

.team-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--primary);
  color: var(--white);
}

.team-card .team-info {
  padding: 24px 20px;
}

.team-card .team-info h5 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.team-card .team-info .role {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

/* --- Partners --- */
.partner-logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  height: 120px;
}

.partner-logo:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.partner-logo img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partner-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section .cta-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 80px 0 0;
}

.footer h5 {
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

.footer a:hover {
  color: var(--secondary-light);
  padding-left: 5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.footer-brand .logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.footer-brand h4 {
  color: var(--white);
  font-weight: 800;
  margin: 0;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
}

.footer-social a:hover {
  background: var(--primary-light);
  color: var(--white);
  padding: 0;
  transform: translateY(-3px);
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  font-size: 0.9rem;
  list-style: none;
}

.footer-contact li i {
  color: var(--secondary-light);
  margin-top: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  margin-top: 50px;
  font-size: 0.85rem;
}

/* --- Projects Page --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header .bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  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='1'%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");
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  position: relative;
}

.page-header p {
  font-size: 1.15rem;
  opacity: 0.9;
  position: relative;
}

.breadcrumb-custom {
  position: relative;
  margin-bottom: 1.5rem;
}

.breadcrumb-custom a {
  color: rgba(255,255,255,0.7);
}

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

.breadcrumb-custom .separator {
  margin: 0 10px;
  opacity: 0.5;
}

.breadcrumb-custom .current {
  color: var(--secondary-light);
}

/* Project Cards */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
  height: 100%;
}

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

.project-card .project-img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s ease;
}

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

.project-img-wrapper {
  overflow: hidden;
  position: relative;
}

.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.project-badge.completed { background: var(--primary); color: var(--white); }
.project-badge.in-progress { background: var(--secondary); color: var(--white); }
.project-badge.planned { background: var(--earth); color: var(--white); }

.project-body {
  padding: 24px;
}

.project-body h4 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.project-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 16px;
}

.project-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-meta span i {
  color: var(--primary);
}

/* --- Blog --- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: var(--transition);
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.blog-body {
  padding: 24px;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.blog-meta i {
  color: var(--primary);
}

.blog-body h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(45,106,79,0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 12px;
}

/* --- Contact --- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 2px solid var(--beige-dark);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 18px;
  align-items: start;
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-info-card .icon {
  width: 55px;
  height: 55px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(45,106,79,0.1);
  color: var(--primary);
}

.contact-info-card h5 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* --- Animations (AOS-like manual) --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.8s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Lightbox Modal --- */
.lightbox-modal .modal-content {
  background: transparent;
  border: none;
}

.lightbox-modal .modal-body {
  padding: 0;
}

.lightbox-modal img {
  border-radius: var(--radius);
}

.lightbox-modal .btn-close {
  position: absolute;
  top: -40px;
  right: 0;
  filter: invert(1);
}

/* --- Scroll to top --- */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  cursor: pointer;
}

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

.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--primary-dark);
}

/* --- Video Modal --- */
.modal-video .modal-content {
  background: #000;
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-video .ratio {
  border-radius: var(--radius);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-section {
    padding-top: 120px;
  }

  .hero-illustration {
    margin-top: 3rem;
  }

  .hero-float-card {
    display: none;
  }

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

  .stats-bar {
    margin-top: 0;
    border-radius: 0;
  }

  .about-accent-box {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1rem;
    display: inline-block;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }

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

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

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

  .gallery-section .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .gallery-section .gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-buttons .btn-hero {
    text-align: center;
    justify-content: center;
  }
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--beige-dark);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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