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

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

html,body{
    font-family:'Inter',sans-serif;
    background:#000;
    color:#fff;
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
}

html, body{
    overflow-x: hidden;
}


/* =====================
TOP NAV
===================== */

.top-nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:24px 80px;
    z-index:100;
    font-family:'Inter',sans-serif;
    font-size:13px;
    letter-spacing:0.12em;
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.nav-left,
.nav-right{
    display:flex;
    align-items:center;
    gap:22px;
}

.top-nav a{
    color:#fff;
    text-decoration:none;
    opacity:0.85;
    transition:opacity .3s ease;
}

.top-nav a:hover{
    opacity:1;
}


/* =====================
HERO
===================== */

.hero{
    height:100vh;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:flex-start;
    padding:0 80px;
    padding-top:140px;
    background:#000;
}

.hero-bg{
    position:absolute;
    inset:0;
    background-image:url("assets/images/header2.jpg");
    background-size:cover;
    background-position:center;
    transform:scale(1.1);
    animation:heroZoom 20s ease forwards;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
            90deg,
            rgba(0,0,0,0.75) 0%,
            rgba(0,0,0,0.45) 40%,
            rgba(0,0,0,0.2) 70%
    );
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:540px;
}

.hero-title{
    font-family:'Cormorant Garamond',serif;
    line-height:1;
    margin-bottom:30px;
}

.hero-firstname{
    display:block;
    font-size:56px;
    font-weight:400;
    letter-spacing:-0.01em;
    opacity:0;
    transform:translateY(20px);
    animation:fadeUp 1s forwards;
    animation-delay:.4s;
    text-shadow: 2px 0px 6px black;
}

.hero-lastname{
    display:block;
    font-size:75px;
    font-weight:500;
    letter-spacing:-0.01em;
    opacity:0;
    transform:translateY(30px);
    animation:fadeUp 1.2s forwards;
    animation-delay:.6s;
    text-shadow: 2px 0px 6px black;
}

.hero-role{
    font-size:14px;
    letter-spacing:0.3em;
    margin-bottom:14px;
    text-transform:uppercase;
    opacity:0;
    animation:fadeUp 1s forwards;
    animation-delay:1s;
    text-shadow: 2px 0px 6px black;
}

.hero-quote{
    font-family:'Cormorant Garamond',serif;
    font-size:22px;
    line-height:1.4;
    max-width:480px;
    opacity:0;
    animation:fadeUp 1s forwards;
    animation-delay:1.2s;
    text-shadow: 2px 0px 6px black;
}


/* =====================
ABOUT
===================== */

.about-block{
    background:#000;
    padding:120px 80px 140px;
    display:flex;
    justify-content:center;
}

.about-inner{
    width:100%;
    max-width:920px;
}

.about-text{
    font-family:'Cormorant Garamond',serif;
    font-size:28px;
    line-height:1.45;
}

.reveal-line{
    opacity:0;
    transform:translateY(40px);
    filter:blur(6px);
    transition:opacity .9s ease, transform .9s ease, filter .9s ease;
    margin-bottom:20px;
}

.reveal-line.is-visible{
    opacity:1;
    transform:translateY(0);
    filter:blur(0);
}

.reveal-line:first-child{
    font-size:34px;
    margin-bottom:28px;
}


/* =====================
PORTFOLIO
===================== */

.portfolio{
    background:#000;
}

.portfolio-item{
    display:grid;
    grid-template-columns:1fr 1fr;
    overflow:hidden;
}

.portfolio-item.white{
    background:#fff;
    color:#000;
}

.portfolio-item.black{
    background:#000;
    color:#fff;
}

.portfolio-text{
    padding:0 40px 0 120px;
    display:flex;
    align-items:center;
    justify-content:flex-end;
}

.portfolio-text-inner{
    max-width:420px;
    width:100%;
    margin-left:auto;
    opacity:0;
    transform:translateY(30px);
    transition:opacity .9s ease, transform .9s ease;
}

.portfolio-item.is-visible .portfolio-text-inner{
    opacity:1;
    transform:translateY(0);
    transition-delay:0.2s;
}

.portfolio-title{
    font-family:'Playfair Display',serif;
    font-size:42px;
    margin-bottom:16px;
}

.portfolio-description{
    font-size:16px;
    line-height:1.6;
    opacity:.8;
}

.painting-subtitle{
    display:block;
    font-weight:500;
    margin-bottom:6px;
}

.painting-size{
    display:block;
    opacity:.8;
    margin-bottom:4px;
}

