:root {
  --color_45: 255, 255, 255;
  --font_0: "Questrial", sans-serif;
  --min-height: 100vh;
  --min-width: 100%;
  --text-direction: ltr;
  --md-sys-color-primary: rgb(var(--color_45));
  --md-sys-color-primary-container: rgba(var(--color_45), 0.7);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: var(--font_0);
  color: rgb(var(--color_45));
  overflow: hidden;
  background: #0e0e0e;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: var(--min-height);
  background-image: url("background.webp");
  background-size: cover;
  background-position: center;
  padding: 20px;
}

.header {
  font-size: 18px;
  margin-bottom: 20px;
}

.content {
  flex: 1;
  display: flex;
  align-items: center;
}

.text {
  max-width: 80%;
}

.h1-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

h1 {
  font-weight: 400;
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
  display: inline-block;
  padding: 0.6rem clamp(1rem, 2vw, 3rem);
  border-radius: clamp(0.4rem, 0.75vw, 1rem);
  letter-spacing: 2px;
  font: normal normal normal 150px/0.6em questrial, sans-serif;
}

p {
  margin-top: 30px;
  font: normal normal normal 16px/1.4em questrial, sans-serif;
}

.sub {
  width: 400px;
  height: auto;
  padding-left: 30px;
  margin-bottom: 20px;
}

footer {
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 400;
  background-color: rgba(0, 0, 0, 0.5);
}

.modern-button {
  background-color: transparent; /* Transparent background */
  border: 2px solid white; /* White border */
  color: white; /* White text */
  padding: 10px 20px; /* Padding for the button */
  font-size: 16px; /* Font size */
  font-family: var(--font_0); /* Use the same font */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition */
  margin-top: 5px;
}

.modern-button:hover {
  background-color: white; /* Change background on hover */
  color: black; /* Change text color on hover */
}

.modern-button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.3);
}

.modern-button.disabled:hover {
    background-color: transparent;
    color: white;
}

@media only screen and (max-width: 768px) {
  h1 {
    font-size: 52pt;
  }
  p {
    font-size: 14pt;
  }
}

@media only screen and (min-width: 768px) {
  .text {
    padding: 0 48px;
  }
}

.portfolio-link {
  color: white; /* Change link color to white */
  text-decoration: none; /* Remove underline */
  font-weight: bold; /* Make the link bold */
}

.portfolio-link:hover {
  text-decoration: underline; /* Underline on hover for better visibility */
}

/* Increase specificity */
body #portfolio-section {
  margin-top: -35px !important; /* Move up by 10 pixels */
}

#sub-section {
  margin-top: -10px; /* Move up by 10 pixels */
}

.footer-links {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.material-link {
    color: rgb(var(--color_45));  /* This is white (255, 255, 255) */
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.material-link:hover {
    color: rgba(var(--color_45), 0.7);  /* Semi-transparent white */
}

.material-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.material-link:hover::after {
    transform: scaleX(1);
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #1a1a1a;
    padding: 35px;
    border-radius: 16px;
    position: relative;
    width: 90%;
    max-width: 440px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-popup {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

.close-popup:hover {
    color: rgba(255, 255, 255, 0.7);
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

#waitlist-email {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: var(--font_0);
    font-size: 15px;
    transition: all 0.2s ease;
    opacity: 0.6;
    cursor: not-allowed;
}

#waitlist-email:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

#waitlist-email:disabled {
    background-color: rgba(255, 255, 255, 0.02);
}

.popup-content h2 {
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-content p {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.feature-list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

#waitlist-form .modern-button {
    width: 100%;
    padding: 14px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-footer {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

#waitlist-form {
    margin-top: 25px;
}
