﻿/* ============================================
   MAMO BUILDING SERVICES - Global Styles
   Professional Blue & White Theme
   ============================================ */

:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --light-blue: #eff6ff;
  --white: #ffffff;
  --dark-gray: #1f2937;
  --light-gray: #f3f4f6;
  --accent-blue: #0ea5e9;
  --shadow-light: 0 4px 6px rgba(30, 58, 138, 0.1);
  --shadow-medium: 0 10px 25px rgba(30, 58, 138, 0.15);
  --shadow-heavy: 0 20px 40px rgba(30, 58, 138, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y; /* Disable horizontal dragging */
}

body {
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
}

.hero-wow-logo {
  animation: logoEntrance 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes logoEntrance {
  from { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}


/* Premium Scrollbar - Desktop Only */
@media (hover: hover) {
  ::-webkit-scrollbar {
    width: 10px;
  }

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

  ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid #f1f5f9;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

::selection {
  background: var(--secondary-blue);
  color: white;
}

/* ============================================
   MAMO HOVER EFFECT
   ============================================ */
.mamo-hover {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

.mamo-hover::before {
  content: attr(data-text);
  position: absolute;
  left: -20px;
  top: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  pointer-events: none;
}

.mamo-hover:hover,
.mamo-hover:active {
  color: transparent;
}

.mamo-hover:hover::before,
.mamo-hover:active::before {
  opacity: 1;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes starPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(251, 191, 36, 0));
  }
  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.6));
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(251, 191, 36, 0));
  }
}

.star-animated {
  animation: starPulse 2s ease-in-out infinite;
  display: inline-block;
}

.star-animated:nth-child(2) {
  animation-delay: 0.2s;
}
.star-animated:nth-child(3) {
  animation-delay: 0.4s;
}
.star-animated:nth-child(4) {
  animation-delay: 0.6s;
}
.star-animated:nth-child(5) {
  animation-delay: 0.8s;
}

.reveal-init {
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.12);
  animation: fadeInDown 0.6s ease-out;
}

.nav-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.5s ease;
  mix-blend-mode: multiply;
}

.logo-text {
  display: none;
}

.logo:hover {
  transform: scale(1.02);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--primary-blue);
}

nav a:hover::before {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   MODAL & PROJECT DETAIL
   ============================================ */

.project-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  display: block;
  opacity: 1;
}

.modal-content-wrapper {
  position: relative;
  margin: 2rem auto;
  width: 90%;
  max-width: 1000px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  animation: modalIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--light-blue);
}

.modal-image-container {
  width: 100%;
  height: 500px;
  overflow: hidden;
  background: #000;
  position: relative;
  cursor: zoom-in;
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.modal-image-container.zoomed {
  cursor: zoom-out;
}

.modal-image-container.zoomed img {
  transform: scale(1.5);
  cursor: move;
}

.modal-info {
  padding: 2.5rem;
}

.modal-info h2 {
  color: var(--primary-blue);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.modal-info p {
  color: #4b5563;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 80px;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center !important;
  background-repeat: no-repeat !important;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 10s linear;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transform: scale(1.05); /* Start slightly zoomed for the cinematic effect */
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1.15); /* Slowly zoom in further while active */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.8),
    rgba(59, 130, 246, 0.6)
  );
  z-index: 1;
}

.hero-container {
  max-width: 1100px;
  padding: 5rem 2.5rem;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  /* Ensure razor-sharp text rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo img {
  height: 250px;
  width: auto;
  border-radius: 8px;
  transition: all 0.5s ease;
  mix-blend-mode: multiply;
  animation: logoEntrance 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  opacity: 0;
  /* Start with 3D transform for hardware acceleration sharpness */
  transform: translate3d(0, 20px, 0) scale(0.98);
  will-change: transform, opacity;
}

@keyframes logoEntrance {
  from { 
    opacity: 0; 
    transform: translate3d(0, 20px, 0) scale(0.98); 
  }
  to { 
    opacity: 1; 
    transform: translate3d(0, 0, 0) scale(1); 
  }
}

.hero-logo.scrolled img {
  opacity: 0;
}

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  color: white;
  animation: fadeInUp 0.8s ease-out;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  color: var(--secondary-blue);
}

.hero-content p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.page-hero {
  min-height: 55vh;
  position: relative;
  overflow: hidden;
  background-color: #1a1a1a !important; /* Fallback */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  image-rendering: high-quality;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.page-hero .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.85),
    rgba(59, 130, 246, 0.65)
  );
  z-index: 1;
}

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

