/* ===== Global Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2 {
  color: #ffb400;
  font-weight: 700;
  text-align: center;
  animation: fadeInDown 1s ease-in-out both;
}

h1 {
  font-size: 3rem;
  animation-delay: 0.2s;
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  animation-delay: 0.4s;
}

p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(to right, #0d0d0d, #1a1a1a);
  text-align: center;
  padding: 120px 20px 100px;
  border-bottom: 2px solid #222;
  animation: fadeIn 1.5s ease-in;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 1.5s ease-in-out;
}

.profile-img {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffb400;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: popIn 1s ease-in-out;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255, 180, 0, 0.7);
}

/* ===== About Section ===== */
.about {
  background-color: #111;
  border-radius: 12px;
  padding: 70px 30px;
  margin: 60px auto;
  max-width: 1000px;
  box-shadow: 0 0 25px rgba(255, 180, 0, 0.05);
  animation: fadeInUp 1s ease forwards;
}

/* ===== Restaurant Section ===== */
.restaurant {
  background-image: url('images/restaurant.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 160px 20px;
  position: relative;
  margin-top: 60px;
  animation: fadeIn 2s ease;
}

.restaurant::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.restaurant .overlay {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 50px 30px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: fadeInUp 1.2s ease-in-out;
  transition: transform 0.4s ease;
}

.restaurant .overlay:hover {
  transform: translateY(-5px);
}

.restaurant-info h2 {
  margin-bottom: 16px;
  font-size: 2.2rem;
  color: #ffcc00;
}

.restaurant-info p {
  color: #eee;
}

/* ===== Bat Cave Section ===== */
.batcave {
  background-color: #1a1a1a;
  padding: 70px 30px;
  border-left: 5px solid #ffb400;
  border-radius: 12px;
  max-width: 900px;
  margin: 80px auto;
  box-shadow: 0 0 20px rgba(255, 180, 0, 0.05);
  animation: fadeInUp 1.4s ease-in-out;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  background-color: #000000;
  color: #888;
  padding: 30px 10px;
  font-size: 14px;
  border-top: 1px solid #222;
  z-index: 10;
  position: relative;
  animation: fadeIn 2s ease;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInDown {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .restaurant {
    background-attachment: scroll;
    padding: 100px 20px;
  }

  .restaurant .overlay {
    padding: 30px 20px;
  }

  .about,
  .batcave {
    padding: 50px 20px;
  }
}
