/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

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

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--gray-100);
}

/* ========== VARIABLES & RESET ========== */
:root {
  --primary: #0B1F5C;
  --primary-dark: #071440;
  --primary-light: #1a3a8f;
  --accent: #F5D000;
  --accent-dark: #d4b300;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f0f2f5;
  --gray-200: #e1e5eb;
  --gray-300: #c8cdd6;
  --gray-400: #9aa0ad;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 3px rgba(11, 31, 92, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 31, 92, 0.1);
  --shadow-lg: 0 8px 30px rgba(11, 31, 92, 0.12);
  --shadow-xl: 0 20px 50px rgba(11, 31, 92, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --navbar-height: 100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

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

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark), var(--accent));
  z-index: 1;
}

.navbar.scrolled {
  height: 70px;
  box-shadow: 0 4px 30px rgba(11, 31, 92, 0.08);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.06);
}

.navbar-logo:hover .logo-img {
  filter: drop-shadow(0 0 12px rgba(245, 208, 0, 0.5));
}

.logo-img {
  height: 65px;
  width: auto;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .logo-img {
  height: 50px;
}

.navbar-separator {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--gray-300), transparent);
  margin: 0 12px;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled .navbar-separator {
  height: 28px;
}

@media (min-width: 769px) {
  .logo-img {
    height: 80px;
  }
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  position: relative;
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-link:hover {
  color: var(--primary);
}

.navbar-link:hover::after {
  transform: scaleX(1);
}

.navbar-link.active {
  color: var(--primary);
}

.navbar-link.active::after {
  transform: scaleX(1);
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== CAROUSEL / HERO ========== */
.hero {
  margin-top: var(--navbar-height);
  background: var(--primary-dark);
  padding: 40px 24px;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  display: flex;
}

/* LEFT: Image sliding panel */
.carousel-images-panel {
  position: relative;
  width: 55%;
  flex-shrink: 0;
  overflow: hidden;
}

.carousel-images-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.carousel-image-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease-out;
}

.carousel-image-slide.active .slide-img {
  transform: scale(1.05);
}

/* RIGHT: Text fade panel */
.carousel-text-panel {
  width: 45%;
  background: var(--primary-dark);
  position: relative;
  min-height: 460px;
}

.carousel-text-panel .slide-caption {
  position: absolute;
  inset: 0;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 60px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.carousel-text-panel .slide-caption.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slide-caption h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.25;
}

.slide-caption p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Slide CTA button */
.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 208, 0, 0.4);
}

.slide-btn {
  padding: 12px 32px;
  font-size: 13px;
  align-self: flex-start;
  min-width: 260px;
  text-align: center;
  margin-top: auto;
}

/* Carousel buttons — inside images panel, hidden by default */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition), opacity 0.3s ease;
  z-index: 10;
  opacity: 0;
}

.carousel-images-panel:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn-prev {
  left: 16px;
}

.carousel-btn-next {
  right: 16px;
}

/* Carousel dots — below carousel */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

.section-services {
  background: var(--gray-50);
}

.section-clients {
  background: var(--gray-50);
}

.section-clients .section-title {
  color: var(--primary);
}

.section-clients .section-subtitle {
  color: var(--gray-500);
}

