/* ========= Reset ========= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --nav-height: 80px;
  --nav-bg: #f4f4f4;
  --nav-color-primiary: #161616;
  --nav-color-secondary: #363636;
  --nav-active: #000000;
  --nav-border: #161616;

  --background: #ffffff;
  --background-alt: #131313;
  --text-primary: #121212;
  --text-primary-alt: #e1e1e1;
  --text-secondary: #707070;
  --text-secondary-alt: #808080;
  --text-artxtech-p: #9c9c9c;

  --dropdown-btn-bg: #161616;
  --dropdown-btn-color: #f4f4f4;
  --dropdown-menu-bg: #f4f4f4;
  --dropdown-menu-hover: #d2d2d2;

  --card-bg: #ffffff3f;
  --card-bg-alt: #0a0a0a;
  --card-btn-border: #161616;
  --card-btn-bg: #ffffff;
  --card-btn-disabled-bg: #979797;

  --footer-bg: #101010;
  --footer-color-primiary: #fdfdfd;
  --footer-color-secondary: #999999;
  --footer-active: #ffffff;
  --footer-breakline: #616161;
  --footer-copyright: #4c4c4c;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SpaceGrotesk";
  src: url("../fonts/SpaceGroteskVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, #ffd6e7 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, #d6f0ff 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, #e6d6ff 0%, transparent 40%),
    radial-gradient(circle at 25% 75%, #fff0c9 0%, transparent 35%);

  animation: hueShift 12s linear infinite;
  background-attachment: fixed;
}

@keyframes hueShift {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

h1,
h2,
h3,
.logotext,
button,
select {
  font-family: "SpaceGrotesk", sans-serif;
  
}

/* ========= Navigation ========= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  min-height: var(--nav-height);
  height: var(--nav-height);
  overflow: hidden;
  transition:
    height 1s ease,
    backdrop-filter 0.5s ease;
}

.header.active {
  height: 100vh;
  backdrop-filter: blur(25px);
}

.navbar {
  max-width: 1200px;
  margin: auto;
  height: var(--nav-height);
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo {
  width: 75px;
  aspect-ratio: 1/1;
}

.logotext {
  color: var(--nav-color-primiary);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  position: relative;
  color: var(--nav-color-primiary);
  text-decoration: none;
  transition: color 0.7s ease;
  font-weight: normal;
  font-size: small;
}

.nav-menu a:hover {
  color: var(--nav-active);
  font-weight: 700;
}

.nav-menu a.active {
  color: var(--nav-active);
  font-weight: 700;
}

.nav-menu a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--nav-active);
}

.nav-menu.alt a {
  color: var(--text-primary-alt);
}

.nav-menu.alt a.active::after {
  background: var(--text-primary-alt);
}

/* ========= Hamburger ========= */

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: var(--nav-color-primiary);
  transition: all 0.3s ease;
}

.hamburger.alt .bar {
  background: var(--text-primary-alt);
}

/* Hamburger Animation */

.hamburger.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


.hero {
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.hero.alt {
  background: #f0f0f0;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 550px;
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-color-primiary);
  margin-top: 6rem;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.footer-brand p {
  color: var(--footer-color-secondary);
  max-width: 35ch;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.8rem;
}

.footer a {
  color: var(--footer-color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--footer-active);
}

.footer-bottom {
  border-top: 1px solid var(--footer-breakline);
  text-align: center;
  padding: 1.5rem;
}

.footer-bottom p {
  color: var(--footer-copyright);
  font-size: 0.9rem;
}

/* ========= Mobile ========= */

@media (max-width: 768px) {
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: -100vh;
    right: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 3rem;
    gap: 3rem;
    transition: top 0.35s ease;
  }

  .nav-menu.active {
    top: var(--nav-height);
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  color: var(--text-primary);
  width: 100%;
  max-width: 450px;
  border-radius: 4px;
  padding: 25px;
  position: relative;
  box-sizing: border-box;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
}

.modal h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 20px;
  word-break: break-word;
}

.modal input,
.modal textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-sizing: border-box;
  font-size: 16px;
}

.modal textarea {
  resize: vertical;
}

.modal button[type="submit"] {
  padding: 12px 24px;
  border: none;
  outline: none;
  background-color: #151515;
  color: #eee;
  border-radius: 2px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease-out;
}

.modal button[type="submit"]:hover {
  transform: translateY(-3px);
}

@media (max-width: 480px) {
  .modal-content {
    padding: 20px;
  }

  .modal input,
  .modal textarea {
    font-size: 15px;
  }
}
