/* General reset and body styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #1a1e2b;
  height: 200vh;
}

/* Header styling */
/* Header styling */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem; /* Increased padding for height */
  background-color: #1a1e2b; /* Match the body's background color */
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid #8ccf8c; /* Add a bottom border with color */
}


.logo {
  font-size: 1.6rem; /* Logo size */
  font-weight: 600;
  color: #8ccf8c;
  transition: color 0.3s ease-in-out;
  margin-left: 100px;
}

.logo:hover {
  color: #72b572;
}

/* Navigation links styling */
.nav-links {
  display: flex; /* Ensure display is flex for desktop */
  gap: 2rem; 
  align-items: center;
  margin-bottom: 0; 
  margin-right: 50px;
  transition: transform 0.3s ease, opacity 0.3s ease; /* Added transition */
}

/* Hide nav links by default for mobile */
.nav-links.hidden {
  display: none;
}

/* Navigation links' appearance */
.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem; /* Consistent font size for visibility */
  transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
  color: #8ccf8c;
  transform: translateY(-2px);
}

.get-started {
  background-color: #8ccf8c;
  padding: 0.4rem 0.9rem; /* Adjusted padding for the button */
  border-radius: 20px;
  color: #1a1e2b;
  font-weight: bold;
  font-size: 1rem; /* Consistent font size */
  transition: background-color 0.3s, transform 0.3s;
  margin-left: 0.5rem; /* Reduced margin for closer alignment */
}

.get-started:hover {
  background-color: #72b572;
  transform: scale(1.05);
}

/* Hamburger menu styling */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  width: 25px;
  background-color: #fff;
  margin: 4px 0;
  transition: all 0.3s;
}

/* Responsive styling */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #25293c;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none; /* Prevent interaction when hidden */
    opacity: 0; /* Start invisible */
    transform: translateY(-20px); /* Start position for animation */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Add transition for visibility */
  }

  .nav-links.show {
    pointer-events: auto; /* Enable interaction when shown */
    opacity: 1; /* Make visible */
    transform: translateY(0); /* Move into position */
  }

  .hamburger {
    display: flex;
  }
}

/* Hamburger menu active state */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px); /* Top bar animation */
}

.hamburger.active span:nth-child(2) {
  opacity: 0; /* Middle bar disappears */
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px); /* Bottom bar animation */
}
