/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body, html {
  height: 100%;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.nav-buttons{
      & img{
        position: relative;
        top: 15px;
        right: -11px;
      }
}

.logo {
  font-weight: bold;
  height: 93%;
  margin-top: 22px;
}

.navbar nav a {
  margin: 0 15px;
  color: #333;
  text-decoration: none;
}

.nav-buttons button {
  margin-left: 10px;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}

.login {
  background: #eee;
}

.get-started {
  background: black;
  color: white;
}

/* Hero Section */
.hero {
  background: url('images/Rectangle 1.png') center/cover no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px; /* space for navbar */
  position: relative;
  height: 60%;
  width: 100%;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.2);
}

/* Card */
.offer-card {
    display: inline-block;
  position: relative;
  z-index: 1;
  background: rgb(255, 255, 255);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  width: 600px;
  text-align: center;
}

.offer-card h2 {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.offer-card select,
.offer-card input {
  flex: 1;
  padding: 12px;
  border: 1px solid #080808;
  border-radius: 8px;
}

.find-offer {
  background: #00c6a7;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.why p{
   display: inline-block;
   color: white; 
   border: 1px solid white;
   margin: 0px;
   padding: 5px 5px;
   border-radius: 50px;
   position: relative;
   top: 149px;
   right: 338px;
   text-decoration: underline;
}

.banner {
  width: 100%;
  height: 33%;
  background-color: rgba(199, 199, 16, 0.842);

  display: flex;
  flex-direction: column;   /* stack p and img vertically */
  justify-content: center;  /* center vertically */
  align-items: center;      /* center horizontally */
  text-align: center;
}

.banner p {
  font-size: 25px;
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-style: italic;
  font-weight: 600;
  margin: 10px 0; /* remove absolute positioning */
}

.banner img {
  max-width: 100%;   /* responsive */
  height: auto;
}


.features {
  text-align: center;
  padding: 50px 20px;
}

.features h1 {
  margin-bottom: 40px;
  font-size: 24px;
  text-align: left;
  margin-left: 20px;
}

/* Layout */
.features-container {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap; /* makes it responsive */
}

/* Feature Box */
.icon-box {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 20px;
  position: relative;
}

.icon-box img {
  height: 60px;
  margin-bottom: 15px;
}

.icon-box h3 {
  margin-bottom: 10px;
}

.icon-box p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.icon-box a {
  font-size: 14px;
  color: black;
  text-decoration: underline;
}

/* Button */
.btn-wrapper {
  margin-top: 40px;
}

.see-more {
  background: white;
  border: 2px solid black;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  cursor: pointer;
}

/* Responsive Styles */

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 0 30px;
  }

  .offer-card {
    width: 90%;
    padding: 30px;
  }

  .features-container {
    gap: 20px;
  }
}




/* Layout for buy/sell */
.offers {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 20px;
  background-color: #e9fffc;
}

.buy, .sell {
  flex: 1;
}

h1 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
}

/* Card styles */
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #000;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 15px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}



.info {
  display: flex;
  align-items: center;
  gap: 10px; /* space between image and text */
  flex-grow: 1;
  margin-left: 12px;
}

.info img {
  width: 30px;
  height: 30px;
  border-radius: 50%; /* make it circular */
  object-fit: cover;
}

.info p {
  margin: 0;
  font-size: 14px;
}


.range {
  font-weight: bold;
  white-space: nowrap;
}

/* Button */
.btn {
  display: block;
  margin: 20px auto 0;
  background: black;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.buy {
  flex: 1;
  border-right: 2px solid #ddd; /* vertical line */
  padding-right: 20px; /* spacing so text doesn’t touch line */
}

.sell {
  flex: 1;
  padding-left:20px; /* spacing after the line */
}
.section5{
    width: 100%;
    height: 600px;
    background-color:  #CFBAFF;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;

    & h1{
        font-size: 85px;
        font-weight: 600;
    }
    .btn6{
        position: absolute;
        bottom: 50px;
        padding: 15px 45px;
        gap: 10px;
        border-radius: 30px;
        border: none;
        background-color: #000000;
        color: #FFF;
        font-size: 32px;
        font-weight: 500;
        }
}

.footer{
    width: 100%;
    height: 510px;
    display: flex;
    justify-content: space-around;
    background-color: #000000;

    & img{
        width: 137px;
        height: 37px;
        margin-top: 85px;
        margin-left: 100px;
    }

    .footer1{
      width: 984px;
      height: 312px;
      display: flex;
      margin-right: 670px;

      .box{
        color: #FFF;
        margin-top: 85px;
        margin-left: 14%;
        display: flex;
        flex-direction: column;
        gap: 16px;


        & h2{
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 20px;
        }

        & a{
            color: #FFF;
            font-size: 20px;


        }
      }
    }


}
.copyright{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #000000;
    color: #fff;
    border-top: 2px solid #FFF;

    & p{
        padding: 35px 3%;
        font-size: 13px;
        font-weight: 500;
        line-height: 15.37px;
    }
}

/* Make it responsive */
/* Base improvements */
h1, h2, h3, p, a, button {
  word-wrap: break-word;
  line-height: 1.4;
}

/* Mobile First Scaling */
h1 {
  font-size: clamp(20px, 5vw, 36px);
}
h2 {
  font-size: clamp(18px, 4vw, 28px);
}
p, a, button {
  font-size: clamp(14px, 3.5vw, 18px);
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .navbar {
    flex-direction: column;
    height: auto;
    padding: 10px 20px;
  }
  .navbar nav {
    margin-top: 10px;
  }
  .features-container {
    flex-direction: column;
    align-items: center;
  }
  .offers {
    flex-direction: column;
    gap: 20px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .offer-card {
    width: 95%;
    padding: 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 12px;
  }
  .why p {
    right: auto;
    top: auto;
    margin-top: 20px;
    position: relative;
  }
  .banner p {
    font-size: clamp(16px, 4vw, 22px);
  }
  .section5 h1 {
    font-size: clamp(22px, 6vw, 36px);
    padding: 0 10px;
  }
  .btn6 {
    font-size: clamp(16px, 4vw, 20px);
    padding: 10px 25px;
  }
  .footer {
    flex-direction: column;
    height: auto;
    padding: 30px 20px;
  }
  .footer1 {
    flex-direction: column;
    margin: 0;
    gap: 30px;
  }
  .footer1 .box {
    margin: 0;
  }
}

/* Small Phones (≤ 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 10px;
  }
  .logo img {
    max-width: 120px;
    height: auto;
  }
  .nav-buttons button {
    padding: 6px 12px;
    font-size: 14px;
  }
  .offer-card {
    padding: 15px;
  }
  .offer-card h2 {
    font-size: clamp(18px, 5vw, 24px);
  }
  .card {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .info {
    justify-content: center;
    flex-wrap: wrap;
  }
  .range {
    font-size: 14px;
  }
}
