:root {
  --bg-gradient: linear-gradient(to right, #0037ff, #ff6f00); 
  --text-color: #f0f0f0;
}

.dark-mode {
  --bg-gradient: linear-gradient(to right, #000b37, #7e3500); 
  --text-color: #e0e0e0;
  --accent-color: #ffa733;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  color: var(--text-color);
  background: var(--bg-gradient);
  line-height: 1.6;
  transition: background 0.5s ease, color 0.5s ease;
  padding: 30px;
}

.dark-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: #000;
  border: none;
  border-radius: 50%;
  padding: 10px 14px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.header-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
}

.header-flex img {
  width: 80px;
  border-radius: 8px;
}

.header-flex h1 {
  font-size: 2.5rem;
  margin: 0;
  color: #fff;
}

.header-flex p {
  font-style: italic;
  color: var(--accent-color);
}

nav {
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 0;
  margin-bottom: 40px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--accent-color);
}

nav ul li.login-link a {
  background: var(--accent-color);
  color: #000;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.3s ease;
}

nav ul li.login-link a:hover {
  background: #ffa733;
  transform: scale(1.05);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.gallery-item {
  background: #001a40;
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
  text-decoration: none;
  color: var(--text-color);
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--accent-color);
}

.gallery-item p {
  padding: 12px;
  font-weight: bold;
  background: #000;
  color: var(--accent-color);
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 16px;
  border: 6px solid var(--accent-color);
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 400px;
  font-size: 2rem;
  color: var(--accent-color);
  text-decoration: none;
  z-index: 1001;
}

footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-top {
  opacity: 0;
  animation: fadeInTop 1s ease forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInTop {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}