:root {
    --accent-color: #C15925;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* General Reset */
body, h1, h2, h3, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'Quattrocento', serif;
    font-weight: 700;

    /*text-transform: uppercase;*/
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    background-color: #121212;
    color: #ffffff;
}

/* unvisited link */
a:link {
  color: red;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: white;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: var(accent-color);
  text-decoration: none;
}

/* selected link */
a:active {
  color: white;
  text-decoration: none;
}

/* Sticky Navbar */
/* Existing Sticky Navbar (unchanged) */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: transparent;
    padding: 20px;
    transition: background 0.3s;
    z-index: 1000;
    box-sizing: border-box;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Hamburger Button (mobile only) */
.hamburger {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Logo section (unchanged) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    max-height: 30px; /* adjust as needed */
    width: 100%;
    display: block;
}

.logo {
    font-size: 30px;
    color: #C15925;
    margin: 0;
}

/* Nav Links (desktop default) */
.nav-links {
    list-style: none;
    display: flex;
    transition: max-height 0.3s ease;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    display: block;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    width: 0;
    margin-top: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 20px;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        border-radius: 8px;
        display: none;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links.active {
        display: flex;
    }
}





/* Hero Section */
.hero {
    position: relative; /* important so the absolute position works */
    height: 100vh;
    /*background: url('background-bivouac.png') no-repeat center center/cover;*/
    background-color: ##023020;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

/* Create a pseudo-element to handle the blur and fade */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('background-bivouac.png') no-repeat center center / cover;
  filter: blur(8px) brightness(0.7);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 2s ease, filter 2s ease, transform 2s ease;
  z-index: 0;
}

/* When activated (after typing finishes) */
.hero.visible::before {
  opacity: 1;
  filter: blur(0) brightness(0.5);
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
  opacity: 0;
  transition: opacity 2s ease;
}

.hero.visible::after {
  opacity: 1;
}


/* Keep your hero content above the background */
.hero-content,
.scroll-indicator,
.hero-title {
  position: relative;
  z-index: 2;        /* above ::before/::after */
}


.hero::before,
.hero::after {
  z-index: 0;        /* BG + dark veil */
}

.hero-content {
  width: min(1100px, 100%);
  margin: 0 auto;
}

/* The H1 wrapper */
.hero-title {
  font-size: 0;                  /* avoid inline-gap issues between spans */
  line-height: 1.15;
  max-width: min(1000px, 92%);
  margin: 0 auto;
  text-align: center;
  display: block;
}

.hero-title, #typewriter {
  overflow: visible;   /* avoid clipping the caret */
}



.hero-content p {
  font-size: 18px;
  max-width: 620px;
  margin: 20px auto 0;
  text-wrap: balance;              /* modern, improves line breaks */

  /* Fade-in setup */
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.5s ease, transform 1.5s ease;
}

.hero-content p.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Very small phones: tighten things a bit more */
@media (max-width: 380px) {
  .hero { padding: 0 12px; }
/*  #typewriter { border-right-width: 2px; }*/
  .hero-content p { font-size: 16px; }
}

/* Typewriter: can wrap onto two lines, its own clamp */
#typewriter {
  display: inline;               /* allow natural wrapping */
  white-space: normal;           /* important: let it wrap */
  font-size: clamp(35px, 5vw, 48px);
  line-height: 1.15;
  border-right: none; 
}



/* Placeholder: single line, its own clamp */
#placeholder {
  display: inline-block;
  white-space: nowrap;           /* keep on one line */
  font-size: clamp(12px, 4.5vw, 28px);
  font-family: Courier new;
  font-weight: 200;
  line-height: 1.15;
}


.cursor {
  display: inline-block;
  width: 2px;
  height: clamp(24px, 5vw, 32px);
    margin-left: 2px;
  background: var(--accent-color, #C15925);        /* test: pure white to confirm visibility */
  vertical-align: -3px;
  animation: cursorBlink .85s steps(1) infinite;
  position: relative;
  z-index: 3;                /* sits above everything in the hero */
}

@keyframes cursorBlink { 50% { opacity: 0; } }


.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  cursor: pointer;
  opacity: 0; /* start invisible */
  transition: opacity 1.5s ease; /* smooth fade when activated */
}

