/* Layout Fix: Ensure footer sticks to bottom */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: black;
  color: #f0f0f0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  background-color: #121212;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 0px 10px;
}

.logo img {
  height: 80px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #f0f0f0;
  font-weight: 600;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #00d1ff;
}

.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
}

.grid-item {
  /*background-color: #1e1e1e;*/
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
}

.grid-image {
  height: 50vh;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
}

.grid-image:hover{
  transform: scale(1.1);
}

button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #00d1ff;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.1s ease-in-out;
}

button:hover {
  background-color: #0088a7;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #121212;
  color: #ccc;
}

footer a {
  color: #00d1ff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

.blackout-overlay {
    position: fixed;
    inset: 0;
    background: black;
    z-index: 9999;
    opacity: 1;
    transition: opacity 1s ease;
    pointer-events: none;
}

.blackout-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  background: transparent;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 15px 20px;
  color: #f0f0f0;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s, background-color 0.3s;
}

nav ul li a:hover {
  color: #00d1ff;
}

nav ul li ul.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #121212;
  min-width: 180px;
  border-radius: 5px;
  padding: 0;
  margin: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

nav ul li ul.dropdown li {
  display: block;
}

nav ul li ul.dropdown li a {
  padding: 12px 16px;
  color: #f0f0f0;
  text-align: left;
  font-size: 16px;
}

nav ul li ul.dropdown li a:hover {
  background-color: #1e1e1e;
  color: #00d1ff;
}

nav ul li:hover ul.dropdown {
  display: block;
}
