/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Navbar */
.navbar {
  background-color: #1aa189;
  color: white;
  padding: 15px 0;
  box-shadow: 0 4px 8px rgba(20, 141, 117, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1aa189, #148d75);
  transition: background 0.4s ease;
}
.navbar:hover {
  background: linear-gradient(90deg, #148d75, #1aa189);
}

section {
  scroll-margin-top: 80px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  padding: 0 20px;
  margin: auto;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.logo img {
  height: 40px;
}

.logo span {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-direction: row;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #f7c600;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links li a:hover,
.nav-links li a.active {
  background-color: #f7c600;
  border-radius: 4px;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 80%;
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130vh;
  /* Remove heroZoom animation if you prefer JS changing bg */
  /* animation: heroZoom 24s ease-in-out infinite; */
  background-blend-mode: multiply;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.4);
}

@keyframes heroZoom {
  0%,
  100% {
    background-size: 105% 105%;
  }
  50% {
    background-size: 110% 110%;
  }
}

/* Responsive for mobile devices */
@media (max-width: 768px) {
  .hero {
    padding: 60px 15px;
    min-height: 100vh;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    background-color: #1aa189;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.show {
    max-height: 500px; /* same as JS toggle */
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 10px;
    min-height: 90vh;
  }
}

.hero-content {
  max-width: 700px;
}

@keyframes colorFade {
  0% {
    color: #0bf0b7;
  } /* Light red */
  25% {
    color: #4dd2ff;
  } /* Light blue */
  50% {
    color: #ffffff;
  } /* Light green */
  75% {
    color: #ffd24d;
  } /* Light orange */
  100% {
    color: #0bf0b7;
  } /* Back to light red */
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  animation: colorFade 10s linear infinite;
  transition: color 1s ease-in-out;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
  background-color: #00cc99;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 204, 153, 0.4);
  cursor: pointer;
  border: none;
  display: inline-block;
  text-align: center;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #008060;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 128, 96, 0.6);
  outline: none;
}

/* Container */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.gold-x {
  color: gold;
  font-weight: bold; /* Optional: makes the "x" stand out more */
}


/* About Section */
.about-section {
  background: #f9f9f9;
  padding: 60px 20px;
  color: #333;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 20px;
  color: #1aa189;
}

.about-intro {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-bottom: 40px;
}

.about-block {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  flex: 1 1 300px;
}

.about-block h3 {
  color: #1aa189;
  margin-bottom: 10px;
}

.about-core {
  margin-bottom: 40px;
}

.about-core h3 {
  color: #1aa189;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-list {
  list-style: none;
  padding-left: 0;
}

.about-list li {
  background: url('https://cdn-icons-png.flaticon.com/512/190/190411.png')
    no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
}

/* Exchange Rates Table */
#rates-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#rates-table thead tr {
  background-color: #00b38f;
}

#rates-table th,
#rates-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
  color: #333;
}

#rates-table tbody tr:nth-child(even) {
  background-color: #e9f7f3;
}

#rates-table tbody tr:hover {
  background-color: #c4e8db !important;
  transition: background-color 0.3s ease;
}

/* Converter form */
#converter-form {
  width: 100%;
}

#converter-form label {
  font-weight: bold;
  margin-top: 1rem;
  display: block;
}

#converter-form select,
#converter-form input[type='number'] {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  margin-top: 0.25rem;
}

#converter-form select:focus,
#converter-form input[type='number']:focus {
  border-color: #00cc99;
  box-shadow: 0 0 8px #00cc99aa;
  outline: none;
}

#converter-form button {
  width: 100%;
  background-color: #00cc99;
  color: white;
  padding: 14px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0, 204, 153, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
}

#converter-form button:hover,
#converter-form button:focus {
  background-color: #008060;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 128, 96, 0.6);
  outline: none;
}

#result {
  margin-top: 25px;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  color: #333;
}

/* Contact Section */
.contact {
  background-color: #f9f9f9;
  padding: 50px 20px;
  text-align: center;
}

.contact h2 {
  color: #00cc99;
  margin-bottom: 20px;
}

.contact p a {
  color: #3498db;
  text-decoration: none;
}

.contact form {
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #00cc99;
  box-shadow: 0 0 8px #00cc99aa;
  outline: none;
}

.contact button {
  margin-top: 20px;
  padding: 12px 20px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact button:hover,
.contact button:focus {
  background-color: #2980b9;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.5);
  outline: none;
}

.whatsapp-link {
  color: #25d366;
  font-weight: bold;
  text-decoration: none;
}

.whatsapp-link:hover,
.whatsapp-link:focus {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #1aa189;
  color: white;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

footer:hover,
footer:focus {
  background-color: #148d75;
}

/* OUR PARTNERS SECTION */
.partners {
  padding: 60px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.partners .section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.partners-description {
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: #444;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.partner-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fff9 100%);
  border: 1px solid #d4f0e2;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.5s ease;
}

.partner-card img {
  width: 100%;
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.partner-card:hover,
.partner-card:focus {
  background: linear-gradient(135deg, #00cc99, #007f5f);
  box-shadow: 0 20px 40px rgba(0, 204, 153, 0.4);
  transform: translateY(-12px) scale(1.08);
  outline: none;
}

.partner-card:hover img,
.partner-card:focus img {
  transform: scale(1.1);
  filter: brightness(1.2);
}

/* Responsive Breakpoints */

/* Tablets */
@media (max-width: 992px) {
  .hero {
    padding: 80px 15px;
    min-height: 110vh;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phones */
@media (max-width: 576px) {
  .hero {
    padding: 60px 10px;
    min-height: 100vh;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }

  .partner-card img {
    max-width: 120px;
  }
}

/* Mobile Navigation */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 5px 10px;
  user-select: none;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
