/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Annie+Use+Your+Telescope&family=Source+Code+Pro:wght@400;600&display=swap');

/* -----------------------------------------
   Global Styles and Reset
----------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Code Pro', monospace;
  background-color: #2b2b33;
  overflow-x: hidden;
  color: #e8e8ef;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* -----------------------------------------
   Static Background
----------------------------------------- */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: url('resources/background.png') no-repeat center center/cover;
  background-attachment: fixed;
  z-index: -2;
}

/* -----------------------------------------
   Sticky Top Navigation
----------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 28px;
  background: rgba(20, 20, 28, 0.55);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #d7d7e2;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #7deed9;
}

/* -----------------------------------------
   Main Content Panel
----------------------------------------- */
.content-panel {
  position: relative;
  margin: 32px auto;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.section {
  padding: 64px 28px;
}

/* -----------------------------------------
   Introduction Section
----------------------------------------- */
.intro {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  overflow: hidden;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      rgba(0, 0, 0, 0.1),
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.85)
    ),
    url('resources/intro_background.png') no-repeat center center;
  background-size: cover;
  z-index: -1;
  border-radius: 14px;
}

.intro-content {
  max-width: 820px;
  padding: 0 16px;
}

.intro h2 {
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 3.2rem;
  margin-bottom: 22px;
  color: #ffe17f;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8));
}

.intro p {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
  color: #f3f3f7;
}

.intro-header {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.intro-logo {
  width: 320px;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.7));
}

.intro-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.ghost-button {
  display: inline-block;
  padding: 12px 26px;
  font-size: 1rem;
  text-decoration: none;
  color: #7deed9;
  border: 1px solid #7deed9;
  border-radius: 10px;
  transition: background 0.25s, color 0.25s;
}

.ghost-button:hover {
  background: #7deed9;
  color: #14141c;
}

/* -----------------------------------------
   Section Headings
----------------------------------------- */
.section-title {
  font-family: 'Annie Use Your Telescope', cursive;
  font-size: 3.4rem;
  text-align: center;
  color: #ff9a68;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.7));
}

.contact .section-title {
  color: #68ffb1;
}

.section-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: #c3c3d2;
  margin: 6px auto 38px;
  max-width: 620px;
}

/* -----------------------------------------
   Project Cards
----------------------------------------- */
.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.project-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 26px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-align: left;
  transition: transform 0.2s, border-color 0.2s;
}

.project-item:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 238, 217, 0.4);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.project-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(125, 238, 217, 0.12);
  color: #7deed9;
}

.project-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title {
  font-size: 1.8rem;
  color: #ffffff;
  margin: 0;
}

.project-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9fe9da;
  background: rgba(125, 238, 217, 0.1);
  border: 1px solid rgba(125, 238, 217, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
}

.project-desc {
  font-size: 1.02rem;
  color: #e4e4ee;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  color: #d7d7e2;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7deed9;
}

/* Project button */
.project-button {
  display: inline-block;
  padding: 13px 28px;
  font-size: 1.05rem;
  background: #7deed9;
  color: #11161f;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.25s, transform 0.15s;
}

.project-button:hover {
  background: #a7f0e1;
  transform: translateY(-1px);
}

.project-button--soon {
  background: rgba(255, 255, 255, 0.12);
  color: #cfcfdb;
  border: 1px dashed rgba(255, 255, 255, 0.35);
}

.project-button--soon:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Video Embed */
.project-video {
  margin: 0 0 20px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
}

.project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* -----------------------------------------
   Contact Section
----------------------------------------- */
.contact-email {
  text-align: center;
  font-size: 1.25rem;
  margin-bottom: 28px;
}

.contact-email a {
  color: #68ffb1;
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.9rem;
  color: #b8b8c6;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-family: 'Source Code Pro', monospace;
  border-radius: 8px;
  font-size: 1rem;
}

.contact textarea {
  min-height: 130px;
  resize: vertical;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #9292a2;
}

.contact button {
  align-self: center;
  font-family: 'Source Code Pro', monospace;
  background: #e4a7e7;
  color: #1a1020;
  padding: 13px 36px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s;
}

.contact button:hover {
  background: #f1c4f3;
}

/* -----------------------------------------
   Footer
----------------------------------------- */
.site-footer {
  text-align: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  font-size: 0.92rem;
  color: #b0b0bf;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 14px;
}

.footer-links a {
  text-decoration: none;
  color: #c8c8d6;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #7deed9;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* -----------------------------------------
   Legal / Document pages (privacy, terms)
----------------------------------------- */
.doc-page {
  position: relative;
  max-width: 820px;
  margin: 32px auto;
  background: rgba(255, 255, 255, 0.92);
  color: #23232b;
  border-radius: 16px;
  padding: 48px 52px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  line-height: 1.7;
}

.doc-page a {
  color: #1f8f7d;
}

.doc-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.95rem;
  text-decoration: none;
  color: #1f8f7d;
}

.doc-back:hover {
  text-decoration: underline;
}

.doc-page h1 {
  font-size: 2.2rem;
  margin-bottom: 4px;
  color: #16161c;
}

.doc-updated {
  color: #6a6a78;
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.doc-page h2 {
  font-size: 1.3rem;
  margin: 32px 0 10px;
  color: #16161c;
}

.doc-page h3 {
  font-size: 1.08rem;
  margin: 22px 0 8px;
  color: #2a2a33;
}

.doc-page p,
.doc-page ul {
  margin-bottom: 14px;
  font-size: 1rem;
}

.doc-page ul {
  padding-left: 22px;
}

.doc-page li {
  margin-bottom: 6px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}

.doc-table th,
.doc-table td {
  border: 1px solid #d8d8e0;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: #f1f1f5;
}

.doc-footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #e2e2ea;
  font-size: 0.9rem;
  color: #6a6a78;
}

/* -----------------------------------------
   Responsive
----------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .intro h2 {
    font-size: 2.2rem;
  }
  .intro p {
    font-size: 1rem;
  }
  .section-title {
    font-size: 2.4rem;
  }
  .section {
    padding: 48px 18px;
  }
  .project-title {
    font-size: 1.5rem;
  }
  .doc-page {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    height: 30px;
  }
  .project-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .project-heading {
    align-items: center;
  }
  .project-button {
    width: 100%;
    text-align: center;
  }
}
