@import url("https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Roboto:wght@100;300;400;500;700;900&family=Tektur:wght@400;500;700;900&display=swap");

.amatic-sc-regular {
  font-family: "Amatic SC", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.amatic-sc-bold {
  font-family: "Amatic SC", sans-serif;
  font-weight: 700;
  font-style: normal;
}

:root {
  --primary-color: #3eb6b7;
  --secondary-color: #af51f2;
  --button-color: #222;
  --accent-color: #ad6a0d;
  --border-color: #222;
  --blue-color: #375da4;
}

* {
  font-family: "Amatic SC", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
  text-transform: capitalize;
  transition: 0.2s linear;
}

html {
  /* font-size: 62.5%; */
  overflow-x: hidden;
  scroll-padding-top: 7rem;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 1rem;
}

html::-webkit-scrollbar-track {
  background: var(--secondary-color);
}

html::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5rem;
}

body {
  background: #eee;
  overflow-x: hidden;
  width: 100%;
}

section {
  padding: 2rem 5%;
}

.header {
  position: fixed;
  height: 100px;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5%;
}

.header .logo {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header .logo img {
  width: 75px;
  height: 75px;
  border-radius: 15px;
}

.header .logo span {
  font-size: 3rem;
  color: var(--secondary-color);
  font-weight: bolder;
  margin-left: 20px;
}

.header .navbar a {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-left: 2rem;
}

.header .navbar a:hover {
  color: var(--primary-color);
  background: var(--secondary-color);
}

#menu-bars {
  font-size: 2rem;
  color: var(--secondary-color);
  cursor: pointer;
  display: none;
}

.home .content {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-top: 6rem;
  margin: 2rem auto;
  max-width: 70rem;
  justify-content: center;
}

