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

body {
  font-family: 'Orbitron', sans-serif;
  color: #e0e0e0;
  background-color: #050505; /* Very dark grey */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent accidental horizontal scroll */
}

a {
  color: #f0a500; /* Accent color */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffc107; /* Lighter accent on hover */
}

h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 0.75em;
  font-weight: 700; /* Bolder headings */
}

/* Hero Section Styling (CSS Background Method) */
#hero-section {
  height: 100vh; /* Full viewport height */
  position: relative; /* Needed for pseudo-element positioning */
  display: flex; /* Use flexbox for centering content */
  align-items: center; /* Center content vertically */
  justify-content: center; /* Center content horizontally */
  text-align: center;
  padding: 0 1rem; /* Add some horizontal padding */
  overflow: hidden; /* Hide anything that might overflow */
}

/* Background Image via Pseudo-element */
#hero-section::before {
  content: ""; /* Required for pseudo-elements */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/hero-bg.png'); /* Path relative to CSS file */
  background-size: 100% 100%; /* Cover the entire section */
  background-position: center center; /* Center the background */
  opacity: 0.4; /* Adjust visibility (0.0 to 1.0) */
  z-index: 1; /* Place behind the content */
  pointer-events: none; /* Prevent interaction (like right-click) */
}

/* Content within the Hero Section */
.hero-content-alt {
  position: relative; /* Ensure it's above the ::before pseudo-element */
  z-index: 2;
  max-width: 900px; /* Limit content width */
  padding: 2rem; /* Optional padding */
}

/* Styles for H1 (including glitch) and P inside the hero */
.hero-content-alt h1 {
  font-size: clamp(3rem, 10vw, 6rem); /* Responsive font size */
  color: #fff;
  margin-bottom: 0.5em;
}
.hero-content-alt h1.glitch {
  animation: glitch-flicker 4s infinite alternate; /* Apply glitch animation */
  text-shadow: /* Initial text shadow for glitch */
    0 0 5px rgba(255, 0, 255, 0.6),
    0 0 10px rgba(0, 255, 255, 0.6),
    0 0 15px rgba(255, 255, 0, 0.4);
}

.hero-content-alt p {
  font-size: clamp(1rem, 3vw, 1.5rem); /* Responsive font size */
  color: #ccc; /* Slightly dimmer text */
  margin-bottom: 1rem; /* Reduced margin before buttons */
}

/* Button Row Styling */
.button-row {
  margin-top: 2rem; /* Space above the button row */
}

/* Button Style (Applied to the <a> tag via {.btn}) */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  margin: 0.5rem; /* Space around each button */
  background: #f0a500; /* Accent background */
  color: #111 !important; /* Dark text for contrast, !important may be needed */
  font-weight: bold;
  border-radius: 50px; /* Pill shape */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  background: #ffc107; /* Lighter accent on hover */
  color: #000 !important;
  transform: translateY(-3px); /* Slight lift effect */
  box-shadow: 0 5px 15px rgba(240, 165, 0, 0.4); /* Glow effect */
}

/* Features Section */
.features {
  /* Layout */
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr; /* 3 equal columns */
  gap: 2rem; /* Gap between grid items */
  width: 100%;
  box-sizing: border-box;

  /* Visuals (Merged from .paper) */
  max-width: 1100px; /* Use the wider max-width */
  margin: 6rem auto 4rem auto; /* Vertical spacing + horizontal centering */
  background: #111; /* Paper background color */
  padding: 3rem; /* Paper padding */
  border: 1px solid #333; /* Paper border */
  border-radius: 8px; /* Paper rounded corners */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* Paper shadow */
}

/* SIMPLIFIED Feature Item Styling */
.feature {
  /* Remove background, border, padding, radius from individual items */
  text-align: center;
  /* Keep hover effect if desired, but maybe remove background change */
  transition: transform 0.3s ease;
  overflow: hidden; /* Prevent overflow */
}
.feature:hover {
    transform: translateY(-5px);
    /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); */ /* Optional: remove shadow on hover too */
    /* background: rgba(255, 255, 255, 0.05); */ /* Remove background change on hover */
}
.feature h1 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #f0a500;
  text-align: center;
}
.feature p {
    color: #bbb;
    font-size: 1rem;
    text-align: center;
}

