/* ============================
   1. GLOBAL — MOBILE-FIRST
============================ */
body {
  background: #f2f2f2;
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: #111;
  overflow-x: hidden; /* prevents horizontal scroll */
}

a {
  text-decoration: none;
}

/* ============================
   2. FADE-IN ANIMATIONS
============================ */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.9s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================
  3. NAVBAR — RESPONSIVE BLUE BANNER
============================ */
.nav {
  background: linear-gradient(90deg, #0A4DFF, #4C8DFF);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Mobile: tighter padding */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
  }
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  animation: fadeIn 1.2s ease-in;
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Mobile: collapse nav links */
@media (max-width: 768px) {
  .nav-right {
    gap: 14px;
  }
}

.nav-right .nav-link {
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.nav-right .nav-link:hover {
  opacity: 0.8;
}

/* ============================
   4. MULTI-LANGUAGE DROPDOWN — RESPONSIVE
============================ */
.lang-select {
  background: #fff;
  color: #0A4DFF;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.lang-select:hover {
  background: #e0e7ff;
}

/* Mobile: smaller dropdown */
@media (max-width: 480px) {
  .lang-select {
    padding: 5px 8px;
    font-size: 0.85rem;
  }
}

/* ============================
  5. HERO — RESPONSIVE BACKGROUND + OVERLAY
============================ */
.hero {
  padding: 160px 40px;
  text-align: center;
  background: url("IMG/flexago-hero.jpg") center/cover no-repeat fixed;
  color: #fff;
  position: relative;
}

/* Mobile: reduce padding + remove fixed background */
@media (max-width: 768px) {
  .hero {
    padding: 120px 20px;
    background-attachment: scroll;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

/* Mobile: scale down hero title */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #eaeaea;
}

/* Mobile: scale down hero text */
@media (max-width: 768px) {
  .hero p {
    font-size: 1.05rem;
    margin-bottom: 30px;
  }
}

.hero-buttons a {
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  margin: 0 10px;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Mobile: stack buttons */
@media (max-width: 600px) {
  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .hero-buttons a {
    margin: 0;
    width: 100%;
    text-align: center;
  }
}

.btn-primary {
  background: #0A4DFF;
  color: #fff;
}

.btn-primary:hover {
  background: #083bcc;
}

.btn-secondary {
  background: #fff;
  color: #0A4DFF;
  border: 2px solid #0A4DFF;
}

.btn-secondary:hover {
  background: #e0e7ff;
}

/* ============================
  6. SECTIONS — RESPONSIVE
============================ */
.section {
  padding: 100px 40px;
  text-align: center;
}

/* Tablet */
@media (max-width: 900px) {
  .section {
    padding: 80px 30px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .section {
    padding: 60px 20px;
  }
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
}

/* Mobile: scale down title */
@media (max-width: 600px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 28px;
  }
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
}

/* Mobile: scale down text */
@media (max-width: 600px) {
  .section p {
    font-size: 1rem;
    line-height: 1.6;
  }
}

.section.dark {
  background: #fff;
}

/* ============================
  7. SECTION IMAGES + PARALLAX — RESPONSIVE
============================ */
.section-image {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  margin: 20px auto 40px;
  display: block;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  animation: fadeIn 1.2s ease-in;
}

/* Mobile: reduce margins */
@media (max-width: 600px) {
  .section-image {
    margin: 16px auto 28px;
    max-width: 90%;
  }
}

.parallax-img {
  transform: translateY(0);
  transition: transform 0.6s ease-out;
}

/* ============================
  8. HOW IT WORKS — 3 REAL PHOTOS (RESPONSIVE)
============================ */
.steps {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Mobile: tighter spacing */
@media (max-width: 600px) {
  .steps {
    gap: 24px;
  }
}

.step {
  max-width: 300px;
  text-align: center;
}

.step-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Mobile: reduce spacing */
@media (max-width: 600px) {
  .step-img {
    margin-bottom: 16px;
  }
}

.step h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

/* Mobile: scale down */
@media (max-width: 600px) {
  .step h3 {
    font-size: 1.05rem;
  }
}

/* ============================
  9. FEATURES — RESPONSIVE GRID
============================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

/* Mobile: tighter grid spacing */
@media (max-width: 600px) {
  .features-grid {
    gap: 20px;
  }
}

.feature-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

/* Mobile: reduce padding */
@media (max-width: 600px) {
  .feature-card {
    padding: 22px;
  }
}

.feature-card:hover {
  transform: translateY(-6px);
}

/* ============================
   10. PRICING — RESPONSIVE
============================ */
.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Mobile: tighter spacing */
@media (max-width: 600px) {
  .pricing-grid {
    gap: 24px;
  }
}

.pricing-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

/* Mobile: reduce padding */
@media (max-width: 600px) {
  .pricing-card {
    padding: 22px;
    width: 100%;
    max-width: 300px;
  }
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #0A4DFF;
}

/* Mobile: scale down price */
@media (max-width: 600px) {
  .price {
    font-size: 1.6rem;
  }
}

/* ============================
  11. CONTACT — RESPONSIVE
============================ */
.contact-box {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  display: inline-block;
  border-radius: 8px;
}

/* Mobile: full width */
@media (max-width: 600px) {
  .contact-box {
    width: 100%;
    padding: 18px;
  }
}

/* ============================
  12. CTA SECTION — RESPONSIVE
============================ */
.cta-section {
  background: linear-gradient(135deg, #0A4DFF, #4C8DFF);
  color: #fff;
  text-align: center;
  padding: 80px 40px;
}

/* Mobile: reduce padding */
@media (max-width: 600px) {
  .cta-section {
    padding: 60px 20px;
  }
}

.cta-section p {
  color: #f5f5f5;
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Mobile: scale down text */
@media (max-width: 600px) {
  .cta-section p {
    font-size: 1rem;
  }
}

.cta-buttons {
  margin-top: 30px;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  margin: 0 10px;
}

/* Mobile: stack buttons */
@media (max-width: 600px) {
  .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    margin: 0;
    width: 100%;
  }
}

/* ============================
  13. FOOTER — RESPONSIVE
============================ */
.footer {
  padding: 30px 40px;
  background: #0A4DFF;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile: stack footer */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.footer a {
  color: #fff;
  margin-left: 20px;
  transition: opacity 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
}

/* ============================
  14. RESPONSIVE (MOBILE) — CLEANED & OPTIMIZED
============================ */
@media (max-width: 768px) {
  .nav {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-right .nav-link {
    margin-left: 0;
    margin-right: 16px;
    font-size: 0.85rem;
  }

  .hero {
    padding: 120px 20px;
    background-attachment: scroll;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .section {
    padding: 70px 20px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ============================
  TOP NAVBAR — DARK FLEXAGO BANNER (RESPONSIVE)
============================ */
.top-nav {
  background: #0f172a;
  color: #fff;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile: tighter padding */
@media (max-width: 768px) {
  .top-nav {
    padding: 14px 20px;
    flex-direction: column;
    gap: 12px;
  }
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flexago-logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
}

/* Mobile: smaller logo */
@media (max-width: 480px) {
  .flexago-logo-img {
    height: 60px;
  }
}

.top-nav-title-main {
  font-size: 1.4rem;
  font-weight: 700;
}

.top-nav-title-sub {
  font-size: 0.85rem;
  opacity: 0.8;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Mobile: wrap links */
@media (max-width: 768px) {
  .top-nav-right {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
}

.top-nav-link {
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-btn {
  background: #2563eb;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.nav-btn.signup {
  background: #10b981;
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Mobile: stack links */
@media (max-width: 768px) {
  .top-nav-links {
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
}

.top-nav-link {
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  position: relative;
  padding-right: 18px;
}

.top-nav-link:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 2px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 2px;
}
