/* ===============================
   PREMIUM UI DESIGN SYSTEM
================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #0b3c5d;
  --secondary: #1d70a2;
  --accent: #f5a623;
  --bg: #f6f9fc;
  --text: #1a1a1a;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* ===============================
   HEADER
================================ */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--primary);
}

.nav-links a {
  margin-left: 26px;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===============================
   HEADER LOGO IMAGE
================================ */

.logo img {
  height: 60px;          /* Adjust if needed */
  width: auto;
  display: block;
}

/* On mobile make it slightly smaller */
@media (max-width: 768px) {
  .logo img {
    height: 40px;
  }
}


/* ===============================
   HERO
================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, rgba(11,60,93,0.85), rgba(29,112,162,0.85)),
              url("../images/hero.jpg") center/cover no-repeat;
  color: #fff;
}

.hero-inner {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  max-width: 700px;
}

.hero p {
  max-width: 550px;
  margin-top: 15px;
  font-size: 18px;
  opacity: 0.95;
}

.hero-buttons {
  margin-top: 30px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  margin-right: 12px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
}

.btn-outline-services {
  border: 2px solid rgba(50, 60, 93, 0.7);
  color: #0b3c5d;
}

/* ===============================
   STATS BAR
================================ */
.stats {
  margin-top: -80px;
}

.stats-box {
  max-width: 1100px;
  margin: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px;
  text-align: center;
}

.stat h3 {
  color: var(--primary);
  font-size: 32px;
}

/* ===============================
   SECTIONS
================================ */
.section {
  padding: 100px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 38px;
  color: var(--primary);
}

.section-title p {
  margin-top: 10px;
  opacity: 0.7;
}

/* ===============================
   CARDS
================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 35px;
  box-shadow: var(--shadow);
  transition: 0.4s;
}

.card:hover {
  transform: translateY(-10px);
}

/* ===============================
   FOOTER
================================ */
/* ===============================
   PREMIUM FOOTER
================================ */

footer {
  background: linear-gradient(120deg, #0b3c5d, #1d70a2);
  color: #fff;
  padding: 80px 20px 0;
  margin-top: 100px;
}

.footer-main {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-col h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-col p {
  opacity: 0.9;
  line-height: 1.7;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  opacity: 0.9;
  transition: 0.3s;
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(4px);
}

/* Bottom bar */
.footer-bottom {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  background: rgba(0,0,0,0.15);
  font-size: 14px;
  opacity: 0.9;
}

.footer-col i {
  color: var(--accent);
  margin-right: 10px;
  min-width: 18px;
}


/* ===============================
   RESPONSIVE FOOTER
================================ */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 500px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   FORMS
================================ */
input, textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

/* ===============================
   RESPONSIVE
================================ */
@media(max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .stats-box {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
}

/* ===============================
   MOBILE MENU
================================ */
/* ===============================
   SLIDE-IN MOBILE MENU
================================ */

/* ===============================
   RESPONSIVE MENU LOGIC
================================ */

/* Desktop default */
.menu-toggle {
  display: none;
}

.desktop-menu {
  display: flex;
}

/* Tablet & Mobile */
@media (max-width: 1024px) {

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    cursor: pointer;
  }
}

/* ===============================
   SLIDE-IN MOBILE MENU
================================ */

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 998;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 80%;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

/* Only allow slide menu on tablet/mobile */
@media (min-width: 1025px) {
  .mobile-menu,
  .mobile-overlay {
    display: none !important;
  }
}

.mobile-menu a {
  padding: 16px 0;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.close-btn {
  font-size: 24px;
  cursor: pointer;
}

/* ===============================
   ACTIVE MENU LINK STYLE
================================ */
/* ===============================
   MENU ACTIVE STATE FIX
================================ */

/* Reset all active styles first */
.nav-links a,
.mobile-menu a {
  position: relative;
}

/* DESKTOP ACTIVE = underline only */
.nav-links a.active {
  background: none !important;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* MOBILE ACTIVE = background only */
.mobile-menu a.active {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

/* Remove underline effect in mobile */
.mobile-menu a.active::after {
  display: none !important;
}

/* Improve mobile menu link style */
.mobile-menu a {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 16px;
  transition: 0.3s;
}

/* Hover effect */
.mobile-menu a:hover {
  background: rgba(255,255,255,0.1);
}


/* ===============================
   STAGGER ANIMATION
================================ */
.mobile-menu a {
  opacity: 0;
  transform: translateX(20px);
}

@keyframes menuItemFade {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* ===============================
   RESPONSIVE BREAKPOINTS
================================ */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 42px;
  }
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 20px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    padding: 20px;
    width: 220px;
  }

  .nav-links a {
    margin: 12px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 80px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .stats-box {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .section {
    padding: 70px 20px;
  }
}

@media (max-width: 480px) {

  .hero h1 {
    font-size: 28px;
  }

  .stats-box {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
/* ===============================
   GLOBAL LINK RESET
================================ */
a {
  text-decoration: none;
  color: inherit;
}

/* ===============================
   DESKTOP NAV LINKS
================================ */
.desktop-menu a {
  position: relative;
  font-weight: 600;
  color: #1a1a1a;
  padding: 6px 6px;
  transition: color 0.25s ease;
}

/* Hover underline animation */
.desktop-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.desktop-menu a:hover {
  color: var(--primary);
}

.desktop-menu a:hover::after {
  width: 100%;
}

/* ===============================
   ACTIVE DESKTOP LINK
================================ */
.desktop-menu a.active-link {
  color: var(--primary);
  font-weight: 700;
}

.desktop-menu a.active-link::after {
  width: 100%;
}

/* ===============================
   MOBILE MENU LINKS
================================ */
.mobile-menu a {
  opacity: 0; /* for animation */
  transform: translateX(20px);
  padding: 16px 10px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  border-radius: 10px;
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s ease;
}

/* Hover effect */
.mobile-menu a:hover {
  background: rgba(0,0,0,0.04);
  padding-left: 16px;
}

/* ===============================
   ACTIVE MOBILE LINK
================================ */
.mobile-menu a.active-link {
  background: rgba(245, 166, 35, 0.15);
  color: #000;
  font-weight: 700;
  padding-left: 18px;
  position: relative;
}

/* Left accent bar */
.mobile-menu a.active-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  height: 76%;
  width: 4px;
  background: var(--accent);
  border-radius: 10px;
}



.card img {
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.05);
}


/* ===============================
   GLOBAL IMAGE FIX (NO OVERFLOW)
================================ */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   HOME SERVICES CARD IMAGE FIX
================================ */
.card img {
  width: 100%;
  height: 200px;            /* Fixed height */
  object-fit: cover;        /* Crop properly */
  border-radius: 12px;
  margin-bottom: 20px;
}

/* Prevent any horizontal scroll */
body {
  overflow-x: hidden;
}



/* ===============================
   NEW SERVICES PAGE DESIGN
================================ */

.services-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.services-hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.services-hero-content h3 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
}

.service-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.service-card-image {
  height: 220px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.08);
}

.service-card-content {
  padding: 25px;
}

.service-card-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary);
}

.service-card-content h3 i {
  color: var(--accent);
  margin-right: 8px;
}

.service-card-content ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.service-card-content li {
  margin-bottom: 8px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .services-hero {
    grid-template-columns: 1fr;
  }

  .services-hero img {
    height: 260px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   SERVICE DETAIL PAGES
================================ */

.service-detail-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}

.service-detail-hero img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.service-detail-content h1 {
  font-size: 38px;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-detail-content p {
  font-size: 17px;
  line-height: 1.8;
  opacity: 0.92;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.service-feature-card {
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.service-feature-card i {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 15px;
}

.service-feature-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
}

/* CTA block */
.service-cta {
  margin-top: 100px;
  padding: 70px 40px;
  border-radius: 30px;
  background: linear-gradient(120deg, #0b3c5d, #1d70a2);
  color: #fff;
  text-align: center;
}

.service-cta h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .service-detail-hero {
    grid-template-columns: 1fr;
  }

  .service-detail-hero img {
    height: 260px;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-content h1 {
    font-size: 28px;
  }
}
/* ===============================
   CONTACT PAGE
================================ */

.contact-form-wrapper {
  max-width: 900px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

.contact-form button {
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 25px;
  }
}

/* ===============================
   WHY CHOOSE US SECTION
================================ */

.why-grid {
  gap: 30px;
}

.why-card {
  text-align: center;
  padding: 30px 25px;
}

.why-card i {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 15px;
}

.why-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--primary);
}

.why-card p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

/* ===============================
   DESKTOP DROPDOWN MENU
================================ */

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  min-width: 220px;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.25s ease;
  z-index: 9999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f2f5f9;
}

/* Show dropdown on hover */
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===============================
   MOBILE SUBMENU
================================ */

.mobile-submenu {
  margin-bottom: 8px;
}

.mobile-submenu-title {
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu-links {
  display: none;
  padding-left: 10px;
}

.mobile-submenu-links a {
  display: block;
  padding: 10px 18px;
  opacity: 0.9;
}

/* Active state */
.mobile-submenu.open .mobile-submenu-links {
  display: block;
}

/* ===============================
   MOBILE MENU VISUAL FIX
================================ */

/* Make submenu title look like normal links */
.mobile-submenu-title {
  font-size: 18px;
  color: #000;              /* or your menu text color */
  font-weight: 600;
  padding: 14px 10px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
}

/* Same hover effect as links */
.mobile-submenu-title:hover {
  background: rgba(255,255,255,0.1);
}

/* When submenu is open */
.mobile-submenu.open .mobile-submenu-title {
  background: rgba(255,255,255,0.15);
}

/* Submenu links indentation */
.mobile-submenu-links a {
  font-size: 15px;
  padding: 10px 18px 10px 28px;
  opacity: 0.9;
}
/* ===============================
   FOOTER ICON ALIGNMENT FIX
================================ */

.footer-contact-item {
  display: flex;
  align-items: flex-start;  /* aligns icon to top of text block */
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-contact-item i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 4px; /* fine-tune vertical alignment */
  min-width: 18px; /* keeps all icons aligned in column */
}

.footer-contact-item span {
  display: block;
}

/* ===============================
   HERO SIMPLE ANIMATION
================================ */

/* Initial states */
.hero-inner h1,
.hero-inner p,
.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
}

/* Animate on page load */
.hero-inner h1 {
  animation: heroFadeUp 0.9s ease forwards;
}

.hero-inner p {
  animation: heroFadeUp 0.9s ease forwards;
  animation-delay: 0.2s;
}

.hero-buttons {
  animation: heroFadeUp 0.9s ease forwards;
  animation-delay: 0.4s;
}

/* Keyframes */
@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ===============================
   HERO BLUR + REVEAL ANIMATION
================================ */

/* Mask container */
.hero-inner h1,
.hero-inner p {
  overflow: hidden;
}

/* Initial hidden state */
.hero-inner h1 span,
.hero-inner p span {
  display: inline-block;
  transform: translateY(120%);
  filter: blur(12px);
  opacity: 0;
  animation: blurReveal 1.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

/* Stagger timing */
.hero-inner h1 span {
  animation-delay: 0.1s;
}

.hero-inner p span {
  animation-delay: 0.5s;
}

/* Buttons */
.hero-buttons {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUpBtn 0.8s ease forwards;
  animation-delay: 1.2s;
}

/* Keyframes */
@keyframes blurReveal {
  to {
    transform: translateY(0);
    filter: blur(0);
    opacity: 1;
  }
}

@keyframes fadeUpBtn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================
   HOME PAGE PREMIUM POLISH LAYER (SAFE TO APPEND)
====================================================== */

/* ---------- SECTION SPACING REFINEMENT ---------- */
.section {
  padding: 110px 20px;
}

.section-title h2 {
  font-size: 40px;
  letter-spacing: -0.5px;
}

.section-title p {
  font-size: 17px;
}

/* ---------- HERO VISUAL UPGRADE ---------- */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.15), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.08), transparent 45%);
  pointer-events: none;
}

