body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
}

header {
    padding: 2rem;
    background-color: #040B04; /* dark green header */
    text-align: center;
}

nav {
    background-color: #040B04; /* dark green nav */
    text-align: center;
    padding: 1rem;
}

nav a {
    color: #f0f0f0;
    text-decoration: none;
    margin: 0 2rem;
    font-weight: bold;
}

nav a:hover {
    color: #A0A0A0;
}

main {
    flex: 1; /* fills remaining space */
    background-color: #090F09; /* lighter green content area */
    padding: 2rem;
}

section {
    max-width: 800px;
    margin: 0 auto; /* center the section */
    padding: 1rem;
}

.project {
    background-color: #1e1e1e;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
}

footer {
    padding: 1rem;
    background-color: #040B04; /* dark green footer */
    text-align: center;
}

h1, p {
    margin: 0.5rem 0;
}

section h2 {
    text-align: center;
}

p {
    max-width: 600px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
    text-align: center;
}

video {
    width: 100%;
    max-width: 640px;
    border-radius: 8px;
    margin-top: 1rem;
}

a {
	color: #E0E0E0;
	text-decoration: none;
}

a:hover {
	color: #A0A0A0;
	text-decoration; underline;
}

/* Projects section */
.projects-section {
  padding: 2rem;
  background-color: #090F09;
}

/* wrapper to position optional buttons if you add them later */
.projects-wrapper {
  position: relative;
}

/* horizontal scroller */
.projects-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;           /* prevent vertical scroll inside the container */
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem;
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
  width: 100%;
}

/* hide native scrollbar (optional) */
.projects-container::-webkit-scrollbar { height: 10px; }
.projects-container::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 8px; }

/* each card */
.project-card {
  flex: 0 0 320px;              /* fixed width; adjust as needed */
  scroll-snap-align: start;
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;             /* clip the image corners */
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  transform: translateX(60px);  /* start offset to the right */
  opacity: 0;
  transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 600ms ease;
}

/* visible state -> slide into place */
.project-card.visible {
  transform: translateX(0);
  opacity: 1;
}

/* image inside card */
.project-card img {
  display: block;
  width: 100%;
  height: 180px;                /* fixed preview height */
  object-fit: cover;            /* crop to fill */
}

/* card content */
.project-card .card-body {
  padding: 1rem;
  color: #f0f0f0;
}

.project-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.project-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #cfcfcf;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Optional: Hide scrollbar but still keep scrollability */
.projects-container::-webkit-scrollbar {
  display: none;
}
.projects-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
