/* IMPORT FONTS */
@import url("https://fonts.googleapis.com/css2?family=Cabin&family=Satisfy&family=Tiro+Tamil&display=swap");

/* ROOT ELEMENTS  */

:root {
  --main-color: rgb(255, 0, 128);
  --heading-color: #fff1f9;
  --text-color: rgb(70, 70, 70);
  --color: rgb(255, 255, 255);
  --main-font: "Tiro Tamil", serif;
  --heading-font: "Satisfy", cursive;
  --text-font: "Cabin", sans-serif;
}

* {
  margin: 0px;
  padding: 0px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Body styles */
body {
  font-family: var(--text-font);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* SCROLL BAR CSS */

body::-webkit-scrollbar {
  width: 0.4rem;
  background-color: transparent;
}

body::-webkit-scrollbar-thumb {
  background-color: var(--main-color);
  border-radius: 30px;
}

/* =============================================== */
/* NAVBAR CSS */
/* =============================================== */
#navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: var(--main-color);
  position: fixed;
  top: 0px;
  width: 100vw;
  z-index: 9;
}

#navbar::before {
  content: "";
  background-color: rgba(255, 255, 255, 0.904);
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
  width: 100%;
  z-index: -1;
}

/* LOGO CSS */
#nav_item1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo {
  width: 40px;
  height: 45px;
}

#nav_item1 p {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  margin: 0px 5px;
  margin-top: 10px;
}

/* NAVBAR LINKS CSS */

.nav_item2 {
  font-family: "Roboto";
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 40vw;
}

.nav_links {
  text-decoration: none;
  letter-spacing: 1px;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 8px 0.5vw;
  border-bottom: 2px solid transparent;
  color: var(--main-color);
  font-family: var(--text-font);
  cursor: pointer;
}

.nav_links:hover {
  border-bottom: 2px solid var(--main-color);
}

.dropbtn {
  cursor: pointer;
  color: var(--main-color);
  text-decoration: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  min-width: 150px;
  margin-top: 11px;
  box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.068);
  z-index: 9;
  background-color: rgba(255, 255, 255, 0.904);
}

.dropdown-content a {
  color: var(--main-color);
  display: block;
  padding: 12px 16px;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f7f7f7;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* SEARCH BAR CSS */

#search_bar {
  width: 20vw;
  height: 30px;
  border: none;
  outline: none;
  font-size: 1.2rem;
  padding-bottom: 5px;
  padding-right: 0px;
  color: var(--text-color);
  text-indent: 10px;
  border-bottom: 2px solid var(--main-color);
  background-color: transparent;
  transition: width 0.5s ease-in-out;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

#search_bar:focus {
  width: 30vw;
}

#search_btn {
  font-size: 1.4rem;
  color: var(--main-color);
  margin-left: -45px;
  cursor: pointer;
  z-index: 2;
  background-image: linear-gradient(to right,
      rgba(255, 255, 255, 0.685),
      rgba(255, 255, 255, 0.904),
      rgba(255, 255, 255, 0.904),
      rgba(255, 255, 255, 0.904));

  padding-left: 20px;
}

/* TOGGLE BUTTON  */

#nav_item4 {
  display: none;
}

.menu {
  display: inline-block;
  cursor: pointer;
  z-index: 10;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: var(--main-color);
  margin: 7px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 10px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -10px) rotate(45deg);
}

/* NAVBAR RESPONSIVE MEDIA QUERIES */

@media screen and (max-width: 800px) {
  #logo {
    width: 40px;
    height: 40px;
  }

  #nav_item1 p {
    font-size: 1.3rem;
    margin-top: 5px;
  }

  .nav_item2 {
    order: 3;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 72vw;
    margin-left: 28vw;
    margin-top: 92vh;
    background-color: rgba(255, 255, 255, 0.904);
    transition: transform 0.5s linear;
    transform: translateX(72vw);
    z-index: 8;
  }

  .nav_links {
    margin: 10px 0px;
  }

  .toggle {
    transform: translateX(0vw);
    transition: transform 0.5s linear;
  }

  #search_bar {
    width: 50vw;
    font-size: 1rem;
  }

  #search_bar:focus {
    width: 60vw;
  }

  #nav_item4 {
    display: inline-block;
    z-index: 9;
  }
}