.painting-material{
    display:block;
    opacity:.7;
    margin-bottom:18px;
    font-style:italic;
}

.portfolio-image{
    display:flex;
    align-items:flex-end;
    justify-content:flex-start;
}

.portfolio-image img{
    width:100%;
    height:auto;
    object-fit:contain;
    opacity:0;
    transform:scale(1.04);
    transition:opacity 1.2s ease, transform 1.4s ease;
}

.portfolio-item.is-visible .portfolio-image img{
    opacity:1;
    transform:scale(1);
}


/* =====================
ARCHIVE GRID
===================== */

.portfolio-grid-section{
    background:#000;
    padding:120px 80px;
}

.portfolio-grid-section{
    overflow:hidden;
}

.portfolio-grid-header{
    margin-bottom:60px;
}

.grid-title{
    font-family:'Playfair Display',serif;
    font-size:42px;
}

@media (max-width:768px) {

    .portfolio-item.is-visible .portfolio-image img{
        transition-delay:0.25s;
    }

    .portfolio-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding: 10px 24px 30px 24px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .grid-item {
        flex: 0 0 auto;
        width: 170px;
        height: 230px;
        scroll-snap-align: center;
        transition: transform .35s ease;
    }

    .grid-item.active {
        transform:scale(1.12);
    }

    .grid-item img {
        height: 100%;
        width: auto;
        display: block;
        cursor: zoom-in;
        transition: transform .6s ease, filter .6s ease;
    }

    .grid-item:hover img {
        transform: scale(1.06);
        filter: brightness(0.9);
    }

    .portfolio-grid-section{
        position:relative;
    }

    .portfolio-grid-section:after{

        content:"";

        position:absolute;

        right:0;
        top:0;

        width:80px;
        height:100%;

        pointer-events:none;

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

    }
}

/* =====================
ARCHIVE INFO
===================== */

.grid-info{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:20px 22px;
    background:linear-gradient(
            to top,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0)
    );
    transform:translateY(40px);
    opacity:0;
    transition:transform .4s ease, opacity .4s ease;
}

.grid-item:hover .grid-info{
    transform:translateY(0);
    opacity:1;
}

.grid-title{
    font-family:'Cormorant Garamond',serif;
    font-size:30px;
    letter-spacing:0.04em;
}

/* DESKTOP ARCHIVE GRID */

.portfolio-grid{

    display:flex;
    flex-wrap:wrap;

    gap:28px;

}

.grid-item{

    position:relative;

    height:370px;

    flex:0 0 auto;

    display:flex;
    align-items:center;

    overflow:hidden;

}

.grid-item img{

    height:100%;
    width:auto;

    display:block;

    cursor:zoom-in;

    transition:transform .6s ease, filter .6s ease;

}

.grid-item:hover img{

    transform:scale(1.06);
    filter:brightness(0.9);

}


.grid-meta{
    font-size:12px;
    opacity:0.75;
    margin-top:4px;
}


/* =====================
IMAGE VIEWER
===================== */

.image-viewer{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.95);
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0;
    pointer-events:none;
    transition:opacity .4s ease;
    z-index:999;
}

.image-viewer.active{
    opacity:1;
    pointer-events:all;
}

.image-viewer img{
    max-width:90vw;
    max-height:90vh;
}

.viewer-close{
    position:absolute;
    top:32px;
    right:40px;
    font-size:40px;
    cursor:pointer;
}

.viewer-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    font-size:42px;
    color:#fff;
    cursor:pointer;
    opacity:0.6;
    transition:opacity .3s ease;
}

.viewer-arrow:hover{
    opacity:1;
}

.viewer-prev{
    left:40px;
}

.viewer-next{
    right:40px;
}


/* =====================
VIEWER INFO
===================== */

.viewer-info{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:28px 40px;
    background:linear-gradient(
            to top,
            rgba(0,0,0,0.85),
            rgba(0,0,0,0)
    );
}

#viewerTitle{
    font-family:'Cormorant Garamond',serif;
    font-size:22px;
}

#viewerMeta{
    font-size:13px;
    opacity:0.7;
    margin-top:4px;
}


/* =====================
CONTACT
===================== */

.contact-section{
    background:#000;
    padding:120px 80px;
    border-top:1px solid rgba(255,255,255,0.08);
}

.contact-text{
    font-size:16px;
    line-height:1.6;
    opacity:0.75;
}


/* =====================
FOOTER
===================== */

.site-footer{
    padding:60px 80px;
    border-top:1px solid rgba(255,255,255,0.1);
    font-size:13px;
    color:rgba(255,255,255,0.6);
}


