@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --special-color: #0d00c0;
  --special-color-text: #6f7bff;
  --bg: #1a2133;
  --surface: #24304a;
  --text: #f2f5ff;
  --nav-height: 56px;
  background-color: var(--bg);
}

body {
  box-sizing: border-box;
  width: 99vw;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding: calc(20px + var(--nav-height)) 20px 20px 20px;
  overflow-x: hidden;
  background-color: var(--bg);
  color: var(--text);
  /* border: 1px solid black; */
}

p {
  line-height: 1.6; /* Sets line spacing to 1.6 times the font size */
}

.primary-font {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 3rem;
}

.title-font {
  font-family: "Playfair Display", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 3rem;
  margin-left: -80px;
}

.secondary-font {
  font-family: "Manrope", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 1.1rem;
  margin-left: -40px;
}

.logo {
  width: 110px; /* Set your desired width */
  height: auto; /* Automatically adjusts to prevent distortion */
}

.navbar {
  position: fixed; /* helps keep the navbar stick to top*/
  top: 0; /* helps keep the navbar stick to top*/
  z-index: 999; /* Keeps navbar above other content */
  height: 56px;
  width: min(600px, 90vw);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: nowrap;
  border-radius: 50px;
  margin: 10px auto;
  box-shadow: 5px 5px 10px 3px rgb(0, 0, 0); /* h v blur spread color */
  background-color: rgba(36, 48, 74, 0.78);
  backdrop-filter: blur(10px);
}

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

.navbar nav.primary-font {
  font-size: 1.1rem;
}

.navbar a {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 1;
  padding: 0 14px;
}

.hero {
  width: 100%;
  padding-top: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.bottom-text {
  justify-content: flex-end; /* Pushes content to the bottom */
}

.special-color {
  color: var(--special-color-text);
}

.horizontal-menu {
  display: flex; /* Aligns items in a row */
  align-items: center;
  list-style: none; /* Removes bullet points */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
}

.horizontal-menu > li {
  display: flex;
  align-items: center;
}

.vertical-menu {
  display: flex; /* Aligns items in a col */
  flex-direction: column;
  list-style: none; /* Removes bullet points */
  padding: 0; /* Removes default padding */
  margin: 0; /* Removes default margin */
}

.vertical-menu a {
  /* Styles the links as blocks to fill the width */
  display: block;
  padding: 5px 5px; /* Adds padding inside each menu item */
  background-color: var(--surface);
  color: var(--text);
  text-decoration: none; /* Removes default underline */
  border-radius: 4px;
}

.vertical-menu a:hover {
  background-color: rgba(36, 48, 74, 0.92);
}

.horizontal-menu li {
  padding: 10px 10px; /* Adds spacing around menu items */
}

.vertical-menu li {
  padding: 3px 3px; /* Adds spacing around menu items */
  max-width: 200px;
}

.horizontal-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none; /* Removes underlines */
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 12px;
  line-height: 1;
  border-radius: 999px;
}

.horizontal-menu a:hover {
  color: var(--special-color-text);
  background: rgba(255, 255, 255, 0.06);
}

.banner {
  margin: 10px auto;
  display: grid;
  max-width: 90%;
  grid-template-columns: 1fr 1fr; /* Two equal columns */
  justify-items: flex-end;
  align-items: center;
  gap: 40px;
}

.banner-image {
  width: 40vw;
  display: inline-block;
}

.plants {
  width: 80vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 160px;
}

.nav-item {
  position: relative;
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 600;
}

