/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #0f0f0f;
  color: #cccccc;
  scroll-behavior: smooth;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for consent bar */
}
@media (max-width: 768px) {
  body {
    padding-bottom: 110px; /* More space for consent bar on mobile */
  }
}

/* Main Content Centering and Layout for All Pages */
main {
  max-width: 900px;
  margin: 2rem auto 0 auto;
  padding: 2rem;
  background: transparent;
  border-radius: 10px;
}
main ul {
  padding-left: 2rem;
  margin-bottom: 2rem;
}

/* --- Headings: Orange with Shadow --- */
main h1, main h2, main h3 {
  color: #ff6b00;
  text-shadow: 0 2px 8px #000c;
  letter-spacing: 0.02em;
  font-weight: 900;
  margin-top: 0;
}

/* --- Links: Orange, Underline, Gold Hover --- */
main a {
  color: #ff6b00;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
main a:hover, 
main a:focus {
  color: #ffda8a;
  background: #262626;
  text-decoration: underline;
  border-radius: 3px;
}

/* Header */
.site-header {
  background-color: #121212;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}
.logo-link {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  flex-grow: 1;
}
.logo {
  height: 100px;
  max-width: 220px;
  object-fit: contain;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ff6b00;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
}
.main-nav a {
  color: #ff6b00;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: bold;
  transition: color 0.3s ease;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #ffffff;
  text-decoration: underline;
  outline: 2px dashed #ff6b00;
  outline-offset: 2px;
}

/* Search Bar */
.header-search {
  display: flex;
  align-items: center;
  margin-left: 2rem;
}
.header-search-input {
  padding: 0.5rem 1rem;
  border-radius: 3px;
  border: 1px solid #444;
  background: #1f1f1f;
  color: #fff;
  font-size: 1rem;
}
.header-search-btn {
  padding: 0.5rem 1rem;
  background: #ff6b00;
  color: #0f0f0f;
  border: none;
  border-radius: 3px;
  font-weight: bold;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}
.header-search-btn:hover,
.header-search-btn:focus {
  background: #ff8515;
  outline: 2px dashed #ff6b00;
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 2rem;
}
.hero h1 {
  color: #ff6b00;
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn-group a {
  background: #ff6b00;
  color: #0f0f0f;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s ease;
}
.btn-group a:hover,
.btn-group a:focus {
  background: #ff8515;
  outline: 2px dashed #ff6b00;
  outline-offset: 2px;
}

/* Contact Form */
form.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Why Choose Section */
.why-choose {
  text-align: center;
  padding: 4rem 2rem;
}
.why-choose-heading {
  color: #ff6b00;
}
.why-choose-text {
  max-width: 700px;
  margin: auto;
}
.why-choose-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

/* Services */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}
.card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 8px;
  flex: 1 1 260px;
  max-width: 300px;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
}
.card h3 {
  color: #ff6b00;
  margin-top: 1rem;
}
.card-icon {
  font-size: 2.5rem;
  color: #ff6b00;
  margin-bottom: 1rem;
}

/* Contact Page */
.contact-page {
  padding: 4rem 2rem;
  text-align: center;
}
.contact-section form input,
.contact-section form textarea {
  width: 100%;
  padding: 0.75rem;
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}
.contact-section form input[name="_gotcha"] {
  display: none !important;
  visibility: hidden;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  position: absolute;
  left: -9999px;
}
.contact-section form button {
  background: #ff6b00;
  color: #0f0f0f;
  border: none;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.contact-section form button:hover,
.contact-section form button:focus {
  background: #ff8515;
  outline: 2px dashed #ff6b00;
  outline-offset: 2px;
}

/* Footer */
footer {
  background: #0d0d0d;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.social-icons {
  margin-bottom: 1rem;
}
.social-icons a {
  margin: 0 0.5rem;
  font-size: 1.5rem;
  color: #ff6b00;
  transition: color 0.3s;
}
.social-icons a:hover,
.social-icons a:focus {
  color: #ffffff;
  outline: none;
}

/* Pretty tables for guides */
main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: #181818;
  color: #fff;
  font-size: 1rem;
}
main th, main td {
  border: 1px solid #333;
  padding: 0.6em 1em;
  text-align: left;
}
main th {
  background: #232323;
  color: #ff6b00;
  font-weight: bold;
}
main tr:nth-child(even) {
  background: #222;
}

/* Table of Contents Styling */
.toc {
  background: #181818;
  border-radius: 8px;
  padding: 1.3em 1.5em;
  margin: 2em 0;
  box-shadow: 0 2px 18px #0006;
  border-left: 4px solid #ff6b00;
}
.toc-title {
  color: #ff6b00;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 0.6em;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px #ff6b0036;
}
.toc ul, .toc ol {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.toc li {
  margin: 0.3em 0;
}
.toc a {
  color: #ffda8a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
  padding: 2px 4px;
  border-radius: 3px;
  display: inline-block;
}
.toc a:hover, .toc a:focus {
  color: #fff;
  background: #ff6b00;
  text-decoration: underline;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .logo-link {
    justify-content: center;
    width: 100%;
  }
  .menu-toggle {
    margin-left: auto;
    margin-right: auto;
    margin-top: 0.5rem;
    display: block;
  }
  .main-nav {
    width: 100%;
    margin: 0.5rem 0;
    flex-direction: column;
    display: none;
  }
  .main-nav.nav-visible {
    display: flex;
  }
  .main-nav a {
    padding: 1rem;
    border-top: 1px solid #1f1f1f;
    margin: 0;
    width: 100%;
    text-align: center;
  }
  .header-search {
    width: 100%;
    margin: 0.5rem 0 0 0;
    justify-content: center;
    display: flex;
  }
  .header-search-input {
    width: 70vw;
    max-width: 210px;
    min-width: 90px;
    font-size: 1rem;
    padding: 0.5rem 0.8rem;
  }
  .header-search-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
    margin-left: 0.5rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .card {
    width: 100%;
    max-width: 90%;
  }
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .btn-group a {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  /* TOC mobile fix */
  .toc {
    padding: 1em 0.7em;
    font-size: 1em;
  }
}

/* Focus Highlights */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px dashed #ff6b00;
  outline-offset: 2px;
}

/* Print-Friendly */
@media print {
  body {
    background: #fff;
    color: #000;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background: #0f0f0f;
    color: #cccccc;
  }
}

/* --- SOUND & ICON COLOR FIXES --- */
.sound-toggle i,
.airplane-btn i {
  color: #ff6b00;
  transition: color 0.3s ease;
}
.sound-toggle:hover i,
.airplane-btn:hover i {
  color: #ffffff;
}

/* --- AIRPLANE ANIMATIONS --- */
@keyframes pulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes flyaway {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-150px) scale(1.5); opacity: 0; }
}
.fly-fast {
  animation: flyaway 1s ease-out forwards;
}
.airplane-btn {
  background: none;
  border: none;
  color: #ff6b00;
  font-size: 2rem;
  cursor: pointer;
  animation: pulse 2s infinite;
  position: relative;
  overflow: visible;
}
.airplane-btn::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 3px;
  height: 18px;
  background: rgba(255, 107, 0, 0.6);
  transform: translateX(-50%);
  border-radius: 2px;
  animation: trail 0.8s infinite;
}
@keyframes trail {
  0% { height: 18px; opacity: 0.8; }
  50% { height: 12px; opacity: 0.3; }
  100% { height: 18px; opacity: 0.8; }
}

