/* Font Face Declaration for Gunplay */
@font-face {
  font-family: "gunplay";
  src: url("../assets/fonts/gunplay.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables for Color Palette */
:root {
    --primary: #dcc9a8;
    --secondary: #a3826a;
    --accent: #526952;
    --background: #2b2b2b;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
}

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

html {
    scroll-padding-top: 100px;
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--background);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(43, 43, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 2px 0;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--accent);
}

.navbar.scrolled {
    padding: 11px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 120px;
    width: auto;
    transition: height 0.3s ease;
    display: block;
}

.navbar.scrolled .nav-logo img {
    height: 52px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .discord-link {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 10px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-menu .discord-link::after {
    display: none;
}

.nav-menu .discord-link:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(82, 105, 82, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Masthead Section */
.masthead {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 35rem;
    padding: 15rem 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 75%, #000 100%), url('assets/img/masthead.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.masthead-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    animation: fadeInUp 1.5s ease;
}

.masthead-logo-container {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: fadeIn 2s ease;
}

.masthead-logo {
    width: auto;
    height: auto;
    max-height: 350px;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.6;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.7));
}

.masthead-title {
    font-family: 'Gunplay', sans-serif;
    font-weight: normal;
    font-size: 4rem;
    line-height: 4rem;
    letter-spacing: 0.8rem;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2));
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.masthead-subtitle {
    font-family: 'Lexend', sans-serif;
    max-width: 20rem;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 auto;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
.section {
    padding: 100px 0;
    background-color: var(--background);
}

.section-alt {
    background-color: #1f1f1f;
}

.section-title {
    font-family: 'Gunplay', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    position: relative;
    font-weight: normal;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    font-weight: normal;
    background-color: var(--accent);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.content-block h3 {
    font-family: 'Gunplay', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: var(--secondary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.content-block p {
    color: var(--primary);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: normal;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--background);
    border: 2px solid var(--accent);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(82, 105, 82, 0.3);
    border-color: var(--secondary);
}

.feature-image-container {
    position: relative;
    width: 100%;
    height: 200px;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid var(--accent);
}

.feature-image.contain {
    object-fit: contain;
}

.feature-card h3 {
    font-family: 'Gunplay', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: var(--secondary);
    margin: 20px 0 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feature-card p {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.7;
    padding: 0 30px 30px;
    margin: 0;
}

.progression-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0px 20px;
    margin: 0 0 20px 0;
    border: 2px solid var(--accent);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.progression-link:hover {
    background-color: var(--accent);
    color: var(--text-light);
    transform: translateY(-5px);
}

/* Progression Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border: 2px solid var(--accent);
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: var(--primary);
}

/* Gallery Section */
.gallery-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
    padding: 0 20px;
}

.gallery-viewport {
    flex: 1;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.4;
    transform: scale(0.78);
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--accent);
    display: block;
}

.gallery-slide.active img {
    border-color: var(--secondary);
}

.gallery-btn {
    background-color: var(--accent);
    color: var(--text-light);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-btn:hover {
    background-color: var(--secondary);
    transform: scale(1.1);
}

/* Schedule Grid */
.schedule-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.schedule-card {
    background: linear-gradient(135deg, var(--background) 0%, #1f1f1f 100%);
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 30px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 700px;
}

.schedule-card.featured {
    border-color: var(--secondary);
    border-width: 3px;
    transform: scale(1.05);
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(82, 105, 82, 0.3);
}

.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent);
}

.schedule-header h3 {
    font-family: 'Gunplay', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary);
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.schedule-badge {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.schedule-badge.primary {
    background-color: #6b5244;
}

.timezone-list {
    margin: 20px 0;
    padding: 15px;
    background-color: rgba(82, 105, 82, 0.15);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    text-align: center;
}

.timezone-item {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 8px 0;
    padding: 12px 0;
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    border-bottom: 1px solid rgba(163, 130, 106, 0.3);
}

.timezone-item:last-child {
    border-bottom: none;
}

.schedule-description {
    color: var(--primary);
    line-height: 1.7;
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--background);
    color: var(--primary);
    padding: 18px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    border: 2px solid var(--accent);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(82, 105, 82, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/img/footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    width: 100%;
}

.footer-cta {
    padding: 125px 0;
    text-align: center;
}

.footer-cta h2 {
    font-family: 'Gunplay', sans-serif;
    font-size: 3rem;
    font-weight: normal;
    color: var(--text-light);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.footer-bottom {
    text-align: center;
    padding: 30px 0;
    background-color: rgba(26, 26, 26, 0.95);
    border-top: 2px solid var(--accent);
}

.footer-bottom p {
    color: var(--secondary);
    font-size: 0.9rem;
}

.footer-disclaimer {
    font-size: 0.75rem !important;
    opacity: 0.6;
    margin-top: 8px;
}

/* Responsive Design */

/* Large desktop baseline */
@media screen and (min-width: 992px) {
    .masthead {
        height: 100vh;
        padding: 0;
    }

    .masthead-title {
        font-size: 4.5rem;
        line-height: 4.5rem;
        letter-spacing: 0.8rem;
    }

    .masthead-subtitle {
        max-width: 30rem;
        font-size: 1.25rem;
    }
}

/* Tablet landscape (769px – 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-menu a {
        font-size: 14px;
    }

    .nav-menu .discord-link {
        padding: 8px 16px;
    }

    .masthead {
        padding: 12rem 0 15rem;
    }

    .masthead-title {
        font-size: 3rem;
        line-height: 3rem;
        letter-spacing: 0.5rem;
    }

    .masthead-logo {
        max-height: 160px;
    }

    .section-title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-card.featured {
        transform: scale(1);
    }

    .gallery-slide {
        flex: 0 0 100%;
        opacity: 1;
        transform: scale(1);
    }

    .gallery-slide.active {
        transform: scale(1);
    }

    .footer-cta {
        padding: 80px 0;
    }

    .footer-cta h2 {
        font-size: 2.2rem;
    }
}

/* Mobile (≤768px) */
@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-logo img {
        height: 48px;
    }

    .navbar.scrolled .nav-logo img {
        height: 42px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(43, 43, 43, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    .masthead {
        padding: 9rem 0 11rem;
        min-height: unset;
    }

    .masthead-title {
        font-size: 2.2rem;
        line-height: 2.4rem;
        letter-spacing: 0.4rem;
    }

    .masthead-subtitle {
        font-size: 1rem;
    }

    .masthead-logo {
        max-height: 120px;
    }

    .section {
        padding: 70px 0;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 40px;
    }

    .content-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .content-block h3 {
        font-size: 1.4rem;
    }

    .feature-card p {
        padding: 0 20px 20px;
    }

    .gallery-slide {
        flex: 0 0 100%;
        opacity: 1;
        transform: scale(1);
    }

    .gallery-slide.active {
        transform: scale(1);
    }

    .gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .schedule-grid {
        max-width: 100%;
    }

    .schedule-card {
        padding: 20px;
    }

    .schedule-card.featured {
        transform: scale(1);
    }

    .schedule-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .schedule-header h3 {
        font-size: 1.4rem;
    }

    .footer-cta {
        padding: 80px 0;
    }

    .footer-cta h2 {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 1rem;
    }
}

/* Small phones (≤480px) */
@media screen and (max-width: 480px) {
    .nav-logo img {
        height: 40px;
    }

    .masthead {
        padding: 7rem 0 8rem;
    }

    .masthead-title {
        font-size: 1.6rem;
        line-height: 2rem;
        letter-spacing: 2px;
    }

    .masthead-subtitle {
        font-size: 0.9rem;
    }

    .masthead-logo {
        max-height: 80px;
    }

    .section {
        padding: 55px 0;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .content-block h3 {
        font-size: 1.2rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .schedule-header h3 {
        font-size: 1.2rem;
    }

    .gallery-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .footer-cta {
        padding: 60px 0;
    }

    .footer-cta h2 {
        font-size: 1.6rem;
        letter-spacing: 1px;
    }

    .cta-button {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .footer-bottom p {
        font-size: 0.8rem;
        padding: 0 15px;
    }
}
