/* ===== General Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0070ba 0%, #1546a0 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo img {
    height: 40px;
}

/* Hamburger menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.3s;
}

/* Nav links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links li a:hover {
    color: #ffd700;
}

/* Top centered logo header (outside hero) */
.top-logo {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ===== Header Content ===== */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  flex-wrap: wrap;
}

.language-selector-container {
  margin-left: auto;
}

.top-logo img {
  height: 200px;
}

@media (max-width: 576px) {
  .top-logo img { height: 140px; }
}

/* Subsection under top logo */
.top-logo .top-sub {
  margin-top: 8px;
  text-align: center;
}

.top-logo .top-sub p {
  color: #0a2540;
  font-size: 1.4rem;
  line-height: 1.35;
  margin-bottom: 0;
}

.buttons.small .btn {
  padding: 10px 22px;
}

/* ===== Hero Section ===== */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    height: auto;
    text-align: center;
    position: relative;
    background: url("../images/paypal-bg.png") no-repeat center center/contain;
    overflow: hidden;
    padding: 40px 20px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 50, 0.15);
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 2s;
}

.icon-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

.icon-5 {
    top: 40%;
    left: 5%;
    animation-delay: 4s;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 0.15;
    }
    50% {
        opacity: 0.25;
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Fade-in Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.fade-in-delayed-2 {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    background-color: #ffc439;
    color: #003087;
    padding: 14px 32px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background-color: #ffb347;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #003087;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .header-content {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .language-selector-container {
        margin-left: 0;
    }

    .top-logo img {
        height: 120px;
        max-width: 80%;
    }

    .top-logo .top-sub p {
        font-size: 1rem;
        padding: 0 10px;
    }
}


/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  transition: 0.3s;
  z-index: 1001;
  padding-top: 80px;
}

.sidebar.open {
  left: 0;
}

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

.sidebar ul li {
  margin: 20px 0;
}

.sidebar ul li a {
  text-decoration: none;
  color: #0070ba;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 20px;
  display: block;
  transition: 0.3s;
}

.sidebar ul li a:hover {
  background: #f5f7fa;
}

/* Overlay when sidebar is open */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  z-index: 1000;
}

.overlay.show {
  display: block;
}

.rewards-container {
  text-align: center;
  margin-top: 100px;
  background: #fff;
  padding: 30px;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-left: auto;
  margin-right: auto;
}

.redeem-btn {
  background-color: #0070ba;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.redeem-btn:hover {
  background-color: #005c99;
}

/* ===== Landing sections below hero ===== */
.section {
  background: #ffffff;
  color: #0a2540;
  padding: 60px 20px;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  text-align: center;
  color: #003087;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 0 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #f5f7fa;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #003087;
}

.feature-card p {
  font-size: 0.95rem;
  color: #334e68;
}

.partners {
  background: #eef3fb;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 20s linear infinite;
}

.marquee-content img {
  height: 50px;
  margin: 0 40px;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.05);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Scroll-triggered animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.cta {
  background: #ffffff;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 992px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 30px; }
  .footer-content { grid-template-columns: 1fr; }
}

/* ===== Animated Background ===== */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  animation: floatCircle 20s infinite ease-in-out;
}

.circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.circle-2 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: -50px;
  animation-delay: 5s;
}

.circle-3 {
  width: 250px;
  height: 250px;
  bottom: -50px;
  left: 30%;
  animation-delay: 10s;
}

.circle-4 {
  width: 350px;
  height: 350px;
  top: 30%;
  left: 20%;
  animation-delay: 15s;
}

@keyframes floatCircle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, 50px) scale(1.1);
  }
  50% {
    transform: translate(0, 100px) scale(1);
  }
  75% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

/* ===== Logo Animation ===== */
.logo-animate {
  animation: logoBounce 2s ease-in-out;
}

