@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html, body {
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


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

body{
    font-family:'Inter',sans-serif;
    background:#02030d;
    overflow-x: hidden;
    overflow-y: auto;
    color:white;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;

    width: 100%;
    padding: 20px 8%;

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

    background: rgba(2,3,13,0.6);
    backdrop-filter: blur(12px);

    z-index: 999;
}


nav{
    display:flex;
    gap:60px;
}

nav a{
    font-size:20px;
    color:#aeb3d2;
    text-decoration:none;
}
nav a:hover{
    color:white;
}

.hero {
    min-height: 100vh;
    height: auto;
    padding: 160px 8% 80px;
    display: flex;
    align-items: center;
}

.content{
    position:relative;
    z-index:10;
    max-width:650px;
}



h1{
    margin-top:25px;
    font-size:5rem;
    line-height:1.05;
    font-weight:700;
}

h1 span{
    background:linear-gradient(
    90deg,
    #ff4fd8,
    #7d7dff,
    #2de2ff);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

p{
    margin-top:25px;
    color:#9ea4c7;
    max-width:500px;
    font-size:18px;
    line-height:1.8;
}

button{
    margin-top:40px;
    padding:18px 40px;
    border-radius:16px;
    background:transparent;
    color:white;
    border:1px solid rgba(255,255,255,.2);
    cursor:pointer;
    transition:.3s;
}

button:hover{
    background:rgba(255,255,255,.1);
}

.blob{
    position:absolute;
    filter:blur(70px);
    border-radius:50%;
    animation:float 10s infinite ease-in-out;
}

.blob1{
    width:500px;
    height:500px;
    background:#ff00aa;
    top:15%;
    left:20%;
}

.blob2{
    width:600px;
    height:600px;
    background:#00bfff;
    top:25%;
    right:10%;
    animation-delay:2s;
}

.blob3{
    width:300px;
    height:300px;
    background:#7d5fff;
    bottom:10%;
    left:40%;
    animation-delay:4s;
}

.floating-card{
    position:absolute;
    backdrop-filter:blur(20px);
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.1);
    border-radius:24px;
    padding:25px;
    width:250px;
    z-index:20;
    box-shadow:
    0 0 50px rgba(0,0,0,.4);
}

.floating-card h3{
    margin-bottom:10px;
}

.floating-card p{
    margin:0;
    font-size:14px;
}

.card1{
    top:18%;
    right:10%;
}

.card2{
    bottom:18%;
    right:30%;
}

.card3{
    top:50%;
    right:8%;
}

.card4{
    bottom:12%;
    left:18%;
}

.brand{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
}

.logo{
    font-size:50px;
    color:#00e1ff;
    font-weight:600;
}

.tag{
    margin-top:6px;
    font-size:16px;
    letter-spacing:4px;
    color:#8e95c5;
}

@keyframes float{

    0%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-40px);
    }

    100%{
        transform:translateY(0px);
    }

}






/* projects */




.figma-btn{
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s ease;
}

.figma-btn:hover{
    background: #444;
}






.projects{
    padding:180px 8% 80px;
    display:flex;
    flex-direction:column;
    gap:120px;
}

.project {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.project-media img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
}

.project-media img{
    width:180px;
    height:260px;
    object-fit:cover;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.1);
}

.project-text{
    max-width:400px;
}

.project-text h2{
    font-size:28px;
    margin-bottom:15px;
}

.project-text p{
    color:#9ea4c7;
    line-height:1.7;
}








/* about */



.about {
    min-height: 100vh;
    height: auto;
    padding: 140px 8%;
    display: flex;
    gap: 60px;
    align-items: center;
}


.about-text{
    max-width:500px;
}

.about-text h1{
    font-size:4rem;
    margin-bottom:20px;
}

.about-text p{
    color:#9ea4c7;
    font-size:18px;
    line-height:1.8;
}




.about-image{
    position:absolute;
    right:0;
    top:0;
    height:100%;
    width:60%;
    overflow:hidden;
}



.about{
    height:100vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 8%;
    position:relative;
}

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

    clip-path: polygon(
        40% 0%,
        100% 0%,
        100% 100%,
        0% 100%
    );
}




.project-media{
    display:flex;
    gap:20px;
    align-items:flex-start;
}


.project-media img{
    width:300px;
    height:600px;

    object-fit: contain;   /* KLJUČ */
    object-position: center;

    border-radius:16px;
    display:block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);

    background: rgba(255,255,255,0.03); /* da ne izgleda prazno */
}















/* CONTACT SECTION */




.contact {
    padding: 180px 8% 100px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    align-items: center;
}


.contact-intro {
    text-align: center;
    max-width: 700px;
}

.contact-intro h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.contact-intro p {
    color: #9ea4c7;
    font-size: 18px;
    line-height: 1.7;
}


.contact-grid {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}


.contact-card {
    width: 260px;
    height: 220px;

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

    gap: 15px;

    border-radius: 20px;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(18px);

    transition: 0.3s ease;

    box-shadow: 0 15px 50px rgba(0,0,0,0.35);

    cursor: pointer;
}



.contact-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}


.contact-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;

    transition: 0.3s ease;
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4));
}

.contact-card:hover img {
    transform: scale(1.15);
}


.linkedin {
    position: relative;
}

.linkedin::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at top, rgba(0,119,181,0.35), transparent 70%);
    z-index: -1;
}


.instagram {
    position: relative;
}

.instagram::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at top, rgba(221,42,123,0.35), transparent 70%);
    z-index: -1;
}














