/* =========================================================
   NIZHAMCODE PORTFOLIO v1.0
   Author : Abdullah Nizham Alfakhri
   ========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f8fafc;
    color:#1f2937;
    line-height:1.7;
}

/* ===============================
   NAVBAR
================================== */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:white;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    z-index:999;
}

.navbar{

    max-width:1200px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 25px;
}

.logo{

    font-size:24px;
    font-weight:700;
    color:#2563eb;

    letter-spacing:1px;
}

.navbar ul{

    display:flex;
    gap:30px;
    list-style:none;
}

.navbar a{

    text-decoration:none;
    color:#374151;
    font-weight:500;
    transition:.3s;
}

.navbar a:hover{

    color:#2563eb;
}

/* ===============================
   HERO
================================== */

.hero{

    max-width:1200px;

    margin:auto;

    min-height:100vh;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:60px;

    padding:120px 25px 80px;
}

.hero-text{

    flex:1;
}

.hero-text h1{

    color:#2563eb;
    margin-bottom:15px;

    font-size:36px;
}

.hero-text h2{

    font-size:52px;
    margin-bottom:20px;
}

.hero-text p{

    font-size:20px;
    color:#6b7280;

    margin-bottom:35px;
}

.btn{

    display:inline-block;

    padding:15px 35px;

    background:#2563eb;

    color:white;

    text-decoration:none;

    border-radius:10px;

    transition:.3s;
}

.btn:hover{

    background:#1d4ed8;

    transform:translateY(-3px);
}

.hero-image{

    flex:1;

    text-align:center;
}

.hero-image img{

    width:350px;

    max-width:100%;

    border-radius:50%;

    border:8px solid white;

    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

/* ===============================
   SECTION
================================== */

section{

    max-width:1100px;

    margin:auto;

    padding:80px 25px;
}

section h2{

    text-align:center;

    font-size:38px;

    margin-bottom:40px;

    color:#2563eb;
}

/* ===============================
   ABOUT
================================== */

#about p{

    text-align:center;

    max-width:850px;

    margin:auto;

    font-size:18px;

    color:#4b5563;
}

/* ===============================
   PROJECT
================================== */

.cards{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

    gap:30px;
}

.card{

    background:white;

    padding:35px;

    border-radius:18px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    transition:.3s;
}

.card:hover{

    transform:translateY(-10px);

    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

.card h3{

    margin-bottom:15px;

    color:#2563eb;
}

.card p{

    color:#6b7280;
}

/* ===============================
   GOALS
================================== */

#goals ul{

    max-width:500px;

    margin:auto;

    list-style:none;

    display:flex;

    flex-direction:column;

    gap:18px;

    font-size:18px;
}

#goals li{

    background:white;

    padding:18px;

    border-radius:12px;

    box-shadow:0 5px 15px rgba(0,0,0,.06);
}

/* ===============================
   CONTACT
================================== */

#contact{

    text-align:center;
}

#contact p{

    margin:15px 0;

    font-size:18px;
}

#contact a{

    color:#2563eb;

    text-decoration:none;
}

#contact a:hover{

    text-decoration:underline;
}

/* ===============================
   FOOTER
================================== */

footer{

    background:#111827;

    color:white;

    text-align:center;

    padding:35px;
}

/* ===============================
   RESPONSIVE
================================== */

@media(max-width:900px){

.hero{

    flex-direction:column-reverse;

    text-align:center;

    padding-top:140px;
}

.hero-text h2{

    font-size:38px;
}

.hero-text p{

    font-size:18px;
}

.navbar{

    flex-direction:column;

    gap:15px;
}

.navbar ul{

    flex-wrap:wrap;

    justify-content:center;

    gap:15px;
}

.hero-image img{

    width:260px;
}

}

@media(max-width:600px){

.logo{

    font-size:20px;
}

.hero-text h1{

    font-size:28px;
}

.hero-text h2{

    font-size:30px;
}

section h2{

    font-size:30px;
}

.card{

    padding:25px;
}

.btn{

    width:100%;
    text-align:center;
}

}

/* ===============================
   Reveal Animation
================================== */

section{

    opacity:0;

    transform:translateY(40px);

    transition:.8s;
}

section.show{

    opacity:1;

    transform:translateY(0);
}

/* ===============================
   Back To Top
================================== */

#topBtn{

    position:fixed;

    right:25px;

    bottom:25px;

    width:50px;

    height:50px;

    border:none;

    border-radius:50%;

    background:#2563eb;

    color:white;

    font-size:22px;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transition:.3s;

    box-shadow:0 10px 25px rgba(0,0,0,.2);

}

#topBtn.show{

    opacity:1;

    visibility:visible;

}

#topBtn:hover{

    transform:translateY(-5px);

    background:#1d4ed8;

}