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

body {
    font-family: 'Open Sans', sans-serif;
    /* Use a nearly black background across the site to match the new logo */
    background: #05010b;
    color: #f5f5f5;
    line-height: 1.6;
    min-height: 100vh;
}

/* Logo styling */
.logo {
    /* Reduce logo size by ~10% so it doesn’t dominate the page */
    max-width: 360px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7));
}

/* Tagline styling */
.tagline {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #b38dfc;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
}

/* Hero section */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem 2rem;
    text-align: center;
    overflow: hidden;
}

.hero-small {
    padding: 3rem 1rem 1rem;
}

/* Warehouse background overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('warehouse-bg.png') center/cover no-repeat;
    /* Make the warehouse overlay more subtle against the new black background */
    opacity: 0.05;
    z-index: -1;
}

/* Slideshow container */
/* Wrapper for the slideshow so it can be positioned between the navigation and content */
.slideshow-wrapper {
    width: 85%;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
}

/* Slideshow container */
.slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 20s infinite;
    transition: opacity 1s ease-in-out;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }
.slide:nth-child(4) { animation-delay: 15s; }

@keyframes slideShow {
    0% { opacity: 0; }
    5% { opacity: 1; }
    20% { opacity: 1; }
    25% { opacity: 0; }
    100% { opacity: 0; }
}

/* Navigation */
/*
 * Navigation bar styled as a thick, cylindrical bar with gold trim. */
