/* General Reset and Box Model */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #111;
  color: #ddd;
  font-family: 'Georgia', serif;
  line-height: 1.6;
  padding-top: 70px; /* Adjusted padding to account for the fixed navbar */
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

a:hover {
  color: #f96;
}

/* Navigation Bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #222;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.logo {
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 2rem;
  color: #f4f4f4;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
z-index: 101;

}

nav a {
  color: #f4f4f4;
  font-size: 1.3rem;
}

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

@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 1rem;
    background: #333;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 50vh;
    justify-content: center;
    text-align: center;
  }

  nav ul.active {
    display: flex;
  }

  .hamburger {
    display: block;
      position: relative;
    z-index: 102;
  }
}

/* Header Section */
header {
  position: relative;
  height: 100vh;
  background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Dante_et_Virgile_dans_le_neuvi%C3%A8me_cercle_de_l%27Enfer_%28Gustave_Dor%C3%A9%29_Mus%C3%A9e_de_Brou_%28f%C3%A9vrier_2023%29.JPG/1200px-Dante_et_Virgile_dans_le_neuvi%C3%A8me_cercle_de_l%27Enfer_%28Gustave_Dor%C3%A9%29_Mus%C3%A9e_de_Brou_%28f%C3%A9vrier_2023%29.JPG?20230218165131') center/cover no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.overlay {
  background: rgba(0, 0, 0, 0.6);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.overlay h1 {
  font-size: 4rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 5px;
}

.overlay p {
  font-size: 1.5rem;
  margin-top: 1rem;
  color: #fff;
}

.cta {
  background: #f96;
  color: #111;
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 1rem 2rem;
  margin-top: 2rem;
  border-radius: 30px;
  transition: background 0.3s, transform 0.3s;
  font-weight: bold;
}

.cta:hover {
  background: #f60;
  transform: scale(1.05);
}

/* Section Styling */
section {
  padding: 6rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  font-size: 2.5rem;
  color: #f96;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #ddd;
}

ol {
  list-style-position: inside;
  text-align: left;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: #bbb;
}

ol li {
  margin-bottom: 1rem;
}

ol li strong {
  color: #f96;
}

blockquote {
  font-size: 1.5rem;
  font-style: italic;
  margin: 2rem auto;
  max-width: 800px;
  color: #aaa;
}

footer {
  padding: 2rem;
  background: #222;
  color: #888;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

/* Gallery Styling */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.gallery figure {
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery figure:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery img:hover {
  opacity: 0.8;
}

figcaption {
  background: #222;
  color: #f4f4f4;
  padding: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    height: 60vh;
  }

  .overlay h1 {
    font-size: 3rem;
  }

  .cta {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
  }

  section {
    padding: 4rem 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  p {
    font-size: 1.1rem;
  }

  .gallery {
    flex-direction: column;
    gap: 1.5rem;
  }

  .gallery img {
    height: 250px;
  }
}
