/* ----- Imports -----*/
@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Lexend:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    /* ----- Fonts ----- */
    --font-title: 'Poppins', serif;
    --font-text: 'Lexend', sans-serif;
    --font-code: 'Fira Code', monospace;

    /* ----- Colors ----- */
    --color-background: #0D110F;
    --color-text: #EAEAEA;
    --color-text-muted: #888;
    --color-accent-primary: #00FFFF;
    --color-accent-secondary: #7FFF00;
    --color-accent-tertiary: #8A2BE2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    max-width: 100vw;
    background-color: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    letter-spacing: 1.5px;
    font-weight: 100;
    text-transform: uppercase;
}



/*----- Header -----*/
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

#main-header.scrolled {
    background-color: rgba(13, 17, 15, 0.7);
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo-bioma {
    height: 90px;
    width: auto;
    flex-shrink: 0;
}

/*----- Navegação Principal (Desktop) -----*/
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px; 
}

.main-nav a {
    font-family: var(--font-text);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

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

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

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    width: 30px;
    height: 30px;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 7px; }
.hamburger-menu span:nth-child(2) { top: 14px; }
.hamburger-menu span:nth-child(3) { top: 21px; }

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {

    .main-nav {
        display: none;
    }

    .hamburger-menu {
        display: block; 
    }

    .main-nav.active {
        display: flex; 
        justify-content: center;
        align-items: center;
        
        position: fixed;    
        top: 0;
        left: 0;
        width: 100vw;   
        height: 100vh;

        background-color: rgba(13, 17, 15, 0.952);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1001;
        animation: fadeIn 0.3s ease-in-out;
    }

    .main-nav.active ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    
    .main-nav.active a {
        font-size: 1.5rem;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

/*----- Hero -----*/

#hero {
    position: relative;
    width: 100%;
    height: 88vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hero h1 {
    z-index: 2;
    color: var(--color-text);
    font-family: var(--font-title);
    font-size: 150px;
    text-align: center;
    padding: 0 20px;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: right;
    z-index: 0;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@media (max-width: 900px) {
    #hero h1 {
        font-size: 65px;        
    }
}

/*----- The Nocturnal Cycle -----*/
#nocturnal-cycle {
    padding: 40px;
}

#nocturnal-cycle h1 {
    font-size: 100px;
    font-weight: 500;
    padding: 0px 40px;
}

#nocturnal-cycle h2 {
    font-family: var(--font-title);
    font-weight: 400;
}

#nocturnal-cycle p {
    font-family: var(--font-text);
    font-weight: 300;
}

#nocturnal-cycle #events-list {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
    gap: 40px;
    justify-content: space-between;
    padding: 50px 40px;
}

.event-card {
    background-color: #111513;
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    margin: 0;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent-primary);
}

.event-image-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #000;
}

.event-image-container img {
    width: 100%;
    height: 100%;
    display: block; 
    object-fit: cover;
}

.event-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}

.event-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-accent-primary);
}

.event-content p {
    font-family: var(--font-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
}
.event-content a {
    text-decoration: none;
}
.btn-tickets {
    display: block;
    background-color: var(--color-accent-primary);
    color: var(--color-background);
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-tickets:hover {
    background-color: var(--color-accent-secondary);
    transform: scale(1.03);
}

@media (max-width: 900px) {
    #nocturnal-cycle h1, 
    #nocturnal-cycle h2,
    #nocturnal-cycle p {
        text-align: center;
    }

    #nocturnal-cycle h1 {
        padding: 0px;
        font-size: 50px;
    }

        #nocturnal-cycle h2 {
            font-size: 24px;
    }

    #nocturnal-cycle #events-list {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 30px;
    }

    .event-card {
        flex: 1 1 90%;
        max-width: 100%;
        padding: 10px;
    }

    .event-image-container {
        width: calc(100% + 40px);
        margin: -20px -20px 15px -20px;
        height: 250px;
    }
}

/* ----- Nocturnal Cycle Responsivity Fix ----- */

@media (max-width: 900px) {
    #nocturnal-cycle {
        padding: 40px 20px;
    }

    #nocturnal-cycle h1 {
        font-size: 45px;
        padding: 0;
        text-align: center;
        line-height: 1.1;
        margin-bottom: 20px;
    }

    #nocturnal-cycle #events-list {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 30px;
    }

    .event-card {
        max-width: 100%;
        width: 100%;
    }

    .event-image-container {
        height: 250px;
    }

    .event-content {
        padding: 20px;
    }

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

@media (min-width: 901px) and (max-width: 1300px) {
    #nocturnal-cycle #events-list {
        justify-content: center;
        gap: 20px;
    }

    .event-card {
        max-width: calc(50% - 20px);
    }
}

/* ----- Fix Nocturnal Cycle (1300px - 1600px) ----- */

