/* === General Styles === */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(rgba(30, 20, 60, 0.7), rgba(30, 20, 60, 0.7)), url('https://i.redd.it/64yhlc6jb84d1.jpeg') no-repeat center center fixed;
  background-size: cover;
  color: #f3f3f3;
  min-height: 100vh;
}

/* Subtle fade-in animation */
.fade-in {
  animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Navigation Styles === */
nav {
  background: rgba(30, 20, 60, 0.7);
  box-shadow: 0 2px 12px rgba(30, 20, 60, 0.15);
  padding: 15px 30px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 20px;
  height: 60px;
  border-bottom: 1.5px solid #8e63e8;
}

.nav-left {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: 60px;
}

.nav-left a,
.nav-right a {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-left a:hover,
.nav-right a:hover {
  color: #a07af0;
  text-shadow: 0 2px 8px #8e63e8;
  text-decoration: underline;
}

.nav-right {
  display: flex;
  gap: 40px;
  margin-left: auto;
}

.nav-right i {
  font-size: 22px;
}

/* === Main Content Box (Glassmorphism) === */
.container {
  max-width: 900px;
  margin: 80px auto;
  padding: 48px 32px;
  background: rgba(130, 94, 230, 0.25);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  border: 1.5px solid rgba(130, 94, 230, 0.25);
  color: #f3f3f3;
  transition: box-shadow 0.3s;
  animation: fadeIn 1.2s;
}

.container h1 {
  font-size: 2.7rem;
  margin-bottom: 18px;
  color: #e0d6fa;
  text-shadow: 0 2px 12px #8e63e8;
}

.container p {
  font-size: 1.25rem;
  color: #f3f3f3;
  margin-bottom: 0;
}

/* === Image Gallery === */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.image-gallery img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.image-gallery img:hover {
  transform: scale(1.05);
}

/* === Lightbox === */
.page-content.blurred {
  filter: blur(8px);
  transition: filter 0.3s ease;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* === Sidebar === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 240px;
  background: rgba(30, 20, 60, 0.98);
  box-shadow: 2px 0 16px rgba(130, 94, 230, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 60px 20px;
  gap: 24px;
}

.sidebar.active {
  transform: translateX(0);
}

.sidebar a {
  color: #f3f3f3;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  width: 100%;
  padding: 10px 0;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}

.sidebar a:hover {
  color: #a07af0;
  background: rgba(130, 94, 230, 0.12);
}

/* === Hamburger Button === */
.hamburger {
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 32px;
  color: #f3f3f3;
  background: rgba(130, 94, 230, 0.7);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(130, 94, 230, 0.25);
  transition: background 0.2s, transform 0.2s;
}

.hamburger:hover {
  background: #8e63e8;
  transform: scale(1.08) rotate(6deg);
}

/* === Login Modal === */
.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 60, 0.92);
  justify-content: center;
  align-items: center;
  z-index: 1003;
  animation: fadeIn 0.5s;
}

.login-box {
  background: rgba(30, 20, 60, 0.98);
  padding: 44px 32px 32px 32px;
  border-radius: 16px;
  text-align: center;
  width: 320px;
  box-shadow: 0 4px 24px rgba(130, 94, 230, 0.25);
  position: relative;
}

.login-box h2 {
  color: #e0d6fa;
  margin-bottom: 18px;
}

.login-box input {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 12px;
  border: none;
  border-radius: 7px;
  font-size: 17px;
  background: #2d2347;
  color: #f3f3f3;
  outline: none;
  transition: box-shadow 0.2s;
}

.login-box input:focus {
  box-shadow: 0 0 0 2px #8e63e8;
}

.login-box button {
  background: linear-gradient(90deg, #8e63e8 60%, #a07af0 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 7px;
  font-size: 17px;
  cursor: pointer;
  margin-top: 16px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(130, 94, 230, 0.18);
  transition: background 0.2s;
}

.login-box button:hover {
  background: linear-gradient(90deg, #a07af0 60%, #8e63e8 100%);
}

/* Close button for modal */
.login-box .close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: #a07af0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.login-box .close-modal:hover {
  color: #f3f3f3;
}

#login-error {
  color: #ff6b6b !important;
  margin-top: 10px;
  font-size: 1rem;
}

/* === Responsive Design === */
@media (max-width: 700px) {
  .container {
    padding: 24px 8px;
    font-size: 18px;
  }
  .nav-left {
    margin-left: 10px;
    gap: 12px;
  }
  .nav-right {
    gap: 16px;
  }
  .sidebar {
    width: 180px;
    padding: 40px 10px;
  }
  .login-box {
    width: 95vw;
    min-width: 0;
    padding: 24px 6vw 18px 6vw;
  }
}
