/* General Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #3A5A88; /* Body & Hero background */
  color: white;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgb(31, 45, 61); /* Same color as logo background */
}

.logo {
  background-color: rgb(31, 45, 61); /* Same as navbar background */
  padding: 20px;
  border-radius: 5px;
  display: inline-block;
}

.logo img {
  width: 310px;
  display: block;
  background-color: rgb(31, 45, 61);
}

/* Navigation Menu */
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu ul li {
  display: inline;
  margin: 0 60px;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 30px;
}

/* Hero Section */
.hero {
  padding: 50px 20px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 20px;
}
.amazon {
  text-decoration: underline;
}
.hero .amazon {
  color: orange;
}

.hero p {
  font-size: 30px;
  margin: 0 0 30px;
}

.hero-image {
  position: relative; /* Ensures the icon is positioned relative to this container */
  margin: 30px auto;
  display: inline-block; /* Ensures it wraps around the image */
}

.hero-image img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}
.icon-shuffle {
  position: absolute;
  top: 16.5px; /* Adjust this value for correct vertical placement */
  left: 489px; /* Adjust this value for correct horizontal placement */
  width: 96px;
  height: 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Icon Styling */
.icon {
  width: 100%; /* Scale icon size relative to container */
  height: 100%; /* Ensures it fills the container */
  object-fit: contain; /* Prevents stretching */
  position: absolute;
  opacity: 0;
  animation: shuffle 16s infinite;
}

/* Tablet (Smaller Screens) */
@media (max-width: 768px) {
  .icon-shuffle {
    top: 25.5%; /* Lower on tablets */
    left: 89.5%;
    transform: translate(-50%, -50%);
    width: 20%;
    max-width: 100px;
    height: 100px;
  }
}

/* Mobile (Small Screens) */
@media (max-width: 480px) {
  .icon-shuffle {
    top: 25.5%; /* Even lower for smaller screens */
    left: 89.5%;
    transform: translate(-50%, -50%);
    width: 16%;
    max-width: 51px;
    height: 51px;
  }
}

/* Assign delay to each icon for smooth transitions */
.icon-1 { animation-delay: 0s; }
.icon-2 { animation-delay: 2s; }
.icon-3 { animation-delay: 4s; }
.icon-4 { animation-delay: 6s; }
.icon-5 { animation-delay: 8s; }
.icon-6 { animation-delay: 10s; }
.icon-7 { animation-delay: 12s; }
.icon-8 { animation-delay: 14s; }

/* Animation to cycle through icons with overlap */
@keyframes shuffle {
  0%   { opacity: 0; z-index: 1; }   /* Icon starts hidden */
  5%  { opacity: 1; z-index: 2; }   /* Icon fades in */
  10%  { opacity: 1; z-index: 2; }   /* Icon stays visible */
  10%  { opacity: 0; z-index: 1; }   /* Icon starts fading out */
  100% { opacity: 0; }               /* Stays hidden */
}

/* Style for the hero image */
.hero-image {
  position: relative; /* Ensures the icon is positioned relative to this container */
  margin: 30px auto;
  display: inline-block; /* Ensures it wraps around the image */
}


.hero-image img {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
}

.hero .btn {
  display: block; /* Ensures the button stays on its own line */
  margin: 30px auto 0; /* Keeps it centered below the hero image */
  padding: 15px 30px;
  background: orange;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
  border-radius: 50px;
  transition: background 0.3s ease;
  width: fit-content;
  clear: both; /* Prevents floating issues */
}

.hero .btn:hover {
  background: darkorange;
}

/* Services Section */
.services {
  padding: 70px 20px;
  background: #2C4875;
  text-align: center;
  color: white;
}
.success {
  text-decoration: underline;
  color: orange;
}

.services h2 {
  font-size: 40px;
  margin: 0 0 70px;
}

.services p {
  margin: 0 0 20px;
  font-size: 25px;
}

/* Service Cards */
.service-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
}

/* Increased vertical margin for stacked cards */
.card:nth-child(1),
.card:nth-child(2),
.card:nth-child(3),
.card:nth-child(4),
.card:nth-child(5),
.card:nth-child(6),
.card:nth-child(7),
.card:nth-child(8),
.card:nth-child(9){
  margin-top: 100px;

}

.card {
  background: #1F3558;
  padding: 20px;
  width: 300px;
  border-radius: 40px;
  box-sizing: border-box;
  position: relative;
}

/* Icon positioning */
.icon-container {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  visibility: visible;
}

.feature-icon {
  width: 30px;
  height: 30px;
}

/* Contact Button in Services Section */
.services .services-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 30px;
  background: orange;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
  border-radius: 50px;
  transition: background 0.3s ease;
}

.services .services-btn:hover {
  background: darkorange;
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 60px 20px;
  background: #3A5A88;
  text-align: center;
  margin-bottom: 0px;
}

.why-choose-us h2 {
  font-size: 40px;
  margin: 0 0 70px;
}
.underline-us {
  text-decoration: underline;
  color: orange;
}

/* Feature Cards */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 70px;
}

/* Increased vertical margin for stacked cards */
.feature:nth-child(1),
.feature:nth-child(2),
.feature:nth-child(3),
.feature:nth-child(4) {
  margin-top: 100px;
}

.feature {
  background: #1F3558;
  padding: 20px;
  width: 225px;
  max-width: 100%;
  border-radius: 40px;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (max-width: 600px) {
  .feature {
    width: 225px !important; /* Ensures fixed width */
  }
}
/* Icon positioning */
.icon-container {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  visibility: visible;
}

.feature-icon {
  width: 30px;
  height: 30px;
}

/* Updating Feature Icons */
.feature:nth-child(1) .feature-icon {
   background-image: url("images/icon-less-hassle.png");
}

.feature:nth-child(2) .feature-icon {
   background-image: url("images/icon-expert.png");
}

.feature:nth-child(3) .feature-icon {
   background-image: url("images/icon-sales.png");
}

.feature:nth-child(4) .feature-icon {
   background-image: url("images/icon-partner.png");
}

/* Hover Effects */
.feature h3 {
  font-size: 25px !important;
  margin: 0 0 20px !important;
}

.feature:hover {
  transform: translateY(-10px);
}

.card {
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
}

.card h3 {
  font-size: 30px;
  margin: 0 0 20px;
}

.feature p {
  font-size: 23px;
  margin: 0;
  text-align: center;
}

/* Positioning the icons above the cards */
.icon-container {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  visibility: visible;
}

.feature-icon {
  width: 80px;
  height: 80px;
}

/* Contact Button in Why Choose Us Section */
.why-choose-us .btn {
  display: inline-block;
  margin-top: 60px;
  padding: 15px 30px;
  background: orange;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 25px;
  border-radius: 50px;
  transition: background 0.3s ease;
}

.why-choose-us .btn:hover {
  background: darkorange;
}

/* Footer Section */
.footer {
  background-color: #1F3558;
  padding: 20px;
  color: white;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer .footer-links {
  margin-top: 20px;
}

.footer .footer-links a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
}

.footer .footer-links a:hover {
  text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    align-items: center;
  }

  .feature {
    width: 100%;
    max-width: 350px;
  }
}