/*==============================
    RESET
==============================*/

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

/*==============================
    VARIABLES
==============================*/

:root{

    --background:#0D0D0D;

    --surface:#171717;

    --text:#F2F2F2;

    --text-secondary:#cfcfcf;

    --accent:#9EFF00;

    --accent-soft:#9dff0061;

    --accent-darkengr:#223800b9;

    --accent-hover:#9dff00ab;

    --transition:.3s ease;

    --radius-md:15px;

    --radius-lg:20px;

    --container:1200px;

}

/*==============================
    BASE
==============================*/

html{

    scroll-behavior:smooth;

}

body{

    background:var(--background);

    color:var(--text);

    font-family:'Geist',sans-serif;

}

/*==========================
    LAYOUT
============================*/
.container{

    max-width:var(--container);

    margin:0 auto;

}

section{
    padding:9%;
}

.section-title{
    text-align:center;
    font-size:2.5rem;
    margin-bottom:50px;
}

/*=======================
    COMPONENTS
=========================== */

nav{
    position:fixed;
    width:100%;
    top:0;
    left:0;
    padding:20px 0;
    z-index:1000;
    background:rgba(0,0,0,0.4);
    backdrop-filter:blur(10px);
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding: 15px;
}


.nav-links{

    display:flex;
    gap:35px;
    list-style:none;
    
    text-transform:uppercase;

}

.menu-toggle{

    display:none;

}

.menu-overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    backdrop-filter:blur(3px);

    opacity:0;

    visibility:hidden;

    transition:var(--transition);

    z-index:900;

}

.menu-overlay.active{

    opacity:1;

    visibility:visible;

}


/* Style the active link (or home/logo) */


.logo{
    font-size:1.8rem;
    font-weight:900;
    letter-spacing:3px;
}

nav a{
    color:var(--text);
    text-decoration:none;
    transition:var(--transition);
}

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


.btn{
    display:inline-block;
    padding:0.5em 3em;
    border-color:var(--text-secondary);
    color:var(--text);
    text-decoration:none;
    border-radius:5px;
    transition:var(--transition);
}

.btn:hover{
    background:var(--accent-soft);
    transform:translateY(-3px);
    border-style: none;
}

    /* EVENTS CARDS */

.events{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.event-card{
    background:var(--surface);
    padding:30px;
    border-radius:var(--radius-lg);
    text-align:center;
}

.event-card h3{
    color:#9dff00b0;
    margin-bottom:15px;
}

/*=========================
    SECTIONS
=========================== */

.hero{
    min-height:100svh;
    background-image:url('../assets/GilbertCZmov.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; 
    -webkit-mask-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 1.0) 80%, 
        rgba(0, 0, 0, 0.0) 100%
    );
    transition: transform 0.8s ease-out;
    animation: show 1.1s ease-in forwards;
    display:flex;
    justify-content:center;
    align-items:flex-end;
    text-align:center;
    padding:
        7rem
        20px
        4rem;
    
}

.hero-content{

    padding-bottom:1vh;
    padding-top: 30%;

}

.hero-content h1{
    font-size:clamp(3rem,8vw,7rem);
    text-transform:uppercase;
    letter-spacing:6px;
}

.hero-content p{
    margin:20px 0;
    font-size:0.7rem;
    color:#ddd;
}

.playList a{
    font-size: 14px;
    color: var(--accent);
    text-decoration: none;
}
.playList a:hover{
    color:var(--text);
}



/* ABOUT ME */

.paragraph{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.paragraph p{
    color:var(--text-secondary);
    font-size:1.1rem;
}

/* TECHNICAL RIDER*/



.text {
    white-space: nowrap; 
    color: var(--text);
    font-size: 1.5rem;
    position: absolute;
    overflow: hidden;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

/* =======================
    GRID GALLERY TEST
=========================*/
.film-strip {
  width: 100%;
  overflow-x: auto;
  background-color: var(--background);
  padding: 20px 0;
}

.roll {
  display: flex;
  gap: 15px;
  width: max-content;
  padding: 15px 40px;
  background-color:var(--background);
  border-top: 10px dashed #ffffff4a;
  border-bottom: 10px dashed #ffffff4a;
}

.roll img {
  height: 200px;
  width: auto;
  object-fit: cover;
  border: 2px solid #333;
}

/* Ancho de la barra */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  
}

/* Color del fondo/pista */
::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 50px;

}