.nav-icon-btn:hover {
  color: var(--special-color-text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-icon-btn span {
  font-size: 1.1rem;
}

.nav-icon-btn i {
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--special-color);
  color: white;
  font-size: 0.8rem;
  margin-left: 4px;
}

.dropdown {
  position: absolute;
  top: 52px;
  right: 0;
  width: min(360px, 92vw);
  background: rgba(36, 48, 74, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: none;
  z-index: 1000;
  font-size: 14px;
  line-height: 1.25;
}

.dropdown.is-open {
  display: block;
}

.dropdown * {
  font-size: inherit;
  line-height: inherit;
}

.dropdown__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown__title {
  font-weight: 700;
  font-size: 14px;
}

.dropdown__close {
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 10px;
}

.dropdown__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown__list {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  max-height: 50vh;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.dd-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(26, 33, 51, 0.7);
}

.dd-item__title {
  font-weight: 700;
  font-size: 14px;
}

.dd-item__meta {
  opacity: 0.9;
  font-size: 12.5px;
}

.dd-item__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.dd-remove {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
}

.dd-remove:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.dropdown__footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 10px;
}

.dropdown__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.dropdown__checkout {
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
}

.dropdown__hint {
  opacity: 0.8;
  font-size: 12.5px;
}

.dd-item[draggable="true"] {
  cursor: grab;
}

.dd-item.dragging {
  opacity: 0.6;
}

.image-slider {
  position: relative;
  width: 100%;
}

.slider-img {
  display: none;
}

.slider-img.is-active {
  display: block;
}

.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,0.35);
  color: white;
  cursor: pointer;
}

.img-nav--left { left: 10px; }
.img-nav--right { right: 10px; }

.img-nav:hover {
  background: rgba(0,0,0,0.5);
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 20px;
}

.card {
  cursor: pointer;
  justify-content: center;
  background-color: var(--surface);
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  box-shadow:
    0 4px 8px rgb(0, 0, 0),
    0 6px 20px rgb(0, 0, 0);
  color: var(--text);
}

.card img {
  /* Essential image styles */
  width: 400px; /* Image takes the full width of the card container */
  height: 200px; /* Example fixed height for uniform cards */
  object-fit: cover; /* Crops the image to cover the area while maintaining aspect ratio */

  /* Optional: Round the top corners of the image to match the card */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.card--expanded {
  cursor: default;
}

.card__content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border-radius: 5px;
  background: var(--bg);
  overflow: hidden;
}

.card--expanded .card__content {
  padding-top: calc(var(--nav-height) + 44px);
  border-radius: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  justify-content: flex-start;
  align-items: flex-start;
  overflow: auto;
}

.card__user-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  will-change: transform;
  transform-origin: 0 0;
}

.card--expanded .card__user-image {
  width: 100px;
  height: 100px;
}

.card__images {
  display: grid;
  gap: 10px;
  max-width: 800px;
  width: 100%;
  margin: 50px auto 0;
  transform-origin: 0 0;
  position: absolute;
  top: 100%;
}

.card--expanded .card__images {
  position: static;
}

.card__image {
  border-radius: 5px;
  width: 100%;
  aspect-ratio: 1;
}

.card__title {
  margin: 0;
  font-size: 20px;
  font-weight: bold;
  transform-origin: 0 0;
  line-height: 1;
}

.card--expanded .card__title {
  font-size: 30px;
}

.card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px 14px;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

.card--expanded .card__header {
  flex-direction: row;
}

.card__user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.card--expanded .card__user-info {
  align-items: flex-start;
  gap: 2px 0;
}

.card__subtitle {
  font-size: 14px;
  opacity: 0.7;
}

.card__user-links {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 0;
  pointer-events: none;
  opacity: 0;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0 14px;
}

.card--expanded .card__user-links {
  position: static;
  opacity: 1;
  height: auto;
  margin-top: 5px;
  pointer-events: all;
}

.card__user-link {
  display: flex;
}

.card__user-link-icon {
  fill: currentColor;
  color: white;
  width: 20px;
}

.card__bio {
  opacity: 0;
  height: 0;
  transform-origin: 0 0;
}

.card--expanded .card__bio {
  max-width: 800px;
  margin: 20px auto 0;
  opacity: 1;
  height: auto;
}

