/* CSS file for Hexadecimal Nibble website */
/* File is mobile first, desktop second. Specific styling for desktop is at the end of the file. */

/* || Base page CSS, applied to all elements of the same type || */
:root {
    /* Define CSS variables, used for consistent background colors.
    /* These may be adjusted in JavaScript later for easy switching between light and dark mode */
    /* Set standard background color, (text) color, and font family */
    --accent-color: #5cc79a;
    --background-color: #0b1511;
    --primary-color: #b3ffdf;
    --secondary-color: #175e3f;
    --text-color: #e8fff3;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: "Inter", system-ui, sans-serif;
}

body {
    /* Add fade in animation */
    animation: fadeInAnimation ease 1.5s;
    /* Remove margin from body (or else page doesn't fill the whole screen) */
    margin: 0;
}

img {
    /* Make sure images can't be bigger than the page, override if needed */
    max-width: 100%;
}

.hidden {
    /* Hide an element */
    visibility: hidden !important;
}

/* || Skip to main content link || */
.skip-link {
    /* Styling for hidden skip to main content link for accessibility */
    background-color: var(--background-color);
    color: var(--accent-color);
    height: 0px;
    left: 20px;
    overflow: hidden;
    position: fixed;
    right: auto;
    top: 85px;
    width: 0px;
    z-index: 99999;
}

.skip-link:focus {
    /* Make the hidden skip to main content link visible when focused */
    height: auto;
    width: auto;
}

/* || Navbar || */
nav {
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background-color: rgba(11, 21, 17, 0.4);
    border-radius: 33px;
    display: flex;
    flex-direction: column;
    font-size: 1.2rem;
    height: 64px;
    list-style-type: none;
    margin: 10px;
    overflow: hidden;
    position: fixed;
    top: 0;
    transition: all 0.5s ease-in-out;
    width: calc(100% - 20px);
    z-index: 10;
}

.navbar-menu {
    /* Styling for the list of pages on the navbar */
    display: flex;
    flex-direction: column;
    height: 0;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    visibility: hidden;
}

.navbar-menu a:link, .navbar-menu a:visited {
    color: white;
    text-decoration: none;
}
nav img {
    height: 45px;
}
.navbar-logo {
    line-height: 0;
}
.navbar-spacer {
    width: 60px;
}
.navbar-main {
    align-items: center;
    display: flex;
    height: 64px;
    justify-content: space-between;
    line-height: 0;
    width: calc(100% + 20px);
}
.navbar-menu-button {
    padding-right: 30px;
}
.navbar-menu-button img {
    width: 30px;
}
.navbar-toggle-theme {
    border-radius: 999px;
    height: 64px;
    margin-left: 116px;
    width: 64px;
}

/* || Header  || */
.header {
    align-items: center;
    background: linear-gradient(
        210deg,
        #175e3f,
        #1d6747,
        #24704e,
        #2a7956,
        #30835e,
        #368c66,
        #3d966f,
        #439f77,
        #49a980,
        #4fb388,
        #56bd91,
        #5cc79a
    );
    display: flex;
    flex-direction: column;
    height: calc(100vh + 50px);
}

.header-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 84px);
    justify-content: center;
    padding-top: 84px;
    text-align: center;
    width: 80%;
}

.header h1, h2 {
    margin: 0;
    text-align: center;
}



.home-section-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0.5rem;
    margin-top: 0px;
    text-align: center;
    width: 100%;
}
.member-section-heading {
    margin-top: 50px;
}
.home-section-text {
    margin-bottom: calc(1.5rem - 1rem);
    width: 80%;
}
.home-section-text p {
    margin-top: calc(1rem - 1.5rem);
}
.horizontal-blur {
    backdrop-filter: blur(10px);
    height: 100px;
    mask-image: linear-gradient(transparent, black, black, transparent);
    position: relative;
    top: -50px;
    width: 100%;
}
.horizontal-blur-container {
    height: 0;
    overflow: visible;
    width: 100%;
}
.about-person-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.about-person {
    width: 100%;
    max-width: 300px;   
    padding: 10px;
}
.about-person p {
    padding-top: 10px;
}
button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    height: 45px;
    margin-bottom: 1rem;
    width: 160px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
button:hover {
    transform: scale(1.05);
    background-color: #ffffff;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
footer {
    display: flex;
    justify-content: center;
}
/* Keyframes */
@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Seasons Page Styles */
.seasons-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}
.season-section {
    margin-bottom: 60px;
}
.season-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 20px;
}
.season-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.season-years {
    font-size: 1.2rem;
    color: #888;
    font-weight: bold;
}
.season-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
}
.season-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.season-stats h3, .season-media h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: left;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(10px);
}
.stat-label {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-color);
}
.media-carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.media-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
    scrollbar-width: none;
    width: 100%;
    max-width: 100%;
}
.media-carousel-track::-webkit-scrollbar {
    display: none;
}
.media-carousel-track .media-item,
.media-carousel-track .media-placeholder {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.media-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 600;
    transition: all 0.3s ease;
}
.media-placeholder:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(92, 199, 154, 0.05);
}
.media-item {
    border-radius: 15px;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(92, 199, 154, 0.15);
}
.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(11, 21, 17, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 0;
}
.carousel-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}
.carousel-btn.left {
    left: -15px;
}
.carousel-btn.right {
    right: -15px;
}
.carousel-btn.disabled {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}
.season-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 60px 0;
}

/* Desktop layout */
@media (min-width: 768px) {
    /* Navigation Bar */
    nav {
        height: 64px !important;
        flex-direction: row;
        justify-content: space-between;
        padding: 0 40px;
        width: calc(100% - 100px);
    }
    .navbar-main {
        width: auto;
        flex: none;
    }
    .navbar-spacer {
        display: none;
    }
    .navbar-menu-button {
        display: none !important;
    }
    .navbar-menu {
        flex-direction: row;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static;
        padding: 0;
        align-items: center;
        gap: 30px;
    }
    .navbar-menu h2 {
        font-size: 1.1rem;
        margin: 0;
    }
    .navbar-menu br {
        display: none;
    }

    /* Header */
    .header-content {
        max-width: 800px;
    }

    /* Home Sections */
    .home-section-content {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 0;
        max-width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    .horizontal-blur-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: -1;
    }
    
    .home-section-content > .home-section-image {
        width: 50%;
        max-width: none;
        border-radius: 0;
        object-fit: cover;
        min-height: 500px;
    }
    
    .home-section-content > .home-section-text-container {
        width: 50%;
        padding: 80px 10%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }
    
    .home-section-content .home-section-text {
        width: 100%;
        margin-bottom: 20px;
    }
    
    #home-first .home-section-content {
        flex-direction: row-reverse;
    }

    /* About Members Grid */
    .about-person-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 0;
    }
    .about-person {
        max-width: none;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 20px;
        backdrop-filter: blur(10px);
        transition: transform 0.3s ease;
    }
    .about-person:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.1);
    }

    /* Seasons Desktop */
    .season-content {
        flex-direction: row;
    }
    .season-stats {
        flex: 1;
    }
    .season-media {
        flex: 2;
        min-width: 0;
    }
}
