* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Clarize regular";
  src: url("./fonts/clarize/Fontspring-DEMO-clarize_regular.woff2")
      format("woff2"),
    url("./fonts/clarize/Fontspring-DEMO-clarize_regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("./fonts/poppins/Poppins-Regular.woff2") format("woff2"),
    url("./fonts/poppins/Poppins-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BDO Grotesk";
  src: url("./fonts/BDOGrotesk/BDOGrotesk-Regular-BF648a656fd543a.woff2")
      format("woff2"),
    url("./fonts/BDOGrotesk/BDOGrotesk-Regular-BF648a656fd543a.woff")
      format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  display: block;
  color-scheme: light only;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: white;
  font-family: "Poppins";
  background-color: var(--primary-white);

  --primary-white: #fffafa;
  --primary-red: #ab3434;
  --secondary-red: #ef4444;
  --primary-yellow: #ffb84e;
  --light-gray: #737373;
  --primary-black: #141414;
}

.nav-dropdown {
  display: none;
}

.nav-dropdown.show {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  position: absolute;
  top: 8%;
  left: 60px;
  background-color: var(--primary-red);
  z-index: 100;
}

.nav-dropdown a {
  color: white;
  padding: 5px 20px;
  padding-right: 140px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  border-color: white;
}

#navbar-main-container {
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
}

.main-btn {
  padding: 10px 20px;
  background-color: var(--secondary-red);
  color: var(--primary-yellow);
  font-family: "BDO Grotesk";
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.secondary-btn {
  padding: 8px 12px;
  background-color: transparent;
  color: var(--primary-yellow);
  font-family: "Poppins";
  border: 1px solid var(--primary-yellow);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

.main-btn .hover-arrow {
  width: 0px;
  height: 0px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.main-btn:hover .hover-arrow {
  opacity: 1;
  width: 25px;
  height: 25px;
  transform: translateX(0);
}

.footer {
  margin: 0 80px;
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

.footer-top .header {
  font-size: 40px;
  line-height: 60px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  color: var(--light-gray);
  gap: 15px;
}

.footer-links p,
.footer-links a {
  padding: 5px;
  color: var(--light-gray);
}

.footer-links .header {
  font-size: 32px;
  line-height: 48px;
}

.footer-bottom {
  border-top: 1px solid #cbcbcb;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.footer-bottom p {
  font-size: 15px;
  color: #cbcbcb;
  margin: 10px 0;
}

.footer-bottom img {
  margin-top: 30px;
  max-width: 100%;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  width: 30%;
}

.footer-socials a {
  font-size: 32px;
  color: var(--light-gray);
}

a {
  text-decoration: none;
  cursor: pointer;
  color: inherit;
}

.header {
  font-size: 64px;
  font-weight: 300;
  font-family: "Clarize regular";
  color: var(--primary-black);
  line-height: 76.8px;
  letter-spacing: 2px;
}

.sub-header {
  font-size: 48px;
  font-weight: 300;
  font-family: "Clarize regular";
  color: var(--primary-black);
  line-height: 56.8px;
}

.header.red {
  color: var(--primary-red);
}

.header.white {
  color: var(--primary-white);
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 20px 0;
}

.navbar-links {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  align-items: center;
}

.navbar-links a {
  font-family: "Poppins";
  text-transform: uppercase;
  color: var(--primary-black);
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 500;
  transition: text-shadow 0.2s;
}
.navbar-links img {
  cursor: pointer;
}

#hero-container {
  background-image: url('./images/dragon.png');
  background-repeat: no-repeat;
}


.hero-section {
  display: flex;
  flex-direction: column;
  background-repeat: no-repeat;
  align-items: center;
  padding: 20px 100px;
  height: 91vh;
}

.hero-section h1 {
  text-transform: uppercase;
  font-family: "Clarize regular";
  color: var(--primary-red);
  font-size: 140px;
  font-weight: 300;
}

.page-header {
  text-transform: uppercase;
  font-family: "Clarize regular";
  color: var(--primary-red);
  font-size: 88px;
  font-weight: 300;
}

.hero-vids {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 50px;
  height: 90vh;
  width: 100%;
}

.hero-vid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 256px;
  height: 384px;
}

 /* Overlay (Dark Background) */
 .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup Box */
.popup {
  background: white;
  padding: 20px;
  border-radius: 5px;
  width: 350px;
  text-align: center;
}

.popup h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Links inside the popup */
.popup a {
  display: block;
  margin: 10px 0;
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: color 0.3s;
}

.popup a:hover {
  color: #ff4500;
}

@media screen and (min-height: 1000px) {
  .hero-vids {
    height: 60vh;
  }
}

.hero-vid video, .hero-vid img {
  box-shadow: 0px 4px 20px 0px #00000026;
  object-fit: cover;
  align-self: center;
  width: 256px;
  height: 400px;
  max-width: 100%;
}

.hero-vid img {
  max-height: 250px;
  width: 100%;
}

.hero-vid:first-of-type {
  align-self: flex-end;
}

.hero-vid:nth-of-type(2) {
  height: 100%;
  width: 450px;
  margin-top: -40px;
}

.hero-vid:nth-of-type(2) img {
  max-height: unset;
}

.hero-vid:nth-of-type(2) video {
  width: 70%;
  height: 100%;
}

.hero-vid:nth-of-type(3) {
  align-self: flex-start;
}

.banner-section {
  background-image: url("./images/hakkalicious-bg.png");
  padding: 50px 80px;
}

.banner-header {
  display: flex;
  justify-content: space-between;
  gap: 30%;
  margin-bottom: 20px;
}

.banner-header .header {
  white-space: nowrap;
}

.banner-header p {
  width: 40%;
}

.banner-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  height: 450px;
}

.banner-images div {
  overflow: hidden;
  width: 20%;
  height: 75%;
}

.banner-images img {
  object-fit: cover;
  transition: transform 0.4s ease-in-out;
  width: 100%;
  height: 100%;
}

.banner-images div:hover img {
  transform: scale(1.2);
}

.banner-images div:nth-child(odd) {
  align-self: flex-start;
}

.banner-images div:nth-child(even) {
  align-self: flex-end;
}

.menu-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 50px 0;
  gap: 20px;
  padding: 0 60px;
}