.btn {
  padding: 1.1rem 2.8rem;
  border: none;
  border-radius: 12px; /* Softer, modern corners */
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 20%;
  height: 200%;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(30deg);
  transition: all 0.6s ease;
  pointer-events: none;
}

.btn:hover::after {
  left: 150%;
}

.btn-primary {
  background: var(--secondary-blue);
  color: white;
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 20px 35px -10px rgba(30, 58, 138, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
}

.btn-call {
  background: #10b981;
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-call:hover {
  background: #059669;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  color: white;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  padding: 6rem 2rem;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--light-blue);
}

.section-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 500px;
  margin: 0 auto;
}

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

.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  border: 1px solid var(--light-blue);
  box-shadow: var(--shadow-light);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.2);
  border-color: var(--secondary-blue);
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-blue);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#backToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--secondary-blue);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

#backToTop svg {
  transition: transform 0.3s ease;
}

#backToTop:hover svg {
  transform: translateY(-2px);
}

.service-icon {
  margin-bottom: 1.5rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-blue);
  border-radius: 12px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: var(--primary-blue);
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.service-card:hover .service-icon svg {
  transform: scale(1.15) rotate(5deg);
}

.service-card:hover .service-icon {
  background: var(--secondary-blue);
  color: white;
  transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.service-card p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--secondary-blue);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.service-link:hover {
  gap: 1rem;
  color: var(--primary-blue);
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */

.portfolio {
  padding: 6rem 2rem;
  background: var(--light-gray);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  place-items: center;
  justify-items: center;
  align-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.1);
  cursor: pointer;
  animation: fadeInUp 0.8s ease-out;
  background: var(--white);
  aspect-ratio: 1;
  border: 1px solid #f1f5f9;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 50px -12px rgba(30, 58, 138, 0.2);
}

.portfolio-item:nth-child(1) {
  animation-delay: 0s;
}
.portfolio-item:nth-child(2) {
  animation-delay: 0.1s;
}
.portfolio-item:nth-child(3) {
  animation-delay: 0.2s;
}
.portfolio-item:nth-child(4) {
  animation-delay: 0.3s;
}
.portfolio-item:nth-child(5) {
  animation-delay: 0.4s;
}
.portfolio-item:nth-child(6) {
  animation-delay: 0.5s;
}

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-blue);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 2rem;
}

.portfolio-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 0.95;
}

.portfolio-overlay-content h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-overlay-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
  padding: 6rem 2rem;
  background: var(--primary-blue);
  color: white;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.stat-item:nth-child(1) {
  animation-delay: 0s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.2s;
}
.stat-item:nth-child(3) {
  animation-delay: 0.4s;
}
.stat-item:nth-child(4) {
  animation-delay: 0.6s;
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  opacity: 0.95;
}

/* ============================================
   ACCREDITATIONS SECTION
   ============================================ */

.accreditations {
  padding: 6rem 2rem;
  background: var(--white);
}

.accreditations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.accreditation-item-static {
  background: var(--white);
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px -2px rgba(30, 58, 138, 0.05);
  width: 100%;
  max-width: 220px;
}

.accreditation-item-static:hover {
  box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.1);
  transform: translateY(-5px);
  border-color: var(--secondary-blue);
}

.accreditation-logo {
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.accreditation-item-static:hover .accreditation-logo {
  transform: scale(1.05);
}

.accreditation-item-static h3 {
  color: var(--primary-blue);
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.accreditation-item-static p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
  padding: 6rem 2rem;
  background: var(--light-gray);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--light-blue);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out;
}

.cta p {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: var(--primary-blue);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-section a:hover {
  color: white;
  padding-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 2rem;
  opacity: 0.6;
  animation: bounce 2s ease-in-out infinite;
}

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

/* Parallax effect on scroll */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Interactive hover effect */
.interactive-element {
  position: relative;
  transition: all 0.3s ease;
}

.interactive-element:hover {
  filter: brightness(1.1);
}

/* Loading animation */
.loader {
  border: 4px solid var(--light-blue);
  border-top: 4px solid var(--secondary-blue);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  padding: 8rem 2rem;
  background: var(--white);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--primary-blue);
  color: white;
  padding: 3.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-heavy);
  height: 100%;
}