/* Color de la barra deslizante */
::-webkit-scrollbar-thumb {
  background:var(--accent-darkengr);
  border-radius: 50px;

}

/* Color al pasar el cursor */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.MobileElem{
    display: none;
}



/* =======================
=========================*/



/* GALLERY DESKTOP */

.container-ph {
display: flex;
justify-content: center;
align-items: center;
margin: 10vmin;
overflow: hidden;
transform: skew(5deg);

    .card {
        flex: 1;
        transition: all 1s ease-in-out;
        height: 75vmin;
        position: relative;
        overflow: hidden;
        
        .card__head {
        
            letter-spacing: 0.3em;
            text-transform: uppercase;            
            color: var(--text);
            background: var(--accent-darkengr);
            padding: 0.5em;
            transform: rotate(-90deg);
            transform-origin: 0% 0%;
            transition: all 0.5s ease-in-out;
            min-width: 100%;
            text-align: center;
            position: absolute;
            bottom: 0;
            left: 0;
            font-size: 0.8em;
            white-space: nowrap;
        }

    /**================= 
        SIZE CARDS 
    ===================**/
    &:nth-child(1){
        height: 68vmin; 
    }

    &:nth-child(3){
        height: 82vmin; 
    }

    &:nth-child(5){
        height: 68vmin; 
    }
    /**============**/

    .hiddenSection {
        display: none;
    }

    img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease-in-out;
    filter: grayscale(100%);
    }
    &:not(:nth-child(5)) {
    margin-right: 1em;
    }
    a{
        text-decoration: none;
        color: inherit;
    }
    a:hover{            
        color: var(--accent-hover);
    }

    }
}

/* =========================
   FEATURED SETS — DESKTOP HOVER
   ========================= */

@media (min-width: 769px) {

    .container-ph .card:hover {
        flex-grow: 15;
    }

    .container-ph .card:hover img {
        filter: grayscale(0);
    }

    .container-ph .card:hover .hiddenSection {
        display: block;
    }

    .container-ph .card:hover .card__head {
        text-align: center;
        top: calc(100% - 5em);
        color: var(--text);
        background: var(--background);
        font-size: 0.7em;
        transform: rotate(0deg) skew(-5deg);
    }

}


    /* IMAGES */


img {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
}


.gallerySection{
    position: relative;
    display: inline-block;
    margin: 0;

}

.gallerySection img{
    width: 100%;
    height: auto;
    display: block;

    }

.gallerySection figcaption {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
background-color: rgba(0, 0, 0, 0.7);
color: var(--text-secondary);
padding: 10px;
box-sizing: border-box;
text-align: center;
}


/* CONTACT */

.socials{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:20px;
    margin-top: 50px;
}

.socials a{
    color:var(--text);
    text-decoration:none;
    padding:5px 10px;
    border-radius:var(--radius-lg);
    transition:var(--transition);
    font-size: 12px;
    
}

.socials a:hover{
    background:#9dff002f;
    border-color:var(--accent);
}

footer{
    text-align:center;
    padding:30px;
    border-top:1px solid #222;
    color:#888;
}


/*============================
    MEDIA QUERIES
===============================*/

/** RESPONSIVE PC **/

@media (min-width: 769px) {
    .hero {
        background-image: url('../assets/GilbertCZpc.png');
        -webkit-mask-image: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 1.0) 80%, 
        rgba(0, 0, 0, 0.0) 100%
    );
    }
}

/* RESPONSIVE MOVILE*/

