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

html,
body {
  font-family: "Poppins", sans-serif;
  background-color: #03598c;
  color: #f6f5f3;
  overflow-x: hidden; /* Keep this on html, body */
}

/* Base Styles (for all screen sizes, or primarily desktop-first) */

.logo img {
  height: 70px;
  width: auto;
  display: block;
  background: transparent;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: fixed;
  left: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fdfdfd;
}

.nav-menu {
  list-style: none;
  display: flex; /* Default to flex for desktop */
  gap: 30px;
  margin: 0;
  padding: 0;
  margin-left: auto;
}

.nav-menu li a {
  text-decoration: none;
  color: #03598c;
  font-size: 16px;
}

.auth-buttons {
  display: flex;
  gap: 20px;
  margin-left: 20px;
}

.auth-buttons a {
  width: 90px;
  text-align: center;
  padding: 8px 0;
  display: inline-block;
}

.login-button {
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 16px;
  background-color: #f6f5f3;
  color: #023e6b;
  cursor: pointer;
  border: 2px solid #03598c;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.signup-button {
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 16px;
  background-color: #f6f5f3;
  color: #023e6b;
  cursor: pointer;
  border: 2px solid #03598c;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.signup-button:hover,
.login-button:hover {
  background-color: #03598c;
  color: #f6f5f3;
}

/* Hide hamburger menu by default on larger screens */
.menu-toggle {
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
}

/* Base styles for icons within menu-toggle */
.menu-toggle #menu,
.menu-toggle #close {
  font-size: 1.6rem;
  color: #03598c;
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* New classes for icon transitions */
.icon-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  pointer-events: auto;
}

.icon-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8) rotate(90deg);
  pointer-events: none;
}


/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 20px;
  flex-wrap: wrap;
  height: 100vh;
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #333; /* Fallback */
  color: #023e6b; /* Text color for hero content */
  background-image: none; /* Ensure no default image */
}

.hero-background-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
}

.bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.bg-image.active {
  opacity: 1;
}

.hero-content {
  max-width: 600px;
  flex: 1;
  margin-bottom: 20px;
  text-align: left;
  position: relative;
  z-index: 1;
  padding: 20px;
}

.hero-content h1 {
  font-size: 50px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.explore-button,
.signup-btn {
  padding: 8px 16px;
  border-radius: 5px;
  font-size: 18px;
  background-color: #f6f5f3;
  color: #023e6b;
  border: 2px solid #03598c;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.explore-button:hover,
.signup-btn:hover {
  background-color: #03598c;
  color: #f6f5f3;
}

.trusted-section p {
  font-size: 18px;
  margin-bottom: 20px;
  color: #023e6b;
}

.trusted-logos {
  display: flex;
  gap: 20px;
  align-items: center;
}

.trusted-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  filter: invert(100%);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.trusted-logos img:hover {
  opacity: 1;
}

/* How It Works Section */
.how-it-works {
  padding: 60px 20px;
  text-align: center;
}

.how-it-works h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.steps-box {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Default to 2 columns for desktop */
  gap: 30px;
  box-shadow: 0 0 10px rgba(3, 89, 140, 0.25);
  padding: 40px;
  border-radius: 12px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  background-color: #f6f5f3;
  color: #03598c;
}

.step img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
}

/* Why Choose Us Timeline */
.why-choose-timeline {
  padding: 60px 20px;
  text-align: center;
}

.why-choose-timeline h2 {
  font-size: 28px;
  margin-bottom: 50px;
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 40px;
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-circle img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.6;
}

/* Testimonial Section */
.testimonial-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #f6f5f3;
  color: #03598c;
  position: relative;
}

.testimonial-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
}

.testimonial-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  height: 280px; /* Adjust if needed based on content */
  box-sizing: border-box;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(3, 89, 140, 0.7);
  color: #f6f5f3;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-arrow:hover {
  background-color: #03598c;
  transform: translateY(-50%) scale(1.1);
}

.prev-arrow {
  left: 100px;
}

.next-arrow {
  right: 100px;
}

.testimonial {
  position: absolute;
  width: 100%;
  top: 0;
  left: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.6s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.testimonial-active {
  left: 0;
  opacity: 1;
  transform: translateX(0);
}

.testimonial img,
.testimonial-active img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #03598c;
}

.testimonial p {
  font-size: 16px;
  line-height: 1.6;
}

.testimonial h4 {
  margin-top: 15px;
  font-weight: 600;
}

.stars {
  margin-bottom: 10px;
}

.stars i {
  color: #fbbf24;
  font-size: 18px;
}

/* Plans Section */
.plans-section {
  padding: 80px 20px;
  text-align: center;
}

.plans-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #f6f5f3;
}

.plans-section p {
  font-size: 16px;
  margin-bottom: 40px;
  color: #f6f5f3;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.plan-card {
  background: #f6f5f3;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.plan-card:hover {
  transform: translateY(-5px);
}

.plan-card h3 {
  color: #03598c;
  font-size: 24px;
  margin-bottom: 10px;
}

.plan-card .price-range {
  font-weight: 600;
  margin-bottom: 15px;
  color: #0f172a;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.plan-card ul li {
  margin-bottom: 10px;
  color: #475569;
  font-size: 15px;
}

.btn-plan {
  background-color: #03598c;
  color: #f6f5f3;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
}
/* About Section Styling */

