:root {
  --primary: #b00000;
  --dark: #121212;
  --light: #f5f5f5;
  --accent: #ff5e5e;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
}

.navbar {
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: var(--accent);
}

.hero {
  height: 100vh;
  background: url('../images/car.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  background: rgba(0, 0, 0, 0.6) url('../images/box-bg.png') center/cover no-repeat;
  padding: 2rem;
  text-align: center;
  animation: fadeIn 2s ease-in;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
  max-width: 600px;
  margin: auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  text-decoration: none;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent);
}

.intro {
  padding: 4rem 2rem;
  background-color: #1a1a1a;
  text-align: center;
  animation: slideUp 1s ease-in;
}

.intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 2rem;
  background: #000;
  font-size: 0.9rem;
  color: #777;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hamburger {
  display: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* Updated Responsive Rules */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
  }

  .navbar ul {
    flex-direction: column;
    width: 100%;
    background: #000;
    display: none;
    padding: 1rem 0;
    margin-top: 1rem;
  }

  .navbar ul.active {
    display: flex;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    display: inline-block;
    word-break: break-word;
    max-width: 90%;
  }

  .hero .overlay {
    padding: 1rem;
    width: 90%;
  }

    .memorial-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .memorial-photo {
    width: 150px;
    height: 150px;
  }

  .memorial-text h2 {
    font-size: 1.5rem;
  }

  .memorial-text p {
    font-size: 0.95rem;
  }
}

.memorial-section {
  background: rgba(0, 0, 0, 0.7);
  padding: 3rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.memorial-box {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.memorial-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 4px solid #ff5e5e;
  box-shadow: 0 0 10px rgba(255, 94, 94, 0.5);
}

.memorial-text {
  color: #f5f5f5;
  max-width: 500px;
}

.memorial-text h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  color: #ff5e5e;
}

.memorial-name {
  color: #ffffff;
  font-weight: bold;
}

.memorial-text p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.memorial-date {
  font-style: italic;
  color: #ccc;
}