.section-clients .card-client {
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.section-clients .card-client:hover {
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.section-map {
  background: var(--gray-50);
}

.section-contact {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========== CARDS ========== */
.cards-grid {
  display: grid;
  gap: 28px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Clients: 3 columns (9 cards = 3+3+3) */
.clients-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* placeholder - CTA wrapper removed */

/* placeholder - CTA card styles moved below .card */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}

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

.card-image {
  position: relative;
  overflow: hidden;
  height: 160px;
}

.card-client .card-image {
  height: 150px;
}

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

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

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

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

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.card-client .card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card-client .card-title {
  font-size: 15px;
  margin-bottom: 8px;
}

/* Card icon — hidden on desktop, shown on mobile replacing images */
.card-icon {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--primary);
}

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

.card-icon-location {
  color: var(--accent);
}

.card-description {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* CTA card styles removed */

/* ========== SERVICE CARDS: HIDE EXTRAS + TOGGLE ========== */
.service-extra {
  display: none;
}

.services-grid.expanded .service-extra {
  display: flex;
  animation: fadeSlideUp 0.5s ease both;
}

.services-grid.expanded .service-extra:nth-child(7) { animation-delay: 0s; }
.services-grid.expanded .service-extra:nth-child(8) { animation-delay: 0.07s; }
.services-grid.expanded .service-extra:nth-child(9) { animation-delay: 0.14s; }
.services-grid.expanded .service-extra:nth-child(10) { animation-delay: 0.21s; }

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

.services-toggle-wrapper {
  text-align: center;
  margin-top: 36px;
}

.btn-services-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
  background: none;
  border: 2px solid var(--primary);
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-services-toggle:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 31, 92, 0.3);
}

.btn-services-toggle .toggle-arrow {
  transition: transform 0.3s ease;
}

.btn-services-toggle.expanded .toggle-arrow {
  transform: rotate(180deg);
}

/* ========== CLIENT CARDS: HIDE EXTRAS + TOGGLE ========== */
.client-extra {
  display: none;
}

.clients-grid.expanded .client-extra {
  display: flex;
  animation: fadeSlideUp 0.5s ease both;
}

.clients-grid.expanded .client-extra:nth-child(7) { animation-delay: 0s; }
.clients-grid.expanded .client-extra:nth-child(8) { animation-delay: 0.07s; }
.clients-grid.expanded .client-extra:nth-child(9) { animation-delay: 0.14s; }

.clients-toggle-wrapper {
  text-align: center;
  margin-top: 36px;
}

.btn-clients-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-clients-toggle:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 31, 92, 0.3);
}

.btn-clients-toggle .toggle-arrow {
  transition: transform 0.3s ease;
}

.btn-clients-toggle.expanded .toggle-arrow {
  transform: rotate(180deg);
}

/* Services section CTA */
.services-cta-wrapper {
  text-align: center;
  margin-top: 32px;
}

.services-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.services-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 208, 0, 0.4);
}

.services-cta svg {
  transition: transform 0.3s ease;
}

.services-cta:hover svg {
  transform: translateX(4px);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 31, 92, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
  padding: 10px 22px;
  font-size: 12px;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(11, 31, 92, 0.3);
}

/* ========== TESTIMONIALS SECTION ========== */
.section-testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  position: relative;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

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

.testimonial-icon {
  font-family: 'Montserrat', sans-serif;
  font-size: 64px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  position: absolute;
  top: 12px;
  right: 24px;
  line-height: 1;
  user-select: none;
}

.testimonial-quote {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-author {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.testimonial-role {
  font-size: 13px;
  color: var(--gray-500);
}

/* ========== MAP SECTION ========== */
.map-wrapper {
  text-align: center;
}

.map-card {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  text-decoration: none;
}

.map-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.map-card-bg {
  position: absolute;
  inset: 0;
}

.map-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.map-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 20, 64, 0.88) 0%, rgba(26, 58, 143, 0.8) 100%);
}

.map-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.map-card-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.map-card-content h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 500px;
}

.map-card-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 550px;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ========== CONTACT ========== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--gray-500);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  margin-bottom: 24px;
}

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--gray-700);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 31, 92, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 15px;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success .success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--gray-500);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 320px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
}

/* ========== LOADING SCREEN ========== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 80px;
  width: auto;
  filter: brightness(0) invert(1);
  animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 24px;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  animation: loaderProgress 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes loaderProgress {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ========== CUSTOM CURSOR ========== */
.cursor-outer,
.cursor-inner {
  display: none;
}

@media (pointer: fine) {
  body.custom-cursor {
    cursor: none;
  }

  body.custom-cursor a,
  body.custom-cursor button,
  body.custom-cursor input,
  body.custom-cursor textarea,
  body.custom-cursor select,
  body.custom-cursor .card,
  body.custom-cursor .carousel-dot {
    cursor: none;
  }

  .cursor-outer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  .cursor-inner {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
  }

  .cursor-outer.visible,
  .cursor-inner.visible {
    opacity: 1;
  }

  .cursor-outer.hovering {
    width: 52px;
    height: 52px;
    border-color: var(--accent);
    opacity: 0.5;
  }

  .cursor-inner.hovering {
    width: 4px;
    height: 4px;
  }

  .cursor-outer.clicking {
    width: 24px;
    height: 24px;
    border-color: var(--accent);
  }
}

