html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* The main content area grows to fill available space */
main {
  flex: 1;
}



/* ===== HEADER: TWO-ROW BRAND STYLE ===== */

/* Wrapper for entire header */
.site-header {
  background-color: #030303;
  border-bottom: 1px solid rgba(0, 255, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 255, 0, 0.1);
  /* Make sure text is crisp on dark */
  color: #fff;
  font-family: 'Roboto Mono', monospace;}

/* ===== TOP ROW: BRAND BAR ===== */

.brand-bar {
  display: flex;
  justify-content: center; /* center horizontally */
  align-items: center;
  padding: 1rem 1rem 0.1rem; /* a bit more top padding for presence */
  margin-bottom: 0.1rem;
  background-color: #030303;
  border-bottom: 2px solid rgba(0, 255, 0, 0.3);
  box-shadow: 0 2px 5px rgba(0, 255, 0, 0.1);
}

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Logo (with power-on + glow flicker animation) === */
.brand-logo-large {
  max-height: 90px;
  height: auto;
  width: auto;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 0 0.5px #00ff66) drop-shadow(0 0 1px #E00000);
  transition: filter 0.2s ease;
  animation:
    headerPowerOn 1.5s ease-out forwards,
    headerGlowFlicker 2.4s ease-in-out 1.6s infinite alternate;
}

/* Subtle hover intensification */
.brand-logo-large:hover {
  filter: drop-shadow(0 0 2px #00ff66) drop-shadow(0 0 4px #E00000);
}

/* === Power-on animation === */
@keyframes headerPowerOn {
  0% {
    filter: brightness(0.2) blur(2px);
    opacity: 0;
  }
  100% {
    filter: brightness(1) blur(0);
    opacity: 1;
  }
}

/* === Gentle glow flicker animation === */
@keyframes headerGlowFlicker {
  0%, 100% {
    filter: drop-shadow(0 0 0.5px #00ff66)
            drop-shadow(0 0 2px #E00000);
  }
  50% {
    filter: drop-shadow(0 0 1.5px #00ff66)
            drop-shadow(0 0 3px #E00000);
  }
}

/* ===== PAGE CONTENT WRAPPER ===== */

.page-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: #fff;
  min-height: 60vh;
}

/* === HOMEPAGE STYLING === */

.hero {
  background: radial-gradient(circle at top, #001800, #000);
  padding: 6rem 2rem;
  text-align: center;
  color: #fff;
  font-family: 'Roboto Mono', monospace;
}
.hero h1 {
  font-size: 2.4rem;
  color: #00ff66;
  text-shadow: 0 0 1px #00ff66;
  margin-bottom: 1rem;
}
.hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
}

/* === About Snippet === */
.about-snippet {
  background: #050505;
  color: #ccc;
  padding: 4rem 2rem;
  text-align: center;
  font-family: 'Roboto Mono', monospace;
}
.about-snippet h2 {
  color: #00ff66;
  margin-bottom: 1rem;
  text-shadow: 0 0 2px #00ff66;
}
.about-snippet p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}


.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;


    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}


.contact-label {
    color: #ffffff;
    font-size: 1rem;
    opacity: 0.8;
}


.contact-link {
    color: #00FF00;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}


.contact-link:hover {
    text-shadow: 0 0 15px #00FF00;
    color: #ffffff;
    cursor: pointer;
}


@media (max-width: 400px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 5px;
    }
}

/* ===== FOOTER WRAPPER ===== */
.footer {
  background: radial-gradient(circle at top, #040404 0%, #000 100%);
  border-top: 1px solid rgba(0, 255, 0, 0.25);
  padding: 1rem 1rem 1rem;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.6;
  font-family: 'Roboto Mono', monospace;
}

/* ===== SUB-FOOTER ===== */
.sub-footer {
  border-top: 1px solid rgba(0, 255, 0, 0.15);
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 0.8rem;
  font-size: 0.8rem;
  color: #777;
}

.sub-footer a {
  color: #00ffff;
}

.sub-footer a:hover {
  color: #00ff66;
}


/* The Background Dimmer */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Dark dimming */
    z-index: 1000; /* Sits on top of everything */
    justify-content: center;
    align-items: center;
}

/* The Popup Box itself */
.modal-box {
    background-color: black;
    border: 2px solid #00FF00;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    font-family: 'Consolas', monospace;
    text-align: left;
    position: relative;
}

/* The Close Button (X) */
.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    color: #00FF00;
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
}

.close-btn:hover { color: white; }

/* Link Styling in Footer */
.legal-link {
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}
.legal-link:hover { color: #00FF00; }


/* ===== BACKGROUND / GLOBAL ===== */

body {
  background-color: #000;
  background-attachment: fixed;
  margin: 0;
  color: #fff;
}

/* =========================================
   MOBILE ADJUSTMENTS (FINAL)
   ========================================= */

@media screen and (max-width: 768px) {

    /* HEADER FIXES - SIDE BY SIDE */
    .brand-link {
        flex-direction: row; /* Keep them side-by-side */
        gap: 8px; /* Slightly tighter gap on mobile */
    }

    /* Shrink logos so they fit side-by-side without overflowing */
    .brand-logo-large {
        max-height: 45px; /* Cap height to ensure they fit */
        width: auto;
    }

    /* HERO SECTION FIXES */
    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* CONTACT AREA - Stacked for neatness */
    .contact-wrapper {
        flex-direction: column;
    }

    /* MODAL ADJUSTMENT */
    .modal-box {
        width: 90%;
        padding: 15px;
        margin: 10px;
    }

    /* SUB FOOTER ADJUSTMENT */
    .sub-footer p {
        font-size: 11px !important;
        line-height: 1.5;
    }
}