.about-section {
  background: #f4f4f4;
  padding: 70px 20px;
  color: #033b5c;
  position: relative;
  text-align: left;
}

.about-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: left;
  text-align: left;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 auto;
  max-width: 600px;
}

.about-text h2 {
  font-size: 36px;
  color: #03598c;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-image {
  flex: 1 1 400px;
  max-width: 500px;
  text-align: center;
  position: absolute;
  bottom: 0;
  right: 0;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
}

.about-section img {
  display: block;
  margin: 0 auto;
  background-color: #fffefa;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section img:hover {
  transform: translateY(-5px);
}

/* FAQ Section */
.faq-section {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.faq-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #03598c;
}

.faq-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #ccc;
  padding: 15px 0;
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  color: #03598c;
  font-family: "Poppins", sans-serif;
}

.faq-question .icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-question.active .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 10px;
  font-family: "Poppins", sans-serif;
}

.faq-answer p {
  margin: 0;
  font-size: 15px;
  color: #333;
}

/* Footer */
.footer {
  background-color: #024a73;
  color: #ffffff;
  padding: 60px 20px 20px 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.footer-column h3,
.footer-column h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-column p {
  margin: 0;
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

.footer-column img {
  max-width: 140px;
  margin-bottom: 10px;
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Screen Styles */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  text-align: center;
}

.logo-circle {
  width: 120px;
  height: 120px;
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 auto;
  animation: spin 2s linear infinite;
}

.logo-circle::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

/* Main content initially hidden */
#mainContent {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#mainContent.show {
  opacity: 1;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mobile-auth-buttons-wrapper {
  display: none;
}

@media (max-width: 991px) {
  /* Navbar */
  .nav-links {
    padding: 15px 20px;
  }

  .nav-menu {
    flex-direction: column;
    background-color: #eeeeee;
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    padding: 2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    height: 100vh;
    overflow-y: auto;
    transition: right 0.4s ease-in-out, opacity 0.4s ease-in-out;
    z-index: 999;
    display: flex;
    justify-content: flex-start; /* MODIFIED: Align items to the top */
    align-items: flex-start;
    text-align: left;
    opacity: 0;
    pointer-events: none;
  }

  .nav-menu.show {
    right: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: 0;
    z-index: 1001;
    position: relative;
  }

  .nav-links .logo {
    margin-bottom: 0;
  }

  .nav-menu li {
    width: 100%;
    text-align: left;
    margin-bottom: 15px;
    padding: 0 10px;
  }
  .nav-menu li:last-child {
    margin-bottom: 0;
  }

  /* HIDE the desktop-only auth buttons on mobile */
  .auth-buttons {
    display: none;
  }

  /* SHOW the mobile-only auth buttons wrapper */
  .mobile-auth-buttons-wrapper {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding: 0 10px;
  }

  /* Style the actual buttons inside the mobile menu */
  .mobile-auth-buttons-wrapper .auth-buttons.mobile-only {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
  }

  /* Style individual buttons for mobile */
  .mobile-auth-buttons-wrapper .login-button,
  .mobile-auth-buttons-wrapper .signup-button {
    width: 90%;
    max-width: 250px;
    text-align: center;
    padding: 12px 0;
    font-size: 1rem;
    box-sizing: border-box;
  }

  /* Customize button colors for visibility on your light background if needed */
  .mobile-auth-buttons-wrapper .login-button {
    color: #03598c;
    border-color: #03598c;
    background-color: transparent;
  }
  .mobile-auth-buttons-wrapper .login-button:hover {
    background-color: #03598c;
    color: #fff;
  }

  .mobile-auth-buttons-wrapper .signup-button {
    background-color: #03598c;
    color: #fff;
    border-color: #03598c;
  }
  .mobile-auth-buttons-wrapper .signup-button:hover {
    background-color: #024a73;
  }

  /* Hero Section */
  .hero {
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
    padding: 40px 20px;
    padding-top: 150px;
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
    min-height: 60vh;
  }

  .hero-content {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 17px;
    margin: 15px 0 25px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
  }

  .explore-button,
  .signup-btn {
    padding: 12px 20px;
    width: 90%;
    max-width: 300px;
    font-size: 16px;
    text-align: center;
  }

  .trusted-section {
    margin-top: 30px;
  }

  .trusted-logos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .trusted-logos img {
    width: 50px;
    height: auto;
  }

  .crypto-ticker-section {
    padding: 10px;
  }

  .tradingview-widget-container {
    width: 100%;
    overflow-x: auto;
  }

  /* How it Works Section */
  .steps-box {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  /* Why Choose Us Timeline */
  .timeline {
    padding: 0 20px;
  }

  /* Testimonial Section */
  .testimonial-slider {
    height: auto;
    min-height: 280px;
  }

  .testimonial {
    padding: 0 10px;
  }

  .prev-arrow {
    left: 10px;
  }

  .next-arrow {
    right: 10px;
  }

  /* Plans Section */
  .plans-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .about-section {
    padding: 60px 15px;
  }

  .about-text h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .about-text p {
    font-size: 15px;
    padding: 0;
    margin-bottom: 1.2em;
  }

  .about-text {
    text-align: left;
    padding: 0;
    margin-bottom: 300px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 16px;
    margin-top: 15px;
  }

  /* FAQ */
  .faq-container {
    padding: 15px;
  }

  .faq-question {
    font-size: 18px;
  }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 20px;
  }

  .footer-column ul {
    margin-top: 10px;
  }
}