.home .content h3 {
  font-size: 4.5rem;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.home .content h2 {
  font-size: 3rem;
  color: var(--secondary-color);
  text-transform: uppercase;
}

.home .content h2 span {
  color: var(--primary-color);
  text-transform: uppercase;
}

.btn {
  margin-top: 1rem;
  margin-left: 40%;
  display: inline-block;
  padding: 0.8rem 3rem;
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 0.5rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  cursor: pointer;
  max-width: 25%;
  border: 1px solid var(--accent-color);
}

.btn:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.home .home-slider .swiper-slide {
  overflow: hidden;
  border-radius: 0.5rem;
  height: 30rem;
  width: 25rem;
}

.home .home-slider .swiper-slide img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.heading {
  text-align: center;
  padding-bottom: 2rem;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 3rem;
}

.heading span {
  color: var(--secondary-color);
  text-transform: uppercase;
}

.service .box-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service .box-container .box {
  border-radius: 0.5rem;
  background: var(--primary-color);
  text-align: center;
  padding: 2.5rem;
}

.service .box-container .box:hover {
  transform: scale(1.05);
}

.service .box-container .box i {
  height: 3rem;
  width: 3rem;
  line-height: 3rem;
  border-radius: 0.5rem;
  font-size: 2rem;
  background: var(--secondary-color);
  color: #fff;
}

.service .box-container .box h3 {
  font-size: 2rem;
  color: var(--accent-color);
  padding: 1rem 0;
}

.service .box-container .box p {
  font-size: 1.4rem;
  color: #eee;
  line-height: 1.8;
}

.about .row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.about .row .image {
  padding: 1rem;
}
.about .row .image,
.about .row .content {
  flex: 1 1 25rem;
}

.about .row .content {
  background: var(--primary-color);
  border-radius: 0.5rem;
  padding: 1rem;
}

.about .row .image img {
  width: 100%;
  border-radius: 0.5rem;
  border: 1rem solid var(--primary-color);
}

.about .row .content h3 {
  font-size: 2.6rem;
  color: var(--secondary-color);
}

.about .row .content p {
  font-size: 1.3rem;
  font-weight: 600;
  color: #eee;
  padding: 1rem 0;
  line-height: 2;
}

.about .row .content .btn {
  background: var(--secondary-color);
  color: var(--primary-color);
  max-width: unset;
  margin-left: unset;
}

.about .row .content .btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Gallery Styling Start */
.gallery .box-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery .box-container .box {
  position: relative;
  border: 0.5rem solid var(--primary-color);
  border-radius: 0.5rem;
  height: 20rem;
  cursor: pointer;
  overflow: hidden;
}

.gallery .box-container .box img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.gallery .box-container .box:hover img {
  transform: scale(1.1);
  filter: grayscale();
}

.gallery .box-container .box .title {
  position: absolute;
  top: -10rem;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-align: center;
  padding-bottom: 1rem;
  font-size: 2rem;
}

.gallery .box-container .box:hover .title {
  top: 0;
}

.gallery .box-container .box .icons {
  position: absolute;
  bottom: -10rem;
  left: 0;
  right: 0;
  background: var(--primary-color);
  padding-top: 1rem;
  text-align: center;
}

.gallery .box-container .box:hover .icons {
  bottom: 0;
}

.gallery .box-container .box .icons a {
  font-size: 1rem;
  margin: 0.5rem 1rem;
  color: var(--secondary-color);
}

.gallery .box-container .box .icons a:hover {
  color: var(--secondary-color);
}

/* Gallery Styling Ends */

/* Contact Styling Starts */

.contact form {
  max-width: 50rem;
  text-align: center;
  margin: 1rem auto;
}

form .input-box {
  display: flex;
  justify-content: space-between;
}

.input-box .input-field {
  width: 48%;
}

.field .item {
  width: 100%;
  padding: 1rem;
  background: var(--primary-color);
  border: 2px solid var(--accent-color);
  outline: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #fff;
  margin: 0.8rem 0;
}

.field .item::placeholder {
  color: var(--secondary-color);
  font-size: 2rem;
  align-items: center;
}

.field .error-text {
  font-size: 1.1rem;
  color: yellow;
  text-align: left;
  display: none;
}

form .textarea-field .item {
  resize: none;
}

form .textarea-field .error-text {
  margin-top: 10px;
}

form button {
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  border: none;
  outline: none;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px var(--accent-color);
  font-size: 1.5rem;
  color: var(--secondary-color);
  letter-spacing: 1px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
}

form button:hover {
  box-shadow: none;
}

.contact .success-text {
  color: green; /* A contrasting color to indicate success */
  font-size: 1rem;
  margin: 10px 0;
  padding: 10px;
  border: 2px solid green;
  border-radius: 5px;
  background-color: #e6ffe6; /* Light green background to make it stand out */
  text-align: center;
}

/* Contact Styling Ends */

/* Footer starts */
.footer {
  background: var(--primary-color);
}

.footer .box-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer .box-container .box {
  font-size: 2rem;
  padding: 1rem 0;
  color: var(--secondary-color);
}

.footer .box-container .box a {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  padding: 1rem 0;
  color: var(--secondary-color);
}

.footer .box-container .box a i {
  padding-right: 0.5rem;
}

.footer .box-container .box a:hover,
.footer .box-container .box a:hover i {
  padding-right: 1.5rem;
  color: var(--accent-color);
}

.footer .credit {
  text-align: center;
  border-top: 0.1rem solid var(--accent-color);
  color: var(--secondary-color);
  padding: 2rem;
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer .credit span {
  color: var(--blue-color);
  font-weight: 900;
}
/* Footer ends */

.theme-toggler {
  position: fixed;
  top: 10rem;
  right: -10rem;
  background: var(--primary-color);
  z-index: 1000;
  width: 10rem;
  text-align: center;
}

.theme-toggler.active {
  right: 0;
}

.theme-toggler h3 {
  color: var(--secondary-color);
  padding: 1rem 0;
}

.theme-toggler .buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.5rem;
}

.theme-toggler .buttons .theme-btn {
  height: 2rem;
  width: 2rem;
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggler .toggle-btn {
  position: absolute;
  top: 0;
  left: -4rem;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  cursor: pointer;
}

.theme-toggler .toggle-btn i {
  color: var(--secondary-color);
  font-size: 2rem;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(360deg);
  }
}

/* Media Queries Start */

@media (max-width: 1188px) {
  .header .logo span {
    font-size: 2.7rem;
  }

  .header .navbar a {
    font-size: 2rem;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 1.5rem 2rem;
  }

  .header .logo span {
    font-size: 2rem;
  }

  .header .navbar a {
    font-size: 1.3rem;
  }
  section {
    padding: 2rem;
  }

  .home .content h3 {
    font-size: 4rem;
  }

  .home .content h2 {
    font-size: 2.5rem;
  }

  .btn {
    font-size: 1.3rem;
  }

  .service .box-container,
  .gallery .box-container,
  .footer .box-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .header .logo span {
    font-size: 3rem;
  }

  #menu-bars {
    display: block;
    font-size: 2.5rem;
  }

  .header .navbar {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    border: 0.1rem solid var(--accent-color);
    background: var(--primary-color);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }

  .header .navbar.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }

  .fa-times {
    transform: rotate(180deg);
  }

  .header .navbar a {
    display: flex;
    background: var(--primary-color);
    border-radius: 0.5rem;
    padding: 1.3rem;
    margin: 1.3rem;
    font-size: 2rem;
    justify-content: center;
  }

  .home .content h3 {
    font-size: 2.7rem;
  }

  .home .content h2 {
    font-size: 2rem;
  }

  .btn {
    margin-top: 1rem;
    margin-left: 32%;
    padding: 0.5rem 2rem;
    font-size: 1.7rem;
    max-width: 45%;
  }

  .service .box-container,
  .gallery .box-container,
  .footer .box-container {
    grid-template-columns: repeat(1, 1fr);
  }

  .service .box-container .box {
    padding: 0.5rem;
  }
}

@media (max-width: 540px) {
  .header .logo span {
    font-size: 2.3rem;
  }

  #menu-bars {
    font-size: 2rem;
  }

  .header .navbar a {
    font-size: 1.5rem;
  }

  .footer .credit {
    font-size: 1.1rem;
    padding: 0.5rem;
  }
}

@media (max-width: 450px) {
  .header {
    padding: 1rem;
  }

  .home .content .btn {
    font-size: 1.4rem;
  }

  .home .home-slider .swiper-slide {
    width: 20rem;
  }

  .contact form .inputBox input {
    width: 100%;
  }

  .field .item::placeholder {
    font-size: 1rem;
  }
}

@media (max-width: 408px) {
  .header .logo img {
    width: 50px;
    height: 50px;
  }
  .header .logo span {
    font-size: 1.8rem;
    margin-left: 10px;
  }

  .header .navbar {
    font-size: 1.5rem;
  }

  #menu-bars {
    font-size: 1.5rem;
  }

  .footer .box-container .box a {
    font-size: 1.4rem;
  }
}
