/* ============================================
   Modern Site Styles - Jasper Gilley
   ============================================ */

/* ---- CSS Reset & Base Styles ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Spectral', Georgia, 'Times New Roman', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #ffffff;
  background: #000000;
  overflow-x: hidden;
  line-height: 1.7;
  font-weight: 300;
}

/* Prevent text selection on repeated clicks */
* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* ---- Canvas Background ---- */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #000000;
}

/* ---- Page Layout ---- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  font-family: 'Spectral', Georgia, serif;
}

.site-title:hover {
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ---- Main Content ---- */
.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  min-height: 100vh;
}

/* ---- Hero Card (Index Page) ---- */
.hero-card {
  max-width: 600px;
  width: 100%;
  padding: 3rem 2.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeIn 1s ease-out 0.2s both;
  font-family: 'Spectral', Georgia, serif;
}

/* ---- Navigation Grid ---- */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.1) 0%,
              rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:active {
  transform: translateY(0);
}

.nav-link-text {
  position: relative;
  z-index: 1;
}

/* ---- Content Card (About Page) ---- */
.content-card {
  max-width: 700px;
  width: 100%;
  padding: 3rem 2.5rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: fadeInUp 0.8s ease-out;
}

.page-title {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Spectral', Georgia, serif;
}

.about-content {
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.about-content a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.about-content a:hover {
  border-bottom-color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.back-link-container {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* ---- Footer ---- */
.site-footer {
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer-links {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.25rem 0;
}

.footer-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.3);
  user-select: none;
}

/* ---- Animations ---- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive Design ---- */

/* Tablets */
@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .site-title {
    font-size: 1.25rem;
  }

  .main-content {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-card,
  .content-card {
    padding: 2.5rem 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .nav-grid {
    gap: 0.875rem;
  }

  .nav-link {
    padding: 1.25rem 0.875rem;
    font-size: 1rem;
  }

  .about-content p {
    font-size: 1.0625rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .site-header {
    padding: 1rem 1.25rem;
  }

  .site-title {
    font-size: 1.125rem;
  }

  .main-content {
    padding: 4.5rem 1.25rem 2.5rem;
  }

  .hero-card,
  .content-card {
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .nav-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .nav-link {
    padding: 1.125rem 1rem;
    font-size: 1rem;
  }

  .about-content p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .footer-links {
    font-size: 0.875rem;
    gap: 0.5rem;
  }
}

/* Large Desktops */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 4rem;
  }

  .page-title {
    font-size: 3.5rem;
  }

  .nav-link {
    font-size: 1.25rem;
    padding: 1.75rem 1.25rem;
  }

  .about-content p {
    font-size: 1.25rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .hero-card,
  .content-card {
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .nav-link {
    border: 2px solid rgba(255, 255, 255, 0.2);
  }

  .nav-link:hover {
    border: 2px solid rgba(255, 255, 255, 0.5);
  }
}