/* --- LOGO ANIMATIONS --- */
@keyframes logo-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.logo-pop {
  animation: logo-pop 1s ease;
}
.logo-glow {
  filter: drop-shadow(0 0 10px #ff6b00);
  transition: filter 0.3s ease;
}

/* --- EASTER EGG EFFECTS --- */
@keyframes flash-glow {
  0%, 100% { filter: drop-shadow(0 0 0px #ff6b00); }
  50% { filter: drop-shadow(0 0 12px #ff6b00); }
}
.easter-flash {
  animation: flash-glow 1s ease-out;
}
@keyframes glitch {
  0% { clip-path: inset(0 0 90% 0); transform: skew(0.5deg); }
  25% { clip-path: inset(10% 0 75% 0); transform: skew(-1deg); }
  50% { clip-path: inset(20% 0 50% 0); transform: skew(1deg); }
  75% { clip-path: inset(0 0 20% 0); transform: skew(-0.5deg); }
  100% { clip-path: inset(0 0 90% 0); transform: skew(0.5deg); }
}
.glitch {
  animation: glitch 0.8s ease-in-out;
}

/* --- PAGE SOUND TRANSITION HELPER --- */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.page-transition {
  animation: fade-in 0.8s ease-in;
}

/* --- TECH TERMINAL MINI-GAME --- */
#terminal-easter {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  color: #33ff33;
  padding: 2rem;
  border: 2px solid #0f0;
  font-family: 'Courier New', monospace;
  width: 90%;
  max-width: 400px;
  z-index: 9999;
  display: none;
  box-shadow: 0 0 20px #0f0;
}
#terminal-easter h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #00ff00;
}
#terminal-easter input {
  width: 100%;
  background: #000;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 0.5rem;
  font-family: monospace;
  font-size: 1rem;
  margin-top: 1rem;
}
#terminal-easter button {
  margin-top: 1rem;
  background: #000;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: monospace;
}
#terminal-easter .error {
  color: red;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
#terminal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9998;
  display: none;
}

/* Optional blinking cursor */
.blink {
  animation: blink 1s step-start 0s infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}
/* When terminal is active */
.terminal-active {
  display: block !important;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
#secret-logo {
  width: 24px !important;
  height: auto;
  opacity: 0.1;
  cursor: pointer;
  vertical-align: middle;
}

/* Consent Bar */
#consent-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #181818cc;
  color: #fff;
  padding: 0.7em 1em;
  z-index: 9999;
  text-align: center;
  font-size: 0.95em;
  box-shadow: 0 0 12px #0007;
}
#accept-consent {
  margin-left: 1em;
  background: #ff6b00;
  color: #181818;
  font-weight: bold;
  border: none;
  padding: 0.4em 1em;
  border-radius: 4px;
  cursor: pointer;
}
#consent-bar a {
  color: #ff6b00;
  text-decoration: underline;
}