/* =====================
SCROLL TOP
===================== */

.scroll-top{
    position:fixed;
    right:32px;
    bottom:32px;
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    color:#fff;
    border:none;
    cursor:pointer;
    border-radius:50%;
    background:rgba(0,0,0,0.35);
    backdrop-filter:blur(6px);
    border:1px solid rgba(255,255,255,0.15);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s ease, transform .3s ease;
    z-index:100;
}

.scroll-top.visible{
    opacity:1;
    pointer-events:auto;
}

.scroll-top:hover{
    transform:translateY(-3px);
}


/* =====================
ANIMATIONS
===================== */

@keyframes heroZoom{
    from{transform:scale(1.15);}
    to{transform:scale(1.05);}
}

@keyframes fadeUp{
    to{
        opacity:1;
        transform:translateY(0);
    }
}


/* =====================
RESPONSIVE
===================== */

@media (max-width:1024px){

    .hero{
        padding:0 40px;
        padding-top:140px;
    }

    .portfolio-item{
        grid-template-columns:1fr;
    }

    .portfolio-text{
        padding:80px 40px;
        justify-content:flex-start;
    }

    .portfolio-grid-section{
        padding:80px 40px;
    }

    .about-block{
        padding:90px 40px 100px;
    }

    .about-text{
        font-size:22px;
    }

    .reveal-line:first-child{
        font-size:28px;
    }

    .top-nav{
        padding:20px 24px;
        font-size:12px;
    }

    .nav-left,
    .nav-right{
        gap:10px;
    }

}

@media (max-width:768px){

    .hero-bg{
        background-position:-1250px center;
        height: 100vh;
    }

    .hero{
        padding-top:350px;
    }

    .hero-firstname {
        font-size:39px;
    }

    .hero-lastname {
        font-size:58px;
    }

    .portfolio-text {
        padding:50px 24px;
    }

    .about-block {
        padding:70px 24px 80px;
    }

    .portfolio-grid-section {
        padding:60px 24px;
    }
    .portfolio-grid{
        display:flex;
        flex-wrap:nowrap;
        overflow-x:auto;
        gap:18px;
        padding:10px 50vw 30px 50vw;
        scroll-snap-type:x mandatory;
        -webkit-overflow-scrolling:touch;
    }
    .grid-item{
        flex:0 0 auto;
        width:170px;
        height:230px;
        scroll-snap-align:center;
    }
    .grid-item img{
        width:100%;
        height:100%;
        object-fit:cover;
    }
    .grid-info {
        display: none;
    }
}


/* =====================
CONTACT ICONS
===================== */

.contact-section{
    background:#000;
    padding:140px 80px;
}

.contact-title{
    font-family:'Cormorant Garamond',serif;
    font-size:42px;
    margin-bottom:18px;
}

.contact-text{
    font-size:16px;
    line-height:1.6;
    opacity:0.7;
    margin-bottom:40px;
}

.contact-icons{
    display:flex;
    gap:40px;
}

.contact-icons img{

    width:36px;
    height:36px;

    opacity:0.8;

    transition:
            transform .35s ease,
            opacity .35s ease;

}

.contact-icons img:hover{

    transform:translateY(-4px) scale(1.05);
    opacity:1;

}
.nav-right span{
    opacity:0.5;
    margin:0 4px;
}

.active-lang{
    border-bottom:1px solid rgba(255,255,255,0.7);
}

/* =====================
GALLERY FULLSCREEN
===================== */

.gallery-viewer{

    position:fixed;
    inset:0;

    background:rgba(0,0,0,0.95);

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

    opacity:0;
    pointer-events:none;

    transition:opacity .4s ease;

    z-index:1000;

}

.gallery-viewer.active{
    opacity:1;
    pointer-events:all;
}

.gallery-viewer img{

    max-width:92vw;
    max-height:92vh;

    object-fit:contain;

}

.gallery-close{

    position:absolute;
    top:40px;
    right:50px;

    font-size:38px;
    color:#fff;

    cursor:pointer;

    opacity:.8;

    transition:opacity .3s ease;

}

.gallery-close:hover{
    opacity:1;
}

.portfolio-image img{
    cursor:zoom-in;
}

@media (max-width:768px){

    .portfolio-item.is-visible .portfolio-image img{
        transition-delay:0.95s;
        transition-duration:1.6s;
    }
}

.nav-home img{
    width:18px;
    height:18px;
    opacity:0.85;
    transition:opacity .3s ease, transform .3s ease;
}

.nav-home img:hover{
    opacity:1;
    transform:translateY(-1px);
}

