* {
  margin: 0;
  padding: 0;
  box-sizing: border-box !important;
  text-shadow: h-shadow v-shadow blur-radius #000 !important;
}

@keyframes moveGradient {
  0% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 100%;
  }
}

:root {
  /* Define base font sizes and spacing */
  --base-font-size: 16px;
  --heading-large: 10rem;
  --heading-medium: 3rem;
  --heading-small: 1.5rem;
  --text-normal: 1rem;
  --spacing-small: 0.5rem;
  --spacing-medium: 1rem;
  --spacing-large: 2rem;
}

/* body {
  background: radial-gradient(circle at 50% 100%, #2a372a 1%, #000 40%);
  background-attachment: fixed;
  background-size: 200% 100%;
  background-position: 0% 100%;
  background-color: #000 !important;
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  font-size: var(--base-font-size);

  animation: moveGradient 1s linear forwards;
  animation-timeline: scroll();
  animation-range: 0 100%;

  min-height: 100%;
  height: auto;
} */

body {
  font-family: "Roboto", sans-serif;
  overflow-x: hidden;
  font-size: var(--base-font-size);
  background-color: #000 !important;
  min-height: 100%;
  height: auto;
}

html {
  min-height: 100%;
  height: auto;
}

#title {
  width: 100%;
  height: fit-content;
  overflow: hidden;
  transition: height 0.6s ease-out;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

h1 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  color: #fff;
  letter-spacing: -0.03em;
  font-weight: bold;
  font-weight: 700;
  font-size: clamp(1rem, 9vw, var(--heading-large));
}

a {
  text-decoration: none !important;
  color: inherit;
}

.outline {
  color: #000;
  text-shadow:
    -2px -2px 0 white,
    2px -2px 0 white,
    -2px 2px 0 white,
    2px 2px 0 white;
}

#navbar {
  padding: 20px 0px;
  top: 40px;
  position: sticky;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: row;
  opacity: 1;
  transform: translateY(-40px);
  z-index: 1000;
  padding-inline: calc(2 * var(--spacing-large));
  overflow-x: hidden;
  transition: background-color 0.6s ease-in-out;
}

#navbar a {
  position: relative; /* Important */
  color: #888;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  border: 1px solid #fff;
  border-bottom: 1px solid #fff;
  padding: 0.8rem;
  transition: color 0.4s ease-in-out, border-color 0.8s ease-in-out;
}

/* Pseudo-element for hover underline */
#navbar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px; /* Start small */
  background: #fff;
  transition: height 0.4s ease-in-out;
  z-index: 1000;
}

/* On hover, pseudo-element grows */
#navbar a:hover {
  color: #fff;
  border-color: #fff;
}

#navbar a:hover::after {
  height: 5px; /* Expand without shifting layout */
}

.middle-anchors {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.middle-anchors a {
  margin-inline: 0.4rem;
}

#contact {
  color: #fff;
  width: 100%;
  height: auto;
  overflow-x: hidden;
}

#journey {
  color: #fff;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow-x: hidden
}

#nav-section {
  width: 100%;
  padding: 0 1vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

#nav-section {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.nav-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  padding: var(--spacing-medium);
  box-sizing: border-box;
}

.nav-left, .nav-right {
  flex: 1 1 45%; /* Grow/shrink nicely */
  min-width: 300px; /* Prevent shrinking too much */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nav-left {
  color: #fff;
}

.nav-left h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--heading-medium);
  font-weight: 500;
  word-break: break-word; /* Ensure wrapping */
}

.nav-right {
  align-items: flex-end;
}

.nav-right img.face {
  height: auto;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1/1;
  object-fit: cover;
}

#nav-section {
  margin-top: -40px; /* you touch this, everything breaks */
}

h2 {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--heading-medium);
  font-weight: 500;
}