/* ========== BRANDS-STATS DIVIDER ========== */
.brands-stats-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  color: var(--accent);
  margin-bottom: 8px;
  opacity: 0.85;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-number .stat-suffix {
  font-size: 32px;
}

.stat-number .stat-suffix-full {
  font-size: inherit;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ========== RIPPLE EFFECT ========== */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========== 3D TILT CARD ========== */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card .card-body,
.tilt-card .card-image {
  transform: translateZ(20px);
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 60%);
  transition: opacity 0.3s ease;
}

.tilt-card:hover .tilt-glare {
  opacity: 1;
}

/* ========== SCROLL ANIMATIONS (UPGRADED) ========== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

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

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

.anim-divider {
  width: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-divider.visible {
  width: 60px;
}

/* Keep legacy .fade-in for backwards compat */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========== MAGNETIC BUTTON ========== */
.btn-magnetic {
  transition: all var(--transition), transform 0.2s ease;
}

/* ========== NAVBAR SEARCH BUTTON ========== */
.navbar-search-btn {
  background: none;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
}

.navbar-search-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--gray-50);
}

/* ========== LANGUAGE SWITCHER ========== */
.navbar-lang-wrapper {
  position: relative;
}

.navbar-lang-btn {
  background: none;
  border: 1px solid var(--gray-200);
  color: var(--gray-500);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.navbar-lang-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--gray-50);
}

.lang-current {
  line-height: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(11, 31, 92, 0.15);
  border: 1px solid var(--gray-200);
  padding: 6px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1100;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: var(--gray-600);
  text-align: left;
}

.lang-option:hover {
  background: var(--gray-50);
  color: var(--primary);
}

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

.lang-option.active:hover {
  background: var(--primary-light);
  color: var(--white);
}

.lang-code {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.lang-name {
  flex: 1;
}

/* ========== SEARCH OVERLAY ========== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(7, 20, 64, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 140px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(-20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-modal {
  transform: translateY(0) scale(1);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-400);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--gray-700);
  background: transparent;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-kbd {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.4;
}

.search-close {
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
}

.search-close:hover {
  color: var(--primary);
  background: var(--gray-100);
}

.search-results {
  padding: 8px 12px 16px;
  max-height: 340px;
  overflow-y: auto;
}

.search-hint {
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  padding: 24px 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--gray-50);
}

.search-result-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.search-result-text h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.search-result-text p {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* ========== BRAND ALLIANCES SECTION ========== */
.section-brands {
  background: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}

.section-brands::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(11, 31, 92, 0.02);
  border-radius: 50%;
}

.section-brands::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -5%;
  width: 300px;
  height: 300px;
  background: rgba(11, 31, 92, 0.015);
  border-radius: 50%;
}

.brands-banner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.brands-icon-wrapper {
  flex-shrink: 0;
}

.brands-icon {
  color: var(--primary);
  flex-shrink: 0;
  background: rgba(11, 31, 92, 0.06);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(11, 31, 92, 0.1);
}

.brands-content {
  flex: 1;
}

.brands-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.brands-desc {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 20px;
}

.brands-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.brands-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
}

.brands-badge::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1F5C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* ========== WHATSAPP BUTTON ========== */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: #1EBE5A;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn svg {
  width: 26px;
  height: 26px;
}

/* ========== GO TO TOP ========== */
.go-top {
  position: fixed;
  bottom: 96px;
  right: 34px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(11, 31, 92, 0.25);
}

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