/* ================= GRAPHICS ================= */

/* MAIN SECTION */
.graphics{
    padding:180px 8% 100px;
    display:flex;
    flex-direction:column;
    gap:120px;
    align-items:center;
}

/* EACH SECTION */
.gallery-section{
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
}

/* TITLE */
.gallery-section h1{
    font-size:3rem;
    margin-bottom:25px;
    text-align:center;
}

/* WRAPPER */
.gallery-wrapper{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:25px;
    width:100%;
}

/* VIEWPORT */
.gallery {
    display: flex;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;

    width: 520px;
    height: 320px;

    border-radius: 18px;

    /* hide scrollbar */
    scrollbar-width: none;
}
.gallery img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f0f0f;
}


.gallery::-webkit-scrollbar {
    display: none;
}

/* NAV BUTTONS */
/* MODERN NAV BUTTONS */



.nav{
    width:52px;
    height:52px;

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

    border-radius:14px;

    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.12);

    cursor:pointer;

    transition:0.25s ease;

    backdrop-filter: blur(12px);

    position:relative;
}

/* TRIANGLE ICON (clean, centered) */
.nav::before{
    content:"";
    width:0;
    height:0;

    border-style:solid;
}

/* LEFT TRIANGLE */
.nav.left::before{
    border-top:8px solid transparent;
    border-bottom:8px solid transparent;
    border-right:12px solid white;
}

/* RIGHT TRIANGLE */
.nav.right::before{
    border-top:8px solid transparent;
    border-bottom:8px solid transparent;
    border-left:12px solid white;
}

/* HOVER = direction feedback */
.nav:hover{
    background:rgba(255,255,255,0.12);
    transform:translateY(-2px);
    border-color:rgba(255,255,255,0.25);
}

/* CLICK FEEDBACK */
.nav:active{
    transform:scale(0.96);
}

/* OPTIONAL: subtle glow */
.nav:hover::after{
    content:"";
    position:absolute;
    inset:-6px;
    border-radius:18px;
    background:radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    z-index:-1;
}





/* ================= TABLET (<=1024px) ================= */
@media (max-width: 1024px) {

    h1 {
        font-size: 3.5rem;
    }

    .hero {
        padding-left: 5%;
        height: auto;
    }

    nav {
        gap: 30px;
    }

    /* ❌ REMOVED: project img max-width fix (replaced with swipe system on mobile) */

    .project {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .contact-grid {
        flex-direction: column;
    }

    .about {
        flex-direction: column;
        height: auto;
        gap: 60px;
        padding: 120px 8%;
    }

    .about-image {
        position: relative;
        width: 100%;
        height: 400px;
    }

    .about-image img {
        clip-path: none;
    }

    .gallery-wrapper {
        flex-direction: column;
        gap: 15px;
    }
}


/* ================= MOBILE ================= */
@media (max-width: 768px) {



    .contact-intro h1 {
        font-size: 2.2rem;
    }

    .contact-grid {
        flex-direction: column;
        gap: 20px;
    }

    .contact-card {
    width: 100%;
    padding: 25px;
    aspect-ratio: 1 / 1;
    height: auto;
    max-width: 280px;
    margin: 0 auto;
    }

    /* HERO FIX */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 140px 5% 80px;
        align-items: flex-start;
    }

    /* CONTENT WIDTH CONTROL */
    .content {
        max-width: 100%;
    }

    /* TYPOGRAPHY FIX */
    h1 {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-top: 15px;
    }

    p {
        font-size: 15px;
        line-height: 1.6;
        max-width: 100%;
    }

    /* BUTTON FIX */
    button {
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 12px;
    }

    /* HEADER FIX (IMPORTANT) */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 15px 5%;
        flex-direction: column;
        gap: 8px;
        background: rgba(2,3,13,0.65);
        backdrop-filter: blur(12px);
    }

    nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* BLOBS OPTIMIZATION */
    .blob {
        filter: blur(45px);
        opacity: 0.7;
    }

    .blob1 {
        width: 250px;
        height: 250px;
    }

    .blob2 {
        width: 300px;
        height: 300px;
    }

    .blob3 {
        width: 200px;
        height: 200px;
    }

    /* FLOATING CARDS OFF (MOBILE CLEAN) */
    .floating-card {
        display: none;
    }

    .project {
        flex-direction: column;
        gap: 30px;
    }

    /* ✅ PROJECT SWIPE CAROUSEL (NEW) */
    .project-media {
        width: 100%;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;

        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;

        gap: 0;
    }

    .project-media img {
        flex: 0 0 85%;
        max-width: 85%;
        height: auto;

        scroll-snap-align: center;

        margin-right: 15px;
        border-radius: 16px;
    }

    .project-media::-webkit-scrollbar {
        display: none;
    }

    .project-media {
        scrollbar-width: none;
    }

    /* END SWIPE FIX */

    .about {
        flex-direction: column;
        height: auto;
    }

    .contact-grid {
        flex-direction: column;
        gap: 15px;
    }

    .gallery-wrapper {
        flex-direction: column;
    }

    .floating-card {
        display: none;
    }
}


/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {

    h1 {
        font-size: 2rem;
    }

    nav a {
        font-size: 16px;
    }

    button {
        width: 100%;
    }

    .logo {
        font-size: 32px;
    }

    .tag {
        font-size: 12px;
    }

    .project-text h2 {
        font-size: 22px;
    }

    .contact-card {
        height: 160px;
    }

    .contact-card img {
        width: 50px;
        height: 50px;
    }
}