.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 14%;
  height: 0.8rem;
  transform: translateX(0);
  background-color: #40623e;
  z-index: -1;

  animation: underlineEffect linear;
  animation-timeline: view();
  animation-range: entry 0% cover 100%;
  max-width: 100vw !important;
}

@keyframes underlineEffect {
  from {
    transform: translateX(0);
    width: 14%;
    max-width: 100vw !important;
  }
  to {
    transform: translateX(10%);
    width: 120%;
    max-width: 100vw !important;
  }
}

#about {
  color: #fff;
  width: 100%;
  padding: 0 1vw;
  overflow-x: hidden;
}

.about-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  margin-top: 1vw;
  margin-bottom: 1vw;
  padding: var(--spacing-medium);
}

.about-left {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: var(--spacing-medium);
  padding-right: var(--spacing-large);
}

.about-left ul {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-left a {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}

.about-left li {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-image: linear-gradient(45deg, #40623e 0%, #ffffff84 100%) 1;
  padding: var(--spacing-medium) var(--spacing-large);
  margin-bottom: var(--spacing-large);
  overflow: hidden;
}

.about-left li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #40623e 0%, #ffffff00 100%);
  transform: translate(-100%, 100%);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  z-index: -1;
  opacity: 0;
}

.about-left li:hover::before {
  transform: translate(0, 0);
  opacity: 1;
}

.about-right {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 1.5rem;
  /*background: rgba(64, 98, 62, 0.1);*/
  border-radius: 8px;
  /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
}

.about-right h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: #f0f0f0;
  letter-spacing: 0.5px;
}

.about-right img {
  height: 5rem;
  width: auto;
}

.tech-stack-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding: 20px 0;
  margin-top: var(--spacing-medium);
}

.stack-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: var(--spacing-medium) 0;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.stack-column:hover {
  transform: translateY(-5px);
}

.stack-column h3 {
  font-size: 20px;
  font-weight: 600;
  color: #a6c7a4;
  text-align: center;
}

.tech-stack-icons i {
  font-size: 3.5rem;
  margin: 0.5rem;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tech-stack-icons img {
  height: 4rem;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease;
}

.tech-stack-icons i:hover::after {
  content: attr(title);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(64, 98, 62, 0.9);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.9rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 12;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#projects {
  color: #fff;
  width: 100%;
  padding: 0 1vw;
  overflow-x: hidden;
  min-height: 100vh;
}

#projects {
  position: relative;
  overflow: visible !important;
}

body {
  min-height: 100%;
  height: auto;
}
html {
  min-height: 100%;
  height: auto;
}

.project {
  display: flex;
  position: relative;  /* Add this */
  min-height: 100vh;
  margin-top: 1vw;
  margin-bottom: 1vw;
}

.project-left {
  position: sticky;
  top: 90px;
  z-index: 500; /* Add this */
  align-self: flex-start; /* Add this */
  /* Existing styles */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 35%;
  padding: var(--spacing-medium);
}

.project-left h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: var(--heading-small);
  font-weight: 500;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
}

.project-right {
  width: 65%;
  padding: var(--spacing-medium);
  gap: 0px;
  perspective: 1000px;
}

.project-right img {
  position: relative;
  width: 80%;
  height: auto;
  margin-bottom: var(--spacing-medium);
  left: 50%;
  transform: translateX(-50%);
}

.about-project {
  margin-top: 3rem;
}

.about-project ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.about-project li {
  list-style: none;
  padding: 0.5rem 0.8rem;
  margin: 0.5rem;
  background: linear-gradient(45deg, #40623e 0%, #222 100%);
  border-radius: 1000px;
}

.about-project p {
  margin-top: var(--spacing-medium);
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-size: 1rem;
}

canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100lvw !important;
  height: 100lvh !important;
  z-index: -1000 !important;
  pointer-events: none;
}

.content-overlay {
  position: fixed !important;
  width: 100%;
  min-height: 100lvw;
  height: 100lvh;
  top: 0;
  left: 0;
  z-index: -500;
  background-color: rgba(0,0,0,0.6);
}

