/*

TRENDSETTER: WEBSITE ASSIGNMENT - CSS
Imesh Nimsitha
CS 2033

*/

/* CUSTOM FONT (Outfit from Google Fonts) */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

/* VARIABLES */
:root {
  --light: #fafafa;
  --dark: #0a0a0a;
  --dark2: #171717;
  --lime: #bef264;
  --lime-tint: #84cc16;
  --light-tint: #e5e5e5;
  --light-tint2: #d4d4d4;
  --neutral: #404040;
}

/* GENERAL CSS */
body {
  font-family: "Outfit", sans-serif;
  background-color: var(--lime);
  color: var(--dark2);
}

::selection {
  background-color: var(--dark2);
  color: var(--light-tint);
}

#footer ::selection,
.cover-img-hover ::selection {
  background-color: var(--lime);
  color: var(--dark2);
}

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.px-5 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.pt-3 {
  padding-top: 2.5rem;
}

.my-6 {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.container-fluid {
  overflow: hidden;
  padding: 0px;
}

h1 {
  font-weight: 500;
}

/* BACK TO TOP */
#backToTop {
  z-index: 1500;
}

.btn-top {
  text-decoration: none;
  background-color: #ef4444;
  color: var(--light);
  font-weight: 600;
  font-size: 18px;
  border-radius: 100%;
  border: 0px;
  padding: 1rem;
}

.btn-top:hover {
  background-color: #dc2626;
  color: var(--light);
}

.btn-top:active {
  -webkit-animation: none;
  animation: none;
  background-color: #ef4444;
}

/* ANIMATIONS */
.animate-spin {
  animation: animate-spin 1s infinite linear;
}
@keyframes animate-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin-elastic {
  animation: animate-spin-elastic 0.75s ease;
}
@keyframes animate-spin-elastic {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(720deg);
  }
}

.animate-bounce {
  animation: animate-bounce 2s ease;
}
@keyframes animate-bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.btn:focus {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
  box-shadow: none;
}

[role="region"]:focus {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* NAVBAR */
.navbar-brand {
  font-weight: 700;
  font-size: 24px;
  color: var(--dark2);
  text-decoration: none;
}

.navbar-brand:hover {
  color: var(--dark);
}

.nav-link {
  font-weight: 600;
  color: var(--neutral);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--dark2);
  background-color: var(--light-tint2);
}

/* SECTION: HEADER */
#header h1 {
  margin-top: 3rem;
}

#img-header {
  background-image: url("../img/header.jpg");
  background-position: 100% 0%;
  background-repeat: no-repeat;
  background-size: cover;
  height: 65vh;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

@media (min-width: 1600px) {
  #img-header {
    height: 75vh;
  }
}

/* SECTION: ABOUT*/
#about p {
  padding-right: 3rem;
  font-size: 18px;
  text-align: justify;
  font-weight: 400;
  color: var(--dark2);
}

#imgAbout1 {
  padding: 0px;
  background-position: 25% 0%;
  background-repeat: no-repeat;
  background-size: cover;
  height: 45vh;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

#imgAbout2 {
  padding: 0px;
  background-position: 50% 55%;
  background-repeat: no-repeat;
  background-size: 150%;
  height: 45vh;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

#imgAbout1 img {
  object-fit: cover;
  object-position: 25% 0%;
}

#imgAbout2 img {
  object-fit: cover;
  object-position: 0% 50%;
}

@media only screen and (min-width: 1600px) {
  #imgAbout1 {
    height: 30vh;
  }
  #imgAbout2 {
    height: 30vh;
  }
  #imgAbout2 img {
    object-position: 0% 10%;
  }
}

/* TEAM AND PRODUCTS BACKGROUND*/
.bg-light {
  background-color: var(--light);
}

#texture {
  background-color: var(--light);
  background-color: rgba(250, 250, 250, 0.15);
  background-blend-mode: lighten;
  background-image: url("../img/inspiration-geometry.png");
  background-attachment: fixed;
  text-align: center;
}

/* SECTION: TEAM */
#team img {
  object-fit: cover;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

#team p {
  padding-left: 1rem;
  padding-right: 1rem;
}

.img-team3 {
  object-position: middle bottom;
}

.container-img-hover {
  position: relative;
  overflow-y: hidden;
}

.img-hover {
  width: 100%;
}

.cover-img-hover {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  background-image: radial-gradient(
    rgba(10, 10, 10, 0.7),
    rgba(10, 10, 10, 0.8)
  );
  color: var(--light-tint);
  padding: 3rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  -moz-transition: opacity 0.2s ease;
  -webkit-transition: opacity 0.2s ease;
  -o-transition: opacity 0.2s ease;
}
.cover-img-hover:hover {
  opacity: 1;
}

.cover-img-hover h4 {
  margin-top: auto;
  margin-bottom: auto;
}

#team .card {
  padding-bottom: 0.25rem;
}

#team .card-title {
  font-weight: 600;
}

#team i {
  margin-right: 0.5rem;
}

.container-xxxl {
  padding-right: 0px;
  padding-left: 0px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 768px) {
  .container-xxxl {
    width: 750px;
  }
}
@media (min-width: 992px) {
  .container-xxxl {
    width: 970px;
  }
}
@media (min-width: 1200px) {
  .container-xxxl {
    width: 1170px;
  }
}