@media screen and (max-width: 450px) {
  #navbar {
    height: 55px;
  }

  #logo {
    width: 35px;
    height: 35px;
  }

  #nav_item1 p {
    font-size: 1.2rem;
    margin-top: 2px;
  }

  .nav_item2 {
    width: 100vw;
    margin-left: 0vw;
    transform: translateX(100vw);
  }

  .toggle {
    transform: translateX(0vw);
  }

  #search_bar {
    width: 45vw;
    margin-left: -20px;
  }

  #search_bar:focus {
    width: 50vw;
  }

  #search_btn {
    font-size: 1.3rem;
    margin-left: -43px;
  }

  .bar {
    width: 25px;
    height: 2px;
  }

  .change .bar1 {
    transform: translate(0, 9px) rotate(-45deg);
  }

  .change .bar3 {
    transform: translate(0, -9px) rotate(45deg);
  }
}

@media screen and (max-width: 400px) {
  #navbar {
    justify-content: space-between;
  }

  #logo {
    width: 30px;
    height: 30px;
  }

  #nav_item1 p {
    font-size: 1rem;
    margin-top: 2px;
  }

  #search_bar {
    margin-left: -10px;
  }

  .bar {
    margin-right: 2vw;
  }
}

/* =============================================== */
/* HOME SECTION CSS */
/* =============================================== */
#home {
  display: flex;
  flex-direction: column;
  background: url("images/home.webp") no-repeat center fixed;
  min-height: 500px;
  background-size: cover;
  background-attachment: fixed;
  padding: 25vh 5vw;
  font-family: var(--text-font);
  font-weight: bold;
  font-size: 4rem;
  color: var(--main-color);
  line-height: 15vh;
  text-shadow: 0px 0px 5px white;
}

.name {
  font-weight: 100;
  color: var(--main-color);
  font-size: 5rem;
  font-family: var(--heading-font);
}

@media screen and (max-width: 800px) {
  #home {
    background: url("images/home.jpg") no-repeat center;
    background-size: cover;
    background-attachment: fixed;
    font-size: 3rem;
  }

  .name {
    font-size: 4rem;
  }
}

@media screen and (max-width: 600px) {
  #home {
    background: url("images/home2.jpg") no-repeat center;
    background-size: cover;
    background-attachment: fixed;
    padding: 20vh 5vw;
    font-size: 3rem;
    line-height: 12vh;
  }

  .name {
    font-size: 3.5rem;
  }
}

/* =============================================== */
/* ABOUT SECTION CSS */
/* =============================================== */
.section {
  text-align: center;
  margin: auto;
  margin-top: 10vh;
}

.max-width {
  max-width: 1500px;
}

.heading {
  color: var(--main-color);
  font-size: 3rem;
  font-family: var(--heading-font);
}

.para {
  color: var(--text-color);
  font-size: 1.2rem;
  font-family: var(--text-font);
  padding: 2vh 2vw;
}

/* ====================================== */
/* PRODUCT SECTION CSS */
/* ====================================== */

#products {
  padding: 1vh 3vw;
  margin: auto;
  color: var(--main-color);
}

/* Container styles */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 20px 0px;
}

/* Card styles */
.cart {
  border: 2px solid var(--heading-color);
  border-radius: 5px;
  box-shadow: 0 3px 5px var(--heading-color);
  margin: 5px 3px;
  width: 25%;
  padding: 5px;
  height: 450px;
  text-align: center;
  transition: box-shadow 0.3s ease;
  text-decoration: none;
  overflow: hidden;
  background-color: transparent;
}

.cart:hover {
  box-shadow: 0 5px 10px var(--heading-color);
}

