/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #eaeaea;
    /* Dark blue background with a high‑resolution starry texture */
    background: #02072e url('images/bg-highres.png') center/cover fixed;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Layout helpers */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Navbar */
/* Navbar: fixed at the top with a left‑side drawer menu */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Match the original semi‑transparent navigation bar from minegifts.org */
    background-color: rgba(0, 0, 0, 0.55);
    /* Apply a subtle blur effect to create a frosted glass look */
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 1rem;
    /* Use a softer drop shadow similar to the original site */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo img {
    height: 48px;
    width: auto;
}

/* Drawer menu styles. Initially hidden offscreen and slides in when active. */
.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 5rem;
    padding-left: 1.5rem;
    background-color: rgba(0, 0, 0, 0.95);
    transform: translateX(-100%);
    /* Hide the drawer offscreen and delay the visibility change until after
       the slide animation completes. This prevents a small visible strip
       when the menu is closed. */
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s 0.3s;
    z-index: 1500;
}

.nav-links.active {
    transform: translateX(0);
    visibility: visible;
    transition-delay: 0s;
}

.nav-links a {
    color: #cfd3d8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: #4bb3fd;
}

/* Menu toggle visible at all sizes */
.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.8rem;
    color: #cfd3d8;
}

@media (min-width: 769px) {
    /* Even on larger screens we use the drawer; adjust width */
    .nav-links {
        width: 280px;
    }
}

/* Section styling */
section {
    padding: 4rem 0;
    text-align: center;
}

.card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: #dfe6f2;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}
.btn.primary {
    background: #007bff;
    color: #ffffff;
}
.btn.primary:hover {
    background: #0056b3;
}

/* Stats list */
.stats-list {
    list-style: none;
    margin: 0 auto;
    max-width: 600px;
    padding: 0;
    font-size: 1rem;
    line-height: 1.5;
}
.stats-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: #d1d9e6;
}
.stats-list .bullet {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    background: #00aaff;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.35rem;
}

/* Review cards */
.reviews-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.review-card {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    width: 280px;
    color: #cfd3d8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.review-card .stars {
    color: #ffc107;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Contact form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 2rem auto 0;
}
.contact-form input,
.contact-form textarea {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #eaeaea;
    font-size: 0.95rem;
    resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aeb4c0;
}
.contact-form button {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover {
    background-color: #0056b3;
}

/* Footer */
.footer-menu {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    text-align: center;
}
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.footer-nav a {
    color: #cfd3d8;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-nav a:hover {
    color: #4bb3fd;
}
.footer-menu p {
    color: #757c91;
    font-size: 0.9rem;
}

/* Additional helpers */
.note {
    font-size: 0.85rem;
    color: #aeb4c0;
    margin-top: 1rem;
    font-style: italic;
}

/* Carousel styles */
/* Carousel
   ---------------------------------------------------------------------------
   The carousel displays a looping set of feature cards. To achieve the user’s
   request of seeing only four items at once with generous spacing, each
   carousel image is given a narrower width and larger horizontal margin. The
   overall carousel height is reduced slightly to make it less dominant on
   the page.  */
.carousel {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    /* Slightly reduced height for a more compact look */
    height: 200px;
}

.carousel-track {
    display: flex;
    width: 200%; /* duplicate images for seamless scrolling */
    animation: scroll 20s linear infinite;
}

/* Each image occupies roughly one‑fifth of the carousel width, leaving room
   for spacing between cards. A generous right margin creates breathing space
   equivalent to roughly one quarter of an image width. Multiple animations
   (float and pulse) give the pictures a subtle “alive” feel without
   distracting the viewer. */
.carousel-track img {
    /* Display four images at a time.
       Because the carousel track has a width of 200% (two sets of images),
       each image must consume roughly half of the desired container width.
       Setting width to 11.5% and margin‑right to 1% means on the doubled
       track they occupy ~23% and 2% of the container respectively. Four
       items therefore fit comfortably across the viewport with spacing. */
    width: 10%;
    margin-right: 2%;
    flex-shrink: 0;
    border-radius: 8px;
    animation: float 6s ease-in-out infinite, pulse 8s ease-in-out infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating animation for carousel images
   Moves each card gently up and down while scaling slightly to create the
   impression that the cards are “breathing” on the page. */
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.06); }
    100% { transform: translateY(0) scale(1); }
}

/* Pulse animation for carousel images
   Adds a mild rotation and brightness pulse to give life to the artwork.
   The rotation amount is kept very small so cards remain inside their
   bounding squares. */
@keyframes pulse {
    0%, 100% { transform: rotate(0deg); filter: brightness(1); }
    50% { transform: rotate(1deg); filter: brightness(1.1); }
}

/* Animations for live purchase list */
.live-item {
    opacity: 0;
    transform: translateY(20px);
    animation: live-in 0.6s forwards;
}
@keyframes live-in {
    to { opacity: 1; transform: translateY(0); }
}
.exit {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: opacity 0.6s, transform 0.6s;
}

/* Rotate menu icon when menu is open */
.menu-toggle {
    transition: transform 0.3s ease;
    /* Ensure the toggle button stays above the sliding navigation panel */
    /* Pin the toggle button to the top left corner so it remains clickable even when the side menu is open */
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 3000;
}
.menu-toggle.open {
    transform: rotate(90deg);
}