.menu-container .header {
  text-align: center;
}

.menu-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin: 10px;
}

#menu-dropdown-btn {
  display: none;
}

.menu-wrapper {
  position: relative;
}

#selected-category {
  color: #ab3434;
  font-family: "Clarize Regular";
  font-size: 56px;
  text-align: center;
  text-transform: capitalize;
}

.menu-blocks-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 100%;
}

.menu-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 10px;
  margin: 10px 0;
  background-color: transparent;
  position: relative;
  width: calc(50% - 20px);
}

.name-price {
  display: flex;
  color: var(--primary-black);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.item-name {
  font-weight: 600;
  white-space: nowrap;
}

.dots {
  border-top: 1px dashed var(--light-gray);
  height: 1px;
  width: 90%;
}

.menu-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.menu-item .description {
  color: #737373;
}

.menu-item .additions,
.menu-item .styles {
  font-size: 14px;
  color: var(--secondary-red);
}

.menu-categories p {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.3s;
  margin: 10px 0;
  color: var(--light-gray);
  text-align: center;
  font-size: 14px;
}

.menu-image {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-height: 320px;
}

.menu-image img {
  object-fit: cover;
  width: 100%;
}

.menu-categories .active {
  filter: brightness(0) saturate(100%) invert(27%) sepia(87%) saturate(2299%)
    hue-rotate(342deg) brightness(82%) contrast(92%);
}

#location-container {
  padding: 0 40px;
}

.location-headers {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 10px;
}

#location-container .header {
  font-size: 18px;
  line-height: 28px;
  text-align: left;
  transition: color 0.3s;
  font-family: "Poppins";
}

.node-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  margin: 20px 0;
  gap: 5px; /* necessary for outline */
  margin-bottom: 60px;
}

.node {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
  outline: 1px solid var(--primary-black);
  outline-offset: 5px;
}

.location-images {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  overflow-y: scroll;
  margin: 30px 0;
}

.location-images img {
  height: 100%;
  object-fit: cover;
}

/* Smooth fade-in effect */
#location-container p,
#location-container a {
  transition: opacity 0.3s ease-in-out;
}

.location-images {
  transition: opacity 0.3s ease-in-out;
  min-height: 400px;
}

/* Individual image fade-in */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.5s forwards ease-in-out;
}

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

@media screen and (min-width: 1600px) {
  .hero-vid:nth-of-type(2) {
    width: 500px;
  }
}

@media screen and (min-width: 1441px) {
  .menu-image {
    max-height: 350px;
  }
}