.cart img {
  width: 100%;
  height: 60%;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.cart:hover img {
  transform: scale(1.1);
  filter: brightness(105%);
}

.cart-heading {
  color: var(--main-color);
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 3vh;
  font-family: var(--text-font);
}

.cart-text {
  color: var(--text-color);
  margin-top: 1vh;
  padding:5px 10px;
  font-family: var(--text-font);
}

.cart-price {
  font-size: 1rem;
  color: var(--main-color);
  margin-top: 2vh;
}

.cart-button {
  display: block;
  background-color: var(--color);
  color: var(--main-color);
  border: 1px solid var(--main-color);
  width: 80px;
  padding: 10px 20px;
  font-size: 1.3rem;
  text-align: center;
  margin: auto;
  margin-top: 1vh;
  text-decoration: none;
  border-radius: 3px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.cart-button:hover {
  background-color: var(--main-color);
  color: var(--color);
}

/* Media query for responsive design */
@media (max-width: 1200px) {
  .cart {
    width: 30%;
  }
}

@media (max-width: 1000px) {
  .cart {
    width: 31%;
    height: 440px;
    margin: 5px 2px;
  }
}

@media (max-width: 825px) {
  .cart {
    width: 300px;
    height: 450px;
  }
}

@media (max-width: 680px) {
  .cart {
    width: 250px;
    height: 440px;
  }
}

@media (max-width: 570px) {
  .cart {
    width: 300px;
  }
}

.sub-heading {
  color: var(--main-color);
  font-family: var(--heading-font);
  font-size: 3rem;
}

/* ====================================== */
/* SERVICES SECTION CSS */
/* ====================================== */
#services {
  margin: auto;
  color: var(--text-color);
}

.servives_flex {
  margin: 20px 3vw;
  display: flex;
  justify-content: space-between;
}

/* SERVICES BOX CSS */

.services_box {
  padding: 2vh 2vw;
  border: 2px solid var(--heading-color);
  border-radius: 3px;
  width: 27.5%;
  height: auto;
  overflow: hidden;
}

.services_box:hover {
  border: 2px solid var(--main-color);
}

.icon {
  margin: 10px;
  font-size: 5rem;
  color: var(--main-color);
}

.services_heading {
  color: var(--main-color);
  font-family: var(--text-font);
  font-weight: bold;
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

.para_1 {
  color: var(--text-color);
  font-family: var(--text-font);
  font-size: 1.1rem;
  margin: 10px 0px;
}

/* SERVIVES RESPONSIVE MEDIA QUESRIES */

@media screen and (max-width: 950px) {
  .servives_flex {
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  .services_box {
    padding: 2vh 4vw;
    width: 90%;
    margin: 10px 0px;
  }

  .services_heading {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 450px) {
  .services_box {
    text-align: center;
    padding: 0vh 4vw;
  }

  .services_heading {
    font-size: 1.2rem;
  }
}

/* ====================================== */
/* CONTACT SECTION CSS */
/* ====================================== */

#contact {
  background-color: var(--heading-color);
  margin: auto;
  padding: 1vh 2vw;
}

#contact .fa {
  color: var(--main-color);
  font-size: 1.5rem;
  margin: 3px;
}

#contact .fab {
  color: var(--main-color);
  font-size: 1.4rem;
  margin: 3px;
}

.contact_flex {
  max-width: 1500px;
  margin: 30px 0px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.contact_list {
  padding-left: 0rem;
}

.contact_list li {
  list-style: none;
  color: var(--main-color);
  margin: 10px 0px;
}

.contact_list li b {
  font-size: 1.3rem;
  font-weight: bold;
}

.links {
  color: var(--text-color);
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1rem;
}

.links:hover {
  color: var(--main-color);
}

/* CONTACT RESPONSIVE MEDIA QUERIES */

@media screen and (max-width: 700px) {
  .contact_list li b {
    font-size: 1.1rem;
  }

  .links {
    font-size: 1rem;
  }
}

@media screen and (max-width: 550px) {
  .contact_flex {
    flex-wrap: wrap;
  }

  .contact_list {
    padding: 0px 2vw;
  }

  .contact_list li b {
    font-size: 1.2rem;
  }

  .links {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 350px) {
  .contact_flex {
    justify-content: center;
  }

  .contact_list {
    padding: 10px 8vw;
    text-align: center;
  }

  .contact_list li {
    margin: 2px 0px;
  }

  .copy-right {
    word-spacing: -3px;
    font-size: 0.8rem;
    text-align: center;
  }
}

/* ====================================== */
/* FOOTER CSS */
/* ====================================== */

/* COPY RIGHT */
.copy-right {
  background-color: black;
  justify-content: center;
  color: var(--heading-color);
  display: flex;
}

/* WHATSAPP BUTTON CSS */
.contact_btn {
  background-color: rgb(0, 255, 0);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  width: 55px;
  height: 55px;
  position: fixed;
  bottom: 20px;
  right: 20px;
}