/* Cyberpunk styles.css - White background, dark gray header/footer */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* === VARIABLES === */
:root {
  --primary: #00bcd4;
  --accent: #0099ff;
  --secondary: #ffffff; /* Main white background */
  --header-footer-bg: #1e1e1e; /* Dark gray header/footer */
  --text: #000000;
  --glow: 0 0 2px #00bcd4, 0 0 4px #0099ff, 0 0 8px #00bcd4;
}

/* === RESET === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::-webkit-scrollbar { display: none; }

/* === MAIN CONTENT === */
main {
  flex: 1;
  padding-bottom: 80px; /* Prevent footer overlap */
}

/* === BACKGROUND EFFECTS === */
.starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#00bcd4 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  z-index: -2;
  opacity: 0.05;
  animation: starfield-move 1000s linear infinite;
}

@keyframes starfield-move {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(0,188,212,0.05) 1px, transparent 1px),
              linear-gradient(rgba(0,188,212,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  animation: grid-move 200s linear infinite;
}

@keyframes grid-move {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 60px 0, 0 60px; }
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-footer-bg);
  border-bottom: 2px solid var(--primary);
  box-shadow: 0 0 6px #00bcd4, 0 0 10px #0099ff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: wrap; /* allow wrapping instead of overlap */
    row-gap: 0.5rem; /* small gap when it wraps */
}


/* === BRAND === */
.brand {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-dark { color: #ffffff; }
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1 1 auto;
    justify-content: flex-end;
    flex-wrap: wrap; /* can wrap instead of overlap */
}

.brand img {
  vertical-align: middle;
  margin-left: 8px;
  filter: drop-shadow(0 0 3px #00bcd4);
}

/* === HEADER RIGHT (Username + Nav) === */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.username {
  color: #00bcd4;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 2px #00bcd4, 0 0 4px #0099ff;
}

/* === NAVIGATION (Desktop) === */
.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.main-nav a {
  color: #e0e0e0;
  text-decoration: none;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background: var(--primary);
  transition: width 0.3s, box-shadow 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
  box-shadow: 0 0 2px #00bcd4, 0 0 4px #0099ff;
}

.main-nav .cta {
  background: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
}

/* === MENU TOGGLE BUTTON === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #00ffff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 200;
  text-shadow: var(--glow);
  transition: transform 0.2s ease, text-shadow 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.2);
  text-shadow: 0 0 4px #00bcd4, 0 0 8px #0099ff, 0 0 12px #00bcd4;
}

/* === RESPONSIVE NAV (Mobile) === */
@media (max-width: 880px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  /* We’ll just show the nav all the time on mobile */
  .menu-toggle {
    display: none;
  }

  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
  }

  /* Keep username visible on mobile */
  .username {
    display: inline-block;
    font-size: 0.95rem;
  }

  .main-nav {
    position: static;
    background: transparent;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    max-height: none;
    opacity: 1;
    border-top: none;
    gap: 0.4rem;
  }

  .main-nav a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    width: auto;
    text-align: center;
    border-bottom: none;
    font-size: 0.9rem;
  }

  /* Harmless now, but left for compatibility if JS toggles this */
  body.menu-open .main-nav {
    max-height: none;
    opacity: 1;
  }
}

/* === CONTEXT BOX === */
.context-box {
  border: 1px solid var(--primary);
  box-shadow: 0 0 2px #00bcd4, 0 0 4px #0099ff;
  margin: 2rem auto;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}
.context-box h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.context-box .lead {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #000000;
}
.context-box .btn {
  padding: 0.8rem 1.5rem;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--glow);
  transition: 0.3s;
}
.context-box .btn:hover {
  box-shadow: 0 0 3px #00bcd4, 0 0 6px #0099ff, 0 0 10px #0099ff;
  transform: scale(1.05);
}

/* === SERVICES === */
.services h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--primary);
  text-shadow: var(--glow);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-grid article {
  background: #000000;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--primary);
  box-shadow: 0 0 2px #00bcd4;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-grid article:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 0 5px #00bcd4, 0 0 10px #0099ff;
}

/* === ICONS === */
.icon.neon-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
  text-align: center;
  color: #00bcd4;
  text-shadow: 0 0 2px #00bcd4, 0 0 4px #0099ff;
  animation: icon-spin 10s linear infinite;
}
@keyframes icon-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === FOOTER === */
.site-footer {
  background: var(--header-footer-bg);
  color: #e0e0e0;
  text-align: center;
  padding: 1rem;
  border-top: 2px solid var(--primary);
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 50;
}
