*,
*::after,
*::before {
  box-sizing: border-box;
}

:root {
  font-size: 16px;
  --color-text: #333;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f7;
  --color-link: #d35400;
  --color-link-hover: #e67e22;
  --page-padding: 1.5rem;
  --color-title: #8e44ad;
  --color-navbar-bg: rgba(255, 255, 255, 0.9);
  --color-navbar-text: #34495e;
  --color-navbar-hover: #d35400;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  background-color: var(--color-bg);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-size: 150px, 400% 400%;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: var(--color-link);
  outline: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
  color: var(--color-link-hover);
  outline: none;
}

a:focus {
  outline: none;
  background: lightgrey;
}

a:focus:not(:focus-visible) {
  background: transparent;
}

a:focus-visible {
  outline: 2px solid red;
  background: transparent;
}

.unbutton {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.unbutton:focus {
  outline: none;
}

.frame {
  padding: var(--page-padding);
  position: relative;
  text-transform: uppercase;
  font-size: 12px;
  display: grid;
  z-index: 1000;
  width: 100%;
  height: 100%;
  grid-row-gap: 1rem;
  grid-column-gap: 2rem;
  pointer-events: none;
  justify-items: start;
  grid-template-columns: auto auto;
  grid-template-areas: "title" "archive" "back" "github" "demos" "sponsor" "tags";
}

.frame #cdawrap {
  justify-self: start;
}

.frame a {
  pointer-events: auto;
}

.frame__title {
  grid-area: title;
  font-size: inherit;
  margin: 0;
}

.frame__back {
  grid-area: back;
  justify-self: start;
}

.frame__archive {
  grid-area: archive;
  justify-self: start;
}

.frame__tags {
  grid-area: tags;
}

.frame__github {
  grid-area: github;
}

.frame__demos {
  grid-area: demos;
  display: flex;
  gap: 1rem;
}

.content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  width: 100%;
  padding: 2rem;
  text-align: center;
  background-color: #c6a8a8;
  background: url(/new/img/noise.png), radial-gradient(circle, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  background-size: 150px, 100% 100vh;
}

.gloock-regular {
  font-family: "Gloock", serif;
  font-weight: 400;
  font-style: normal;
}

.debug {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 1px;
  border-radius: 5px;
  background-color: red;
  transform: translate(-50%, -50%);
}

.scene {
  perspective: 1000px;
  overflow: hidden;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  left: 0;
  top: 0;
}

.card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.card__img {
  width: 5em;
  border-radius: 5px;
  aspect-ratio: 2/3;
  background-position: center;
  background-size: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card__img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.headings {
  text-align: center;
  position: relative;
  z-index: 10;
  color: var(--color-title);
  text-transform: uppercase;
}




.headings__logo {
  width: 400px;
  height: 400px;
  margin-top: 2rem;
}

.headings__subtitle {
  font-size: clamp(1rem, 0.757rem + 1.036vw, 1.5rem);
  color: #ffffff;
  background-color: #f85125;
  padding: 10px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media screen and (min-width: 53em) {
  .frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    grid-template-columns: auto auto auto 1fr;
    grid-template-rows: auto auto;
    align-content: space-between;
    grid-template-areas: "title back archive github sponsor" "tags tags tags demos demos";
  }

  .frame #cdawrap,
  .frame__demos {
    justify-self: end;
  }

  .card__img {
    width: 6em;
  }
}

/* Navbar styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: var(--color-navbar-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 80px;
  width: 80px;
  object-fit: contain;
}

.navbar__menu {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.navbar__menu li {
  margin-left: 2rem;
}

.navbar__menu a {
  color: var(--color-navbar-text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.navbar__menu a:hover {
  color: var(--color-navbar-hover);
  background-color: rgba(211, 84, 0, 0.1);
}

.navbar__menu a.active {
  color: var(--color-navbar-hover);
  background-color: rgba(211, 84, 0, 0.1);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.navbar__toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-navbar-text);
  margin-bottom: 5px;
  transition: all 0.3s ease;
  border-radius: 3px;
}

@media screen and (max-width: 768px) {
  .navbar__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar__menu.active {
    display: flex;
  }

  .navbar__menu li {
    margin: 0.5rem 0;
  }

  .navbar__menu a {
    display: block;
    padding: 0.5rem 2rem;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__logo-img {
    height: 80px;
  }

  .headings__logo {
    width: 180px;
    height: 180px;
    margin-top: 1rem;
  }
}

/* Add a subtle animation to the background */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Add this new class for artistic flair */
.artistic-brush {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  background-image: url('/new/img/brush-stroke.svg');
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
}

/* About section styles */
#about {
  padding: 2rem;
  text-align: center;
  color: #333;
  max-width: 800px;
  margin: 0 auto;
}

#about p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

#about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

/* Styles for "Meet the Houses" section */
#houses {
  padding: 2rem;
  text-align: center;
  background-color: var(--color-bg-alt);
}

#houses h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-title);
}

.houses__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.house {
  flex: 1 1 calc(25% - 2rem);
  max-width: calc(25% - 2rem);
  text-align: center;
}

.house img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.house img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.house p {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
}

@media screen and (max-width: 768px) {
  .houses__grid {
    flex-direction: column;
    gap: 1rem;
  }

  .house {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* Styles for "Action Buttons" section */
#action-buttons {
  padding: 4rem;
  text-align: center;
}

#action-buttons h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--color-title);
}

.buttons__grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.button {
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.button--red {
  background-color: #e74c3c;
}

.button--red:hover {
  background-color: #c0392b;
}

.button--blue {
  background-color: #3498db;
}

.button--blue:hover {
  background-color: #2980b9;
}

.button--green {
  background-color: #2ecc71;
}

.button--green:hover {
  background-color: #27ae60;
}

.button--yellow {
  background-color: #f1c40f;
}

.button--yellow:hover {
  background-color: #f39c12;
}

/* Footer styles */
.footer {
  background-color: var(--color-bg-alt);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--color-text);
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__logo img {
  width: 80px;
  height: 80px;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--color-link-hover);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a img {
  width: 24px;
  height: 24px;
}

.footer__bottom {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
}