@media screen and (min-width: 770px) {
  .menu-block:nth-child(odd):not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: var(--primary-yellow);
  }

  .menu-block:nth-child(n + 3) {
    /* Targets the first item of each new row, excluding the first row */
    margin-top: 50px;
  }
}

@media screen and (max-width: 1440px) {
  .hero-section h1,
  .page-header {
    font-size: 110px;
  }
  .footer {
    margin: 0 40px;
    margin-top: 80px;
  }
  .banner-images {
    height: 360px;
  }

  .footer-links a, .footer-links p {
    font-size: 14px;
  }

  .banner-images div {
    height: 80%;
  }
  .banner-header p {
    font-size: 14px;
  }
}

@media screen and (max-width: 1300px) {
  .footer-top {
    gap: 80px;
  }
}

@media screen and (max-width: 1200px) {
  .hero-section h1,
  .page-header {
    font-size: 120px;
  }
  .footer-top .header {
    font-size: 24px;
    line-height: 32px;
  }
  .footer-links {
    gap: 10px;
  }
  
  .banner-header .header {
    white-space: unset;
    font-size: 45px;
    line-height: 57.8px;
}
}

@media screen and (max-width: 1000px) {
  .footer-top {
    gap: 60px;
  }
  .menu-categories {
    gap: 10px;
  }
  .banner-header {
    gap: 20%;
  }
  .banner-header p {
    width: 50%;
  }
  .hero-vid:nth-of-type(2) video {
    width: 100%;
  }
  .menu-categories {
    display: none;
  }
  #menu-dropdown-btn {
    display: block;
  }
}

@media screen and (max-width: 900px) {
  .footer {
    margin: 50px;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-socials {
    width: 100%;
    align-items: center;
  }
  .hero-section h1,
  .page-header {
    font-size: 80px;
    line-height: 200px;
  }

  .menu-categories {
    gap: 5px;
  }
}

@media screen and (max-width: 769px) {
  .banner-header {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  .banner-section {
    height: unset;
  }
  .banner-header p {
    width: 100%;
  }
  .banner-images {
    flex-wrap: wrap;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  .banner-images div {
    width: 100%;
  }

  .menu-blocks-container {
    flex-direction: column;
    align-items: center;
  }
  .menu-block {
    width: 100%;
    padding: 10px;
  }
  .menu-categories {
    justify-content: center;
  }
  #location-container .header {
    font-size: 14px;
    line-height: 20px;
  }
}

@media screen and (max-width: 630px) {
  .hero-section {
    padding: 20px 60px;
    height: unset;
  }
  .hero-section h1,
  .page-header {
    font-size: 60px;
    line-height: 150px;
  }
  .hero-vids {
    flex-direction: column;
    width: 100%;
    height: unset;
    text-align: center;
    margin-top: 20px;
  }
  .hero-vid,
  .hero-vid:nth-of-type(2),
  .hero-vid video {
    width: 100%;
    height: unset;
  }
  .hero-vid:nth-of-type(2) {
    margin-top: 0;
  }

  .location-headers {
    flex-direction: column;
  }

  .location-headers .header {
    font-size: 18px;
    line-height: 28px;
  }
  .node {
    width: 25px;
    height: 20px;
  }

}

@media screen and (max-width: 500px) {
  .hero-section h1,
  .page-header {
    font-size: 48px;
    line-height: 100px;
  }
  #navbar-main-container {
    padding: 10px 20px;
  }
  .nav-dropdown.show {
    left: 20px;
  }
  #logo img {
    width: 40px;
  }
  .banner-section {
    padding: 50px;
  }
  #location-container {
    padding: 0 20px;
  }
  .header {
    font-size: 56px;
    line-height: 60px;
  }
  .sub-header {
    font-size: 32px;
    line-height: 40px;
  }
  .menu-categories p {
    margin: 15px 0;
  }
  .menu-container {
    padding: 0 40px;
  }
}

@media screen and (max-width: 420px) {
  .hero-section {
    padding: 20px 30px;
  }
  .hero-section h1,
  .page-header {
    font-size: 40px;
  }
  .navbar-links a,
  .nav-dropdown a {
    font-size: 12px;
  }
  .menu-blocks-container {
    padding: 0 20px;
  }
  .page-header {
    line-height: 60px;
  }
  .menu-container {
    padding: 0 20px;
  }
}
