/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Garamond", serif;
}

body {
  background: #1a120b;
  color: #e8d8b0;
}

/* LAYOUT */
.container {
  display: block; /* 👈 remove flex */
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  position: fixed;   /* 👈 locks it in place */
  left: 0;
  top: 0;

  width: 25%;
  min-width: 220px;
  height: 100vh;     /* full height */

  background: linear-gradient(180deg, #2a1d14, #1a120b);
  border-right: 2px solid #bfa060;
  padding: 30px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ===== SIDEBAR BUTTONS ===== */
button {
  outline: none;
  border: none;
  background: none;
  color: #d6b36a;
}

button:focus {
  outline: none;
}

button:active {
  outline: none;
  box-shadow: none;
}

/* Mobile tap highlight removal */
button {
  -webkit-tap-highlight-color: transparent;
}





.logo {
  color: gold;
  font-size: 1.5em;
  text-shadow: 0 0 10px gold;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 20px 0;
  cursor: pointer;
  transition: 0.3s;
}

.sidebar li:hover {
  color: gold;
  transform: translateX(5px);
}

/* BUTTON */
.join-btn {
  display: inline-block;
  background: linear-gradient(to bottom, #c9a44c, #8b6b2e);
  color: #1a1410;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
}
.join-btn:hover {
  background: #d4af37;
  transform: scale(1.05);
}

/* MAIN */
.main {
  margin-left: 25%;   /* 👈 same as sidebar width */
  width: 75%;

  height: 100vh;
  overflow-y: auto;   /* 👈 THIS enables scrolling only on right side */

  display: flex;
  flex-direction: column;
}

/* HERO IMAGE */
.hero {
  position: relative;
  height: 75%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

/* TEXT OVERLAY */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.overlay h1 {
  font-size: 3em;
  color: gold;
  text-shadow: 0 0 20px gold;
}

.overlay p {
  margin-top: 10px;
}

/* PANELS */
.panels {
  display: flex;
  height: 25%;
}

.panel {
  flex: 1;
  padding: 20px;
  border-top: 2px solid #bfa060;
  border-right: 1px solid #bfa060;

  background: linear-gradient(145deg, #2a1d14, #1a120b);
  transition: 0.3s;
  cursor: pointer;
}

.panel:last-child {
  border-right: none;
}

.panel:hover {
  background: #3a2a1a;
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(191,160,96,0.5);
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .main {
    width: 100%;
  }

  .hero {
    height: 50vh;
  }

  .panels {
    flex-direction: column;
  }
}



























/* ===== GLOBAL ===== */
body, html {
  height: 100%;
  font-family: 'Georgia', serif;
  background: linear-gradient(to bottom, #1a1410, #2b1f18, #3a2a20);
  color: #d6b36a;
  overflow-x: hidden;
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: radial-gradient(circle at center, #3a2a20, #120d0a 80%);
  
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 2.8em;
  color: #d6b36a;
  letter-spacing: 2px;

  z-index: 9999;

  opacity: 1;
  transform: scale(1);
  filter: blur(0);

  transition: 
    opacity 1.2s ease,
    transform 1.2s ease,
    filter 1.2s ease;

  text-shadow: 0 0 10px rgba(214,179,106,0.6);
}

/* ⚙️ Foundry fade */
#loader.fade-out {
  opacity: 0;
  transform: scale(1.15);
  filter: blur(14px);
  pointer-events: none;
}

/* ===== SMOKE OVERLAY ===== */
.smoke-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
  opacity: 0.2;

  z-index: 0;
  pointer-events: none;

  animation: smokeMove 80s linear infinite;
}

@keyframes smokeMove {
  from { background-position: 0 0; }
  to   { background-position: 800px 400px; }
}

/* ===== LOCK SCROLL ===== */
body.loading {
  overflow: hidden;
}


/* ===== TITLE ===== */
.main-title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;

  font-size: 4em;
  text-align: center;

  color: #d6b36a;

  text-shadow: 
    0 0 10px rgba(214,179,106,0.5),
    2px 2px 5px rgba(0,0,0,0.8);
}



/* ===== SECTIONS ===== */
.sections-row {
  display: flex;
  justify-content: center;
  padding: 100px 20px;
  gap: 20px;
  flex-wrap: wrap;
}

.section {
  background: linear-gradient(145deg, #2b1f18, #1a1410);
  border: 1px solid #b08d57;

  padding: 50px 20px;
  flex: 1;
  min-width: 250px;
  max-width: 350px;

  text-align: center;
  border-radius: 10px;

  box-shadow: 
    inset 0 0 20px rgba(0,0,0,0.6),
    0 0 10px rgba(176,141,87,0.3);
}

.section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.section p {
  margin-bottom: 20px;
}

/* ===== BUTTON ===== */
.section button {
  background: linear-gradient(to bottom, #c9a44c, #8b6b2e);
  color: #1a1410;

  border: none;
  padding: 10px 20px;
  margin-bottom: 20px;

  cursor: pointer;
  border-radius: 5px;

  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

.section button:hover {
  background: linear-gradient(to bottom, #e0c16b, #a8843a);
  transform: translateY(-2px);
}


.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
}




















/* ========================= */
/* 📱 MOBILE DESIGN SYSTEM   */
/* ========================= */
@media (max-width: 768px) {

  /* CONTAINER */
  .container {
    display: flex;
    flex-direction: column;
  }

  /* SIDEBAR → TOP BAR */
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-width: unset;

    flex-direction: column;
    align-items: center;
    text-align: center;

    border-right: none;
    border-bottom: 2px solid #bfa060;
    padding: 15px;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .sidebar li {
    margin: 0;
  }

  .sidebar button {
    font-size: 0.9em;
  }

  .join-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  /* MAIN CONTENT */
  .main {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  /* HERO */
  .hero {
    height: 40vh;
  }

  .overlay h1 {
    font-size: 2em;
  }

  .overlay p {
    font-size: 0.9em;
  }

  /* PANELS → STACK */
  .panels {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 15px;
  }

  .panel {
    max-width: 100%;
    width: 100%;
  }

  /* SECTIONS */
  .sections-row {
    flex-direction: column;
    padding: 40px 20px;
  }

  .section {
    max-width: 100%;
  }

  /* TEXT SCALING */
  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.4em;
  }

  p {
    font-size: 0.9em;
  }

}



