/* Basic Styles */
body, html {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

.page-wrapper {
  position: relative;
  z-index: 1;
}

.top-bar, .bottom-bar {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 1rem;
  z-index: 2;
}

.top-bar {
  top: 0;
}

.bottom-bar {
  bottom: 0;
}

.top-bar a, .bottom-bar a {
  margin: 0 1rem;
  color: white;
  text-decoration: none;
  font-family: 'Red Hat Display', sans-serif;
}

.container {
  padding: 5rem 2rem;
}

/* Parallax Background */
#background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-attachment: fixed;
  transition: background-image 0.5s ease-in-out;
}

/* Slide Sections */
.slide {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.center-quote {
  text-align: center;
}

.homepage-quote {
  font-family: 'Droid Serif', serif;
  font-size: 3rem;
}

/* Light & Dark Modes */
body.dark-mode {
  background-color: #121212;
}

body.dark-mode #background-container {
  background-image: url('/assets/klungkung_bali_vert.png');
  background-position: bottom;
}

body.dark-mode .top-bar a,
body.dark-mode .bottom-bar a,
body.dark-mode .slide {
  color: white;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

body.light-mode {
  background-color: #f5f5f5;
}

body.light-mode #background-container {
  background-image: url('/assets/bondi-beach-nsw.png');
}

body.light-mode .top-bar a, 
body.light-mode .bottom-bar a, 
body.light-mode .slide {
  color: black;
  text-shadow: 1px 1px 3px rgba(255,255,255,0.4);
}

/* About Page Styles */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.milestone.reverse {
    flex-direction: row-reverse;
}

.milestone img {
    width: 100px;
    height: 100px;
    cursor: pointer;
}

.milestone-content .caption {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.2rem;
    margin: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Project Page Styles */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.panel { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 12px; padding: 1.25rem; }
.card { border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 1rem; margin-block: .75rem; }
.tag { display: inline-block; padding: .25rem .5rem; background: rgba(255, 255, 255, 0.1); border-radius: 999px; font-size: .85rem; }
.field { margin-block: .75rem; }
label { display:block; font-weight:600; margin-bottom:.25rem; }
input, select, textarea { width: 100%; padding: .65rem .75rem; border:1px solid rgba(255, 255, 255, 0.2); border-radius:8px; background-color: rgba(0,0,0,0.2); color: white;}
button, .btn { appearance:none; border:0; border-radius:9px; padding:.65rem .9rem; background: #eee; color:#111; font-weight:600; cursor:pointer; text-decoration:none; }
.helper { color: #ccc; font-size: .95rem; }
ul { padding-left: 1.25rem; }
.small { font-size: .9rem; color: #ccc; }

body.light-mode .panel { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .card { border-color: rgba(0, 0, 0, 0.1); }
body.light-mode .tag { background: rgba(0, 0, 0, 0.05); }
body.light-mode input, body.light-mode select, body.light-mode textarea { border-color: rgba(0, 0, 0, 0.1); background-color: rgba(255,255,255,0.5); color: black;}
body.light-mode button, body.light-mode .btn { background: #111; color: #f5f5f5;}
body.light-mode .helper { color: #555; }
body.light-mode .small { color: #555; }