:root {
  --bg-900: #141417;
  --bg-800: #1e1f22;
  --panel: rgba(0,0,0,0.7);
  --muted: #bfc6c9;
  --accent: #D9A441;
  --accent-dark: #b08a34;
  --stone: #5A646E;
  --radius: 10px;
  --max-width: 1100px;
  --content-width: 900px;
  --ff-heading: "Playfair Display", serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, var(--bg-900), var(--bg-800));
  color: var(--muted);
  font-family: var(--ff-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

.site {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.header {
  background-image: url('textures/header-texture.jpg');
  background-size: cover;
  background-position: center;
  padding: 25px 16px;
  border-bottom: 2px solid rgba(255,255,255,0.03);
  box-shadow: inset 0 -10px 60px rgba(0,0,0,0.45);
}

.header .brand {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand h1 {
  margin: 0;
  font-family: var(--ff-heading);
  font-weight: 700;
  color: #000;
  font-size: 2.0rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 180ms ease;
}

.brand .tag {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.85;
}

.nav-list {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.nav-list a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 6px 10px;
  border-bottom: 3px solid transparent;
  transition: transform 180ms ease;
  background: transparent;
}

.nav-list a:hover,
.nav-list a:focus {
  transform: scale(1.2);
  border-bottom-color: var(--accent-dark);
}

#nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.nav-burger {
  display: none;
  cursor: pointer;
  user-select: none;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.03);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.05));
}


.hero {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 38px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(0,0,0,0.4));
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--ff-heading);
  font-size: 2.6rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-variant: small-caps;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.hero p {
  margin: 0;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
}

.panel {
  max-width: var(--content-width);
  margin: 18px auto;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 36px rgba(0,0,0,0.6);
}
.panel h1, .panel h2 {
  margin-top: 0;
  font-family: var(--ff-heading);
  color: var(--accent);
  font-weight: 700;
}
.panel h3 {
  color: var(--accent);
  margin: 0 0 8px;
}
.panel p {
  margin: 0.6rem 0;
  color: rgba(255,255,255,0.88);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.1));
  padding: 18px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card.clickable:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.7);
}

.footer {
  background-image: url('textures/footer-texture.jpg');
  background-size: cover;
  background-position: center;
  padding: 18px 16px;
  border-top: 2px solid rgba(255,255,255,0.03);
  margin-top: auto;
}
.footer .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
}
.footer small { color: rgba(255,255,255,0.65); }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg,var(--accent),var(--accent-dark));
  color: #111;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(184,141,58,0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(184,141,58,0.24);
}

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
  .brand h1 { font-size: 1.4rem; }
}
@media (max-width: 760px) {
  .nav-list { display: none; flex-direction: column; gap: 6px; background: rgba(255,255,255,0.02); padding: 10px; border-radius: 8px; margin-top: 10px; }
  .nav-burger { display: inline-block; }
  #nav-toggle:checked + .nav-burger + .nav-list { display: flex; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 26px 14px; }
  .panel { margin: 14px 12px; padding: 16px; }
}
@media (max-width: 420px) {
  .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.content {
  transition: max-height 0.4s ease, padding 0.4s ease;
  overflow: hidden;
  max-height: 150px;
  cursor: pointer;
}

.content.expanded {
  max-height: 600px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7);
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.5));
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  z-index: 999;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero h1,
.hero p {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero.visible h1,
.hero.visible p {
  opacity: 1;
  transform: translateY(0);
}

.trello-board {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-top: 20px;
  scrollbar-width: thin;
}

.trello-board::-webkit-scrollbar {
  height: 10px;
}
.trello-board::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
}
.trello-board::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}

.trello-list {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 14px;
  width: 260px;
  min-width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
}

.trello-list .list-title {
  color: var(--accent);
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  margin: 0 0 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.trello-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.trello-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0,0,0,0.65);
}

.trello-card .card-title {
  margin: 0 0 6px;
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  color: var(--accent);
}

.trello-card p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}

@media(max-width: 650px) {
  .trello-list {
    width: 220px;
    min-width: 220px;
  }
}

.user-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 18px;
  font-family: var(--ff-body);
}

.user-box a {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600
  font-size: 0.95rem;
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.user-box a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(0,0,0,0.1));
}

.user-box #welcome {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

@media(max-width: 760px) {
  .user-box {
    margin-top: 8px;
  }
}

.input-field {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.input-field::placeholder {
  color: rgba(255,255,255,0.45);
}

.input-field:focus {
  box-shadow: 0 0 12px rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

#user-box {
  position: fixed;
  top: 15px;
  right: 20px;
  display: flex;
  gap: 12px;
  align-items: center;

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);

  padding: 10px 16px;
  border-radius: 8px;

  font-family: Arial, sans-serif;
  z-index: 9999;
}

#user-box #welcome {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

#user-box a {
  color: #ffd8f5;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

#user-box a:hover {
  color: #fff;
  text-shadow: 0 0 5px #fff;
}

@media (max-width: 600px) {
  #user-box {
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    gap: 8px;
  }
  
  #user-box #welcome {
    font-size: 12px;
  }
  
  #user-box a {
    font-size: 12px;
  }
}