.card__close {
  position: absolute;
  right: -40px;
  top: 20px;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 44px;
  height: 44px;
  color: white;
  padding: 10px;
}

.card--expanded .card__close {
  transition: 0.3s all ease;
  transition-delay: 0.3s;
  opacity: 1;
  pointer-events: all;
  transform: translateX(-100%) translateX(-20px);
}

.card--animatable .card__user-image,
.card--animatable .card__title,
.card--animatable .card__subtitle,
.card--animatable .card__user-links,
.card--animatable .card__bio,
.card--animatable .card__images,
.card--animatable .card__content {
  transition: all 0.5s cubic-bezier(0, 0, 0.21, 1);
}

button {
  display: inline-block; /* Allows padding and margin, and keeps it inline */
  padding: 10px 10px; /* Space between text and border (top/bottom, left/right) */
  text-align: center; /* Center the text */
  text-decoration: none; /* Remove underlines from <a> tags */

  /* Color and background */
  background-color: var(--special-color);
  color: white; /* White text color */

  /* Font and appearance */
  font-size: 16px; /* Increase font size */
  cursor: pointer; /* Change mouse cursor to a hand on hover */
  border: none; /* Remove default border */
  border-radius: 8px; /* Rounded corners */
  transition: background-color 0.3s; /* Smooth transition for hover effect */
}

button:hover {
  /* Hover effect: changes background color when the user hovers over the button */

  background-color: #1f12ff; /* A different color on hover */
}

.news-letter-container {
  position: relative;
  margin-left: -40px;
  margin-top: 60px;
  isolation: isolate;
  width: 90%;
  height: 600px;
  color: var(--text);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(36, 48, 74, 0.85);
  border-radius: 16px;
  overflow: hidden;
}

.news-letter-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/Collage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: blur(1.25px);
  transform: scale(1.03);
  z-index: 0;
}

.news-letter-container > * {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  margin-bottom: 40px;
}

.brand-header {
  width: 100%;
  height: 300px;
  background: linear-gradient(180deg, var(--surface), var(--bg));
  background-size: cover;
  padding: 40px;
  margin-top: 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 3px solid var(--special-color);
  margin-left: -40px;
}

.brand-container {
  text-align: center;
}

.brand-container h1 {
  margin: 0;
  color: var(--text);
  font-size: 4rem;
}

.logo-image {
  width: 100px;
  height: auto;
}

.banner {
  margin: 40px auto;
  max-width: 70%;
  display: block;
  text-align: center;
}

.hero {
  width: 100%;
  display: block;
}

footer {
  width: 90%;
  margin-top: 50px;
  margin-left: -40px;
  bottom: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: 0.75fr 0.5fr 1fr;
  background: var(--surface);
  padding: 20px;
  gap: 20px;
  box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, 0.2); /* h v blur spread color */
  color: var(--text);
}

/* for smaller screen */
@media screen and (max-width: 768px) {
  body {
    width: 100%;
    margin: 0 auto;
    padding: calc(20px + var(--nav-height)) 20px 20px 20px;
  }
  .horizontal-menu li {
    padding: 5px 5px; /* Adds spacing around menu items */
  }

  .brand-header {
    padding: 60px 0 30px 0;
  }

  .brand-container h1 {
    font-size: 2.5rem;
  }

  .banner {
    width: fit-content;
    display: flex; /* Hide an element on small screens */
    flex-wrap: wrap;
    flex-direction: column-reverse;
    justify-items: baseline;
    align-items: flex-start;
    max-width: 90%;
  }

  .banner-image {
    width: 90vw;
  }

  .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 5px;
  }

  .card__images {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .email-div {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .dropdown {
    font-size: 0.9rem;
  }

  .dd-item__title {
    font-size: 0.9rem;
  }

  .dd-item__meta,
  .dd-remove {
    font-size: 0.82rem;
  }

  footer {
    display: grid;
    position: relative;
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }
}