@media (min-width: 1600px) {
  .container-xxxl {
    width: 1440px;
  }
}

@media (min-width: 1920px) {
  .container-xxxl {
    width: 1560px;
  }
}

/* SECTION: PRODUCTS */
#products h5 {
  font-weight: 600;
}

.card-rating {
  text-align: start;
  font-size: 15px;
}

.card-sku {
  font-size: 15px;
  font-weight: 500;
  text-align: end;
}

.card-sku b {
  font-weight: 700;
  display: none;
}

@media screen and (min-width: 1920px) {
  .card-sku b {
    display: inline;
  }
  .card-sku {
    font-weight: 400;
  }
}

.card-price {
  font-weight: 700;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-price span {
  background: #fff;
  margin: 0 15px;
}

.card-price:before,
.card-price:after {
  background: var(--dark2);
  height: 2px;
  flex: 1;
  content: "";
}

.dollar:before {
  content: "$";
  vertical-align: text-top;
  font-size: 0.7em;
  font-weight: 400;
  padding-right: 1px;
}

.btn-lime {
  background-color: var(--lime);
  color: var(--dark2);
  font-weight: 600;
  border-radius: 0%;
  border-width: 2px;
}

.btn-lime:hover {
  background-color: var(--dark2);
  color: var(--light-tint);
}

.btn-lime i {
  margin-right: 0.5rem;
}

/* SECTION: CONTACT */
#contact .form-control,
.form-select {
  border-radius: 0%;
}

#contact h2 {
  text-align: left;
}

#contact textarea {
  height: 125px;
  resize: none;
}

.is-invalid {
  border-width: 2px;
}

.is-valid {
  border-width: 2px;
  border-color: var(--lime-tint);
}

.btn-submit {
  background-color: var(--dark2);
  border-radius: 0%;
  border-width: 2px;
  font-weight: 600;
  color: var(--light);
}

.btn-submit:hover {
  background-color: var(--dark);
  color: var(--light);
}
.btn-submit:active {
  -webkit-animation: none;
  animation: none;
  background-color: var(--dark);
}

#contact i {
  margin-right: 0.5rem;
}

#contactInfo i {
  margin-right: 0.6rem;
  margin-left: 0.1rem;
}

#contact h5 {
  font-weight: 400;
  font-size: 18px;
}

#contact b {
  font-weight: 600;
}

#contact h5 > a {
  text-decoration: none;
  color: var(--dark2);
}

#serviceStatus {
  font-size: 18px;
}

#socialMediaIcons i {
  font-size: 36px;
  margin-right: 0.75rem;
}

#socialMediaIcons a {
  text-decoration: none;
  color: var(--dark2);
}

#socialMediaIcons a:hover {
  color: var(--dark);
}

/* SECTION: FOOTER (with REFERENCES) */
#footer {
  background-color: var(--dark2);
}

.footer-brand {
  color: #f5f5f5;
  font-size: 40px;
  font-weight: 600;
}

.footer-brand:hover {
  color: var(--light);
}

#footer h4 {
  color: var(--lime);
}

#footer h5 {
  color: var(--lime);
  padding-top: 1rem;
}

#footer i {
  margin-left: 0.5rem;
}

#footer .nav-link {
  color: var(--light-tint2);
  font-weight: 400;
}

#footer .nav-link:hover {
  color: var(--light);
}

.footer-copyright {
  color: var(--light-tint2);
  font-weight: 200;
}

.footer-copyright a {
  text-decoration: none;
  font-weight: 400;
  color: var(--light-tint2);
}

.footer-copyright a:hover {
  color: var(--light);
}

.footer-placeholder {
  color: var(--dark);
}

#footer .spacer {
  padding-top: 1.25rem;
}

.card {
  border-radius: 0%;
}

.card img {
  border-radius: 0%;
}

/* CUSTOM SCROLL BAR */
::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* CROSS-BROWSER RESPONSIVENESS TWEAKS */
@media (max-width: 767px) {
  .px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .pt-3 {
    padding-top: 1rem;
  }

  #team,
  #products,
  #footer {
    padding: 1rem;
  }

  #contact .my-6 {
    margin: 2rem 0rem;
  }

  #footer .px-3 {
    padding-left: 0rem;
    padding-right: 0rem;
  }

  #contact > .align-self-start {
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  #contact-form {
    padding-left: 3rem;
    padding-right: auto;
    width: 100%;
    margin-top: 2rem;
  }

  #socialMediaIcons {
    justify-content: center;
    font-size: 16px;
  }

  #team .row-cols-1,
  #products .row-cols-1 {
    --bs-columns: 1;
  }

  #footer .references {
    display: none;
  }
  #footer .branding {
    width: 100%;
  }

  h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 575px) {
  #contact .col-md-4,
  #contact .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #contact h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 1132px) {
  #imgAbout1,
  #imgAbout2 {
    display: none;
  }

  #h-header {
    padding-bottom: 1rem;
  }

  #p-about {
    padding-bottom: 1rem;
  }

  #about .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #img-header {
    height: 40vh;
  }

  #about p {
    padding-right: 1rem;
    font-size: 1rem;
  }
}
