/* --- Global Styles & Variables --- */
:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --gray-light: #cccccc;
  --gray-medium: #888888;
  --gray-dark: #333333;
  --navbar-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat";
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-light);
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gray-medium);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

section:not(#hero) {
  /* padding-top: calc(var(--navbar-height) + 40px); */ /* Alternative if sections overlap navbar */
}

/* --- Navbar --- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: oklch(0.21 0.006 285.885);
  padding: 15px 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-dark);
  height: var(--navbar-height);
}

#navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links a {
  margin-left: 25px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover {
  background-color: var(--gray-dark);
  border-color: var(--gray-medium);
  color: var(--text-color);
}

/* --- Hero Section --- */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding-top: var(--navbar-height);
  min-height: 600px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100vw;
  height: 100%;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-left {
  flex: 1;
  max-width: 50%;
}

.hero-right {
  flex: 1;
  width: 50%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#particles-js {
  position: absolute;
  border-radius: 10px;
  width: 100%;
  height: 80%;
  top: 10%;
  left: 0;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero-right,
  #particles-js {
    display: none;
  }
  .contact-content {
    flex-direction: column;
    height: 100vh;
  }
  #contact-form {
    width: 100%;
  }
  footer {
    margin-top: 0 !important;
  }
}

.hero-left h1 {
  margin-bottom: 15px;
}

.hero-left .subtitle {
  font-size: 1.5rem;
  color: var(--gray-light);
  min-height: 60px;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 10px;
  height: 1.5rem;
  background-color: var(--text-color);
  margin-left: 5px;
  margin-bottom: 10px;
  animation: blink 0.7s infinite;
  vertical-align: bottom;
  color: transparent;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* --- About Section --- */
#about {
  background-color: oklch(0.21 0.006 285.885);
  color: white;
}
#about .container p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.1rem;
}

/* --- Process Section --- */
#process ol {
  list-style: none;
  counter-reset: process-counter;
  max-width: 700px;
  margin: 20px auto 0 auto;
}

#process li {
  counter-increment: process-counter;
  margin-bottom: 20px;
  padding-left: 40px;
  position: relative;
  font-size: 1.1rem;
  color: var(--gray-light);
}

#process li::before {
  content: counter(process-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: var(--gray-dark);
  color: var(--text-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

@keyframes rotateOrbit {
  from {
    transform: translate(-50%, -50%) rotateZ(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotateZ(360deg);
  }
}

/* --- Jobs Section --- */
#jobs {
  background-color: #0a0a0a;
  margin-top: 60px;
}

#backed-by {
  background-color: oklch(0.21 0.006 285.885);
  color: white;
}
.carousel-container {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}
.carousel-track {
  display: inline-flex;
  animation: scroll 20s linear infinite;
}
.carousel-item {
  font-size: 1.5rem;
  color: var(--gray-light);
  padding: 0 40px;
  flex-shrink: 0;
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.job-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-style: italic;
  color: var(--gray-light);
}

.job-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.job-listing {
  border: 1px solid var(--gray-dark);
  padding: 25px;
  border-radius: 8px;
  background-color: #111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Required for Tilt.js */
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.job-listing h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.job-listing p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--gray-light);
}
.job-listing strong {
  color: var(--text-color);
  font-weight: normal;
}

.jobs-cta {
  text-align: center;
  font-size: 1.1rem;
}

.jobs-cta a {
  color: var(--text-color);
  font-weight: bold;
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 2px;
}
.jobs-cta a:hover {
  color: var(--gray-light);
  border-bottom-color: var(--gray-light);
}

/* --- Contact Section --- */
#contact-form {
  max-width: 600px;
  margin: 30px auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--gray-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background-color: var(--gray-dark);
  border: 1px solid var(--gray-medium);
  border-radius: 4px;
  color: var(--text-color);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text-color);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--gray-light);
  color: var(--bg-color);
}

.form-instructions,
.general-inquiry {
  text-align: center;
  margin-top: 15px;
  color: var(--gray-medium);
  font-size: 0.9rem;
}

.general-inquiry {
  margin-top: 40px;
  font-size: 1.1rem;
}

.general-inquiry a {
  color: var(--text-color);
  font-weight: bold;
  border-bottom: 1px solid var(--text-color);
  padding-bottom: 2px;
}
.general-inquiry a:hover {
  color: var(--gray-light);
  border-bottom-color: var(--gray-light);
}

/* --- Footer --- */
footer {
  text-align: center;
  background-color: oklch(0.21 0.006 285.885);
  padding-bottom: 15px;
  padding-top: 30px;
  margin-top: 60px;
  border-top: 1px solid var(--gray-dark);
  font-size: 0.9rem;
  color: var(--gray-medium);
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2rem;
  }

  #navbar .container {
    flex-direction: column;
    height: auto;
    padding-bottom: 10px;
  }
  #navbar {
    height: auto;
    position: static;
    position: fixed;
    padding-bottom: 10px;
  }
  .logo {
    margin-bottom: 10px;
  }
  .nav-links a {
    margin: 0 8px;
    display: inline-block;
    margin-bottom: 5px;
  }

  #hero {
    padding-top: 120px;
  }

  #hero {
    height: auto;
    padding-top: calc(var(--navbar-height) + 90px);
    padding-bottom: 60px;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    max-width: 100%;
  }

  .hero-right {
    margin-top: 40px;
  }
  .protein-placeholder {
    max-width: 300px;
    height: 300px;
  }

  .job-listings {
    grid-template-columns: 1fr;
  }
}

/* career page */
.career-apply-btn {
  background-color: white;
  margin-top: 30px !important;
  padding: 10px;
  border-radius: 10px;
  color: black;
  transition: all;
  transition-duration: 500ms;
  outline: 1px solid black;
}

.career-apply-btn:hover {
  background-color: black;
  padding: 10px;
  transition: all;
  transition-duration: 500ms;
  border-radius: 10px;
  color: white;
  outline: 1px solid white;
}