/* ---------- STATS GLASS CARD ---------- */
.stats {
  margin-top: -90px;
  position: relative;
  z-index: 5;
}

.stats-box {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 40px 30px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

.stat h3 {
  font-size: 36px;
}

/* ---------- GLOBAL CARD UPGRADE ---------- */
.card {
  border-radius: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 90px rgba(0,0,0,0.18);
}

/* ---------- SERVICES CARDS IMAGE DEPTH ---------- */
.card img {
  border-radius: 16px;
}

/* ---------- WHY CHOOSE US ICON STYLE ---------- */
.why-card i {
  font-size: 42px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), #ffd28a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- WHY CARDS POLISH ---------- */
.why-card {
  padding: 40px 30px;
}

/* ---------- SECTION BACKGROUND RHYTHM ---------- */
.section:nth-of-type(even) {
  background: linear-gradient(180deg, #f7faff, #f3f7fd);
}

/* ---------- BUTTON MICRO INTERACTION ---------- */
.btn {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ---------- HERO BUTTON SPACING ---------- */
.hero-buttons .btn {
  margin-right: 14px;
}

/* ---------- MOBILE TUNING ---------- */
@media (max-width: 768px) {

  .section {
    padding: 80px 20px;
  }

  .stats {
    margin-top: -60px;
  }

  .stats-box {
    padding: 28px 20px;
  }

  .section-title h2 {
    font-size: 32px;
  }
}

/* ======================================================
   SUBTLE IMAGE MOTION (PREMIUM MICRO-ANIMATIONS)
====================================================== */

/* ---------- HERO BACKGROUND SLOW FLOAT ---------- */
.hero {
  background-attachment: fixed;
  animation: heroBgFloat 20s ease-in-out infinite alternate;
}

@keyframes heroBgFloat {
  from {
    background-position: center center;
  }
  to {
    background-position: center 55%;
  }
}

/* ---------- SERVICE & CARD IMAGES SOFT FLOAT ---------- */
.card img,
.service-card-image img,
.services-hero img,
.service-detail-hero img {
  animation: softFloat 6s ease-in-out infinite;
}

/* Stagger timing for natural feel */
.card:nth-child(1) img { animation-delay: 0s; }
.card:nth-child(2) img { animation-delay: 0.6s; }
.card:nth-child(3) img { animation-delay: 1.2s; }

@keyframes softFloat {
  0%   { transform: translateY(0px) scale(1); }
  50%  { transform: translateY(-6px) scale(1.015); }
  100% { transform: translateY(0px) scale(1); }
}

/* ---------- DISABLE ON MOBILE FOR PERFORMANCE ---------- */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    animation: none;
  }

  .card img,
  .service-card-image img,
  .services-hero img,
  .service-detail-hero img {
    animation: none;
  }
}
/* ======================================================
   CENTER LOGO + SHIP + WATER WAVE PRELOADER
====================================================== */

#preloader {
  position: fixed;
  inset: 0;
  background: #f6f9fc;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  position: relative;
  text-align: center;
}

