/* Global Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::selection {
  background-color: var(--selection-color);
}
@font-face {
  font-family: "Amatic-SC";
  src: url(../fonts/AmaticSC/AmaticSC-Regular.ttf);
}
@font-face {
  font-family: "Open-sans";
  src: url(../fonts/OpenSans/OpenSans-VariableFont.ttf);
}
:root {
  /* fonts */
  --primary-font: "Open-sans", sans-serif;
  --secondary-font: "Amatic-SC", sans-serif;
  /* colors */
  --main-color: #ffffff;
  --primary-color: #ce1212;
  --primary-hover: #e61414;
  --selection-color: #dd5959;
  --bg-color: #eeeeee;
  --info-bg: #eeeeee;
  --wave-color: #ffffff;
  --primary-text: #212529;
  --amatic-color: #37373f;
  --light-gray: #7d7d7d;
  --white-color: #ffffff;
  --black-color: #000000;
  --border-color: #e8e3e3;
}
body {
  font-size: 10px;
  font-family: var(--primary-font);
}

/* Common Style */
.title {
  text-align: center;
  margin-bottom: 3.125rem;
}
h3,
.title h6 {
  text-transform: uppercase;
}
h3 {
  font-size: 3.125rem;
  font-family: "Amatic-SC";
  color: var(--amatic-color);
}
h3 span {
  color: var(--primary-color);
}
h4 {
  font-size: 1.17rem;
  font-weight: 600;
  color: var(--primary-text);
}
h6 {
  font-size: 0.875rem;
  font-weight: 400;
  color: #9f9f9f;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
}
/* Dark Light Mode */
.dark-light i {
  cursor: pointer;
  font-size: 1.5625rem;
  position: fixed;
  top: 1.40625rem;
  right: 7.4rem;
  z-index: 9999;
}
#toggleMode {
  visibility: hidden;
}
.toggleDark {
  display: block;
  color: var(--primary-text);
}
.toggleLight {
  display: none;
  color: var(--white-color);
}
#toggleMode:checked ~ .toggleDark {
  display: none;
}
#toggleMode:checked ~ .toggleLight {
  display: block;
}
#toggleMode:checked ~ main {
  /* fonts */
  --primary-font: "Open-sans";
  --secondary-font: "Amatic-SC";
  /* colors */
  --main-color: #202020;
  --primary-color: #c17e1f;
  --primary-hover: #d78c23;
  --selection-color: #8e5f1d;
  --bg-color: #252525;
  --info-bg: #0d0d0d;
  --wave-color: #171717;
  --primary-text: #ffffff;
  --amatic-color: #ffffff;
  --light-gray: #7d7d7d;
  --white-color: #171717;
  --black-color: #ffffff;
  --border-color: #000000;
}

main {
  background-color: var(--main-color);
}
/* Navbar */
nav {
  background-color: var(--white-color);
}
nav h1 a.logo,
nav h1 a.logo:hover,
footer h2 a {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary-text);
}
nav h1 span,
footer h2 span {
  color: var(--primary-color);
}
nav .toggler-icon i {
  font-size: 1.5625rem;
  color: var(--primary-text);
}
nav ul {
  display: flex;
  gap: 0.9375rem;
}
nav ul li {
  font-size: 1.0625rem;
  font-weight: 600;
}
nav ul li a.active,
nav ul li a.link:hover {
  color: var(--black-color) !important;
}
nav ul li a.link {
  color: var(--light-gray);
}
nav ul li a.active::after,
nav ul li a:after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  margin-top: 5px;
  transition: width 0.4s ease;
}
nav ul li a.active::after {
  width: 100%;
}
nav ul li a:hover::after {
  width: 100%;
}

