/* General Body Setup */
@font-face {
  font-family: 'Hogwarts';
  src: url('HarryP.ttf') format('truetype');
}
@import url('https://fonts.googleapis.com/css2?family=Caesar+Dressing&display=swap');

body {
  margin: 0;
  font-family: 'Georgia', serif;
  background: url("https://giffiles.alphacoders.com/222/222739.gif") no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  color: rgb(9, 60, 137);
  text-align: center;
  padding-top: 70px; 
}

/* Navbar */
/* NAVBAR MAIN CONTAINER */
nav {
    position: fixed;
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.123);
    backdrop-filter: blur(5px);
    padding: 0 30px;
    box-shadow: 0 0 15px #72a1de68;
    z-index: 999;
    font-family: "Inter", sans-serif; /* keeps font consistent */
}

/* LEFT SECTION */
nav .left {
    display: flex;
    align-items: center;
}

nav .left h1{
    font-size: 30px;
    display: flex;
    align-items: center;
}

nav .left img {
    width: 40px;
    margin: 0 15px;
}

/* MENU LIST */
nav ul {
    display: flex;
    justify-content: space-between;
    width: 30%;
    padding: 15px 15px;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px #727fde65;
    cursor: pointer;
}

nav ul li {
    list-style: none;
}

nav ul a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    margin: 0 10px;
    font-family: inherit; /* force to use nav font */
}

/* ICON BOXES */
nav .box-icons {
    display: flex;
    gap: 40px;
}

nav .box-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #727fde;
    text-decoration: none;
    color: lightgray;
    border-radius: 50%;
    transition: 0.3s;
}

nav .box-icons a:hover {
    background-color: #727fde;
    color: black;
    box-shadow: 0 0 15px #727fde6f;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        gap: 10px;
    }

    nav .left {
        justify-content: center;
        width: 100%;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        padding: 10px;
        margin: 0;
    }

    nav ul a {
        margin: 5px 10px;
        font-size: 15px;
    }

    nav .box-icons {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
        width: 100%;
    }

    nav .box-icons a {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}



/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Main Title */
.main-title {
  text-align: center;
  margin: 40px auto 20px;
}
.main-title h1 {
  color: rgb(110, 11, 248);
  font-family: 'Hogwarts', 'Caesar Dressing', cursive;
  font-size: 40px;
  text-shadow: 1px 1px #1d043c;
}

/* Gallery Layout */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  justify-content: center;
  max-width: 900px;
  margin: 30px auto;
}
.card {
  width: 220px;
  height: 300px;
  background: linear-gradient(to bottom, #1b0367, #dbb686dd);
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(53, 80, 167, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.card:hover {
  transform: scale(1.05);
}
.card img {
  width: 100%;
  height: 80%;
  object-fit: cover;
}
.caption {
  font-size: 16px;
  font-weight: bold;
  color: white;
  padding: 8px;
  margin: 12px 0;
  text-shadow: 1px 1px 2px black;
  width: 100%;
  background: #6378af;
  text-align: center;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background:transparent;
  overflow-y: auto;
  padding: 40px 0;
}
.modal-box {
  background: #80a2ca;
  margin: auto;
  border-radius: 15px;
  max-width: 600px; 
  padding: 20px;
  box-shadow: 0 0 20px black;
  text-align: center;
  position: relative;
}
.modal-title {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: rgb(105, 133, 216);
  font-size: 20px;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 6px;
  text-shadow: 1px 1px 4px black;
}
.modal-box img {
  width: 100%;
  height: 300px; 
  object-fit: cover;
  border-radius: 10px;
  margin-top: 60px;
  margin-bottom: 15px;
}
.modal-caption {
  color: #1c0993;
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  margin-top: 10px;
}
.modal-nav {
  margin-top: 20px;
}
.prev, .next {
  cursor: pointer;
  font-size: 16px;
  background: rgb(71, 7, 150);
  color: black;
  font-weight: bold;
  border: none;
  padding: 6px 14px;
  margin: 0 8px;
  border-radius: 6px;
  transition: background 0.3s;
}
.prev:hover, .next:hover {
  background: rgb(159, 136, 78);
  color: white;
}
.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: rgba(27, 3, 61, 0.737);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* Info Section */
.info-section {
  padding: 40px;
  background-color: rgba(212, 154, 96, 0.8);
  margin: 30px auto;
  width: 80%;
  border-radius: 10px;
  text-indent: 50px;
  line-height: 30px;
}/* Footer */
/* This is Luna Pioneers footer */
.custom-footer {
    background-color: #0a0c1a;
    color: lightgray;
    padding: 40px 20px 0;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-footer .footer-logo .logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-footer .footer-logo .logo-title img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.custom-footer .footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1100px;
    margin: auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-footer .footer-col {
    flex: 1 1 180px;
    margin: 20px;
}

.custom-footer .footer-logo p {
  text-align: start;
    font-size: 14px;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}

.custom-footer .footer-logo h2 {
  text-align: start;
    font-size: 28px;
    color: #727fde;
    padding-bottom: 15px;
    font-family: 'Cinzel Decorative', serif;
}

.custom-footer .footer-col h3 {
  text-align: start;
    color: white;
    margin-bottom: 15px;
    font-size: 16px;
}

.custom-footer .footer-col ul {
    list-style: none;
    padding: 0;
}

.custom-footer .footer-col ul li {
text-align: start;
    margin-bottom: 15px;
}

.custom-footer .footer-col ul li a {
    text-align: start;
    text-decoration: none;
    color: #aaa;
    transition: 0.3s;
}

.custom-footer .footer-col ul li a:hover {
    color: white;
    text-shadow: 0 0 10px #727fdeaa;
}

.custom-footer .footer-socials a {
  text-align: start;
    display: inline-block;
    font-size: 25px;
    margin-right: 15px;
    color: #727fde;
    transition: transform 0.3s cubic-bezier(1, 1.56,0.64, 1), color 0.3s ease;
}

.custom-footer .footer-socials a:hover {
    color: white;
    text-shadow: 0 0 10px #727fde;
    transform: translateY(-8px) rotate(-360deg);
}

.custom-footer .footer-bottom {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    background-color: rgb(13, 13, 44);
    color: lightgray;
}



@media (max-aspect-ratio: 16/9){
    .back-vid{
        width: auto;
        height: 100%;
    }
}

@media (min-aspect-ratio: 16/9){
    .back-vid{
        width: 100%;
        height: auto;
    }
}