.scroll-indicator.visible {
  opacity: 1;
}

.scroll-indicator .chevron {
  width: 32px;
  height: auto;
  opacity: 0.9;
  color: #C15925;
  animation: bounce 1.5s infinite;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Gentle bounce */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}


/* Projects Section */
.projects {
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.projects h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Card container */
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Card styles */
.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.5s ease;
}


.card:hover img {
    transform: scale(1.05); /* zoom on hover */
}

.card-content {
    padding: 15px;
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects {
        padding: 40px 15px;
    }

    .projects h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
    .proj-title { font-size: 32px; }
    .media-grid { grid-template-columns: 1fr; }
    .media-grid img { height: 200px; }
}

@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr 1fr; }
}

.proj-hero {
  min-height: 50vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.7)),
              var(--hero-img) center/cover no-repeat;
  text-align: center;
  padding: 80px 20px;
  margin-top: 72px; /* account for fixed navbar */
  position: relative; /* <-- added */
}

.proj-title { 
    font-size: 42px; 
    margin: 0 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* space between title and badge */
}
.proj-tag { opacity:.9; max-width: 720px; margin: 0 auto 20px; }

.proj-cta .btn { margin: 6px; }

.proj-main { padding: 30px 0; }

.proj-section { width: min(1100px, 92%); margin: 0 auto 48px; }
.proj-section h2 { font-size: 28px; margin: 0 0 16px; }

.proj-meta { display:flex; gap:18px; flex-wrap:wrap; opacity:.9; padding-left:0; list-style:none; }

.feat-list { text-align:left; margin: 0 auto; max-width: 800px; }

.media-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.media-grid img { width:100%; height:220px; object-fit:cover; border-radius:10px; }
.video-embed { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.video-embed iframe { width:100%; height:100%; border:0; border-radius:10px; }

.dl-buttons { display:flex; gap:10px; flex-wrap:wrap; }

.roadmap { list-style: none; padding-left:0; opacity:.9; }
.back-link { text-align:center; margin: 20px 0 60px; }

.btn {
  display:inline-block; padding:10px 16px; border:1px solid #fff2;
  border-radius:8px; text-decoration:none; color:#fff;
}
.btn-accent { background: var(--accent-color); border-color: transparent; }

.devlog { display:grid; gap:16px; }
.devlog-item { padding:16px; border:1px solid #ffffff22; border-radius:10px; text-align:left; }
.devlog-item time { font-size: 12px; opacity:.7; display:block; margin-bottom:6px; }
.devlog-item h3 { margin: 0 0 6px; font-size: 18px; }
.tags { display:flex; gap:8px; list-style:none; padding:0; margin: 10px 0 0; }
.tags li { font-size: 12px; background:#ffffff10; padding:3px 8px; border-radius:999px; }

.proj-status {
  /* inline pill — not absolutely positioned */
  display: inline-block;
  background: #C15925;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  vertical-align: middle;
  /* optional: keep title + badge on one line if space allows */
  /* white-space: nowrap; */
}

/* thumbnails inside devlog entries */
.devlog-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.devlog-thumb {
  display: inline-block;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  line-height: 0;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.devlog-thumb img {
  display: block;
  width: 140px;          /* thumbnail size */
  height: 90px;
  object-fit: cover;
}

/* modal */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 1000;
}

.img-modal.open { display: grid; }

.img-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(2px);
}

.img-modal__box {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 90vh;
  margin: 0;
}

.img-modal__img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: .75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.img-modal__cap {
  margin-top: .5rem;
  color: #ddd;
  font-size: .9rem;
  text-align: center;
}

.img-modal__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 36px; height: 36px;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
  opacity: .8;
}

body.modal-open { overflow: hidden; } /* prevent page scroll when open */







/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: black;
    margin-top: 50px;
}


