/* =====================================
   BAN PORTFOLIO
   Premium Portfolio Styling
===================================== */


/* ========== RESET ========== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#050505;
    color:#fff;
    overflow-x:hidden;
}


/* ========== VARIABLES ========== */

:root{

    --bg:#050505;
    --card:#101010;
    --gold:#d4af37;
    --gold-light:#f6d365;
    --blue:#0066ff;
    --text:#ffffff;
    --gray:#a5a5a5;

    --border:rgba(255,255,255,0.1);

}


/* ========== GLOBAL ========== */


a{
    text-decoration:none;
    color:inherit;
}


img{
    max-width:100%;
    display:block;
}


.section{

    padding:100px 8%;

}


.section-title{

    text-align:center;
    margin-bottom:60px;

}


.section-title span{

    color:var(--gold);
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:3px;

}


.section-title h2{

    font-size:40px;
    margin-top:10px;

}



/* ========== BUTTONS ========== */


.btn{

    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:14px 32px;

    border-radius:50px;

    background:linear-gradient(
        135deg,
        var(--gold),
        var(--gold-light)
    );

    color:#000;

    font-weight:600;

    transition:.3s;

}


.btn:hover{

    transform:translateY(-5px);

    box-shadow:
    0 15px 40px rgba(212,175,55,.3);

}



.btn.secondary{

    background:transparent;

    color:white;

    border:1px solid var(--border);

}


.btn.secondary:hover{

    border-color:var(--gold);

}



/* ========== HEADER ========== */


.header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:25px 8%;

    display:flex;

    align-items:center;

    justify-content:space-between;

    z-index:1000;


    background:rgba(5,5,5,.65);

    backdrop-filter:blur(15px);

    border-bottom:1px solid var(--border);

}



.logo{

    font-size:30px;

    font-weight:800;

    letter-spacing:1px;

}


.logo span{

    color:var(--gold);

}



.nav{

    display:flex;

    gap:35px;

}


.nav a{

    color:#ccc;

    font-size:15px;

    transition:.3s;

}



.nav a:hover{

    color:var(--gold);

}




/* ========== HERO ========== */


.hero{

    min-height:100vh;

    padding:150px 8% 80px;

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:50px;


    position:relative;

}



.hero::before{

    content:"";

    position:absolute;

    width:500px;

    height:500px;

    background:var(--blue);

    filter:blur(180px);

    opacity:.25;

    top:20%;

    left:-200px;

    z-index:-1;

}



.hero-content{

    max-width:650px;

}



.hero-tag{

    display:inline-block;

    padding:10px 20px;

    border-radius:50px;

    background:rgba(255,255,255,.05);

    border:1px solid var(--border);

    color:var(--gold);

    margin-bottom:25px;

    font-size:14px;

}



.hero h1{

    font-size:70px;

    line-height:1.1;

    font-weight:800;

}



.hero h1 span{

    background:linear-gradient(
        90deg,
        var(--gold),
        var(--gold-light)
    );

    -webkit-background-clip:text;

    color:transparent;

}



.hero p{

    margin:25px 0;

    color:var(--gray);

    font-size:17px;

    line-height:1.8;

    max-width:550px;

}



.hero-buttons{

    display:flex;

    gap:20px;

    margin-top:35px;

}



/* ========== HERO IMAGE ========== */


.hero-image{

    width:450px;

    height:450px;

    border-radius:40px;

    overflow:hidden;

    border:1px solid var(--border);

    transform:rotate(3deg);

    box-shadow:
    0 30px 80px rgba(0,0,0,.5);

}



.hero-image img{

    width:100%;

    height:100%;

    object-fit:cover;

}



.hero-image:hover{

    transform:rotate(0deg) scale(1.03);

    transition:.5s;

}
/* ========== ABOUT ========== */


.about-content{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}



.about-card{

    background:var(--card);

    border:1px solid var(--border);

    padding:35px;

    border-radius:25px;

    transition:.4s;

    position:relative;

    overflow:hidden;

}



