/* poppins font -> 100,200,etc all */
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,400;0,600;0,700;0,900;1,100;1,700;1,900&family=Roboto:wght@400;500;700&display=swap");
/* M plus 1 code -- > font */
@import url("https://fonts.googleapis.com/css2?family=M+PLUS+1+Code:wght@100;400;600&family=Poppins:ital,wght@0,100;0,200;0,400;0,600;0,700;0,900;1,100;1,700;1,900&family=Roboto:wght@400;500;700&display=swap");

:root {
  --text-color: #000000;
  --background-color: #f7f7f7;
  --hr-line-color: #000000;
  --highlighter: #6975ff;
  --highlighter-text: #3a2271;
  --box-backgrond: rgba(191, 215, 234, 0.379);
  --container-background: #f4f4f8;
  --link-not-active: #000000;
  --box-shadow: rgba(0, 0, 0, 0.4);
  --scroll: #6975ff;
}

.dark-mode {
  --text-color: rgb(255, 255, 255);
  --background-color: #000000;
  --hr-line-color: #ffffff;
  --highlighter: #ffd700;
  --highlighter-text: #ffd700;
  --box-backgrond: rgb(74, 74, 74);
  --container-background: #2a2929;
  --link-not-active: #ffffff;
  --box-shadow: #ffffff;
  --scroll: #f7f7f7;
}

body {
  text-align: center;
  font-family: Poppins, Arial;
  background: var(--background-color);
  margin: 0;
  padding-top: 44px;
  padding-left: 100px;
  padding-right: 100px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

h1 {
  font-size: 48px;
  margin: 15px 0 0 0;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: var(--text-color);
}

a {
  color: var(--highlighter);
}

span {
  color: var(--highlighter) !important ;
}

input {
  padding: 10px;
  font-size: 16px;
}

hr {
  width: 80%;
  height: 4px;
  border-color: var(--hr-line-color);
  background-color: var(--hr-line-color);
  border-radius: 5px;
  margin: 20px 0;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  height: 20px !important;
  border-radius: 9px;
  background-color: var(--scroll);
}

.content-info {
  font-size: 18px;
  font-weight: 500;
}

.box {
  width: 100%;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--box-backgrond);
  border-radius: 12px;
}

.box h2 {
  margin-bottom: 5px;
}

.box hr {
  height: 2px;
}

.container {
  width: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 3px solid #320e3b;
  border-radius: 20px;
  padding: 20px 0;
  margin: 10px;
  background-color: var(--container-background);
}

/* ---- Navbar ---- */

.navbar {
  padding: 10px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--background-color);
  /* position: fixed; */
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  width: 1280px;
  border-radius: 12px;
  /* box-shadow: 0 2px 8px var(--box-shadow); */
  box-shadow: 0px 1px 6px var(--box-shadow);
}

.navbar .icon {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.navbar .icon h2 {
  white-space: nowrap;
  transition: color 150ms ease-in-out;
}

.navbar .icon h2:hover {
  color: var(--highlighter);
}

.navbar img {
  height: 72px;
  cursor: pointer;
}

.navbar ul {
  display: flex;
  align-items: center;
}

#light-dark-mode {
  height: 52px;
}

.navbar .hamburger-menu img {
  height: 28px;
  display: none;
}

.navbar ul li {
  list-style: none;
  font-size: 18px;
  padding: 5px 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: var(--link-not-active);
  position: relative;
  white-space: nowrap;
}

.navbar .active {
  color: var(--highlighter);
}

.navbar ul li a:hover:after {
  width: 100%;
  left: 0%;
}

.navbar ul li a::after {
  content: "";
  bottom: 2px;
  left: 50%;
  width: 0%;
  position: absolute;
  height: 2px;
  background-color: var(--link-not-active);
}

.navbar .active::after {
  width: 100%;
  left: 0%;
  background-color: var(--highlighter);
}

.copyright-section h3 {
  margin-bottom: 5px;
}

.contact-span p {
  margin-top: 5px;
  text-transform: uppercase;
  font-size: 16px;
}

.contact-span p {
  color: var(--text-color);
  transition: 150ms ease-in-out;
}

.contact-span p:hover {
  transform: scale(1.05);
}

.contact-span a {
  text-decoration: none;
}

/* Newsletter Form CSS */
.news-letter form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 45px;
  background-color: var(--container-background);
  border-radius: 12px;
  border: 2px solid #320e3b;
}

.news-letter form label {
  color: var(--highlighter);
  font-size: 18px;
}

.news-letter form input {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  width: 400px;
  display: block;
  color: var(--highlighter-text);
  border: 1px solid var(--highlighter-text);
  background-color: var(--background-color);
  outline: var(--highlighter-text);

  &:focus {
    outline: var(--highlighter-text);
  }
}

.news-letter form button {
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 8px;
  background-color: var(--background-color);
  color: var(--highlighter);
  cursor: pointer;
  transition: 150ms ease-in-out;
  margin-top: 12px;
  border: 2px solid var(--highlighter);
}

.news-letter form button:hover {
  background-color: var(--highlighter);
  color: var(--background-color);
}

/* Blog - Card */

.visible-on-hover {
  display: none;
}

.blog-holder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  width: 460px;
  background-color: var(--box-backgrond);
  border-radius: 12px;
  border: 2px solid #320e3b;
  cursor: pointer;
  transition: 150ms ease-in-out;

  &:hover {
    transform: scale(1.02);
  }

  &:hover .visible-on-hover {
    display: block;
  }
}

.blog-card a {
  text-decoration: none;
}

/* Coffee bar */

.coffee-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 40px;
  background-color: var(--box-backgrond);
  border-radius: 12px;
  border: 2px solid #320e3b;
}

.coffee-bar .top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.coffee-bar .count {
  font-size: 24px;
  font-weight: 600;
  border: 2px solid var(--highlighter-text);
  color: var(--highlighter-text);
  border-radius: 100px;
  width: 30px;
  padding: 4px 8px;
  cursor: pointer;
}

.coffee-bar .times {
  font-size: 24px;
  color: var(--highlighter-text);
  font-weight: bold;
}

.coffee-bar input {
  padding: 12px;
  font-size: 20px;
  border-radius: 8px;
  width: 360px;
  background-color: var(--background-color);
  color: var(--highlighter-text);

  &:focus {
    outline: none;
  }
}

.coffee-bar .count-num input {
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  width: 50px;
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  color: var(--highlighter-text);
  border: 2px solid var(--highlighter-text);
  background-color: var(--box-background);
}

.coffee-bar .count:hover {
  background-color: var(--highlighter-text);
  color: white;
}

.coffee-bar button {
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 8px;
  background-color: var(--highlighter-text);
  color: var(--background-color);
  cursor: pointer;
  transition: 150ms ease-in-out;
  border: 2px solid var(--highlighter-text);
}

.coffee-bar button:hover {
  background-color: var(--background-color);
  color: var(--highlighter-text);
}

/* ----- Mobile View ----- */

@media screen and (max-width: 600px) {
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 24px;
  }
  .icon h2 {
    font-size: 18px;
    font-weight: 500;
  }
  h3 {
    font-size: 18px;
  }
  hr {
    height: 1.5px !important;
  }
  .contact-span p {
    font-size: 14px;
    font-weight: 600;
  }
  .navbar {
    padding: 0 20px;
  }
  .navbar ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 50px;
    flex-direction: column;
    padding-left: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 180px;
    background-color: var(--container-background);
    border-left: 2px solid #000000;
    align-items: flex-start;
  }
  .navbar .hamburger-menu img {
    display: block;
  }
  .navbar ul li a::after {
    height: 0px;
  }
}
