/* -----------------------------
   1) Root variables
------------------------------ */
:root {
  --dark-violet: #7765a1;
  --black-violet: #201e29;
  --cyan: #8afff9;
  --whitish: #fffaff;
  --gradient-purple: #b079dd;
  --orange: #ffca00;
}

/* -----------------------------
   2) Basic resets
------------------------------ */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, var(--gradient-purple), #ffffff);
  color: var(--whitish);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* -----------------------------
   3) Fixed navbar
------------------------------ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  /* Keep horizontal padding moderate so we see "Project Three" fully */
  padding: 0.75rem 1rem;
  background-color: var(--black-violet);
  z-index: 999;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Logo container */
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
}

/* Push nav links to the right */
.navbar nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* 
   4) Navigation links with symmetrical left margin and
   a bit bigger margin on the right-most link 
   so "Project Three" doesn’t hug the edge.
*/
.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

/* 1rem between consecutive links */
.nav-links li + li {
  margin-left: 1.5rem;
}

/* A small left margin for the first link */
.nav-links li:first-child {
  margin-left: 1rem;
}

/* A bigger right margin for the last link, e.g. 2.5rem */
.nav-links li:last-child {
  margin-right: 2.5rem;
}

/* Link styling */
.nav-links a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #fff;
}

/* Hide the toggle button on desktop */
.nav-toggle {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: none;
}
.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
}

/* -----------------------------
   5) Hero section 
------------------------------ */
.hero {
  /* Slightly shorter height so next section is visible */
  min-height: 75vh;
  width: 100vw;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.hero-overlay {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 800px;
  margin: 0 1rem;
}
.hero-overlay h1 {
  color: var(--orange);
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.hero-overlay p {
  color: var(--whitish);
}

/* -----------------------------
   6) Main content
------------------------------ */
main {
  background: linear-gradient(to right, #b079dd, #ffffff);
  padding: 0 1rem 4rem;
}

/* Project sections inside main */
.content-section {
  max-width: 1000px;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Card styling */
.card {
  background: linear-gradient(to right, #000000, var(--dark-violet));
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}
.card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}
.card h2 {
  color: #8afff9;
  margin-bottom: 0.75rem;
}

/* -----------------------------
   7) Footer
------------------------------ */
.footer {
  background-color: var(--black-violet);
  color: #ac84d2;
  padding: 1.5rem 0;
  text-align: center;
}

/* -----------------------------
   8) Keyframe animations
------------------------------ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------
   9) Responsive: show toggle/hide links on mobile
------------------------------ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--black-violet);
    margin: 0;
    padding: 1rem 0;
  }
  .nav-links li {
    text-align: center;
    margin: 1rem 0;
  }
  /* Remove margin on last link in mobile if desired */
  .nav-links li:last-child {
    margin-right: 0;
  }
}
