/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #222;
  background: #f9fafb;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  background: #001f3f;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

/* Navigation */
.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

.main-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #66c2ff;
  transition: width 0.3s;
  margin-top: 5px;
}

.main-nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  margin-left: auto;
}


@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    position: relative;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 70%;
    background: #001f3f;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 10px;
    display: none;
    border-left: 2px solid #0074d9;
    border-bottom: 2px solid #0074d9;
    box-shadow: -4px 4px 12px rgba(0,0,0,0.2);
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #003366;
  }

  .btn {
    margin-top: 10px;
    align-self: stretch;
  }

  .hero {
    height: 100vh;
  }

  .overlay h2 {
    font-size: 1.8rem;
  }

  .overlay p {
    font-size: 1rem;
  }
}


/* Buttons */
.btn {
  padding: 10px 20px;
  background: #0074d9;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(to right, #0074d9, #005fa3);
}

/* Hero */
.hero {
  position: relative;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}


.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.slide.active {
  opacity: 1;
  z-index: 1;
}


/*.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.4), rgba(0, 15, 40, 0.6));
  backdrop-filter: blur(4px);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.overlay h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.overlay p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}*/

/* Services */
.services {
  padding: 60px 0;
  background: linear-gradient(135deg, #d6eaff, #b3d9ff);
  text-align: center;
  color: #002244;
}

.services h3 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  border: 1px solid #e3e3e3;
  border-top: 4px solid #0074d9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Why Us */
.why-us {
  padding: 60px 0;
  background: linear-gradient(to right, #001f3f, #003366);
  color: #ffffff;
  text-align: center;
}

.why-us .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.why-us .card {
  background: rgba(255, 255, 255, 0.95);
  color: #001f3f;
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid #0074d9;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  max-width: 320px;
  flex: 1;
}

/* Trusted */
.trusted {
  padding: 60px 0;
  text-align: center;
}

.trusted .logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.trusted img {
  height: 60px;
  margin: 0 20px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease-in-out;
}

.trusted img:hover {
  filter: none;
  opacity: 1;
}

/* Newsletter */
.newsletter {
  padding: 60px 0;
  text-align: center;
}

.newsletter form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.newsletter input[type="email"] {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 250px;
}

/* Call to Action */
.cta {
  background: #001f3f;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

/* Footer */
.footer {
  background: #111;
  color: #ccc;
  padding: 30px 0;
  text-align: center;
}

.footer .social a {
  color: #aaa;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer .social a:hover {
  color: #fff;
}

/* Scroll Button */
#scrollBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  background-color: #0074d9;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

#scrollBtn:hover {
  background-color: #005fa3;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 480px) {
  .overlay h2 {
    font-size: 1.8rem;
  }

  .overlay p {
    font-size: 1rem;
  }

  .nav {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .main-nav {
    justify-content: center;
  }

  .hero {
    height: 100vh;
  }
}

/* Floating Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: #0074d9;
  color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  text-align: center;
  animation: floatIn 1s ease-in;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-widget .btn {
  margin-top: 10px;
  background: #fff;
  color: #0074d9;
  font-weight: bold;
}

/* Stat Animations */
.stat {
  font-size: 2.2rem;
  font-weight: 700;
  display: block;
  color: #005fa3;
}

/* Blog Cards Hover Effect */
.card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #003366;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  top: 100%;
  left: 0;
  border-radius: 6px;
  overflow: hidden;
  transition: opacity 0.3s ease;
}

.dropdown-content a {
  display: block;
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  border-bottom: 1px solid #005fa3;
  white-space: nowrap;
}

.dropdown-content a:hover {
  background-color: #005fa3;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content.show {
  display: block;
  position: static;
  opacity: 1;
  max-height: 500px;
}

@media (max-width: 768px) {
  .dropdown-content {
    position: static;
    background-color: #001f3f;
    box-shadow: none;
    border: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease, visibility 0.4s ease;
  }

  .dropdown-content.show {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 8px 0;
  }

  .dropdown-content a {
    border-top: 1px solid #003366;
    padding: 12px 20px;
    display: block;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* disables hover opening on mobile */
  }
}
.dropdown-toggle i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.dropdown-toggle i.rotated {
  transform: rotate(180deg);
}
