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

/* BACKGROUND + FULL-PAGE DARK OVERLAY */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #fff;
  background: url('backdrop.jpg') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  min-height: 100vh;
}

/* dark overlay behind everything (fixes header/main gap) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

/* maintain flex layout */
html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: rgba(0, 0, 0, 0.75);
  padding: 2.2em 1em;  /* increased height */
  text-align: center;
  position: relative;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

/* FIXED HEADER ON DESKTOP */
@media (min-width: 768px) {
  header {
    position: fixed;
    top: 0;
    left: 0;
  }
}

/* HEADER TITLE */
header h1 {
  font-size: 2.4em;   /* slightly bigger */
  letter-spacing: 1.5px;
  color: #fff;
}

/* NAV */
nav {
  margin-top: 0.7em;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.7;
}

/* MOBILE MENU BUTTON */
.menu-toggle {
  display: none;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
}

/* MAIN CONTENT */
main {
  flex: 1;
  padding: 2em;
  text-align: center;
  background: rgba(0,0,0,0.35);
}

/* offset for fixed header */
@media (min-width: 768px) {
  main {
    margin-top: 150px;   /* updated for new header height */
    padding-bottom: 90px;
  }
}

h2 {
  font-size: 1.8em;
  margin-bottom: 0.5em;
  color: #fff;
}

p {
  max-width: 700px;
  margin: 0.5em auto;
  line-height: 1.6;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
  margin-top: 2em;
}

.photo {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.photo:hover {
  transform: scale(1.03);
}

.photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.caption {
  background: rgba(0,0,0,0.6);
  padding: 0.6em;
  font-size: 0.95em;
}

/* CONTACT FORM */
form {
  max-width: 500px;
  margin: 2em auto;
  display: flex;
  flex-direction: column;
}

form input,
form textarea {
  margin-bottom: 1em;
  padding: 0.8em;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  background: rgba(255,255,255,0.9);
  color: #000;
}

/* OLD BUTTON DESIGN RESTORED */
form button {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-weight: bold;
  border: 2px solid #fff;
  padding: 0.8em;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

form button:hover {
  opacity: 0.7;
}

/* FOOTER */
footer {
  background: rgba(0,0,0,0.7);
  color: #fff;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
  width: 100%;
}

/* FIXED FOOTER ON DESKTOP */
@media (min-width: 768px) {
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
  }
}

/* RESPONSIVE NAV */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    flex-direction: column;
    background: rgba(0,0,0,0.85);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
}