.main-nav {
    display: flex;
    width: 95%;
    max-width: 1100px;
    margin: 1.5rem auto 0.5rem auto;
    background: linear-gradient(to bottom, #1a1a1a, #050505);
    border: 2px solid #b38f46;
    border-radius: 50px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.8), inset 0 2px 4px rgba(255, 255, 255, 0.05), inset 0 -3px 6px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Button-style links within the navigation bar */
/* Navigation links styled as contiguous segments with gold accents. */
.main-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fdf8f2;
    background: linear-gradient(to bottom, #131313, #050505);
    border-left: 2px solid rgba(179, 143, 70, 0.6);
    border-right: 2px solid rgba(40, 25, 5, 0.6);
    box-shadow: inset 0 -3px 4px rgba(0, 0, 0, 0.6), inset 0 3px 4px rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    /* Fix alignment: ensure all buttons have uniform vertical padding and no wrapping */
    padding: 0.8rem 0;
    white-space: nowrap;
}

/* Add the right border back on the last nav item to complete the gold outline */
/* Remove seams on the outer edges to blend with the rounded bar */
.main-nav a:first-child {
    border-left: none;
}
.main-nav a:last-child {
    border-right: none;
}

/* Hover state: brighten the gold border and lighten the button background */
/* Hover state: lighten the background and brighten the gold seams */
.main-nav a:hover {
    background: linear-gradient(to bottom, #2c2c2c, #0d0d0d);
    color: #ffffff;
    border-left-color: #d6a84a;
    border-right-color: #5a3912;
}

/* Remove the shimmer effect defined previously */
/* Remove shimmer pseudo-elements. */

/* Sections */
.mission,
.contact-section,
.map-section {
    position: relative;
    width: 85%;
    max-width: 1000px;
    margin: 4rem auto;
    background: rgba(20, 0, 40, 0.6);
    padding: 2rem;
    border-left: 4px solid #b38dfc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* A dedicated section for the interactive map. It inherits the global page width but has no
   background so the Leaflet map isn’t obscured by tinted panels. */
.map-display {
    width: 85%;
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
    padding: 0;
}

/* For the map section we want the interactive map to be fully visible; reduce the background opacity
   and disable the smoke overlay. */
.map-section {
    /* Keep the map section transparent so the underlying map is fully visible */
    background: rgba(20, 0, 40, 0.1);
}

.map-section::after {
    display: none;
}

/* Increase spacing above mission section and others for better separation */
.mission {
    position: relative;
    width: 85%;
    max-width: 1000px;
    margin: 4rem auto;
    background: rgba(20, 0, 40, 0.6);
    padding: 2rem;
    border-left: 4px solid #b38dfc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.mission h2,
.contact-section h2,
.map-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #b38dfc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mission p,
.contact-section p,
.map-section p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mission p strong {
    color: #d78fff;
}

/* Members grid */
.members-grid {
    width: 85%;
    max-width: 1000px;
    margin: 2rem auto 4rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Individual member card */
.member-card {
    background: rgba(20, 0, 40, 0.6);
    border-left: 4px solid #b38dfc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.member-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 0.8rem;
}

.member-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: #d6a84a;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.member-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Captcha section styling */
.captcha-section {
    width: 85%;
    max-width: 600px;
    margin: 4rem auto;
    background: rgba(20, 0, 40, 0.6);
    padding: 2rem;
    border-left: 4px solid #b38dfc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.captcha-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #b38dfc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.captcha-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.captcha-buttons button {
    flex: 1;
    max-width: 120px;
    padding: 0.6rem 0;
    background: linear-gradient(to bottom, #131313, #050505);
    color: #fdf8f2;
    border: 2px solid #b38f46;
    border-radius: 30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.captcha-buttons button:hover {
    background: linear-gradient(to bottom, #2c2c2c, #0d0d0d);
    border-color: #d6a84a;
}

/* GTFO page styling */
.gtfo-section {
    width: 85%;
    max-width: 1000px;
    margin: 4rem auto;
    background: rgba(20, 0, 40, 0.6);
    border-left: 4px solid #b38dfc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    text-align: center;
}

.gtfo-section img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.gtfo-section h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #b38dfc;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.gtfo-section p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.return-link {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: linear-gradient(to bottom, #131313, #050505);
    color: #fdf8f2;
    border: 2px solid #b38f46;
    border-radius: 30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}

.return-link:hover {
    background: linear-gradient(to bottom, #2c2c2c, #0d0d0d);
    border-color: #d6a84a;
}

/* Smoke overlay for sections */
/*
 * Add a drifting smoke effect behind each major section. The pseudo-element covers
 * a region twice the size of its container and uses a radial gradient to fade
 * from a vibrant purple to transparent. The opacity is set higher than before
 * to make the effect more apparent against the dark background. The
 * mix-blend-mode of "screen" allows the gradient to interact with the
 * underlying colors without obscuring the text. Each section delays the
 * animation slightly to avoid synchronised motion across the page.
 */
.mission::after,
.contact-section::after,
.map-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* Purple smoke that fades to transparent towards the edges.
       Increase the starting opacity of the gradient to 0.6 and extend the
       transition to 70% so the smoke lingers across more of the area. */
    background: radial-gradient(circle, rgba(179, 141, 252, 0.6) 0%, rgba(20, 0, 40, 0) 70%);
    animation: smokeMove 30s linear infinite;
    opacity: 0.6;
    pointer-events: none;
    mix-blend-mode: screen;
}

.mission::after { animation-delay: 0s; }
.contact-section::after { animation-delay: 10s; }
.map-section::after { animation-delay: 20s; }

@keyframes smokeMove {
    0% { transform: translate(0,0) scale(1); }
    50% { transform: translate(30%,30%) scale(1.3); }
    100% { transform: translate(0,0) scale(1); }
}

/* Contact form */
.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-section label {
    font-weight: 600;
    color: #f5f5f5;
}

.contact-section input,
.contact-section textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    color: #f5f5f5;
    font-size: 1rem;
    resize: vertical;
}

.contact-section input:focus,
.contact-section textarea:focus {
    outline: none;
    border-color: #b38dfc;
    box-shadow: 0 0 6px #b38dfc;
}

.contact-section button {
    align-self: flex-start;
    background: linear-gradient(90deg, #b38dfc, #8a2be2);
    border: none;
    color: #0b0316;
    padding: 0.75rem 2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
}

.contact-section button:hover {
    background: linear-gradient(90deg, #8a2be2, #b38dfc);
    transform: translateY(-2px);
}

.contact-section button:active {
    transform: translateY(0);
}

/* Map page styles */
.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.map-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slightly blur the map image to 50% clarity and darken it to allow overlay text
       to stand out. */
    filter: blur(3px) brightness(0.5);
}

.map-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #d78fff;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    background: rgba(5, 0, 15, 0.9);
    color: #8880a5;
    font-size: 0.85rem;
}

/* Interactive map container for the Leaflet map */
.interactive-map {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    z-index: 1; /* ensure the interactive map appears above smoke overlay */
}

/* Custom marker style for the shelve spots */
.custom-marker .marker-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #b38dfc;
    border: 2px solid #b38f46;
    box-shadow: 0 0 6px rgba(179, 143, 70, 0.8);
}

/* Ensure the Leaflet map background matches our dark theme */
.leaflet-container {
    background: #05010b !important;
    color: #f5f5f5;
}

@media (max-width: 768px) {
    .slideshow {
        height: 250px;
    }
    .mission, .contact-section, .map-section {
        width: 92%;
    }
    .map-container {
        height: 300px;
    }
}