/* Styling for Feature Icons */
.feature img {
  display: block; /* Treat image as a block for centering */
  max-height: 80px; /* Limit image height (adjust as needed) */
  width: auto; /* Maintain aspect ratio */
  margin-left: auto; /* Center the image horizontally */
  margin-right: auto; /* Center the image horizontally */
  margin-bottom: 1.5rem; /* Add space below the image */
}

/* --- Ensure other .feature styles are present --- */
.feature {
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}
.feature:hover {
    transform: translateY(-5px);
}
.feature h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #f0a500;
  text-align: center;
}
.feature p {
    color: #bbb;
    font-size: 1rem;
    text-align: center;
}

/* --- Keep Paper Style for the actual About Page --- */
.paper {
  max-width: 700px;
  margin: 6rem auto 4rem auto;
  background: #111;
  padding: 3rem;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.paper h1, .paper h2 { color: #f0a500; margin-bottom: 1.5rem; }
.paper p, .paper li { color: #ccc; margin-bottom: 1rem; line-height: 1.7; }
.paper hr { border: 0; height: 1px; background: #333; margin: 2rem 0; }

/* Glitch Animation Keyframes */
@keyframes glitch-flicker {
  0% { text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.05em -0.025em 0 rgba(0,255,0,.75), -0.025em 0.05em 0 rgba(0,0,255,.75); }
  14% { text-shadow: 0.05em 0 0 rgba(255,0,0,.75), -0.05em -0.025em 0 rgba(0,255,0,.75), -0.025em 0.05em 0 rgba(0,0,255,.75); }
  15% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75); }
  49% { text-shadow: -0.05em -0.025em 0 rgba(255,0,0,.75), 0.025em 0.025em 0 rgba(0,255,0,.75), -0.05em -0.05em 0 rgba(0,0,255,.75); }
  50% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75); }
  99% { text-shadow: 0.025em 0.05em 0 rgba(255,0,0,.75), 0.05em 0 0 rgba(0,255,0,.75), 0 -0.05em 0 rgba(0,0,255,.75); }
  100% { text-shadow: -0.025em 0 0 rgba(255,0,0,.75), -0.025em -0.025em 0 rgba(0,255,0,.75), -0.025em -0.05em 0 rgba(0,0,255,.75); }
}

/* Footer */
.site-footer {
  font-size: 0.9rem;
  color: #777; /* Dimmer footer text */
  text-align: center;
  padding: 2rem 1rem; /* Padding above/below */
  margin-top: 4rem; /* Space above footer */
  border-top: 1px solid #222; /* Subtle separator line */
}
.site-footer p { margin: 0; }
.site-footer a { color: #aaa; /* Slightly brighter footer links */ }
.site-footer a:hover { color: #f0a500; /* Accent on hover */ }

/* Navbar Styling Overrides */
#quarto-header {
  padding: 1rem 2rem;
  position: absolute; /* Position over hero */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10; /* Ensure it's above hero content */
  background-color: transparent !important; /* Override default background */
  border-bottom: none !important;
  box-shadow: none !important;
}
.navbar {
  padding: 0;
  margin: 0;
  background-color: transparent !important; /* Force transparent background */
  border: none !important;
  box-shadow: none !important;
}
.navbar-nav {
  display: flex; /* Arrange links horizontally */
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.navbar-nav .nav-link {
  color: #e0e0e0 !important; /* Force light color */
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: bold;
  transition: color 0.3s ease;
  background-color: transparent !important; /* Ensure link background is transparent */
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #f0a500 !important; /* Force accent color on hover/focus */
  background-color: transparent !important;
}
/* Hide the Quarto search component */
#quarto-search {
  display: none !important;
}
/* Keep rule for tools div just in case */
.quarto-navbar-tools {
  display: none !important;
}
/* Hide default logo area if not needed */
.navbar-brand.navbar-brand-logo {
  display: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-content-alt h1 { font-size: clamp(2.5rem, 12vw, 4rem); } /* Adjusted selector */
  .hero-content-alt p { font-size: clamp(0.9rem, 4vw, 1.2rem); } /* Adjusted selector */
  .features { padding: 3rem 1rem; }
  .feature { padding: 1.5rem; }
  .paper { margin: 4rem 1rem; padding: 1.5rem; }
  #quarto-header { padding: 0.5rem 1rem; } /* Adjust header padding */
  .navbar-nav .nav-link { padding: 0.5rem; } /* Adjust navbar link padding */
}