@keyframes logoBounce {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.tagline-animate {
  animation: slideUp 1s ease-out 0.5s forwards;
  opacity: 0;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Hero Stats ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 40px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #ffc439;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.stat-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Enhanced Feature Cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.feature-card {
  background: #f5f7fa;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0070ba, #ffc439);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.icon-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #0070ba, #1546a0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 1.5rem;
  color: #0070ba;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.feature-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== Testimonials Section ===== */
.testimonials {
  background: #f8f9fa;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

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

.testimonial-content {
  text-align: left;
}

.stars {
  color: #ffc439;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.testimonial-content p {
  color: #334e68;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0070ba, #1546a0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: #0a2540;
}

.author-title {
  font-size: 0.85rem;
  color: #666;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #003087;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #0070ba, #ffc439);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* ===== Enhanced CTA Section ===== */
.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: linear-gradient(135deg, #0070ba, #1546a0);
  border-radius: 20px;
  color: #fff;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ===== Button Animations ===== */
.btn-animate {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-animate::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-animate:hover::before {
  width: 300px;
  height: 300px;
}

.btn-outline {
  background-color: transparent;
  color: #003087;
  border: 2px solid #003087;
}

.btn-outline:hover {
  background-color: #003087;
  color: #fff;
}

/* ===== Footer ===== */
.footer {
  background: #0a2540;
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #ffc439;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section ul li a:hover {
  color: #ffc439;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #ffc439;
  transform: translateY(-3px);
}

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

/* ===== Additional Floating Icons ===== */
.icon-6 {
  top: 60%;
  right: 25%;
  animation-delay: 5s;
}

.icon-7 {
  bottom: 40%;
  left: 15%;
  animation-delay: 6s;
}

/* ===== Enhanced Fade Animations ===== */
.fade-in-delayed-3 {
  opacity: 0;
  animation: fadeIn 1s ease-out 0.9s forwards;
}

/* ===== Mobile Responsive Fixes ===== */
@media (max-width: 768px) {

  .header-content {
    flex-direction: column;
    padding: 15px 20px;
    text-align: center;
    gap: 12px;
  }

  .language-selector-container {
    margin-left: 0;
  }

  .top-logo img {
    height: 120px;
    max-width: 80%;
    object-fit: contain;
  }

  .top-logo .top-sub p {
    font-size: 1rem;
    padding: 0 15px;
  }

  .hero {
    min-height: 650px;
    height: auto;
    padding: 60px 15px;
  }

  .hero-content {
    width: 100%;
    padding: 0 10px;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

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

  .buttons .btn {
    width: 100%;
    text-align: center;
  }

  .floating-icon {
    font-size: 2rem;
  }

  .section {
    padding: 45px 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card,
  .testimonial-card {
    padding: 22px;
  }

  .footer {
    padding: 45px 20px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .cta-content {
    padding: 30px 20px;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .marquee-content img {
    height: 40px;
    margin: 0 20px;
  }
}

/* ===== Extra Small Phones (320px - 375px) ===== */
@media (max-width: 375px) {
  .header-content {
    padding: 10px 15px;
  }

  .top-logo img {
    height: 100px;
    max-width: 90%;
  }

  .top-logo .top-sub p {
    font-size: 0.9rem;
    padding: 0 5px;
  }

  .hero {
    padding: 40px 10px;
    min-height: 600px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.1;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .hero-stats {
    padding: 15px;
    gap: 15px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .stat-desc {
    font-size: 0.8rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .buttons {
    gap: 10px;
  }

  .section {
    padding: 35px 10px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .feature-card,
  .testimonial-card {
    padding: 18px;
  }

  .feature-card h3,
  .testimonial-author .author-name {
    font-size: 1rem;
  }

  .feature-card p,
  .testimonial-content p {
    font-size: 0.85rem;
  }

  .icon-wrapper {
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
  }

  .footer {
    padding: 35px 15px 15px;
  }

  .footer-section h4 {
    font-size: 1rem;
  }

  .footer-section ul li a {
    font-size: 0.85rem;
  }

  .cta-content {
    padding: 25px 15px;
  }

  .cta-content h2 {
    font-size: 1.4rem;
  }

  .cta-content p {
    font-size: 0.9rem;
  }

  .marquee-content img {
    height: 35px;
    margin: 0 15px;
  }
}

/* ===== Medium Small Phones (376px - 414px) ===== */
@media (min-width: 376px) and (max-width: 414px) {
  .top-logo img {
    height: 110px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 2rem;
  }
}/* ===== Mobile Overflow Fix ===== */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

@media (max-width: 576px) {
  .header-content {
    flex-direction: column;
    padding: 15px 20px;
    text-align: center;
  }

  .language-selector-container {
    margin-left: 0;
    margin-top: 15px;
  }

  .top-logo img {
    max-width: 100%;
    height: auto;
    max-height: 140px;
  }

  .hero {
    min-height: 100vh;
    height: auto;
    padding: 60px 15px;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
  }

  .hero-stats {
    width: 100%;
    flex-direction: column;
    gap: 20px;
    padding: 20px 10px;
  }

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

  .buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .feature-grid,
  .testimonial-grid,
  .footer-content {
    width: 100%;
    max-width: 100%;
  }

  .marquee-content img {
    max-width: none;
  }

  .cta-content {
    width: 100%;
    padding: 25px 15px;
  }
}