.contact-info-card h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.contact-info-card p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.contact-method {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: flex-start;
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-method:hover .contact-method-icon {
  background: var(--secondary-blue);
  transform: translateY(-3px);
}

.contact-method-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.contact-method-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.contact-method-text p {
  margin-bottom: 0;
  opacity: 0.8;
  font-size: 1rem;
}

.contact-form-container {
  padding: 1rem;
}

.contact-form-container h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.contact-form-container p {
  color: #6b7280;
  margin-bottom: 2.5rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #f9fafb;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* ============================================
   FOOTER (MODERN & COOL)
   ============================================ */

.modern-footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 5rem 2rem 3rem;
  position: relative;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.footer-top {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo {
  height: 55px;
  width: auto;
  margin-bottom: 1.5rem;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-brand p {
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  stroke: #94a3b8;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--secondary-blue);
  transform: translateY(-3px);
  border-color: var(--secondary-blue);
}

.social-icon:hover svg {
  stroke: white;
}

.footer-nav-col h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav-col ul {
  list-style: none;
}

.footer-nav-col li {
  margin-bottom: 0.8rem;
}

.footer-nav-col a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.footer-nav-col a:hover {
  color: var(--secondary-blue);
}

.footer-newsletter h4 {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1rem;
  border-radius: 6px;
  color: white;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--secondary-blue);
  background: rgba(255, 255, 255, 0.06);
}

.btn-newsletter {
  background: var(--secondary-blue);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-newsletter:hover {
  background: white;
  color: #0f172a;
}

.footer-bottom-modern {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748b;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: white;
}

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .footer-bottom-modern {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================
   PAGE LAYOUTS (SERVICES/TABS)
   ============================================ */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: 8rem;
}

.split-section.reverse {
  direction: rtl;
}

.split-section.reverse .split-content {
  direction: ltr;
}

.split-content h2 {
  font-size: 2.8rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.split-content p {
  font-size: 1.15rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.feature-list {
  list-style: none;
  margin-bottom: 2.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: #374151;
  font-weight: 500;
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  color: #10b981;
  flex-shrink: 0;
}

.split-image-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.split-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.split-image-container:hover img {
  transform: scale(1.03);
}

.split-image-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: white;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
}

.split-image-badge i {
  color: var(--secondary-blue);
  font-size: 1.5rem;
}

.split-image-badge span {
  font-weight: 700;
  color: var(--primary-blue);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 1024px) {
  .split-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .split-content h2 {
    font-size: 2.2rem;
  }
}

/* ============================================
   BLOG & CAREERS COMPONENTS
   ============================================ */

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

.article-card {
  background: white;
  border-radius: 16px; /* Softer corners */
  border: 1px solid #f1f5f9;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 50px -12px rgba(30, 58, 138, 0.15);
  border-color: var(--secondary-blue);
}

.article-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.article-content {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  color: var(--secondary-blue);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.article-content h3 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-content p {
  color: #64748b;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.job-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.job-card {
  background: white;
  padding: 2rem 3rem;
  border-radius: 4px;
  border: 1px solid var(--light-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.job-card:hover {
  border-left-color: var(--secondary-blue);
  transform: translateX(5px);
  box-shadow: var(--shadow-light);
}

.job-info h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--primary-blue);
}

.job-info p {
  margin: 0.5rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

/* ============================================
   COMMUNITY & SOCIAL VALUES COMPONENTS
   ============================================ */

.community-feature-card {
  margin-top: 6rem;
  background: #0f172a;
  padding: 5rem 4rem;
  border-radius: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 5rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.community-feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 100%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  z-index: 0;
}

.community-feature-content {
  flex: 1.2;
  min-width: 320px;
  position: relative;
  z-index: 1;
}

.community-feature-content h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: #60a5fa;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.community-feature-content p {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 0;
}

.community-feature-list {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 1;
}

.community-feature-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.community-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 1rem;
}

.community-feature-list li svg {
  color: #60a5fa;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
  }

  .split-section.reverse {
    direction: ltr;
  }

  .split-content h2 {
    font-size: 2.2rem;
  }

  .community-feature-card {
    padding: 4rem 2.5rem;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.5rem;
  }

  body {
    font-size: 16px;
  }

  /* --- GLOBAL MOBILE CENTERING --- */
  .section-header,
  .hero-content,
  .footer-top,
  .footer-nav-col,
  .contact-info-card,
  .contact-method,
  .service-card,
  .article-card,
  .article-content,
  .stat-item,
  .accreditation-item-static,
  .community-feature-content {
    text-align: center !important;
  }

  /* Hero Section Mobile */
  .hero {
    margin-top: 70px;
  }

  .hero-container {
    padding: 3rem 1.5rem;
    margin: 0 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .hero-logo img {
    height: 160px;
    margin-bottom: 1.5rem;
  }

  /* Navigation Mobile */
  .nav-container {
    padding: 1rem 1.25rem;
    padding-left: calc(1.25rem + env(safe-area-inset-left));
    padding-right: calc(1.25rem + env(safe-area-inset-right));
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
  }

  .logo {
    max-width: 65%;
    flex-shrink: 1;
  }

  .logo img {
    height: 32px; /* Slightly smaller to give more room */
    max-width: 100%;
    object-fit: contain;
  }

  .hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
    flex-shrink: 0;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
  }

  .hamburger span {
    width: 24px; /* Reduced slightly for safety */
    height: 3px;
    background: var(--primary-blue);
    border-radius: 4px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 6rem 2rem 3rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    align-items: center;
    overflow-y: auto;
    box-sizing: border-box;
  }

  nav ul.active {
    transform: translateX(0);
  }

  nav ul li {
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  nav ul.active li {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered entry for mobile nav items */
  nav ul.active li:nth-child(1) { transition-delay: 0.1s; }
  nav ul.active li:nth-child(2) { transition-delay: 0.15s; }
  nav ul.active li:nth-child(3) { transition-delay: 0.2s; }
  nav ul.active li:nth-child(4) { transition-delay: 0.25s; }
  nav ul.active li:nth-child(5) { transition-delay: 0.3s; }
  nav ul.active li:nth-child(6) { transition-delay: 0.35s; }
  nav ul.active li:nth-child(7) { transition-delay: 0.4s; }
  nav ul.active li:nth-child(8) { transition-delay: 0.45s; }

  nav a {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    display: block;
  }

  nav a.active {
    background: var(--light-blue);
    color: var(--secondary-blue);
  }

  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .form-control {
    font-size: 16px !important; /* Prevents auto-zoom on iPhone */
  }

  /* Improved spacing for detail pages on mobile */
  article {
    padding: 0 0.5rem;
  }

  article h2 {
    font-size: 1.8rem !important;
    margin-top: 2.5rem !important;
  }

  article p {
    font-size: 1.05rem !important;
    line-height: 1.7 !important;
  }

  /* Grid Layouts Mobile */
  .services-grid,
  .portfolio-grid,
  .accreditations-grid,
  .contact-grid,
  .post-grid,
  .stats-grid,
  .community-feature-list ul,
  .charity-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem;
    justify-items: center;
  }

  .service-card,
  .portfolio-item,
  .article-card,
  .contact-info-card,
  .contact-form-container,
  .accreditation-item-static {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
  }

  .article-image {
    height: auto;
    max-height: 300px;
  }

  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr !important;
    gap: 3.5rem;
  }

  .footer-brand,
  .footer-nav-col,
  .footer-newsletter {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom-modern {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  /* About Section Mobile */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Tractor Run Mobile Refinement */
  .tractor-run-container {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    margin-top: 3rem !important;
  }

  .tractor-media {
    height: 250px !important;
  }

  .tractor-content {
    padding: 2rem 1.5rem !important;
  }

  .tractor-gallery-preview {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-logo img {
    height: 120px;
  }

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

/* Large screen optimizations */
@media (min-width: 1920px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1600px;
    margin: 0 auto;
  }

  .section-container {
    max-width: 1800px;
  }
}

/* --- FINAL AGGRESSIVE MOBILE OVERFLOW FIX --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .nav-container, .hero, .section-container, .footer-top, .highlights-section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* ============================================
   PREMIUM WHITE WOW THEME
   ============================================ */

.header-initial {
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: all 1s ease !important;
}

.header-initial .logo img {
  filter: brightness(0) invert(1);
}

.header-initial nav a {
  color: white !important;
}

.header-initial .hamburger span {
  background: white !important;
}

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

.hero-wow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.85) blur(3px); /* Added slight blur and reduced brightness */
  animation: heroZoom 30s infinite alternate linear;
}

.hero-wow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 1;
}

.hero-wow-content {
  position: relative;
  z-index: 10;
  text-align: center;
  width: 90%;
  max-width: 1200px;
}

.wow-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  font-weight: 800;
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.8s ease-out;
  backdrop-filter: blur(5px);
}

.hero-wow h1 {
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  font-weight: 950;
  color: white;
  margin-bottom: 2.5rem;
  letter-spacing: -0.04em;
  animation: fadeInUp 1s ease-out 0.2s both;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-wow h1 span {
  display: block;
  color: #60a5fa; /* Lighter blue for better contrast on dark */
}

.hero-wow p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: white;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-weight: 700;
  line-height: 1.6;
  animation: fadeInUp 1s ease-out 0.4s both;
  text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.wow-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-wow-primary {
  background: var(--primary-blue);
  color: white;
  padding: 1.4rem 3.5rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 25px 50px -12px rgba(30, 58, 138, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-wow-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 35px 60px -12px rgba(30, 58, 138, 0.35);
  background: var(--secondary-blue);
}

.btn-wow-secondary {
  background: white;
  color: var(--primary-blue);
  padding: 1.4rem 3.5rem;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1.1rem;
  border: 2px solid rgba(30, 58, 138, 0.1);
  transition: all 0.4s ease;
}

.btn-wow-secondary:hover {
  background: #f1f5f9;
  border-color: var(--primary-blue);
  transform: translateY(-3px);
}

.services-wow-section {
  padding: 10rem 2rem;
  background: white;
}

.wow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.wow-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  height: 650px;
  cursor: pointer;
  background: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.2, 1);
}

.wow-card:hover {
  transform: translateY(-20px) scale(1.01);
  box-shadow: 0 50px 100px -20px rgba(30, 58, 138, 0.15);
  border-color: var(--secondary-blue);
}

.wow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.2, 1, 0.2, 1), filter 0.8s ease;
  filter: saturate(0.9) brightness(1);
}

.wow-card:hover img {
  transform: scale(1.15);
  filter: saturate(1.1) brightness(0.9);
}

.wow-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 4rem 3rem;
  background: linear-gradient(to top, 
    rgba(255, 255, 255, 0.98) 0%, 
    rgba(255, 255, 255, 0.9) 40%, 
    rgba(255, 255, 255, 0) 100%);
  z-index: 2;
  text-align: left;
  transition: all 0.6s ease;
}

