@import url('fonts.googleapis.com');

/* === 1. Reset și Bază (MODIFICAT PENTRU TEMA ÎNTUNECATĂ ȘI SCROLL SNAP) === */
html, body {
    height: 100%; 
    overflow-y: auto; 
}

*>{
    outline: none;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    
    /* SETĂRI PENTRU IMAGINEA DE FUNDAL FIXĂ */
    background-image: url('fundal.png'); 
    background-size: cover;          
    background-attachment: fixed;    
    background-position: center center;
    background-repeat: no-repeat;
    
    /* Culoare de rezervă (negru) */
    background-color: #000000; 
    
    /* Culoarea implicită a textului pe fundalul întunecat */
    color: #FAEBD7; 
    
    /* Setări SCROLL SNAP */
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth; 
    
    /* Păstrează spațiul de sus pentru header-ul fix */
    /* padding-top: 150px;  */

    /* HIDE SCROLLBAR (pentru a evita bara vizibilă) */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    overflow-y: scroll; 
}

/* Metodă suplimentară pentru ascunderea barei de scroll (Webkit: Chrome, Safari) */
body::-webkit-scrollbar {
    display: none;
}


/* Stil general pentru paragrafe */
p {
    font-family: "Nunito", sans-serif; 
    font-size: 22px;
    line-height: 1.75;
    color: #FAEBD7; 
    margin-bottom: 20px;
}

/* === 2. Header și Navigație === */
header {
    z-index: 10; 
    width: 100%;
    background: transparent; 
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    box-shadow: none; 
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    width: fit-content;
    margin: 0 auto;
    padding: 10px;
    backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);

    position: fixed;
    top: 0;
    width: 100%;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #AFC7D6; 
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease, background-color 0.3s ease; 
    padding: 8px 16px;
    border-radius: 8px; 
    background-color: transparent;
}

.nav-menu a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1); 
    text-shadow: none;
    transform: scale(1.1); 
    background-color: rgba(255, 255, 255, 0.1) !important; 
}

/* === 3. Pagina Principală (index.html) === */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px;
    gap: 50px;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: center;
}

.left {
    flex: 1 1 400px;
    max-width: 600px;
}

.left h1 {
    font-size: 36px;
    font-weight: 900;
    margin: 0;
}

.left h1 span {
    color: #FAEBD7;
}

.left p {
    font-size: 18px;
    margin-top: 20px;
    line-height: 1.5;
}

.btn {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 45px;
    background: transparent;
    color: #AFC7D6;
    font-size: 22px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
    border: 3px solid #AFC7D6;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 25px rgba(175, 199, 214, 0.6),
        0 0 45px rgba(255, 255, 255, 0.4);
}

.btn::before,
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 3px solid #AFC7D6;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    opacity: 0;
}

@keyframes ring-expand {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.btn:hover::before {
    animation: ring-expand 1.5s ease-out infinite;
}

.btn:hover::after {
    animation: ring-expand 1.5s ease-out 0.5s infinite;
}


.home-img {
    width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.5); 
}

/* === 4. Layout Blog (General) === */
main {
    padding: 0 !important;
    display: flex;
    justify-content: center;
}

.blog-layout {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 100px; 
}

.blog-left {
    width: 550px; 
    text-align: center;
    position: relative; 
}

.page-title {
    color: #AFC7D6; 
    font-family: 'Montserrat', sans-serif; 
    margin-bottom: 20px;
}

.blog-left p {
    text-align: left; 
    line-height: 1.6;
}

.blog-right {
    width: 350px;
    display: flex;
    align-items: flex-start;
}

/* === 6. Stiluri Specifice Pagina 2 (Layout Larg și Imagini 3D) === */
.blog-left.blog-page-wide {
    width: 100%; 
    max-width: none; 
    margin: 0 auto; 
    text-align: left;
    position: static; 
}

.blog-page-wide .page-title {
    text-align: center;
}

.blog-page-wide .content-text-wrapper {
    width: 600px; 
    max-width: 90%; 
    margin: 40px auto; 
}

/* STILURI SCROLL SNAP PENTRU SECȚIUNILE 1 ȘI 2 */
.section-wrapper-3d {
    /* scroll-snap-align: start;  */
    position: relative; 
    width: 100%; 
    display: flex;
    
    /* Ocupă strict înălțimea viewport-ului minus padding-top */
    height: calc(100vh - 150px); 
    box-sizing: border-box; 
    
    display: flex; 
    flex-direction: column;
    
    /* Aliniază conținutul la începutul secțiunii */
    justify-content: flex-start; 
    align-items: center;
    
    /* Spațiere de sus pentru a evita suprapunerea cu header-ul */
    padding-top: 70px; 
    padding-bottom: 0; 

    /* FIX 1: Am scos overflow: hidden; pentru a permite imaginilor 3D să fie vizibile */
    overflow: visible; 
    &:nth-of-type(2) {
        margin-top: 57px; 
    }
}

/* FIX 2: Am eliminat margin-top-ul suplimentar care crea spațiu de scroll inutil înainte de footer */
/* .blog-left.blog-page-wide > .section-wrapper-3d:nth-of-type(2) {
    margin-top: 57px; 
} */

/* Stiluri pentru Imaginile 3D (Corecția Poziționării) */
.image-3d {
    width: 450px; 
    height: 500px; 
    object-fit: cover;
    border-radius: 5px;
    background-color: transparent; 
    border: 2px solid #FAEBD7; 
    
    transform-style: preserve-3d; 
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out, clip-path 0.5s ease-in-out; 
    
    /* Asigură că poziționarea absolută este activă pentru vizibilitatea imaginii */
    position: absolute; 
    perspective: 1000px; 
}