@media (min-width: 1200px) and (max-width: 1600px) {
    #nocturnal-cycle #events-list {
        justify-content: center;
        gap: 20px;
    }

    .event-card {
        max-width: calc(33.33% - 20px);
        min-width: 350px;
    }
}

@media (max-width: 1400px) {
    .event-content h2 {
        font-size: 1.4rem;
    }
    
    #nocturnal-cycle h1 {
        font-size: 80px;
    }
}

/*----- Ecosystem -----*/
#ecosystem {
    min-height: 80vh;
    position: relative;  
    display: flex;
    align-items: center;
    justify-content: flex-start;

    background: linear-gradient(to right, 
        var(--color-background) 20%, 
        rgba(13, 17, 15, 0.7) 50%, 
        rgba(13, 17, 15, 0) 70%
    ),
    
    url('../assets/media/images/ecosystem/image1.png');

    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

/* Container que segura o texto */
.ecosystem-content {
    max-width: 50%;
    padding: 60px;
    color: var(--color-text);
}

.ecosystem-content h2 {
    font-size: 70px;
    color: var(--color-accent-primary);
    font-weight: 100;
}

.ecosystem-content h3 {
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 400;
}

.ecosystem-content p {
    font-family: var(--font-text);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
}

/* ----- Mobile ----- */
@media (max-width: 1200px) {
    #ecosystem {
        justify-content: center;
        text-align: center;
        background-position: center center;
        background: linear-gradient(rgba(13, 17, 15, 0.562), rgba(13, 17, 15, 0.459)), 
                    url('../media/images/ecosystem/image1.png');
        background-size: cover;
    }

    .ecosystem-content {
        max-width: 90%;
        padding: 40px 20px;
    }

    .ecosystem-content h2 {
        font-size: 3rem;
    }
}

/*----- The Source Code -----*/
#source-code {
    padding: 120px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

#source-code h2 {
    font-size: 70px;
    font-weight: 100;
    color: var(--color-accent-primary);
}

#source-code h3 {
    font-size: 1.2rem;
    font-family: var(--font-text);
    font-weight: 400;
    text-transform: none;
    color: var(--color-text);
    margin-top: -20px;
    max-width: 40ch;
}

.code-block {
    width: 100%;
    max-width: 650px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    padding-top: 40px;
}

.code-comment {
    font-family: var(--font-code);
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-bottom: 15px;
}

#source-code p {
    font-family: var(--font-text);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text);
}

.code-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.code-form input {
    background-color: transparent;
    border: 1px solid var(--color-text-muted);
    border-radius: 5px;
    padding: 12px 15px;
    color: var(--color-text);
    font-family: var(--font-code);
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease;
}

.code-form input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
}

.code-form button {
    background-color: var(--color-accent-primary);
    color: var(--color-background);
    border: none;
    border-radius: 5px;
    padding: 12px 25px;
    font-family: var(--font-title);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.code-form button:hover {
    background-color: var(--color-accent-secondary);
}


@media (max-width:900px) {
    #source-code h2 {
        font-size: 50px;
    }
}


/*---- Specimens -----*/
#specimens {
    padding: 40px 40px;
    text-align: center;
}

#specimens h2 {
    font-size: 4rem;
    margin-bottom: 10px;
}

#specimens h3 {
    font-size: 1.2rem;
    font-family: var(--font-text);
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: none;
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}


.gallery-link {
    margin-top: 60px;
}

.gallery-link a {
    font-family: var(--font-code, monospace);
    color: var(--color-accent-primary);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;

    transition: 0.3s ease;
}

.gallery-link a:hover {
    color: var(--color-accent-secondary);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #specimens {
        padding: 80px 20px;
    }

    #specimens h2 {
        font-size: 3rem;
    }
}

/*----- Coordinates -----*/
#coordinates {
    padding: 100px 40px;
    background-color: #111513;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
}

#coordinates h2 {
    font-size: 4rem;
    margin-bottom: 10px;
}

#coordinates h3 {
    font-size: 1.2rem;
    font-family: var(--font-text);
    font-weight: 400;
    color: var(--color-text-muted);
    text-transform: none;
    margin-bottom: 80px;
}

.coordinates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.contact-block h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent-primary);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.contact-block p, .contact-block li {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.contact-block a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.contact-block a:hover {
    color: var(--color-text);
}

.social-links {
    list-style: none;
    padding: 0;
}

@media (max-width: 900px) {
    #coordinates {
        padding: 80px 20px;
    }

    #coordinates h2 {
        font-size: 50px;
    }

    .coordinates-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

/*----- Footer -----*/

footer {
    font-family: var(--font-code);
    background-color: black;
    padding: 10px;
    text-align: center;
}

footer a{
    background-color: black;
    color: white;
    text-decoration: none;
}

footer a:hover{
    background-color: black;
    color: var(--color-accent-primary);
    text-decoration: underline;
}