.wow-card:hover .wow-card-content {
  padding-bottom: 5rem;
  background: linear-gradient(to top, 
    #ffffff 0%, 
    rgba(255, 255, 255, 0.95) 60%, 
    rgba(255, 255, 255, 0) 100%);
}

.wow-card-content h3 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  font-weight: 950;
  margin-bottom: 1.2rem;
  letter-spacing: -0.04em;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

.wow-card:hover .wow-card-content h3 {
  transform: translateY(-5px);
}

.wow-card-content p {
  color: #475569;
  font-size: 1.15rem;
  line-height: 1.7;
  font-weight: 500;
  opacity: 0.8;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
}

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

.wow-card-link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--secondary-blue);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease 0.2s;
}

.wow-card:hover .wow-card-link {
  opacity: 1;
  transform: translateX(0);
}


@media (max-width: 1024px) {
  .wow-grid {
    grid-template-columns: 1fr;
  }
  .wow-card {
    height: 400px;
  }
}



/* ============================================
   REFINED SECTION STYLES
   ============================================ */

.stats-wow {
  padding: 8rem 2rem;
  background: white;
}

.stats-wow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  gap: 4rem;
}

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

.stat-wow-number {
  font-size: 6.5rem;
  font-weight: 950;
  color: var(--primary-blue);
  height: 130px;
  line-height: 130px;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: center;
  align-items: center;
  font-variant-numeric: tabular-nums;
  gap: 2px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

/* Rolling Digit Container */
.counter-digit-container {
  display: inline-flex;
  height: 130px;
  overflow: visible; /* Allow glow/shadow to show */
  position: relative;
  line-height: 130px;
  margin: 0;
  /* Clipping is now handled by a inner wrapper if needed, but let's try opening it up */
  clip-path: inset(-20px 0px -20px 0px); /* Allow vertical overflow for glow but keep it clean */
}

/* We actually DO need overflow hidden for the rolling effect, 
   but let's make it taller than the text to avoid clipping */
.counter-digit-container {
  display: inline-flex;
  height: 130px;
  overflow: hidden;
  position: relative;
  line-height: 130px;
  margin: 0;
}

.counter-digit-strip {
  display: flex;
  flex-direction: column;
  transition: transform 3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

.counter-digit-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  width: 0.6em;
  min-width: 65px;
}

/* Add a subtle glow during animation */
.stat-wow-item.animating .stat-wow-number {
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transition: text-shadow 0.5s ease;
}

.stat-wow-label {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--secondary-blue);
  opacity: 0.8;
}