.about-card::before{

    content:"";

    position:absolute;

    width:120px;

    height:120px;

    background:var(--gold);

    filter:blur(80px);

    opacity:.15;

    top:-40px;

    right:-40px;

}



.about-card:hover{

    transform:translateY(-10px);

    border-color:var(--gold);

}



.about-card i{

    font-size:40px;

    color:var(--gold);

    margin-bottom:20px;

}



.about-card h3{

    font-size:22px;

    margin-bottom:12px;

}



.about-card p{

    color:var(--gray);

    line-height:1.7;

    font-size:15px;

}





/* ========== SKILLS ========== */


.skills-grid{

    display:grid;

    grid-template-columns:repeat(6,1fr);

    gap:20px;

}



.skill-card{

    background:var(--card);

    border:1px solid var(--border);

    padding:30px 15px;

    border-radius:20px;

    text-align:center;

    transition:.3s;

}



.skill-card:hover{

    transform:translateY(-8px);

    border-color:var(--gold);

}



.skill-card i{

    font-size:45px;

    color:var(--gold);

    margin-bottom:15px;

}



.skill-card h3{

    font-size:15px;

}





/* ========== PROJECTS ========== */


.projects{

    position:relative;

}



.project-search{

    display:flex;

    justify-content:center;

    margin-bottom:30px;

}



.project-search input{

    width:350px;

    padding:15px 25px;

    border-radius:50px;

    background:var(--card);

    border:1px solid var(--border);

    color:white;

    outline:none;

    font-family:inherit;

}



.project-search input:focus{

    border-color:var(--gold);

}



.project-filters{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

    margin-bottom:50px;

}



.filter-btn{

    padding:10px 22px;

    border-radius:50px;

    background:transparent;

    border:1px solid var(--border);

    color:white;

    cursor:pointer;

    transition:.3s;

    font-family:inherit;

}



.filter-btn:hover,
.filter-btn.active{

    background:var(--gold);

    color:black;

}





.projects-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}




/* Firebase generated cards */


.project-card{

    background:var(--card);

    border-radius:25px;

    overflow:hidden;

    border:1px solid var(--border);

    transition:.4s;

}



.project-card:hover{

    transform:translateY(-12px);

    border-color:var(--gold);

    box-shadow:
    0 20px 50px rgba(0,0,0,.4);

}



.project-image{

    height:220px;

    overflow:hidden;

}



.project-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.5s;

}



.project-card:hover img{

    transform:scale(1.1);

}



.project-info{

    padding:25px;

}



.project-info h3{

    font-size:22px;

    margin-bottom:10px;

}



.project-info p{

    color:var(--gray);

    font-size:14px;

    line-height:1.7;

    margin-bottom:20px;

}



.project-category{

    display:inline-block;

    padding:6px 15px;

    border-radius:30px;

    background:rgba(212,175,55,.15);

    color:var(--gold);

    font-size:12px;

    margin-bottom:15px;

}



.project-links{

    display:flex;

    gap:15px;

}



.project-links a{

    padding:10px 18px;

    border-radius:30px;

    border:1px solid var(--border);

    font-size:13px;

    transition:.3s;

}



.project-links a:hover{

    background:var(--gold);

    color:black;

}



/* Loading state */


.loading-card{

    grid-column:1/-1;

    text-align:center;

    padding:50px;

    color:var(--gray);

}



.loader{

    width:40px;

    height:40px;

    border:4px solid rgba(255,255,255,.1);

    border-top-color:var(--gold);

    border-radius:50%;

    margin:auto;

    animation:spin 1s linear infinite;

}



@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}
/* ========== CONTACT ========== */


.contact-container{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:25px;

}



.contact-card{

    background:var(--card);

    border:1px solid var(--border);

    border-radius:25px;

    padding:35px;

    text-align:center;

    transition:.4s;

}



.contact-card:hover{

    transform:translateY(-10px);

    border-color:var(--gold);

}



.contact-card i{

    font-size:40px;

    color:var(--gold);

    margin-bottom:20px;

}



.contact-card h3{

    margin-bottom:15px;

}



.contact-card a{

    color:var(--gray);

    transition:.3s;

}



