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

html,
body {
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background-color: #000000;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Navigation styles */
.main-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  left: 0;
  z-index: 100;
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  gap: 3rem;
  list-style: none;
  margin: 0 auto 0 0;
  padding: 0 2rem;
  max-width: 1200px;
  position: relative;
  right: -100px; /* Move the menu 100px to the right */
}

/* Reset the right positioning for mobile */
@media (max-width: 992px) {
  .nav-menu {
    right: 0;
  }
}

.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  font-size: 18px;
  transition: opacity 0.3s ease;
}

.nav-menu a:hover {
  opacity: 0.7;
}

.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {

  /* Reset desktop nav positioning */
  .main-nav {
    position: relative;
    top: auto;
    transform: none;
    right: auto;
    left: auto;
  }

  /* Position hamburger in the banner */
  .mobile-menu-toggle {
    display: block !important;
    position: absolute !important;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: #ffffff;
    margin: 6px 0;
    transition: all 0.3s ease;
  }

  /* Hide menu by positioning off-screen */
  .nav-menu {
    position: fixed;
    top: 60px;
    /* Position below the hamburger */
    right: -300px;
    width: auto;
    /* Changed from 250px */
    min-width: 200px;
    /* Minimum width for menu */
    height: auto;
    /* Changed from 100vh */
    background: #1a1a1a;
    padding: 20px;
    /* Reduced padding */
    margin: 0 !important;
    max-width: none !important;
    display: flex !important;
    flex-direction: column;
    gap: 10px !important;
    z-index: 1000;
    transition: right 0.3s ease;
    justify-content: flex-start !important;
    align-items: stretch !important;
    border-radius: 8px;
    /* Add rounded corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    /* Add shadow for depth */
    margin-right: 1rem;
    /* Space from edge */
  }

  /* Show menu when active */
  .nav-menu.active {
    right: 1rem !important;
    /* Slide in, accounting for margin */
  }

  /* Style ALL menu items consistently */
  .nav-menu li {
    display: block;
    margin: 0 0 10px 0;
    list-style: none;
  }

  .nav-menu li:last-child {
    margin-bottom: 0;
  }

  .nav-menu a {
    color: #ffffff !important;
    font-size: 18px;
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    background: transparent;
    border-radius: 4px;
    transition: background 0.2s ease;
  }

  .nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
  }

  /* When menu is active, keep hamburger fixed */
  .mobile-menu-toggle.active {
    position: fixed;
  }

  /* X animation for hamburger */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }

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

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

  /* Overlay - only shown when menu is active */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    /* Lighter overlay */
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allow clicks to pass through when not active */
  }

  .menu-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
    /* Enable click handling when active */
  }
}

/* Ensure desktop styles */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Banner styles */
.banner-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  /* Ensure banner has a minimum height */
}

.banner-container picture,
.banner-container img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Footer Styles */
.site-footer {
  background: #0a0a0a;
  padding: 3rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav {
  text-align: center;
}

.footer-menu {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-menu a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-menu {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* Content styles */
.content {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

h1 {
  margin: 1rem 0;
  color: #fff;
}

/* Card Grid Styles */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  cursor: default;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.card h3 {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.card h3 a:hover {
  opacity: 0.8;
}

/* Service Page Styles */
.service-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.service-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.service-content .lead {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #e0e0e0;
}

.service-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #cccccc;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}