.about-wow-section {
  padding: 12rem 2rem;
  background: white;
}

.about-wow-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 8rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.about-wow-image {
  position: relative;
}

.about-wow-image img {
  width: 100%;
  border-radius: 40px;
  box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
}

.about-wow-image::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 200px;
  height: 200px;
  background: var(--light-blue);
  z-index: -1;
  border-radius: 40px;
}

.about-wow-content h2 {
  font-size: 3.5rem;
  font-weight: 950;
  color: var(--primary-blue);
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-wow-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 2rem;
}

.excellence-wow-section {
  padding: 10rem 2rem;
  background: #f1f5f9;
}

.excellence-wow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.excellence-card {
  background: white;
  padding: 4rem 3rem;
  border-radius: 32px;
  transition: all 0.4s ease;
  border: 1px solid rgba(30, 58, 138, 0.05);
}

.excellence-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-blue);
}

.excellence-card h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.excellence-card p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1.05rem;
}

@media (max-width: 1024px) {
  .about-wow-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .stats-wow-grid {
    gap: 2rem;
  }
  .stat-wow-number {
    font-size: 3.5rem;
  }
}


/* ============================================
   EXACT LIQUID GLASS HEADER (REACT BITS)
   ============================================ */

.glass-header {
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 92%;
  max-width: 1400px;
  z-index: 1000;
  border-radius: 100px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Acrylic Look: Semi-transparent white with high blur and saturation */
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(40px) saturate(2) brightness(1.1);
  -webkit-backdrop-filter: blur(40px) saturate(2) brightness(1.1);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* Subtle noise texture for acrylic feel */
.glass-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.glass-header .nav-container {
  width: 100%;
  padding: 0.6rem 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 2;
}

/* Force horizontal centering */
.glass-header nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.glass-header .logo img {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

/* SVG Glass Surface Styles */
.glass-header--svg {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: var(--filter-id, none) saturate(var(--glass-saturation, 1.8));
  -webkit-backdrop-filter: var(--filter-id, none) saturate(var(--glass-saturation, 1.8));
}


/* Navigation Colors */
.glass-header nav a { 
  color: var(--primary-blue) !important; 
  font-weight: 600; 
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.glass-header nav a:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--secondary-blue) !important;
}

.btn-wow-primary {
  background: white;
  color: var(--primary-blue);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-wow-primary:hover {
  transform: translateY(-2px);
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 15px 35px rgba(30, 58, 138, 0.2);
}

.btn-wow-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.btn-wow-secondary:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-2px);
}





