@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  background-color: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
}

/* Add margin and background color to gold_price_title */
.gold_price_title {
  text-align: center;
  color: #ffffff;
  background-color: #B6862C;
  padding: 12px;
  font-weight: 500;
  font-size: 15px;
}

/* Make navbar style and add background color gradient */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(360deg, #b6862ce5, #b6862ca6, #dfdcdc);
  padding: 10px;
  box-shadow: 0px 4px 8px 4px rgba(54, 54, 54, 0.432);
}

/* Add margin to nav-link */
.navbar-nav .nav-link {
  margin-left: 12px;
  margin-right: 12px;
}


/* Underline hover effect for nav links */
.nav-item a {
  position: relative;
  overflow: hidden;
}

.nav-item a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #000000;
  transition: width 0.5s ease-in-out;
}

.nav-item a:hover::before {
  width: 100%;
}

.nav-item a.active::before {
  width: 100%;
}

/* Underline hover effect for nav links */


/* Fix image size  */
img {
  width: 60px;
  height: 60px;
  margin-right: 20px;
}

/* Add margin to icon in navbar-brand */
.navbar-brand img {
  margin-left: 20px;
}

/* Add footer background color */
footer {
  background-color: rgba(135, 207, 235, 0.507);
}

/* fontsize change for footer text */
.ygea {
  font-size: 35px;
  color: #000000;
}

.contact {
  font-size: 20px;
  color: #000000;
}

/* fontsize change for footer text */



.link-group a {
  color: black;
}

.link-group a:hover {
  color: rgb(88, 88, 88);
}

.contact-bg {
  background-color: #B6862C;
}


.custom-btn {
  color: dark;
  background: linear-gradient(360deg, #b6862ce5, #e6b55aa6, #dfdcdc);
  border: none;
  padding: 10px 20px;
  border-radius: 13px;
  margin-left: 10px;
  transition: background-color 0.8s ease-in-out;
}

.custom-btn:hover {
  background: linear-gradient(360deg, #b6862ce5, #ffdd9da6, #dfdcdc);
  box-shadow: 2px 6px 12px #ffde7080;
}

.tree {
  display: flex;
  flex-direction: column;
  align-items: center;

}

.node {
  border: 1px solid #999;
  background-color: #e0ecf8;
  border-radius: 8px;
  padding: 10px 15px;
  margin: 10px 0;
  min-width: 200px;
  text-align: center;
  word-wrap: break-word;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.node:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background-color: #d0e4f7;
}

.branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.connector {
  width: 2px;
  height: 20px;
  background: #999;
}

.children {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  position: relative;
}

.header {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;

}

.children::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #999;
  margin: auto;
}

@media (max-width: 768px) {
  .node {
    min-width: 150px;
    font-size: 14px;
  }
}


.custom-modal {
  display: none;
  position: fixed;
  z-index: 1050;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.custom-modal.show {
  display: flex !important;
}

.modal-content {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  margin: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

#modal-img {
  width: auto !important;
  height: auto !important;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
  z-index: 9999;
}

.img-container {
  position: relative;
}

.zoom-label {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  /* lets image still receive clicks */
  cursor: pointer;
}

.img-container:hover .zoom-label {
  opacity: 1;
}

.modal-body {
  max-height: 550px;
  overflow-y: auto;
  font-size: 18px;
  text-align: justify;
  letter-spacing: 0.8px;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Full viewport height */
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gold-bar::after {
  content: "";
  background-color: rgba(0, 0, 0, 0.5);
  /* dark overlay */
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
}

.hero-content {
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 2;
}

.hero-title,
.hero-description {
  width: 50%;
}

/* Button style */
.opacity-btn {
  font-size: 12px;
  background-color: rgba(255, 230, 0, 0.2);
  padding: 10px;
  border-radius: 20px;
}

/* Responsive Fixes */
@media (max-width: 480px) {

  .hero-title,
  .hero-description {
    width: 100%;
    font-size: 1.2rem;
    line-height: 1.4;
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .opacity-btn {
    font-size: 10px;
    padding: 8px;
  }
}

.step-number {
  background-color: #ffc107;
  color: #000;
  font-weight: bold;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  flex-shrink: 0;
}

.step-box {
  transition: transform 0.2s ease;
  border-left: 3px solid #ffc107;
}

.step-box:hover {
  transform: scale(1.01);
  box-shadow: 2px 6px 6px 2px rgba(0, 0, 0, 0.1);
}

.calculator {
  max-width: 500px;
  height: 500px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.calculator h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #d4af37;
}

.calculator input {
  margin-bottom: 15px;
}

.calculator button {
  width: 100%;
  background: #d4af37;
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 18px;
  border-radius: 10px;
  transition: 0.3s;
}

.calculator button:hover {
  background: #b5942f;
}

.result {
  margin-top: 20px;
  padding: 15px;
  background: #f1f1f1;
  border-radius: 10px;
}

.result p {
  font-size: 16px;
  margin-bottom: 10px;
}