/* Center logo */
.logo-wrap {
  position: relative;
  z-index: 2;
}

.logo-wrap img {
  height: 70px;
}

/* Ship behind logo - slow sailing motion */
.ship-wrap {
  position: absolute;
  top: 50%;
  right: -320px; /* start outside right side */
  width: 300px;
  opacity: 0.18;
  z-index: 1;

  animation: shipSailAcross 14s linear infinite,
             shipBob 3s ease-in-out infinite;
}

/* Sail from RIGHT to LEFT */
@keyframes shipSailAcross {
  0%   { transform: translateY(-50%) translateX(0); }
  50%  { transform: translateY(-50%) translateX(calc(-100vw - 640px)); }
  100% { transform: translateY(-50%) translateX(0); }
}

/* Vertical floating */
@keyframes shipBob {
  0%   { margin-top: 0; }
  50%  { margin-top: -6px; }
  100% { margin-top: 0; }
}


/* Water waves animation */
#wave1 {
  animation: waveMove1 2.8s ease-in-out infinite;
}

#wave2 {
  animation: waveMove2 3.6s ease-in-out infinite;
}

@keyframes waveMove1 {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(-12px); }
  100% { transform: translateX(0); }
}

@keyframes waveMove2 {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(12px); }
  100% { transform: translateX(0); }
}

/* Text */
.preloader-inner p {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--primary);
  opacity: 0.7;
}
