/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Reset some default styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  margin: 0;
  padding-top: 60px; /* space for fixed header */
  padding-bottom: 40px; /* space for fixed footer */
  color: #222; /* dark text for light background */
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url('photos/tech.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
}

/* Fixed header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: black;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  padding: 10px 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-weight: 600;
  font-size: 1.5rem;
}

/* Menu button */
#menu-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Nav links container */
#nav-links {
  position: fixed;
  top: 60px; /* below fixed header */
  right: -250px; /* start off-screen */
  width: 250px;
  height: calc(100% - 60px);
  background-color: #005c80;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.4);
  border-radius: 0 0 0 15px; /* rounded corners on left side */
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  transition: right 0.5s ease;
  z-index: 1001;
  overflow-y: auto;
}

#nav-links.active {
  right: 0; /* slide in */
}

#nav-links a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

#nav-links a:last-child {
  border-bottom: none;
}

#nav-links a:hover,
#nav-links a:focus {
  background-color: #0066cc;
  outline: none;
}

/* Section styling */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Image gallery */
.photo-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr; /* default single column */
}

/* Three columns on large screens */
@media (min-width: 1024px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Image styling */
.photo-gallery figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.photo-gallery img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

/* Fixed footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: black;
  color: white;
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 0;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
}