#image-left, #image-left-2 {
    left: -460px; 
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%); 
    top: 50%; 
    transform: translateY(-50%) rotateY(-40deg) rotateX(0deg); 
}

#image-right, #image-right-2 {
    right: -460px; 
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%); 
    top: 50%; 
    transform: translateY(-50%) rotateY(40deg) rotateX(0deg); 
}


.image-3d:hover {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important; 
    transform: translateY(-50%) scale(1.1) rotateY(0deg) rotateX(0deg) !important; 
    box-shadow: 0 0 30px rgba(175, 199, 214, 0.7); 
    border-color: #AFC7D6;
    z-index: 10; 
}





/* === 8. Contact (contact.html) === */
.contact-container {
    text-align: center;
    padding: 120px 20px;
    margin-top: 50px; 
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.social-icon {
    width: 70px;
    height: 70px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block; 
}

.social-icon.instagram {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/a5/Instagram_icon.png");
}

.social-icon.tiktok {
    background-image: url("https://sf-static.tiktokcdn.com/obj/eden-sg/uhtyvueh7nulogpoguhm/tiktok-icon2.png");
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
}

.social-icon:hover {
    transform: scale(1.12);
    box-shadow: 0 0 20px rgba(175, 199, 214, 0.4);
}








.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    
    
    .page-btn {
        padding: 10px 20px;
        border-radius: 8px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
        background: transparent;
        border: 2px solid #AFC7D6;
        color: #FAEBD7;
        
        &::before {
            content: '';
            position: absolute;
            top: -1px;
            left: -1px;
            width: 110%;
            height: 110%;
            background: #AFC7D6;
            border-radius: 8px;
            transform: scaleY(0);
            transform-origin: bottom;
            transition: transform 0.5s ease;
            z-index: -1;
        }

        &:hover {
            color: #000;

            &::before {
                transform: scaleY(1);
                animation: wave 0.8s ease-in-out;
            }
        }

        &.active {
            color: #000;
            transform: none;

            &::before {
                transform: scaleY(1);
            }
        }
    }
}

@keyframes wave {
    0% { border-radius: 50% 50% 0 0; transform: scaleY(0);}
    25% { border-radius: 40% 60% 0 0;}
    50% { border-radius: 60% 40% 0 0;}
    75% { border-radius: 45% 55% 0 0;}
    100% { border-radius: 50% 50% 0 0; transform: scaleY(1.2);}
}


.cntt{
    margin-top: 100px;
}

*{
    box-sizing: border-box;
}

.hobby{
    display: flex;
    flex-direction: column;

    width: 100%;
    height: fit-content;
    gap: 100px;
    scroll-behavior: smooth;
    scroll-snap-type: both mandatory;


    .section{
        position: relative;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 50px;
        width: 100%;
        height: calc(100vh - 100px);


        .image{
            width: 20%;
            height: fit-content;
            object-fit: contain;
        }

        .content{
            display: flex;
            flex-direction: column;

            width: 40%;

            >.title{
                text-align: center;
                font-size: 40px;
                color: #AFC7D6;
            }

            > .text{
                font-size: 20px;
                text-align: center;
            }

        }
        > .pagination{
            bottom: 0;
            width: 100%;
            position: absolute;
        }
    }

    
}

.erasmus{
    display: flex;
    flex-direction: column;

    width: 100%;
    height: fit-content;
    gap: 100px;
    scroll-behavior: smooth;

    padding: 0 100px;

    .section{
        position: relative;
        scroll-snap-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 0 50px;
        width: 100%;
        height: calc(100vh - 100px);


        .image{
            width: 20%;
            height: fit-content;
            object-fit: contain;
        }

        .content{
            display: flex;
            flex-direction: column;

            width: 80%;

            >.title{
                text-align: center;
                font-size: 40px;
                color: #AFC7D6;
            }

            > .text{
                font-size: 20px;
                text-align: center;
            }
        }


        > .pagination{
            bottom: 0;
            width: 100%;
            position: absolute;
        }
    }
}

.myself{
    position: relative;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    padding: 0 50px;
    gap: 10px;

    width: 100%;
    height: calc(100vh - 100px);


    > .section {

        &.me{
            width: 50%;
        }


        &.perspective{
            position: relative;
            width: 250px;
            height: 300px;
            margin: 100px;
            perspective: 1200px;

            .vcar-cylinder {
                width: 100%;
                height: 100%;
                position: relative;
                transform-style: preserve-3d;
                transition: transform 0.8s ease-out;
            }

            .vcar-face {
                position: absolute;
                width: 250px;
                height: 280px;
                background-size: cover;
                background-position: center;
                border-radius: 15px;
            }

            .vcar-face:nth-child(1) { transform: rotateX(0deg) translateZ(200px); }
            .vcar-face:nth-child(2) { transform: rotateX(72deg) translateZ(200px); }
            .vcar-face:nth-child(3) { transform: rotateX(144deg) translateZ(200px); }
            .vcar-face:nth-child(4) { transform: rotateX(216deg) translateZ(200px); }
            .vcar-face:nth-child(5) { transform: rotateX(288deg) translateZ(200px); }
        }
    }

    > .pagination{
        bottom: 0;
        width: 100%;
        position: absolute;
    }
}