body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

h2,
h3 {
  margin: 0;
  padding: 0;
}

header {
  height: auto;
  margin-top: 3rem;
  position: absolute;
  width: 100%;
}

.qb-logo {
  display: grid;
  justify-items: center;
  z-index: 100;
}

.qb-logo img {
  width: 280px;
  margin: auto 0;
}

main {
  display: flex;
  flex-flow: column;
  width: 100%;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

section {
  /* height: 100vh; */
  display: flex;
  flex-flow: column;
  place-content: center;
}

#hero {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
}

/* #brands{
    background-color:blue;
} */

/* #about {
  background-color: brown;
} */

#contact {
  background-color: white;
}

#contact h2,
#contact p {
  color: #2c2c2c;
}

/* #contact h2 {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  font-size: clamp(2rem, 3.5vw, 4rem);
  color: #2c2c2c;
} */

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -3;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2); /* dark overlay */
  z-index: -2;
}

.hero-heading,
.about-body {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
  margin: 0 auto;
}

.hero-heading {
  width: 90%;
}

.about-body {
  color: white;
}

#figures {
  width: 80%;
  padding: 1.5rem 0;
  margin: 1.5rem auto;
  border-radius: 20px;
  display: flex;
  gap: 3rem;
  flex-wrap: row wrap;
}

.hero-heading h2 {
  place-self: center;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  line-height: 1.3;
  font-size: clamp(3.75rem, 7vw, 8rem);
  text-shadow: 0px 1px 56px rgba(0, 0, 0, 0.8);
  padding-bottom: 1rem;
}

h3 {
  place-self: center;
  font-family: "Outfit", sans-serif;
  text-transform: uppercase;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  line-height: 1.2;
  font-size: clamp(6rem, 5vw, 7rem);
  color: #b8863c;
  text-align:center;
}

.figures-subheader {
  place-self: center;
  margin: 0;
  font-family: "Outfit", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1.2;
  font-size: clamp(1.75rem, 1.75vw, 3rem);
  color: #797671;
  text-align:center;
}

.body-text {
  place-self: center;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  line-height: 1.75;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

.category-header,
.category-header-body {
  display: flex;
  flex-flow: column;
  place-self: center;
  width: 100%;
}

.category-header h2,
.category-header-body h2,
#contact h2 {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  font-size: clamp(2.5rem, 3.5vw, 4rem);
  color: #2c2c2c;
}

.category-header-body h2 {
  color: white;
}

#brands,
#about,
#contact {
  padding: 4rem 2rem;
  text-align: center;
}

.category-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.brand-container {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.te-brand,
.bff-brand,
.md-brand {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.te-brand {
  background-color: #ef3e42;
}

.bff-brand {
  background-color: #e87549;
}

/* MAVERICKS DONUTS */
.md-brand {
  background-color: #00acbb;
}

/* Optional: lift effect on hover */
.te-brand:hover,
.bff-brand:hover,
.md-brand:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.logo {
  width: 180px;
  height: auto;
  z-index: 2;
  position: relative;
  transition: opacity 0.5s ease;
}

/* Hover image */
.hover-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hover-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Hover Effects */
.te-brand:hover .hover-image img,
.bff-brand:hover .hover-image img,
.md-brand:hover .hover-image img {
  opacity: 1;
  transform: scale(1.1);
}

.te-brand:hover .logo,
.bff-brand:hover .logo,
.md-brand:hover .logo {
  opacity: 0; /* Optional: hide logo on hover */
}

.category-header-body {
  gap: 1rem;
}

#about {
  background-image: url("../images/about-bg.jpg"); /* your image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Enables parallax scrolling */
  padding: 4rem 2rem;
  color: #fff;
  position: relative;
}

#about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* dark overlay */
  z-index: 0;
}

#about .category-header-body {
  position: relative;
  z-index: 1;
}

.contact-button {
  display: inline-block;
  background-color: #1c1c1c;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 12px; /* pill shape; use 8px for rectangle with rounded corners */
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #b18440;
}

#contact a {
  place-self: center;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  line-height: 1.5;
  font-size: clamp(1rem, 1.5vw, 2rem);
  /* min-width: 200px; */
}

.footer-divider {
  border: none;
  height: 2px;
  background-color: rgba(182, 182, 182, 0.148);

  margin: 1rem auto;
  width: 90%;
}

footer {
  display: flex;
  flex-flow: column;
  padding: 2rem 1rem;
  place-content: center;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.footer-logo,
.footer-linkedin {
  display: flex;
  place-content: center;
}

.footer-logo {
  display: flex;
  flex-flow: row;
  gap: 0.5rem;
  place-items: center;
}

.footer-logo p {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  color: #1c1c1c;
}

.footer-logo img {
  width: 200px;
}

.footer-linkedin img {
  width: 25px;
}

/* HERO ANIMATION */
.hero-heading h2 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 1.2s ease-out forwards;
  animation-delay: 0.5s; /* optional delay */
}

.qb-logo img {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideUp 1s ease-out forwards;
  animation-delay: 0.1s; /* optional delay */
}

/* Animation keyframes */
@keyframes fadeSlideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CONTACT FORM */
.contact-container {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.div .body-text {
  padding: 0;
  margin: 0;
}

.contact-form {
  width: 100%;
  display: flex;
  flex-flow: column;
  gap: 1rem;
  place-items: center;
}

.contact-inputs {
  min-width: 100%;

  min-height: 40px;
  border: 1px solid #cbcbcb;
  outline: none;
  padding: 0.5rem;
  border-radius: 5px;

  place-self: center;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(0.9rem, 1.25vw, 1.25rem);
}

.contact-inputs:focus {
  border: 1px solid #b18440;
}

.contact-inputs::placeholder {
  color: #2c2c2c;
}

.contact-form textarea {
  padding-top: 1rem;
  height: 140px;
}

.contact-form button {
  cursor: pointer;
  display: flex;

  padding: 1rem;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;

  background: #d8ad6d;

  border-radius: 5px;

  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(1rem, 1.25vw, 1.5rem);
}

@media screen and (min-width: 768px) {
  .qb-logo img {
    width: 350px;
  }

  .brand-container {
    flex-flow: row wrap;
    flex-basis: content;
  }

  #about {
    background-position: center top;
  }

  .contact-inputs {
    min-width: 40%;
  }

  footer {
    justify-content: space-between;
    width: 90%;
    padding-left: 5%;
    padding-right: 5%;
    flex-direction: row;
    place-items: center;
  }

  #figures {
    display: flex;
    flex-flow: row;
    place-content: space-evenly;
  }
}

@media screen and (min-width: 1024px) {
  .hero-heading,
  .about-body {
    width: 80%;
  }

  .about-body {
    width: 80%;
  }

  .qb-logo img {
    width: 400px;
  }

  .te-brand,
  .bff-brand,
  .md-brand {
    width: 290px;
    height: 290px;
  }

  .logo {
    width: 200px;
  }

  .contact-inputs {
    min-width: 30%;
    padding: 0.75rem;
  }
}

@media screen and (min-width: 1440px) {
  .qb-logo img {
    width: 450px;
  }

  #about {
    background-position: center top;
  }

  .te-brand,
  .bff-brand,
  .md-brand {
    width: 380px;
    height: 380px;
  }

  .logo {
    width: 270px;
  }

  .contact-inputs {
    padding: 1rem;
  }
}
