:root {
  /* Color Palette - Ultra Modern, Alien, Robotic */
  --bg-deep-space: #03050c;
  --bg-panel: #0a0d17;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-cyan: #00f0ff;
  --accent-purple: #b500ff;
  --accent-silver: #c0c8d0;
  --neon-glow: rgba(0, 240, 255, 0.4);
  --purple-glow: rgba(181, 0, 255, 0.4);

  /* Typography */
  --font-logo: 'Orbitron', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep-space);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography styles */
h1,
h2,
h3,
h4,
.logo-container {
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: 2px;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(10, 13, 23, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-img {
  max-height: 40px;
  width: auto;
  filter: drop-shadow(0 0 10px var(--neon-glow));
  transition: filter 0.3s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 0 15px var(--accent-cyan));
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links li a {
  font-family: var(--font-logo);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 8px var(--neon-glow);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  /* Offset for navbar */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.galaxy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  animation: slowPulse 10s infinite alternate;
}

.overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,
      rgba(3, 5, 12, 0) 0%,
      rgba(3, 5, 12, 0.8) 70%,
      var(--bg-deep-space) 100%);
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 100vw;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Glitch Effect Text */
.glitch {
  font-size: 6rem;
  font-weight: 900;
  color: #fff;
  position: relative;
  text-shadow: 0 0 20px var(--neon-glow);
  margin-bottom: 1rem;
  white-space: nowrap;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
}

.glitch::before {
  left: 2px;
  text-shadow: -2px 0 var(--accent-cyan);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -2px 0 var(--accent-purple);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim2 5s infinite linear alternate-reverse;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--accent-silver);
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.cyber-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-cyan);
  background: transparent;
  border: 1px solid var(--accent-cyan);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 2px;
  z-index: 1;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2), inset 0 0 15px rgba(0, 240, 255, 0.1);
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent-cyan);
  transition: left 0.3s ease;
  z-index: -1;
}

.cyber-btn:hover {
  color: var(--bg-deep-space);
  text-shadow: none;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.cyber-btn:hover::before {
  left: 0;
}

/* Sections */
.intro-section {
  padding: 5rem 5%;
  min-height: 50vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #fff;
  border-left: 4px solid var(--accent-purple);
  padding-left: 1rem;
}

.section-title span {
  color: var(--accent-purple);
  text-shadow: 0 0 10px var(--purple-glow);
}

.grid-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.text-block p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 800px;
}

/* Footer */
footer {
  background: var(--bg-panel);
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid rgba(181, 0, 255, 0.2);
  margin-top: 4rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-width: 200px;
  height: auto;
  filter: brightness(0.8) drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Animations */
@keyframes slowPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes glitch-anim {
  0% {
    clip: rect(7px, 9999px, 86px, 0);
  }

  5% {
    clip: rect(69px, 9999px, 59px, 0);
  }

  10% {
    clip: rect(4px, 9999px, 60px, 0);
  }

  15% {
    clip: rect(51px, 9999px, 80px, 0);
  }

  20% {
    clip: rect(52px, 9999px, 5px, 0);
  }

  25% {
    clip: rect(80px, 9999px, 84px, 0);
  }

  30% {
    clip: rect(64px, 9999px, 16px, 0);
  }

  35% {
    clip: rect(31px, 9999px, 7px, 0);
  }

  40% {
    clip: rect(58px, 9999px, 94px, 0);
  }

  45% {
    clip: rect(69px, 9999px, 71px, 0);
  }

  50% {
    clip: rect(74px, 9999px, 4px, 0);
  }

  55% {
    clip: rect(44px, 9999px, 94px, 0);
  }

  60% {
    clip: rect(100px, 9999px, 35px, 0);
  }

  65% {
    clip: rect(21px, 9999px, 14px, 0);
  }

  70% {
    clip: rect(49px, 9999px, 75px, 0);
  }

  75% {
    clip: rect(82px, 9999px, 55px, 0);
  }

  80% {
    clip: rect(86px, 9999px, 48px, 0);
  }

  85% {
    clip: rect(56px, 9999px, 60px, 0);
  }

  90% {
    clip: rect(38px, 9999px, 38px, 0);
  }

  95% {
    clip: rect(4px, 9999px, 81px, 0);
  }

  100% {
    clip: rect(31px, 9999px, 93px, 0);
  }
}

@keyframes glitch-anim2 {
  0% {
    clip: rect(64px, 9999px, 20px, 0);
  }

  5% {
    clip: rect(5px, 9999px, 50px, 0);
  }

  10% {
    clip: rect(27px, 9999px, 7px, 0);
  }

  15% {
    clip: rect(19px, 9999px, 81px, 0);
  }

  20% {
    clip: rect(9px, 9999px, 2px, 0);
  }

  25% {
    clip: rect(15px, 9999px, 49px, 0);
  }

  30% {
    clip: rect(28px, 9999px, 87px, 0);
  }

  35% {
    clip: rect(95px, 9999px, 2px, 0);
  }

  40% {
    clip: rect(86px, 9999px, 59px, 0);
  }

  45% {
    clip: rect(1px, 9999px, 6px, 0);
  }

  50% {
    clip: rect(62px, 9999px, 29px, 0);
  }

  55% {
    clip: rect(30px, 9999px, 9px, 0);
  }

  60% {
    clip: rect(45px, 9999px, 38px, 0);
  }

  65% {
    clip: rect(6px, 9999px, 91px, 0);
  }

  70% {
    clip: rect(56px, 9999px, 14px, 0);
  }

  75% {
    clip: rect(27px, 9999px, 63px, 0);
  }

  80% {
    clip: rect(72px, 9999px, 39px, 0);
  }

  85% {
    clip: rect(72px, 9999px, 85px, 0);
  }

  90% {
    clip: rect(64px, 9999px, 100px, 0);
  }

  95% {
    clip: rect(52px, 9999px, 32px, 0);
  }

  100% {
    clip: rect(69px, 9999px, 78px, 0);
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--accent-cyan);
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 13, 23, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .glitch {
    font-size: 2.5rem;
  }
}