/* Mobile Counter Fit */
@media (max-width: 768px) {
  .stat-wow-number {
    font-size: 3.2rem !important;
    height: 60px !important;
    line-height: 60px !important;
  }
  .counter-digit-container, 
  .counter-digit-strip span {
    height: 60px !important;
    line-height: 60px !important;
    min-width: 35px !important;
  }
}


/* Force remove whitespace from SVG filters */
.glass-surface__filter {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  z-index: -9999 !important;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100%;
}


/* ============================================
   PREMIUM WOW CTA SECTION
   ============================================ */

.cta-wow {
  padding: 15rem 2rem;
  position: relative;
  overflow: hidden;
  background: #0f172a; /* Dark base for contrast */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-wow-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/mon/542a814b-7f6a-420a-baac-ac08f70ef61f.jpeg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4) blur(8px);
  transform: scale(1.1);
  z-index: 0;
}

.cta-wow-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}

.cta-wow h2 {
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 950;
  color: white;
  margin-bottom: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cta-wow h2 span {
  color: #60a5fa;
}

.cta-wow p {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 4rem;
  font-weight: 500;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-wow .wow-buttons {
  justify-content: center;
}

.btn-cta-primary {
  background: white;
  color: #0f172a;
  padding: 1.2rem 3.5rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-cta-primary:hover {
  transform: scale(1.05) translateY(-5px);
  background: #60a5fa;
  color: white;
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 1.2rem 3.5rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

