/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* Reverted to original Space Grotesk font */
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background-color: #000000;
  line-height: 1.6;
  font-weight: 400;
}

/* Header styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  /* Added subtle border like SpaceX */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fixed logo positioning to prevent overlap */
.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img {
  height: 45px;
  width: 150px;
}

nav {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  /* Added SpaceX-style button styling */
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s ease;
  border-radius: 1px;
}

/* Hamburger animation for SpaceX feel */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.menu {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
}

.menu li a {
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  /* Made desktop menu font smaller */
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  padding: 8px 12px;
  border-radius: 4px;
  position: relative;
}

.menu li a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.menu li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.menu li a:hover::after {
  width: 80%;
}

/* Updated live button styling for SpaceX theme */
.live-button {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid hsl(0, 0%, 0%);
}

.live-button .live-tag {
  padding: 2px 6px;
  border: 1px solid #00ff00;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1;
  color: hsl(113, 95%, 49%);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  background-color: rgba(0, 255, 0, 0.1);
}

.live-button:hover {
  background-color: rgba(255, 0, 0, 0.15);
  border-color: #000000;
}

.live-button:hover .live-tag {
  background-color: #02ff17;
  color: #000000;
}

/* Blog post styles */
.blog-post {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.blog-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* Removed scrolling animation for images */
}

.blog-content {
  position: absolute;
  bottom: 80px;
  left: 80px;
  max-width: 600px;
  z-index: 1;
}

.blog-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  line-height: 1.2;
}

/* Updated button styles for SpaceX theme */
.read-more {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000000;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  border-radius: 0;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.read-more:hover {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Updated view all button for SpaceX theme */
.view-all-container {
  display: flex;
  justify-content: center;
  padding: 80px 0;
  background-color: #000000;
}

.view-all {
  display: inline-flex;
  align-items: center;
  padding: 16px 48px;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  border: 2px solid #ffffff;
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.view-all::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transition: left 0.3s ease;
  z-index: -1;
}

.view-all:hover::before {
  left: 0;
}

.view-all:hover {
  color: #000000;
  transform: translateY(-2px);
}

/* Footer styles */
footer {
  padding: 40px 80px;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: #cccccc;
}

/* Responsive styles */
@media (max-width: 768px) {
  header {
    padding: 16px 20px;
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: right 0.4s ease;
    overflow-y: auto;
    gap: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu.active {
    right: 0;
  }

  .menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu li a {
    display: block;
    padding: 20px 0;
    /* Keep mobile menu font size normal */
    font-size: 14px;
    border-radius: 0;
  }

  .menu li a::after {
    display: none;
  }

  .blog-content {
    left: 20px;
    bottom: 40px;
    right: 20px;
  }

  .blog-content h2 {
    font-size: 1.8rem;
  }

  .footer-content {
    padding: 0 20px;
    gap: 15px;
    text-align: center;
  }

  .view-all-container {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .blog-content h2 {
    font-size: 1.5rem;
  }

  .read-more {
    padding: 10px 20px;
    font-size: 12px;
  }
}