#navbar.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(1px);
}


.all-icons-together {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.all-icons-stack {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: var(--spacing-medium) 0;
  border: none;
}

.all-icons-stack:hover {
  transform: translateY(-5px);
}

.all-icons-together h3 {
  font-size: 20px;
  font-weight: 600;
  color: #a6c7a4;
  text-align: center;
  margin-top: 16px;
}

/* JOURNEYYYYYYYYYYYYYYYYYYYYY / LOREEEEEEEEEEEEEEEEEEEEEEEEEEE */

#journey {
  padding: 0rem 1rem 1rem 1rem;
}

.journey-content {
  position:relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  height: auto;
}

.arrow-top {
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 20px solid #a6c7a4; 
}

.line {
  position: absolute;
  top: 0;
  height: 100%;
  width: 4px;
  background-color: #a6c7a4;
  border-radius: 100%;
  background-image: linear-gradient(to bottom, #a6c7a4, #a6c7a4, #e0e0e0, #a6c7a4, #a6c7a4);}

.arrow-bottom {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 20px solid #a6c7a4; 
}

.journey-left-right-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
}

.journey-left {
  position: relative;
  width: 50%;
  height: 100%;
}

.journey-right {
  position: relative;
  width: 50%;
  height: 100%;
}

.hide-navbar-btn {
  display: none;
}

#journey-navbar-button, #about-navbar-button, #projects-navbar-button, #contact-navbar-button {
  text-align: center;
}

/* CONTACT PAGE */






#contact {
  color: #fff;
  width: 100%;
  padding: 0rem 1rem;
  overflow-x: hidden;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  padding: 1rem 1rem;
  align-items: stretch;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-card,
.community-card,
.contact-form {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #40623e;
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
}

.contact-card h3,
.community-card h3,
.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #a6c7a4;
  font-family: Arial, sans-serif;
  border-bottom: 2px solid #40623e;
  padding-bottom: 0.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.contact-item i {
  font-size: 1.4rem;
  color: #a6c7a4;
}

.contact-item a {
  font-size: 1rem;
  color: #f0f0f0;
  text-decoration: none;
}

.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social a {
  font-size: 1.8rem;
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s ease-in-out, transform 0.3s ease-out;
}

.contact-social a:hover {
  color: #a6c7a4;
  transform: scale(1.1)
}

.community-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.community-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.community-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease-in, border-radius 0.3s ease-in-out;
}

/*.community-logo img:hover {
  transform: scale(3.5);
  border-radius: 4px;
}*/

.community-logo span {
  font-size: 1.2rem;
  color: #f0f0f0;
}

.join-button {
  background-color: #40623e;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  text-align: center;
  border: none;
  width: 100%;
  text-decoration: none;
  display: inline-block;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #40623e;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border: 1px solid #5b8f59;
}

.submit-btn {
  background-color: #40623e;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  text-align: center;
  border: none;
  width: 100%;
  text-decoration: none;
  display: inline-block;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: #1e1e1e;
  border: 1px solid #40623e;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.form-success h3 {
  color: #a6c7a4;
  font-size: 2rem;
}

.form-success p {
  color: #ccc;
  font-size: 1rem;
}

@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }
}

.image-set {
  padding: 1rem 2rem;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  overflow-x: hidden;

  img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    aspect-ratio: 1/1;
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
  }

  img:hover {
    opacity: 1;
  }
}

.text-set {
  padding: 1rem 2rem;

  p {
    margin-bottom: 5px;
    line-height: 1.3;
  }

  .era {
    margin-bottom: 20px;
    font-weight: 700;
  }
}

.alignLeft {
  justify-content:flex-start;
  text-align: start;
}

.alignRight {
  justify-content: flex-end;
  text-align: end;
}

.spotlight {
  display: none;
}

.spacer {
  height: 20px;
}