.go-top:hover {
  background: var(--primary-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(11, 31, 92, 0.35);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .carousel-images-panel {
    width: 50%;
  }

  .carousel-text-panel {
    width: 50%;
    min-height: 400px;
  }

  .carousel-text-panel .slide-caption {
    padding: 36px 32px;
  }

  .slide-caption h2 {
    font-size: 24px;
  }

  .slide-caption p {
    font-size: 14px;
  }

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

  .card-image {
    height: 180px;
  }

  .card-body {
    padding: 22px;
  }

  .card-title {
    font-size: 17px;
  }

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

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

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

  .stat-number {
    font-size: 40px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .contact-info-item {
    flex: 1;
    min-width: 200px;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 80px;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .navbar-menu.open {
    display: flex;
  }

  .navbar-link {
    width: 100%;
    padding: 12px 16px;
    color: var(--gray-600);
  }

  .navbar-link:hover,
  .navbar-link.active {
    color: var(--primary);
  }

  .navbar-link::after {
    display: none;
  }

  .navbar-separator {
    display: none;
  }

  .navbar-search-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-color: var(--gray-200);
    color: var(--gray-500);
    margin-top: 4px;
  }

  .search-overlay {
    padding: 80px 16px 0;
  }

  .search-kbd {
    display: none;
  }

  .brands-banner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .brands-title {
    font-size: 18px;
  }

  .brands-desc {
    font-size: 14px;
  }

  .brands-badges {
    justify-content: center;
  }

  .navbar-lang-wrapper {
    width: 100%;
  }

  .navbar-lang-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border-color: var(--gray-200);
    color: var(--gray-500);
    margin-top: 4px;
  }

  .lang-dropdown {
    position: static;
    box-shadow: none;
    border: 1px solid var(--gray-200);
    margin-top: 4px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border-radius: var(--radius-sm);
  }

  .lang-dropdown.open {
    display: block;
  }

  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-btn svg {
    width: 22px;
    height: 22px;
  }

  .go-top {
    bottom: 78px;
    right: 22px;
    width: 38px;
    height: 38px;
  }

  .hero {
    padding: 24px 16px;
  }

  .carousel {
    flex-direction: column;
  }

  .carousel-images-panel {
    width: 100%;
    height: 250px;
  }

  .carousel-text-panel {
    width: 100%;
    min-height: auto;
    position: relative;
  }

  .carousel-text-panel .slide-caption {
    position: relative;
    display: none;
    padding: 28px 24px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .carousel-text-panel .slide-caption.active {
    display: flex;
  }

  .slide-caption h2 {
    font-size: 22px;
  }

  .slide-caption p {
    font-size: 14px;
  }

  .carousel-btn {
    opacity: 1;
  }

  .slide-btn {
    padding: 8px 18px;
    font-size: 11px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
  }

  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }

  .carousel-btn-prev {
    left: 8px;
  }

  .carousel-btn-next {
    right: 8px;
  }

  .section {
    padding: 70px 0;
  }

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

  .stat-number {
    font-size: 36px;
  }

  .stat-label {
    font-size: 12px;
  }

  .section-title {
    font-size: 28px;
  }

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

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

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

  .testimonial-card {
    padding: 28px 24px 24px;
  }

  /* Mobile: replace card images with icons */
  .card-image {
    display: none;
  }

  .card-icon {
    display: flex;
  }

  .card {
    flex-direction: row;
    align-items: center;
  }

  .card-icon {
    flex-shrink: 0;
    width: 70px;
    padding: 16px;
  }

  .card-body {
    padding: 16px;
  }

  .card-body .btn {
    font-size: 11px;
    padding: 8px 16px;
  }

  .card-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .card-description {
    font-size: 12px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Client cards in mobile list style */
  .card-client .card-icon-location {
    width: 50px;
    padding: 12px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

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

  .footer-tagline {
    margin: 0 auto;
  }

  .footer-logo {
    margin: 0 auto 16px;
  }

  .map-card-content {
    padding: 40px 24px;
    min-height: 300px;
  }

  .map-card-content h3 {
    font-size: 22px;
  }

  .map-card-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  :root {
    --navbar-height: 70px;
  }

  .hero {
    padding: 16px 12px;
  }

  .carousel-images-panel {
    height: 220px;
  }

  .carousel-text-panel .slide-caption {
    padding: 24px 20px;
  }

  .slide-caption h2 {
    font-size: 19px;
  }

  .slide-caption p {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .carousel-btn {
    width: 30px;
    height: 30px;
  }

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

  .logo-img {
    height: 50px;
  }

  .map-card {
    min-height: 280px;
  }

  .map-card-content {
    padding: 32px 20px;
    min-height: 280px;
  }
}