@media(max-width:768px){

    .logo{
        font-size:1.2rem;
    }

    nav{
        flex-direction:row;
        justify-content:space-between;
        padding:20px;
    }


    .nav-links{

        position:fixed;

        top:0;
        right:0;

        width:240px;
        height:100vh;

        background:rgba(18,18,18,.88);
        backdrop-filter:blur(20px);
        border-left:1px solid rgba(255,255,255,.08);
        box-shadow:-10px 0 40px rgba(0,0,0,.4);

        display:flex;
        flex-direction:column;
        justify-content:center;
        align-items:center;

        gap:35px;

        transform:translateX(100%);

        transition:var(--transition) ease;

        z-index:1001;

    }

    .nav-links.active{

        transform:translateX(0);

    }

    .nav-links a{

        font-size:1rem;

        letter-spacing:2px;

        text-transform:uppercase;

        transition:var(--transition);

    }

    .nav-links a:hover{

        color:var(--accent);

        transform:translateX(8px);

    }

    .menu-toggle{

        display:block;
        z-index:1002;


        background:transparent;
        border:none;

        color:var(--text);

        cursor:pointer;

        font-size:1.2rem;

        transition:var(--transition);

        padding:0;

    }

    .menu-toggle:hover{

        color:var(--accent);

    }

    .hero{

        min-height:100svh;
        background-size:cover;
        background-position:center;

    }

    .hero-content{
        padding-top: 40%;
    }

    .hero-content h1{
        letter-spacing:3px;
    }

    section {
        
        padding:35px 20px;

    }

    .section-title{
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .paragraph p{
        font-size:0.8rem;
        line-height:1.8;
    }

    .gallerySection figcaption p{
        font-size: 0.7rem;
    }

    /* =========================
   FEATURED SETS — MOBILE
   ========================= */

.container-ph {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;

    width: 100%;

    margin: 0;
    padding: 0 1rem 1.5rem;

    gap: 1rem;

    overflow-x: auto;
    overflow-y: hidden;

    transform: none;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}

.container-ph::-webkit-scrollbar {
    display: none;
}

/* CARDS */

.container-ph .card {
    flex: 0 0 85%;
    width: 85%;

    height: 70vh;

    margin: 0 !important;

    scroll-snap-align: center;

    transform: none;

    overflow: hidden;
}


/* IMAGE */

.container-ph .card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: grayscale(0);

    transform: none;
}


/* TITLE */

.container-ph .card .card__head {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    min-width: 0;

    padding: 1.2rem;

    transform: none;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.9)
    );

    text-align: left;

    letter-spacing: 0.15em;

    font-size: 0.75rem;

    white-space: normal;
}


/* SET LINK */

.container-ph .card .hiddenSection a {
    display: inline-block;

    color: var(--accent);

    text-decoration: none;

    font-size: 0.7rem;

    letter-spacing: 0.12em;
}

/* Same height for all cards */

.container-ph .card:nth-child(1),
.container-ph .card:nth-child(3),
.container-ph .card:nth-child(5) {
    height: 70vh;
}

.container-ph .card .hiddenSection {
        display: block;
        margin-top: 0.75rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }



    .roll img{
        height: 100px;
    }
    .MobileElem{
        display: block;  
        text-align: right;

    }

    .btn{

        padding: 0.8em 3em;
        border: 1px solid var(--text-secondary);
        background-color: var(--surface);
    }
    
    .btn:hover {
        color: var(--background);
        background: var(--accent);
    }

}



/*==============================
    ANIMATIONS - EFFECTS
===============================*/
@keyframes show {
    from { opacity: 0; }
    to   { opacity: 1; }
    }

@keyframes hidden {
    from { opacity: 1; }
    to   { opacity: 0; }
    }

@layer effect {
.noise {
    --lines: 0.0003px;
    
    /*
    repeating sub pixel radial hard stop lines
    creates thousands, so small they distort
    use this distortion as a mask
    the hard stops are basically on/off lines
    */
    mask: repeating-radial-gradient(
    circle at center,
    #000,
    var(--lines),
    #000,
    0, /* transition hints make code easier to manage */
    #0000,
    calc(var(--lines) * 2),
    #0000 0 /* trailing 0 is part of the hard stop logic */
    );
}
}

@layer effect.support {
* {
    box-sizing: border-box;
    margin: 0;
}
    
.noise {
    --space:auto;
    @supports (background: linear-gradient(in oklch, #000, #000)) {
    --space: in oklch;
    }
    
    display: grid;
    gap: 5vmin;
    
    /* shared gradient across headlines "fixed" */
    background: linear-gradient(to bottom right var(--space), #8A8A8A, var(--text)) fixed;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    
    @media (prefers-color-scheme: light) {
    background: linear-gradient(
        to bottom var(--space), 
        black, gray
    ) fixed;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    }
}
}
