/* ==== Base ==== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: #000000;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  color: #f5e6b8;

  /* Diagonal black -> gold gradient */
  background: linear-gradient(
    135deg,
    #000000 0%,
    #1a1404 35%,
    #3a2f0b 65%,
    #bfa14a 100%
  );

  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #f5e6b8;
}

a:hover {
  color: #fff1a8;
}


/* ==== Header ==== */

header {
  padding: 90px 20px 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}

header h1 {
  margin: 0;
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 2px;

  background: linear-gradient(
    90deg,
    #f5e6b8,
    #d4af37,
    #fff1a8
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  transition: transform 0.3s ease;
}

header h1:hover {
  transform: scale(1.05);
}

header p {
  margin-top: 18px;
  font-size: 18px;
  color: #e8d9a8;
  letter-spacing: 0.5px;
}


/* ==== Navigation ==== */

nav {
  margin-top: 40px;
}

nav a {
  display: inline-block;
  margin: 8px;
  padding: 12px 28px;

  border-radius: 999px;

  background: rgba(212, 175, 55, 0.12);
  color: #f5e6b8;

  font-weight: 500;

  border: 1px solid rgba(212, 175, 55, 0.45);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

nav a:hover {
  background: rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);

  box-shadow:
    0 5px 20px rgba(212, 175, 55, 0.2);
}


/* ==== Main Container ==== */

.main {
  max-width: 980px;
  margin: 0 auto 90px;
  padding: 0 20px;
}


/* ==== Sections ==== */

.section {
  background: rgba(0, 0, 0, 0.5);

  /* Hidden before animation */
  opacity: 0;

  /* Start slightly lower */
  transform: translateY(30px);

  border-radius: 20px;

  padding: 45px;
  margin-top: 45px;

  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6);

  border: 1px solid rgba(212, 175, 55, 0.25);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease,
    box-shadow 0.3s ease;
}


/* Visible state */

.section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Hover effect */

.section:hover {
  box-shadow:
    0 20px 50px rgba(212, 175, 55, 0.5);
}


/* ==== Section Titles ==== */

.section h2 {
  margin-top: 0;
  margin-bottom: 20px;

  font-size: 28px;
  letter-spacing: 1px;

  background: linear-gradient(
    90deg,
    #fff1a8,
    #d4af37
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ==== Section Text ==== */

.section p,
.section li {
  font-size: 17px;
  line-height: 1.9;
  color: #f3e5b1;
}

.section p + p {
  margin-top: 15px;
}

.section ul {
  padding-left: 20px;
  margin-top: 20px;
}


/* ==== Cards ==== */

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 calc(50% - 20px);

  background: rgba(0, 0, 0, 0.55);

  border-radius: 15px;
  padding: 20px;

  border: 1px solid rgba(212, 175, 55, 0.08);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);

  box-shadow:
    0 12px 28px rgba(212, 175, 55, 0.5);

  border-color:
    rgba(212, 175, 55, 0.3);
}


/* ==== Card Titles ==== */

.card h3 {
  margin-top: 0;
  margin-bottom: 10px;

  font-size: 20px;

  background: linear-gradient(
    90deg,
    #fff1a8,
    #d4af37
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ==== Card Text ==== */

.card p,
.card li {
  font-size: 16px;
  margin-top: 8px;
}


/* ==== Status ==== */

.status {
  margin-top: 30px;

  padding: 20px 24px;

  border-radius: 14px;

  background:
    linear-gradient(
      90deg,
      #3a2f0b,
      #d4af37
    );

  color: #1a1404;

  font-weight: 700;
  letter-spacing: 0.5px;

  box-shadow:
    0 8px 25px rgba(212, 175, 55, 0.2);
}


/* ==== Accordion ==== */

.accordion h3 {
  cursor: pointer;

  background:
    rgba(212, 175, 55, 0.1);

  padding: 10px;

  border-radius: 8px;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.accordion h3:hover {
  background:
    rgba(212, 175, 55, 0.2);
}

.accordion h3.active {
  background:
    rgba(212, 175, 55, 0.3);
}

.accordion-content {
  display: none;
  margin-top: 10px;
}

.accordion-content ul {
  padding-left: 20px;
}


/* ==== Demo ==== */

.demo-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.demo-container input {
  padding: 10px 15px;

  font-size: 16px;

  border-radius: 8px;

  border:
    1px solid rgba(212, 175, 55, 0.45);

  background:
    rgba(0, 0, 0, 0.45);

  color: #f5e6b8;

  outline: none;
}

.demo-container input:focus {
  border-color: #d4af37;

  box-shadow:
    0 0 12px rgba(212, 175, 55, 0.25);
}

.demo-container input::placeholder {
  color: #9d8b5c;
}

.demo-container button {
  padding: 10px 15px;

  font-size: 16px;

  border-radius: 8px;

  border:
    1px solid rgba(212, 175, 55, 0.45);

  background:
    rgba(212, 175, 55, 0.2);

  color: #f5e6b8;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.demo-container button:hover {
  background:
    rgba(212, 175, 55, 0.35);

  transform: translateY(-2px);

  box-shadow:
    0 5px 15px rgba(212, 175, 55, 0.2);
}


/* ==== Demo Output ==== */

.output-box {
  margin-top: 20px;

  padding: 15px;

  background:
    rgba(0, 0, 0, 0.55);

  border-radius: 12px;

  font-family: monospace;

  color: #f3e5b1;

  border:
    1px solid rgba(212, 175, 55, 0.1);
}


/* ==== Contact ==== */

.contact-email {
  font-size: 18px;
  font-weight: 600;
}

.contact-email a {
  color: #fff1a8;
  text-decoration: underline;
}


/* ==== Quotes ==== */

#quote {
  margin-top: 25px;

  font-size: 16px;

  font-style: italic;

  color: #d4af37;

  text-align: center;
}


/* ==== Footer ==== */

.footer {
  text-align: center;

  padding: 35px 20px;

  font-size: 14px;

  color: #e8d9a8;

  opacity: 0.8;
}


/* ==== Mobile ==== */

@media (max-width: 700px) {

  header {
    padding: 60px 15px 40px;
  }

  header h1 {
    font-size: 38px;
  }

  header p {
    font-size: 16px;
  }

  nav a {
    margin: 5px;
    padding: 10px 18px;
  }

  .main {
    padding: 0 15px;
  }

  .section {
    padding: 30px 25px;
    margin-top: 30px;
  }

  .section h2 {
    font-size: 24px;
  }

  .card {
    flex: 1 1 100%;
  }

  .demo-container {
    flex-direction: column;
    align-items: stretch;
  }

  .demo-container input,
  .demo-container button {
    width: 100%;
    margin: 0;
  }
}
