/* ===== Fonts ===== */
body { font-family: 'Poppins', sans-serif; }
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; }

/* ===== Smooth scroll ===== */
html { scroll-behavior: smooth; }

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #fff;
  transition: all 0.6s ease-out;
}
#preloader::before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid transparent;
  border-top-color: #0f1b29;
  border-bottom-color: #0f1b29;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
#header {
  transition: all 0.5s;
  box-shadow: none;
}
#header.scrolled {
  box-shadow: 0 2px 20px rgba(1,41,112,0.1);
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
#header.scrolled .logo img { height: 65px; }

/* ===== Nav active indicator ===== */
.nav-link-item {
  position: relative;
  transition: color 0.3s;
}
.nav-link-item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: #0f1b29;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav-link-item:hover::after,
.nav-link-item.active::after { transform: scaleX(1); }
.nav-link-item.active { color: #0f1b29 !important; }
.nav-link-item:hover { color: #0f1b29 !important; }

/* ===== Mobile Nav ===== */
#mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1,22,61,0.92);
  z-index: 998;
}
#mobile-nav-overlay.open { display: block; }
#mobile-nav-menu {
  position: absolute;
  top: 55px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  background: #fff;
  border-radius: 10px;
  overflow-y: auto;
  padding: 10px 0;
}
#mobile-nav-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #012970;
  text-decoration: none;
}
#mobile-nav-menu a:hover { color: #2563eb; }
#mobile-nav-menu .btn-contact {
  display: block;
  margin: 10px 15px;
  padding: 10px 20px;
  background: #0f1b29;
  color: #fff !important;
  border-radius: 4px;
  text-align: center;
}

/* ===== Hero ===== */
#hero {
  width: 100%;
  min-height: 100vh;
  background: url('../img/slider/banner-site-hm2.jpg') top right no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  position: relative;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(15,27,41,0.55) 0%, rgba(15,27,41,0.15) 60%, transparent 100%);
  pointer-events: none;
}
@media (min-width: 1024px) {
  #hero { background-attachment: fixed; }
}
@media (max-width: 991px) {
  #hero { min-height: 70vh; padding-top: 120px; padding-bottom: 60px; }
  #hero::before { background: rgba(15,27,41,0.5); }
}
@media (max-width: 768px) {
  #hero { min-height: 100vh; text-align: center; }
}

/* ===== Hero badge ===== */
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #cacaca;
  border: 1px solid rgba(202,202,202,0.5);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ===== Section header pattern ===== */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 8px;
}
.section-tag.light { color: rgba(202,202,202,0.8); }

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 50px;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
}
.section-title.left-align::after {
  left: 0;
  transform: none;
}

/* ===== About decorative borders ===== */
.about-img {
  position: relative;
  margin: 30px;
}
.about-img video {
  width: 100%;
  border: 8px solid #fff;
  transition: 0.5s;
  display: block;
}
.about-img video:hover { transform: scale(1.03); }
.about-img::before {
  content: "";
  position: absolute;
  left: -31px;
  top: -30px;
  width: 90%;
  height: 92%;
  z-index: -1;
  background-color: #dddddd;
  transition: 0.5s;
}
.about-img::after {
  content: "";
  position: absolute;
  right: -31px;
  bottom: -30px;
  width: 90%;
  height: 92%;
  z-index: -1;
  background-color: #dddddd;
  transition: 0.5s;
}

/* ===== About stats ===== */
.stat-item {
  text-align: center;
  padding: 16px 20px;
  border-top: 3px solid #2563eb;
  background: #f8faff;
  border-radius: 0 0 8px 8px;
}
.stat-item .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #0f1b29;
  line-height: 1;
}
.stat-item .stat-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Services card ===== */
.service-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(221,221,221,0.12);
  border-top: 3px solid transparent;
  padding: 48px 28px 40px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  height: 100%;
  border-radius: 4px;
}
.service-item .icon {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: 0.3s;
}
.service-item .icon i { color: #0f1b29; font-size: 28px; transition: 0.3s; }
.service-item .service-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  text-align: left;
}
.service-item .service-list li {
  font-size: 12px;
  color: rgba(202,202,202,0.75);
  padding: 3px 0 3px 16px;
  position: relative;
}
.service-item .service-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
}
.service-item:hover {
  background: #fff;
  border-color: #fff;
  border-top-color: #2563eb;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.service-item:hover .icon { background: #0f1b29; }
.service-item:hover .icon i { color: #fff; }
.service-item:hover h3,
.service-item:hover p { color: #0f1b29 !important; }
.service-item:hover .service-list li { color: #555; }

/* ===== FAQ Accordion ===== */
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.06);
  margin-bottom: 15px;
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 20px 50px 20px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: #292929;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-btn::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  font-style: normal;
  font-weight: normal;
  position: absolute;
  right: 20px;
  font-size: 16px;
  transition: transform 0.3s;
  color: #2563eb;
}
.faq-btn.open { color: #0f1b29; }
.faq-btn.open::after { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 40px 24px 50px;
  font-size: 15px;
  color: #444;
  line-height: 1.7;
}
.faq-answer.open { display: block; }

/* ===== Testimonials Swiper ===== */
.testimonial-item {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  margin: 30px 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-top: 3px solid #2563eb;
}
.testimonials-section .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #222529;
  opacity: 1;
}
.testimonials-section .swiper-pagination-bullet-active { background: #fff; }
.testimonials-section .swiper-pagination { margin-top: 20px; position: relative; }

/* ===== Gallery item with overlay ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
}
.gallery-img {
  transition: transform 0.4s ease;
  cursor: pointer;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,27,41,0.65);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  border-radius: 6px;
}
.gallery-item .zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  z-index: 2;
  color: #fff;
  font-size: 32px;
  opacity: 0;
  transition: all 0.3s ease;
}
.gallery-item:hover::before { opacity: 1; }
.gallery-item:hover .gallery-img { transform: scale(1.05); }
.gallery-item:hover .zoom-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== Contact info card ===== */
.info-card {
  transition: transform 0.3s;
  border-top: 4px solid #0f1b29;
}
.info-card:hover { transform: translateY(-8px); }
.info-card .icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px dotted rgba(37,99,235,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #0f1b29;
  margin: 0 auto 10px;
}

/* ===== Back to top ===== */
#back-to-top {
  position: fixed;
  left: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #0f1b29;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  visibility: hidden;
  opacity: 0;
  transition: all 0.4s;
}
#back-to-top.active { visibility: visible; opacity: 1; }
#back-to-top:hover { background: #2563eb; }

/* ===== WhatsApp button ===== */
#whatsapp-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 1px 1px 2px #888;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s;
}
#whatsapp-btn:hover { transform: scale(1.1); }

/* ===== Footer gradient border ===== */
#footer {
  border-top: 3px solid;
  border-image: linear-gradient(to right, #0f1b29, #2563eb, #0f1b29) 1;
}

/* ===== Cookie consent ===== */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 350px;
  background: #fff;
  padding: 30px;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border-top: 3px solid #0f1b29;
}
@media (max-width: 980px) {
  #cookie-banner { bottom: 0; left: 0; width: 100%; }
}

/* ===== AOS delay disabled on mobile ===== */
@media (max-width: 768px) {
  [data-aos-delay] { transition-delay: 0 !important; }
}

/* ===== Footer links ===== */
.footer-link { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: #fff; }

/* ===== Form submit button ===== */
.form-submit {
  background: #0f1b29;
  color: #fff;
  border: none;
  padding: 12px 36px;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.form-submit:hover { background: #2563eb; }
