/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #f1f1f1;
  background-color: #121212;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Navbar */
header {
  position: fixed;
  width: 100%;
  background: rgba(18, 18, 18, 0.95);
  padding: 1rem 2rem;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Hamburger Menu */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  background: #f1f1f1;
  margin: 4px 0;
}

/* Navigation Menu */
nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 2rem;
}
nav ul li a {
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}
nav ul li a:hover {
  color: #4d65ff;
}
html {
  scroll-behavior: smooth;
}

/* Hero Section */
.hero {
  width: 100vw;
  height: 40vh;
  background: 
    linear-gradient(135deg, #2f9ce4b3, #00000070), 
    url('/assets/imgs/shadow-hive-character-1.webp') center top/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.6);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero .btn {
  background: #4d65ff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.hero .btn:hover {
  background: #3a50d4;
}

/* Main Sections */
main {
  margin-top: 80px;
}
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #1e1e1e;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}
.service-card:hover {
  transform: translateY(-5px);
}
.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.service-card p {
  font-size: 1rem;
}
/* About Section */
.about {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  text-align: left;
}
.about img {
  max-width: 100%;
  border-radius: 8px;
  flex: 1 1 300px;
}
.about-text {
  flex: 1 1 300px;
}
/* Contact Section */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.contact input, .contact textarea {
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}
.contact button {
  background: #4d65ff;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.contact button:hover {
  background: #3a50d4;
}
/* Footer */
footer {
  background: #1a1a1a;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Header adjustments */
  header {
    padding: 1rem;
  }
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  /* Show hamburger menu and hide normal nav menu */
  .nav-toggle-label {
    display: flex;
  }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    background: rgba(18,18,18,0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
  }
  /* Display nav menu when toggle is checked */
  #nav-toggle:checked ~ nav ul {
    display: flex;
  }
  nav ul li {
    margin: 0.5rem 0;
  }
  /* Hero adjustments */
  .hero {
    height: 30vh;
    border-radius: 0;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  /* Section adjustments */
  section {
    padding: 2rem 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
}
@media (max-width: 768px) {
  /* Mobile nav menu styling */
  nav ul {
    flex-direction: column;
    align-items: center;
    background: rgba(18, 18, 18, 0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    
    /* Instead of display: none, start hidden with opacity and transform */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  }
  
  /* When the nav toggle is checked, show the menu smoothly */
  #nav-toggle:checked ~ nav ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* Adjust nav items spacing on mobile */
  nav ul li {
    margin: 0.5rem 0;
  }
  
  /* Ensure the hamburger icon is visible */
  .nav-toggle-label {
    display: flex;
  }
}
