:root {
    --primary-bg: #0a122a;
    --card-bg: #15224f;
    --accent-silver: #e3e3eb;
    --accent-purple: #7a6ab3;
    --accent-purple-faint: rgba(122, 106, 179, 0.4);
    --text-primary: #e8eaf6;
    --text-secondary: #a8b0d1;
    --font-title: 'Cinzel Decorative', cursive;
    --font-body: 'Lora', serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-image:
        linear-gradient(rgba(10, 18, 42, 0.5), rgba(10, 18, 42, 0.5)),
        url('/images/harry\ potter\ plant.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* This is Luna Pioneers logo and nav */
/* 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;
    }
}



/* This is end of Luna Pioneers logo and nav */

.header {
    text-align: center;
    padding: 11rem 2rem 3rem;
}

.header h1 {
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--accent-silver);
    text-shadow: 0 0 15px var(--accent-purple-faint);
}

.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2.5rem;
    padding: 2.5rem 2.5rem 6rem;
    max-width: 1600px;
    margin: auto;
}

.plant-card {
    background-color: transparent;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform .3s;
}

.plant-card:hover {
    transform: translateY(-8px);
}

.plant-image-wrapper {
    position: relative;
    margin-bottom: 1rem;
    background: #05081a;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    transition: box-shadow .4s;
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(145deg, #2a3a8a, var(--accent-silver), #2a3a8a);
}

.plant-card:hover .plant-image-wrapper {
    box-shadow: 0 0 15px -4px var(--accent-silver), inset 0 0 10px 2px var(--accent-purple-faint);
}

.plant-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    transition: filter .4s;
}

.plant-card:hover img {
    filter: brightness(1.1);
}

.plant-card h2 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    transition: color .3s, text-shadow .3s;
}

.plant-card:hover h2 {
    color: var(--accent-silver);
    text-shadow: 0 0 8px var(--accent-purple-faint);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(10, 18, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
}

.modal-overlay:target {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--accent-purple);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 30px rgba(122, 106, 179, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform .4s ease .1s;
}

.modal-overlay:target .modal-content {
    transform: scale(1) translateY(0);
}

.modal-content img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid #2a3a8a;
}

.modal-content h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--accent-silver);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 0 8px var(--accent-purple);
}

.modal-content ul {
    list-style: none;
}

.modal-content li {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    border-left: 2px solid var(--accent-purple);
    padding-left: 1rem;
}

.modal-content li strong {
    color: var(--text-primary);
    font-style: italic;
    display: block;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 2rem;
    line-height: 1;
    transition: color .3s, transform .3s;
}

.modal-close:hover {
    color: var(--accent-silver);
    transform: scale(1.2);
}

@media (max-width:768px) {

    .header h1 {
        font-size: 2rem;
    }

    .plant-grid {
        padding: 1rem;
        gap: 1.5rem;
    }

    .modal-content {
        width: 95%;
        padding: 1rem;
    }

    .modal-content img {
        height: 200px;
    }
}

@media (max-width:480px) {
    .plant-card h2 {
        font-size: 1rem;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}

/* 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 {
    font-size: 14px;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}

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

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

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

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

.custom-footer .footer-col ul li a {
    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 {
    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;
    }
}