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

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* Background image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/background12.jpeg") no-repeat center center/cover;
  z-index: 0;
}

/* Stars Flicker */
.stars-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/starsflickering2.gif") repeat center center/cover;
  opacity: 0.1;
  z-index: 1;
}

/* Purple overlay */
.overlay {
  width: 100%;
  height: 100%;
  background: rgba(40, 0, 80, 0.6);
  color: white;
  position: relative;
  text-align: center;
  padding: 20px;
  z-index: 5;

  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 6;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo a img {
  height: 1.2em;
  width: auto;
}

.logo a span {
  font-size: 24px;
  font-weight: bold;
  color: white;
}

/* Nav Links */
.nav-links {
  display: flex;
}

.nav-links a {
  margin: 0 10px;
  color: white;
  text-decoration: none;
}

.nav-links a:hover {
  color: #dcd6ff;
}

.nav-links .btn {
  background: #6c5ce7;
  padding: 8px 15px;
  border-radius: 8px;
}

/* Mobile Menu */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(40, 0, 80, 0.95);
  padding: 15px;
  position: absolute;
  top: 70px;
  right: 20px;
  border-radius: 8px;
  z-index: 6;
}

.mobile-menu a {
  color: white;
  padding: 10px;
  text-decoration: none;
  text-align: left;
}

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

.mobile-menu.show {
  display: flex;
}

/* Hero Content */
.hero-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 7;
  min-height: 0;
  padding-top: 2vh;
  padding-bottom: 8vh;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-text {
  max-width: 400px;
  margin: 0 auto 20px;
  text-align: center;
}

/* Search Bar */
.search-bar {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 16px;
}

.search-bar button {
  background: #6c5ce7;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.search-bar button:hover {
  background: #5a4bd6;
}

/* Fire GIF */
.fire {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  animation: floatFire 4s ease-in-out infinite;
  z-index: 6;
}

@keyframes floatFire {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -15px); }
}

/* Shooting Star */
.shooting-star {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  width: 80px;
  transition: opacity 1s ease;
}

/* Categories */
.categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 40px;
  background: white;
  margin-top: -50px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.category {
  text-align: center;
  padding: 20px;
  flex: 1;
  min-width: 150px;
}

.category span {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  background: #1b1454;
  color: white;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-content h2 { font-size: 32px; }
  .search-bar { max-width: 90%; }
}

/* Mobile search bar adjustments */
@media (max-width: 600px) {
  .search-bar { max-width: 280px; }
  .search-bar input { font-size: 14px; padding: 10px; }
  .search-bar button { font-size: 14px; padding: 10px 16px; }
}

@media (max-width: 400px) {
  .search-bar { max-width: 220px; }
  .search-bar input { font-size: 13px; padding: 8px; }
  .search-bar button { font-size: 13px; padding: 8px 14px; }
}