/* Header */
header, .chefs, .gallery, .contact {
  padding: 6.25rem 0;
}
header, .gallery {
  background-color: var(--bg-color);
}
header .content h2 {
  font-size: 4rem;
  font-family: var(--secondary-font);
  color: var(--amatic-color);
  font-weight: 600;
  letter-spacing: 0.2rem;
}
header .content p {
  font-size: 0.9375rem;
  color: #7f7f90;
  margin-block: 1.25rem;
}
header .content a.book {
  border-radius: 0px 100vh 100vh;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.625rem 1.5625rem;
  transition: background-color 0.4s ease;
}
header .content a.book:hover {
  background-color: var(--primary-hover);
  color: var(--white-color);
}
header .content a.video {
  border-radius: 100vh;
  background-image: linear-gradient(
    to right,
    var(--primary-color) 16%,
    transparent 16%
  );
  padding: 0.5rem;
  color: var(--primary-text);
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  transition: color 0.4s ease;
}
header .content a.video .play i {
  width: 40px;
  height: 40px;
  padding: 0.625rem;
  background-color: var(--white-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
header .content a.video:hover {
  color: var(--primary-color);
}

header .photo img {
  filter: drop-shadow(4px 4px 9px #000a);
}
header .photo img:hover {
  animation: shake 0.5s linear infinite;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  20% {
    transform: translate(0px, 0px) rotate(1deg);
  }
  40% {
    transform: translate(-1px, -1px) rotate(-1deg);
  }
  60% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  80% {
    transform: translate(0px, 0px) rotate(1deg);
  }
  100% {
    transform: translate(-1px, -1px) rotate(-1deg);
  }
}

/* Chefs */
.chefs .content .item-card {
  position: relative;
  box-shadow: 3px 3px 15px 0px rgba(0, 0, 0, 0.1);
  border-radius: 0.625rem;
  transition: transform 0.4s ease;
}
.chefs .content .item-card:hover {
  transform: scale(1.05);
}
.chefs .content .item-card .photo {
  position: relative;
}
.chefs .content .item-card .photo img {
  border-radius: 0.625rem 0.625rem 0 0;
}
.chefs .content .item-card .photo::before {
  content: "";
  width: 100%;
  height: 3.75rem;
  background: url(../images/team-shape.svg);
  background-repeat: repeat-x;
  position: absolute;
  bottom: -0.0625rem;
}
#toggleMode:checked ~ main .chefs .content .item-card .photo::before {
  background: url(../images/team-shape-dark.svg);
  background-repeat: repeat-x;
}
.chefs .content .item-card .photo .overlay {
  position: absolute;
  top: 1.875rem;
  right: -3.125rem;
  display: none;
  transition: right 0.5s ease, display 0.5s ease 1s;
}
.chefs .content .item-card:hover .photo .overlay {
  display: block;
  right: 0.625rem;
}
.chefs .content .item-card .photo .overlay ul {
  background-color: #ffffff4d;
  padding: 0.625rem 0.9375rem;
  border-radius: 0.3125rem;
}
.chefs .content .item-card .photo .overlay ul li {
  padding-block: 0.625rem;
}
.chefs .content .item-card .photo .overlay ul li i {
  font-size: 1.125rem;
  color: #37373f66;
  transition: color 0.4s ease;
}
.chefs .content .item-card .photo .overlay ul li i:hover {
  color: #37373f;
}
.chefs .content .item-card .info {
  background-color: var(--wave-color);
  text-align: center;
  border-radius: 0 0 0.625rem 0.625rem;
}
.chefs .content .item-card .info p {
  font-size: 0.9375rem;
  font-style: italic;
  color: #7f7f90;
}

/* Gallery */
.gallery .content figure {
  border: 0.25rem solid #ffffff;
  position: relative;
}
.gallery .content figure img {
  width: 100%;
}
.gallery .content figure .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background-color: #00000096;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease, height 0.4s ease;
}
.gallery .content figure:hover .overlay {
  opacity: 1;
  height: 100%;
}
.gallery .content figure .overlay h4 {
  color: #ffffff;
}
.gallery .content figure .overlay p {
  color: #ddd;
  font-size: 0.9375rem;
  text-align: center;
}
/* Contact */
.contact .content .item-info {
  padding: 0.9375rem 1.25rem;
  background-color: var(--info-bg);
}
.contact .content .item-info .icon {
  padding: 0.625rem;
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.contact .content .item-info .icon i {
  font-size: 1.25rem;
  width: 1.625rem;
  height: 1.625rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: var(--main-color);
}
.contact .content .item-info .text h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.3125rem;
  color: #7d7d7d;
}
.contact .content .item-info .text p {
  font-size: 0.9375rem;
  color: var(--primary-text);
  margin: 0rem;
  word-break: break-all;
}
.contact .content form {
  background-color: var(--white-color);
  box-shadow: 0 0 1.875rem #00000014;
}
.contact .content form input,
.contact .content form textarea {
  border: 0.125rem solid var(--border-color);
  border-radius: 0rem;
  padding-block: 0.9375rem;
}
.contact .content form input::placeholder,
.contact .content form textarea::placeholder,
footer .content .links form input::placeholder {
  font-size: 0.75rem;
}
.contact .content form input:focus,
.contact .content form textarea:focus {
  border: 0.125rem solid var(--primary-color);
}
.contact .content form button {
  font-size: 0.9375rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  border: none;
  padding: 0.75rem 2.5rem;
  transition: background-color 0.4s ease;
}
.contact .content form button:hover,
footer .content .links form button:hover {
  background-color: var(--primary-hover);
}
/* Footer */
footer{
  padding: 3.125rem 0rem 1.5625rem 0rem;
  background: url(../images/textured-metal-background.webp);
  background-size: cover;
  box-shadow: 0px -1px 5px #0007;
}
.footer .logo{
  width: 2.5rem;
}
footer h2 a, footer h4, footer p{
  color:  #ffffff;
}
footer p{
  font-size: 0.9375rem;
  margin-top: 0.625rem;
}
.footer .content .social h4{
  border-bottom: 2px solid #ddd6;
  padding-bottom: 0.625rem;
  margin-bottom: 0.625rem;
  text-align: center;
}
.footer .content .social i{
  font-size: 1.25rem;  
  color: #ffffff;
}
footer .content .links form{
  display: grid;
  grid-template-columns: 1fr 0.4fr;
  gap: 0.3125rem;
}
footer .content .links form button {
  font-size: 0.9375rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 0rem;  
  transition: background-color 0.4s ease;
}
footer .content .links form input{  
  border: 0.125rem solid var(--border-color);
  border-radius: 0rem;
}
footer .content .links ul{
  margin-top: 0.625rem;
}
footer .content .links a{
  color: #ffffff;
  font-size: 0.9375rem;
  display: block;    
  transition: all 0.4s ease;
  padding: 0.3125rem;
}
footer .content .links a:hover{
  background-color: #222222;
  transform: translateX(0.3125rem);
}
footer .content .contact-info ul a{
  display: flex;
  align-items: center;   
  word-break: break-all;
}
footer .content .contact-info ul li, footer .content .contact-info ul a{
  color: #ffffff;
  font-size: 0.9375rem;  
  padding: 0.3125rem;
}
footer .content .contact-info ul li i{
  font-size: 1.25rem;
  color: var(--primary-color);
}
/* Responsive */
@media screen and (max-width: 991px) {
  .dark-light i {
    right: 12.5rem;
  }

  nav ul li a.active::after,
  nav ul li a:after {
    display: none;
  }

  header .content a.book {
    border-radius: 100vh;
  }
}

@media screen and (max-width: 575px) {
  .dark-light i {
    right: 4.5rem;
  }

  .contact .content .item-info .text p{
    height: 40px;
    overflow-y: hidden;    
  }

  footer .content .links form{
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 290px) {
  .chefs .content .item-card .photo::before {
    background: none;
  }
}
