:root {
    --bg-nav:  rgba(196, 196, 196, 0.8);
    --bg-header: #083344;
    --bg-main: #0065b3;
    --bg-main2: #4e46e5;
    --bg-content:  #0f172a;
    --bg-music: #ff5e00;
    --bg-footer: #1e293b;
    --text: #ffffff;
    --text-button: #0f172a;
}
/*#region ---   GLOBAL & PAGE SETUP           --- */
html, body { 
    height: 100vh; 
    margin: 0;
    display: flex;
    flex-direction: column; 
    overflow-x: hidden;
    max-width: 100vw;
    scrollbar-width: none; 
    animation: pageBrighten 0.75s ease-out;
 
}
a {
    color: var(--bg-main);;
}
 
header h1{
    text-align: center;
}
@keyframes pageBrighten {
    from{ background-color: var(--bg-content)};    
}
button{  
    text-decoration: none;
    background-color: #ffffff;
    color: var(--text-button);

    border-radius: 5px;

    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    
    transition: color 0.3s;
}
.home-page{
            background-color: var(--bg-content);
            /* Technical Blueprint Grid */
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.123) 1px, transparent 1px);
            background-size: 40px 40px;
} 
/*#endregion*/
/*#region ---   NAVIGATION                    --- */
nav { 
    position:   relative;
    top: 0;
    width: 100%;
    padding: 1.5rem;
    /* margin-bottom: 2rem; */

    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center; 

    align-self: center;

    color: white;
    
    background: var(--bg-header);
    border-bottom: 5px solid rgba(0,0,0,0.5);
}
nav button{
    color: #000;
}
nav h4{
    color: black;
}
.title {
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 1.4rem;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
    padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #bababa;
}
.dropdown{
    position: relative;
    display: inline-block;
}
.dropdown-content{ 
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    background-color: #f9f9f9e7;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    min-width: 160px;
    backdrop-filter: blur(2px);   
    z-index: 5;
}
.dropdown:hover .dropdown-content{
    display: block;
}
.dropdown a{
    color: black;
    display: block;
    padding: 12px 16px;
}
.dropdown-content a:hover {background-color: #f1f1f1; }
/* #endregion*/
/*#region ---   HERO SECTION                  --- */
.hero-section {
    margin: 0;
    padding: 0;
    max-width: 100%;
    background-color: var(--bg-header);
    color: #ffffff;
    padding: 8rem 1.5rem 12rem 1.5rem;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    animation: heroEntrance 1.2s ease-out forwards; 
}
.jam{
    background-color: var(--bg-music);
}
.hero-content {
    max-width: 90vw;
    margin: 0 auto;  
}

.hero-title {
    font-size: clamp(2rem, 8vw , 3.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    text-transform: uppercase; 
    text-align: center;
}

@keyframes heroEntrance {
    from {transform: scale(1.1) translateY(-20px); opacity: 0;}
    to {transform: scale(1) translateY(0); opacity: 1;}
}

/* #endregion*/
/*#region ---   CARD SCROLL SYSTEM            --- */
.scroll { 
    display: flex;
    flex: 1;
    min-height:500px;
    flex-direction: column;
    overflow-x:hidden;
    overflow-y: visible;
    scrollbar-width: none;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;    
    align-items: center;
    padding: 2rem;
}

/* Base Sticky Section */
.scroll > section {
    will-change: transform;
    position: sticky;
    top: 20px;
    flex: 0 0 60%; 
    width: 90%; 
    margin-bottom: 5vh; 
    display: flex;
    align-items: center;
    justify-content: center; 
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);    
    background-size: cover;
    view-timeline: --card-scroll block;
    animation: card-enter linear both;
    animation-timeline: --card-scroll;
    animation-range: entry 0% entry 100%; 
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Collection Specific Section */
.scroll > .card-collection {
    will-change: transform;
    position: sticky;
    top: 20px;
    flex: 0 0 60%; 
    width: 90%; 
    margin-bottom: 5vh; 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.2rem;
    overflow: hidden;
    background-color: #000000;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);    
    background-size: cover;
    view-timeline: --card-scroll block;
    
    animation: card-enter linear both; 
    animation-range: entry 0% entry 100%; 
    animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Mini Sections inside Collection */
.scroll > .card-collection section {
    border: 2px;
    border-radius: 10px;
    overflow: hidden;
    top: auto;
    position: relative;
    flex: 1 0 33%;
    background-size: cover;
}

/* Sticky Stacking Logic */
.scroll > section {      
    top: calc(var(--stack-index) * 20px);
}
/* Scroll Animations */
@keyframes card-enter {
    from { transform: rotate(3deg) scale(1.1); }
    to { transform: rotate(0deg) scale(1); }
}

/* #endregion*/
/*#region ---   CARD CONTENT & INTERACTIVE    --- */
.scroll a {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem; 
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: bolder;
    font-size: 1.5rem;
}

.scroll a span {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem; 
    opacity: 0.8;
}


/* #endregion*/
/*#region ---   CARD SKINS (IMAGES)           --- */

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 40%, rgba(2, 2, 2, 0.911) 80%);
    z-index: 1; 
}
.card-code {
    background-image: url('code/codeBackground.webp');
    background-position: center; 
}
.card-mileage {
    background-image: url('photography/images/564314344vds/_107653000ABDD7.webp');
    background-position: center;
}

.card-pay { 
    background-image: url('photography/images/564314344vds/_5755700000B9E9.webp');
    background-position: center;
}

.card-endless-game {
    background-color: #1e293b;
    background-image: url('games/endless_game/background_2.jpg');
}

.card-photography {
    background-image: url('photography/images/564314344vds/_30359100057C2F.webp');
    background-position: center;
}

.card-textiles {
    background-image: url('textiles/FB7A07473.webp'); 
    background-position: center;
}

.card-phonepouch{
    background-image: url('textiles/phonepouch/phonepouchRes/final.webp');
    background-position: center;
}
.card-zephyr{
    background-image: url('crafts+repairs+restorations/zephyr750/resource/majorStep.webp');
    background-position: center;
}
.card-mondeo{
    background-image: url('crafts+repairs+restorations/mondeomk4/resource/main.webp');
    background-position: center;
}
.card-sculpting{
    background-image: url('crafts+repairs+restorations/sculpting/resource/main.webp');
 }
.card-sudoku {
    background-image: url("games/sudoku/sudoku_2.webp"); 

}
.card-artwork{
    background-position: center;
    background-image: url("crafts+repairs+restorations/artwork/resource/20260125_213825.webp");
}
.card-generic {
    background-color: #1e293b;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-size: 60px 60px !important;
}
/* #endregion*/
/*#region ---   FOOTER & WAVES                --- */
.wave-container { 
    position: relative;
    background-color: var(--bg-footer);
    color: #ffffff;
    padding: 1rem 1.5rem 6.25rem 1.5rem;
}

.wave-divider {
    position: absolute;
    top: -1px;
    left: 0; 
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;    
}

.home-page .wave-container, .home-page footer {
    animation: waveFloat 1.2s ease-in-out;
} 

.wave-divider svg {
    display: block;
    width: 100%; 
    min-width: 100%;
    height: 10vh;
}

.wave-divider .shape-fill {
    fill: var(--bg-main); 
}

@keyframes waveFloat {
    0% {    mask-size:500% 320px, 100% calc(100% - 320px);
}     
}

.sub-tag {
    display: inline-block;
    background: rgba(255,255,255,0.2); 
    padding: 5px;
    border-radius: 50px; 
    border: 1px;
    text-transform: uppercase;
}
footer {
    position: relative;
    width: 100%; 
    margin-top: auto;
    align-self: center;
    align-items: center;
    justify-content: center;
    text-align: center;  
    
    color: #ffffff;

    background-color: var(--bg-footer);

    --svg-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='black' d='M0,128L48,144C96,160,192,192,288,186.7C384,181,480,139,576,144C672,149,768,203,864,202.7C960,203,1056,149,1152,122.7C1248,96,1344,96,1392,96L1440,96L1440,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    mask-image: var(--svg-mask), linear-gradient(black,black);
    mask-position: top center, center bottom;
    mask-size:100% 320px, 100% calc(100% - 320px);
    mask-repeat: no-repeat;

    padding-bottom: 2rem;
 

}

footer .hero-title {
    font-size: 1.5rem;  
    margin-bottom: 0.5rem;     
    margin-top: 20rem;
}

footer p {
    opacity: 0.6;
    margin-top: 1rem;
}

footer .version {
    font-size: 0.8rem; 
    opacity: 0.6; 
    margin-top: 1.5rem;
}

/* #endregion*/
/*#region ---   SIZE CONTROL                  --- */
@media (max-width: 600px){
    .scroll a {
        font-size: small;
        padding: 1.2rem;
        text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    }
    .scroll a span {
        text-box: 1px;
        font-size: smaller;
    }
    .scroll > .card-collection section{
        flex: 1 0 100%;
    } 
}
/*#endregion*/

