/* ============================================
   Tim Bellamy - Recovered Site Styles
   ============================================ */

/* Inter Font (Google Fonts CDN) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/* CSS Custom Properties */
:root {
  --fluo-green: #39ff14;
  --background: #000;
  --foreground: #fff;
}

:root.light {
  --background: #fff;
  --foreground: #000;
}

:root.dark {
  --background: #000;
  --foreground: #fff;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  font-feature-settings: normal;
  font-variation-settings: normal;
  tab-size: 4;
  line-height: 1.5;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  background-color: var(--background);
  color: var(--foreground);
  transition: color 0.3s, background-color 0.3s;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* Layout */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  main { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  main { padding: 0 2rem; }
}

/* Particle Canvas Background */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
}

/* ============================================
   Header
   ============================================ */
header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--fluo-green);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fluo-green);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: none;
  gap: 1rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Header Nav Link with animated underline */
.header-nav-link {
  position: relative;
  transition: color 0.2s;
}

.header-nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--fluo-green);
  transition: width 0.3s ease-in-out;
}

.header-nav-link.active::after,
.header-nav-link:hover::after {
  width: 100%;
}

.header-nav-link:hover {
  color: var(--fluo-green);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid #333;
  background: transparent;
  color: var(--foreground);
  transition: background-color 0.2s, color 0.2s;
}

.mobile-menu-btn:hover {
  background: #222;
}

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 50;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--foreground);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--fluo-green);
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--foreground);
  font-size: 2rem;
}

/* Theme toggle */
.theme-toggle {
  padding: 0.5rem;
  border-radius: 9999px;
  background-color: var(--fluo-green);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background: #fff;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* ============================================
   Home Page
   ============================================ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .hero { padding: 3rem 1.5rem; }
}
@media (min-width: 1024px) {
  .hero { padding: 3rem 2rem; }
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; margin-bottom: 1.5rem; }
}

.hero h2 {
  font-size: 1.5rem;
  color: var(--fluo-green);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero h2 { font-size: 1.875rem; margin-bottom: 2rem; }
}

.hero p {
  max-width: 42rem;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .hero p { font-size: 1.25rem; margin-bottom: 2rem; }
}

/* CTA Buttons */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cta-group {
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 3rem;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--fluo-green);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s;
  border: none;
  width: 100%;
}

@media (min-width: 640px) {
  .btn-primary { width: auto; }
}

.btn-primary:hover {
  background-color: #fff;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--fluo-green);
  color: var(--fluo-green);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
}

@media (min-width: 640px) {
  .btn-outline { width: auto; }
}

.btn-outline:hover {
  background-color: var(--fluo-green);
  color: #000;
}

.btn-outline svg {
  margin-left: 0.5rem;
  width: 1rem;
  height: 1rem;
}

/* Profile Image */
.profile-image {
  position: relative;
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  border: 2px solid var(--fluo-green);
  overflow: hidden;
  transition: transform 0.3s;
}

@media (min-width: 640px) {
  .profile-image { width: 16rem; height: 16rem; }
}

.profile-image:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.profile-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Content Pages (About, Contact, Privacy, Ventures)
   ============================================ */
.page-content {
  max-width: 56rem;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .page-content { padding: 3rem 1.5rem; }
}
@media (min-width: 1024px) {
  .page-content { padding: 3rem 2rem; }
}

.page-content h1 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--fluo-green);
}

@media (min-width: 640px) {
  .page-content h1 { font-size: 2.25rem; }
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fluo-green);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

@media (min-width: 640px) {
  .page-content p { font-size: 1.25rem; }
}

.page-content .space-y > * + * {
  margin-top: 1.5rem;
}

/* About page grid */
.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .recipe-grid { grid-template-columns: 1fr 1fr; }
}

.recipe-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.recipe-card svg {
  width: 2rem;
  height: 2rem;
  color: var(--fluo-green);
  flex-shrink: 0;
  stroke: var(--fluo-green);
}

.recipe-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.recipe-card p {
  font-size: 1rem;
  margin-bottom: 0;
}

/* Ventures page */
.venture-card {
  border: 1px solid var(--fluo-green);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s;
}

.venture-card:hover {
  transform: translateY(-2px);
}

.venture-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.venture-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fluo-green);
  margin-bottom: 0;
}

.venture-year {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
  background-color: var(--fluo-green);
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 1rem;
}

.venture-year-soon {
  background-color: transparent;
  color: var(--fluo-green);
  border: 1px solid var(--fluo-green);
}

.venture-card p {
  margin-bottom: 1rem;
}

.venture-card .venture-link {
  color: var(--fluo-green);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.venture-card .venture-link:hover {
  text-decoration: underline;
}

.venture-inline-link {
  color: var(--fluo-green);
  transition: opacity 0.2s;
}

.venture-inline-link:hover {
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  background: #1f2937;
  border: none;
  border-radius: 0.25rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
}

:root.light .contact-form input,
:root.light .contact-form textarea {
  background: #f3f4f6;
  color: #000;
  border: 1px solid #d1d5db;
}

.contact-form textarea {
  height: 8rem;
  resize: vertical;
}

.contact-form button[type="submit"] {
  background-color: var(--fluo-green);
  color: #000;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 700;
  border: none;
  transition: background-color 0.2s;
  align-self: flex-start;
}

.contact-form button[type="submit"]:hover {
  background-color: #fff;
}

/* Privacy Policy */
.privacy-content ul {
  list-style: disc;
  list-style-position: inside;
  padding-left: 1rem;
}

.privacy-content ul li {
  margin-bottom: 0.5rem;
}

.privacy-content a {
  color: var(--fluo-green);
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
footer {
  padding: 1.25rem;
  border-top: 1px solid var(--fluo-green);
}

.footer-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-left {
    flex-direction: row;
    gap: 1rem;
  }
}

.footer-left a {
  color: var(--fluo-green);
}

.footer-left a:hover {
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--fluo-green);
  transition: stroke 0.2s;
}

.social-links a:hover svg {
  stroke: #fff;
}

:root.light .social-links a:hover svg {
  stroke: #000;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