.contact-card a:hover{

    color:var(--gold);

}




/* ========== FOOTER ========== */


.footer{

    padding:50px 8%;

    text-align:center;

    border-top:1px solid var(--border);

    background:#030303;

}



.footer h2{

    font-size:35px;

    margin-bottom:10px;

}



.footer p{

    color:var(--gray);

    margin:15px 0;

}



.footer-socials{

    display:flex;

    justify-content:center;

    gap:20px;

    margin:25px 0;

}



.footer-socials a{

    width:45px;

    height:45px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:var(--card);

    border:1px solid var(--border);

    transition:.3s;

}



.footer-socials a:hover{

    background:var(--gold);

    color:#000;

    transform:translateY(-5px);

}



.copyright{

    font-size:13px;

}




/* ========== BACK TO TOP ========== */


#scrollTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:50px;

    height:50px;

    border-radius:50%;

    border:none;

    background:var(--gold);

    color:black;

    cursor:pointer;

    font-size:22px;

    opacity:0;

    pointer-events:none;

    transition:.3s;

}



#scrollTop.show{

    opacity:1;

    pointer-events:auto;

}




/* ========== SCROLL REVEAL ========== */


.reveal{

    opacity:0;

    transform:translateY(40px);

    transition:.8s ease;

}



.reveal.active{

    opacity:1;

    transform:translateY(0);

}




/* ========== RESPONSIVE ========== */


@media(max-width:1100px){


    .hero{

        flex-direction:column;

        text-align:center;

    }


    .hero p{

        margin-left:auto;

        margin-right:auto;

    }


    .hero-buttons{

        justify-content:center;

    }


    .about-content{

        grid-template-columns:1fr;

    }


    .skills-grid{

        grid-template-columns:repeat(3,1fr);

    }


    .projects-grid{

        grid-template-columns:repeat(2,1fr);

    }


    .contact-container{

        grid-template-columns:1fr;

    }


}




@media(max-width:700px){


    .header{

        padding:20px 5%;

    }


    .nav{

        display:none;

    }


    .section{

        padding:80px 5%;

    }


    .section-title h2{

        font-size:30px;

    }


    .hero{

        padding:130px 5% 70px;

    }


    .hero h1{

        font-size:42px;

    }


    .hero-image{

        width:320px;

        height:320px;

    }


    .hero-buttons{

        flex-direction:column;

    }


    .btn{

        width:100%;

    }


    .skills-grid{

        grid-template-columns:repeat(2,1fr);

    }


    .projects-grid{

        grid-template-columns:1fr;

    }


    .project-search input{

        width:100%;

    }


}



/* ========== CUSTOM SELECTION ========== */


::selection{

    background:var(--gold);

    color:black;

}
/* ================= HEADER FIX ================= */


.header{

    position:fixed;

    top:0;
    left:0;

    width:100%;

    padding:25px 8%;

    display:flex;

    align-items:center;

    justify-content:space-between;

    z-index:1000;

    background:rgba(5,5,5,.7);

    backdrop-filter:blur(15px);

    border-bottom:1px solid var(--border);

}



.logo{

    font-size:30px;

    font-weight:800;

    color:white;

}



.logo span{

    color:var(--gold);

}



.nav{

    display:flex;

    align-items:center;

    gap:35px;

}



.nav a{

    color:#ccc;

    font-size:15px;

    transition:.3s;

}



.nav a:hover{

    color:var(--gold);

}



/* HAMBURGER */

.menu-btn{

    display:none;

    background:none;

    border:none;

    color:white;

    font-size:32px;

    cursor:pointer;

}





/* MOBILE MENU */

@media(max-width:700px){


    .menu-btn{

        display:block;

    }



    .nav{

        position:absolute;

        top:90px;

        left:5%;

        width:90%;


        display:none;

        flex-direction:column;

        gap:25px;


        padding:30px;


        background:rgba(10,10,10,.95);

        backdrop-filter:blur(20px);


        border:1px solid var(--border);

        border-radius:25px;

    }



    .nav.active{

        display:flex;

    }


}