@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500&display=swap');

/* Define CSS variables for dark mode (default) - VALORANT-INSPIRED BLUE */
:root {
  --bg-gradient: linear-gradient(135deg, #0D192B, #1A2A49);
  --header-gradient: linear-gradient(90deg, #132C4F, #244775);
  --footer-bg: #132C4F;
  --text-color: #B0CDE0;
  --nav-hover-color: #5799D1;
  --nav-active-color: #FFD700; /* Golden text for current page */
}

/* Define light mode variables */
body.light-mode {
  --bg-gradient: linear-gradient(135deg, #E0F2F7, #A3D1E8);
  --header-gradient: linear-gradient(90deg, #A3D1E8, #C5E2F2);
  --footer-bg: #A3D1E8;
  --text-color: #1A2A49;
  --nav-hover-color: #244775;
  --nav-active-color: #B8860B; /* Dark golden shade can be used */
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animate and style the background */
html, body {
  height: 100%;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-gradient);
  background-size: 200% 200%;
  color: var(--text-color);
  transition: background 0.5s, color 0.5s;
  animation: gradientAnimation 10s ease infinite;
  display: flex;
  flex-direction: column;
}

/* Keyframes for gradient animation */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header styling */
header {
  background: var(--header-gradient);
  color: #ffffff;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  animation: slideDown 0.7s forwards ease-out;
}

@keyframes slideDown {
  to { transform: translateY(0); }
}

header h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  margin: 0;
  transition: color 0.5s;
}

/* Navigation styling */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  transition: gap 0.5s;
}

nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--nav-hover-color);
}

/* Active/current page link with golden text */
nav ul li a.active {
  color: var(--nav-active-color);
}

/* Main content styling */
main {
  padding: 3rem;
  flex: 1;
  transform: scale(0.8);
  opacity: 0;
  animation: scaleUp 0.6s forwards ease-out;
  animation-delay: 0.3s;
}

@keyframes scaleUp {
  to { transform: scale(1); opacity: 1; }
}

/* Gallery Section */
#gallery-section {
  padding: 2rem;
  text-align: center;
}

#gallery-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 2px;
  text-shadow: 0px 3px 5px rgba(0,0,0,0.5);
}

/* Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

/* Gallery Images */
.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 16px rgba(0,0,0,0.8);
}

/* Fullscreen Overlay */
#fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#fullscreen-overlay.active {
  display: flex;
}

#fullscreen-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Close Button */
#close-button {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
}

/* Footer styling */
footer {
  background: var(--footer-bg);
  color: #cccccc;
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid #444;
  margin-top: 2rem;
  transform: translateY(100%);
  animation: slideUp 0.7s forwards ease-out;
  animation-delay: 0.5s;
}
.downloadLink {
  text-decoration: none;
  color: #dbdbdb;
  font-weight: bold;
  transition: color 0.3s ease;
}
.downloadLink a:hover {
  color: black;
}

@keyframes slideUp {
  to { transform: translateY(0); }
}