*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    overflow-x:hidden;
    font-family:Arial, sans-serif;
    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1e3a8a,
        #312e81);
    color:white;
}

/*Prevent sticky navbar covering sections*/

section,
header{
    scroll-margin-top:90px;
}

.navbar{
    position:sticky;
    top:0;
    z-index:1000;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 60px;
    background:rgba(15,23,42,.75);
    backdrop-filter:blur(15px);
    border-bottom:1px solid rgba(255,255,255,.2);
}

.navbar h2{

    color:#38bdf8;

    font-size:28px;

}

.navbar ul{
    display:flex;
    gap:35px;
    list-style:none;
}

.navbar a{
    text-decoration:none;
    color:white;
    font-size:18px;
    transition:.3s;
}

.navbar a:hover{
    color:#38bdf8;
}

/*Home sec*/

header{
    min-height:calc(100vh - 80px);
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

header h1{
    font-size:60px;
    color:#38bdf8;
    text-shadow:0 5px 20px rgba(0,0,0,.4);
}

header p{
    margin-top:20px;
    font-size:25px;
    color:#cbd5e1;
}

/*Portfolio Boxes*/

.portfolio-menu{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:60px 20px;

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(260px,1fr));
    gap:25px;
}

.box{
    min-height:450px;
    height:auto;
    border-radius:30px;
    padding:40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    cursor:pointer;
    background:rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    filter:brightness(.75);
    transition:.5s;
    box-shadow:0 15px 40px rgba(0,0,0,.4);
}

.box img{
    width:200px;
    height:200px;	
    object-fit:cover;
    border-radius:25px;
    margin-bottom:30px;
    transition:.5s;
    filter:brightness(.75);
}

.box h2{
    font-size:30px;
}

.box:hover{
    transform:translateY(-15px);
    filter:brightness(1);
    background:rgba(255,255,255,.18);
    box-shadow:0 25px 60px rgba(56,189,248,.5);
}

.box:hover img{
    filter:brightness(1);
}

.box.active{
    transform:translateY(-15px);
    background:
    rgba(56,189,248,.35);
    filter:brightness(1);
    box-shadow:0 25px 70px rgba(56,189,248,.7);
}

.box.active img{
    filter:brightness(1);
}

.projects{
    min-height:100vh;
    padding:80px 40px;
    text-align:center;
}

.projects h2{
    font-size:45px;
    color:#38bdf8;
    margin-bottom:50px;
}

.project-grid{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:35px;
}

.project-card{
    padding:40px 30px;
    border-radius:25px;
    background: rgba(255,255,255,.08);
    border:1px solid rgba(255,255,255,.15);
    backdrop-filter:blur(10px);
    transition:.4s;
}

.project-card:hover{
    transform:translateY(-10px);
    background:rgba(56,189,248,.2);
    box-shadow:0 20px 50px rgba(56,189,248,.4);
}
.project-card i{
    font-size:55px;
    color:#38bdf8;
    margin-bottom:20px;
}

.project-card h3{
    font-size:25px;
    margin-bottom:15px;
}

.project-card p{
    color:#dbeafe;
    line-height:1.7;
}

/*Content sec*/
.content-box{
    min-height:100vh;
    max-width:1000px;
    margin:auto;
    padding:80px 40px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.content-box h2{
    font-size:45px;
    color:#38bdf8;
    margin-bottom:30px;
}

.content-box p{
    font-size:22px;
    line-height:1.8;
    color:#e2e8f0;
    white-space:pre-line;
}

/*Content animation*/

.fade{
    animation:fade .5s ease;
}

@keyframes fade{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.contact{
    min-height:80vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:60px 20px;
}

.contact h2{
    font-size:45px;
    color:#38bdf8;
    margin-bottom:20px;
}

.contact p{
    max-width:700px;
    color:#dbeafe;
    font-size:20px;
    line-height:1.8;
    margin-bottom:40px;
}

.contact-links a{
    text-decoration:none;
    color:white;
    padding:15px 30px;
    border-radius:20px;
    background:rgba(255,255,255,.1);
    transition:.3s;
}

.contact-links a:hover{
    background:#38bdf8;
}
footer{

    text-align:center;

    padding:40px;

    color:#94a3b8;

}

/*Scroll btn*/
#topBtn{
    position:fixed;
    right:30px;
    bottom:30px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#38bdf8;
    color:white;
    font-size:22px;
    cursor:pointer;
    display:none;
}

/*Responsivessheesh*/
@media(max-width:1200px){
    .portfolio-menu{
        grid-template-columns:repeat(2,1fr);
    }
    .project-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:700px){
    .navbar{
        flex-direction:column;
        gap:15px;
        padding:20px;
    }
    .navbar ul{
        gap:15px;
        flex-wrap:wrap;
        justify-content:center;
    }
    header h1{
        font-size:38px;
    }
    header p{
        font-size:18px;
    }
    .portfolio-menu{
        grid-template-columns:1fr;
    }
    .project-grid{
        grid-template-columns:1fr;
    }
    .box{
        height:450px;
    }
    .box img{
        width:180px;
        height:180px;
    }
}