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

/* Colour system */
:root{
    --primary:#032D42;
    --secondary:#154D45;
    --accent:#62D84E;
    /* keep for backward compatibility */
    --yellow:#62D84E;
}

*{
    font-family: 'Nunito', sans-serif;
    margin:0; padding:0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none; border:none;
    text-transform: none;
    transition: all .2s linear;
}

*::selection{
    background:var(--accent);
    color:#032D42;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

/* Scrollbar */
html::-webkit-scrollbar{
    width:1.4rem;
}

html::-webkit-scrollbar-track{
    background:var(--primary);
}

html::-webkit-scrollbar-thumb{
    background:var(--accent);
    border-radius:1rem;
}

/* Main layout */
body{
    background: radial-gradient(circle at top left, #154D45 0%, #032D42 45%, #031C2A 100%);
    overflow-x: hidden;
    padding-left: 35rem;
    color:#f5f7fa;
}

section{
    min-height: 100vh;
    padding:3rem 2rem;
}

/* Buttons */
.btn{
    padding:.9rem 3.2rem;
    background:var(--accent);
    color:var(--primary);
    cursor: pointer;
    margin-top: 1.5rem;
    font-size: 1.8rem;
    border-radius: 5rem;
    font-weight:600;
    box-shadow:0 0.4rem 1.2rem rgba(0,0,0,0.25);
}

.btn i{
    padding:0 .5rem;
    font-size: 1.8rem;
}

.btn:hover{
    background:#ffffff;
    color:var(--primary);
}

/* Headings */
.heading{
    text-align: center;
    margin:0 6rem;
    font-size: 3.6rem;
    padding:1.5rem 1rem;
    border-bottom: .1rem solid rgba(255,255,255,0.15);
    color:#ffffff;
    letter-spacing:0.05em;
}

.sub-heading{
    text-align: center;
    font-size: 1.8rem;
    padding: 2rem;
    color: #e4eef4;
}

.heading span{
    color:var(--accent);
}

/* Sidebar header */
header{
    position: fixed;
    top:0; left:0;
    z-index: 1000;
    height:100%;
    width:35rem;
    background:linear-gradient(180deg, #032D42 0%, #021923 40%, #032D42 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    text-align: center;
    box-shadow:0 0 2rem rgba(0,0,0,0.6);
}

header .user img{
    height:17rem;
    width:17rem;
    border-radius: 100%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border:.6rem solid var(--accent);
    box-shadow:0 0 1.5rem rgba(0,0,0,0.5);
}

header .user .name{
    font-size: 3rem;
    color:#ffffff;
    font-weight:600;
}

header .user .post{
    font-size: 1.7rem;
    color:#cfd9e2;
    margin-top:.4rem;
}

header .navbar{
    width:100%;
    margin-top:3rem;
}

header .navbar ul{
    list-style: none;
    padding:1rem 3rem;
}

header .navbar ul li a{
    display: block;
    padding:1rem 1.6rem;
    margin:1.2rem 0;
    background:rgba(21,77,69,0.85);
    color:#eaf2f7;
    font-size: 1.8rem;
    border-radius: 999px;
    text-align:left;
    font-weight:500;
}

header .navbar ul li a:hover{
    background:var(--accent);
    color: var(--primary);
}

/* Mobile menu icon */
#menu{
    position: fixed;
    top:2rem; right:2rem;
    background:rgba(3,45,66,0.9);
    color:#fff;
    cursor: pointer;
    font-size: 2.5rem;
    padding:1rem 1.5rem;
    z-index: 1000;
    border-radius:.8rem;
    box-shadow:0 0.6rem 1.5rem rgba(0,0,0,0.3);
    display: none;
}

/* Welcome section */
.welcome{
    display: flex;
    justify-content: center;
    flex-flow: column;
    padding:0 15rem;
}

.welcome h3{
    font-size: 2.4rem;
    color:#e4eef4;
    font-weight:400;
}

.welcome h1{
    font-size:5rem;
    color:#ffffff;
    line-height:1.2;
    margin-top:1rem;
}

.welcome h1 span{
    color:var(--accent);
}

.welcome p{
    font-size:1.8rem;
    color:#d0dde7;
    padding: 1.5rem 0;
    max-width: 70rem;
}

/* About */
.about .row{
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    padding:1rem 0;
    gap:2rem;
}

.about .row .info{
    flex:1 1 48rem;
    padding:2rem 1rem;
    padding-left: 6rem;
}

.about .row .info h3{
    font-size: 1.8rem;
    color:var(--accent);
    padding:1rem 0;
    font-weight:500;
}

.about .row .info h3 span{
    color:#e4eef4;
    padding:0 .5rem;
}

.about .row .counter{
    flex:1 1 48rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.about .row .counter .box{
    width:25rem;
    background:rgba(3,45,66,0.9);
    text-align: center;
    padding: 2rem;
    margin:2rem;
    border-radius:1.5rem;
    box-shadow:0 0.8rem 1.8rem rgba(0,0,0,0.35);
}

.about .row .counter .box span{
    font-size: 3.4rem;
    color:var(--accent);
    font-weight:600;
}

.about .row .counter .box h3{
    font-size: 1.7rem;
    color:#f3f7fb;
    margin-top:.8rem;
}

/* Education timeline */
.education .box-container{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    padding:1rem 0;
    padding-left: 3rem;
}

.education .box-container .box{
    width:27rem;
    margin:4rem 1rem;
    padding-left: 4rem;
    border-left: .2rem solid rgba(255,255,255,0.25);
    position: relative;
}

.education .box-container .box span{
    font-size: 1.3rem;
    background:rgba(3,45,66,0.9);
    color:#f5f7fa;
    border-radius: 5rem;
    padding:.5rem 2.5rem;
}

.education .box-container .box h3{
    font-size: 2rem;
    color:#ffffff;
    padding-top: 1.5rem;
}

.education .box-container .box p{
    font-size: 1.4rem;
    color:#d0dde7;
    padding: 1rem 0;
}

.education .box-container .box i{
    position: absolute;
    top:-1.5rem; left:-2.5rem;
    height:5rem;
    width: 5rem;
    border-radius: 50%;
    line-height: 5rem;
    text-align: center;
    font-size: 2rem;
    color:var(--primary);
    background:var(--accent);
    box-shadow:0 0.6rem 1.6rem rgba(0,0,0,0.4);
}

/* Portfolio */
.portfolio .box-container{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding:2rem 0;
    gap:2rem;
}

.portfolio .box-container .box{
    height: 20rem;
    width:26rem;
    border-radius: 1.5rem;
    margin:1rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow:0 0.8rem 1.8rem rgba(0,0,0,0.35);
    background:var(--secondary);
}

.portfolio .box-container .box img{
    height:100%;
    width:100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.portfolio .box-container .box:hover img{
    transform: scale(1.08);
}

/* Contact info (no form) */
.contact {
    min-height: auto !important;
    padding-bottom: 2rem !important;
}

.contact .row{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.contact .row .content{
    flex:1 1 30rem;
    padding: 3rem 4rem 0rem 4rem !important; /* reduced padding */
    margin-bottom: 0 !important;
}

.contact .row .content .title{
    text-transform: uppercase;
    color:#ffffff;
    font-size: 2.4rem;
    padding-bottom: 1.5rem; /* slightly reduced */
    letter-spacing:0.08em;
}

.contact .row .content .info h3{
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color:#d0dde7;
    padding:0.7rem 0; /* reduced spacing */
    font-weight: normal;
}

.contact .row .content .info h3 i{
    padding-right: 1rem;
    color:var(--accent);
}

.contact .sub-heading {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Back to top button */
.top{
    position: fixed;
    bottom:7.5rem; right: 2rem;
    z-index: 100;
    display: none;
}

.gotopbtn{
    position: fixed;
    width: 5rem;
    height: 5rem;
    background: var(--accent);
    bottom: 2rem;
    right: 2rem;
    text-decoration: none;
    text-align: center;
    align-items: center;
    display: flex;
    justify-content: center;
    line-height: 5rem;
    color: var(--primary);
    font-size: 2rem;
    border-radius: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all .4s;
    box-shadow:0 0.8rem 1.8rem rgba(0,0,0,0.4);
}

.gotopbtn:hover{
    background:#ffffff;
    color:var(--primary);
}

.gotopbtn.active{
    bottom: 2rem;
    pointer-events: auto;
    opacity: 1;
}

/* Project cards */
.project-container{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap:2rem;
}

.project-card{
    background:rgba(3,45,66,0.95);
    width: 26rem;
    margin: 1rem;
    border-radius: 1.5rem;
    box-shadow:0 0.8rem 1.8rem rgba(0,0,0,0.4);
    overflow:hidden;
}

.card-image{
    height: 20rem;
    background-position: center center;
    background-size: cover;
    border-radius: 1.5rem 1.5rem 0 0;
}

.car-1 {
    background-image: url('./images/soundwave.jpeg');
}

.car-2 {
    background-image: url('./images/ADS.png');
}

.car-3 {
    background-image: url('./images/tintfx.jpeg');
}

.car-4 {
    background-image: url('./images/SpaceInvader.png');
}

.car-5 {
    background-image: url('./images/MedAssist.png');
}

.car-6 {
    background-image: url('./images/salezone2.png');
}

.project-card h2{
    font-size: 1.8rem;
    text-align: center;
    padding: 1rem;
    color:#ffffff;
}

.project-card p{
    font-size: 1.4rem;
    text-align: left;
    padding: 0 1.4rem 1.4rem 1.4rem;
    color:#d0dde7;
}

.card-btn{
    display:block;
    margin: 1.5rem auto 2rem auto;
    width: 15rem;
    padding: 0.75rem;
    color:var(--primary);
    background:var(--accent);
    cursor: pointer;
    text-align: center;
    font-size: 1.5rem;
    border-radius: 2rem; 
    font-weight:600;
}

.card-btn:hover{
    background:#ffffff;
}

.project-card:hover{
    cursor: pointer;
    transform: scale(1.03);
    transition: all .5s ease;
}

/* Slideshow */
.slideshow-container {
    max-width: 60rem;
    position: relative;
    margin: 4rem auto;
}

.slide {
    display: none;
}

.slide img {
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
    height: 35rem;
    border: .3rem solid var(--accent);
    box-shadow:0 0.8rem 1.8rem rgba(0,0,0,0.4);
}

.fade {
    animation-name: fadeEffect;
    animation-duration: 1.2s;
}

@keyframes fadeEffect {
    from { opacity: .4; }
    to { opacity: 1; }
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 1.2rem;
    color: #ffffff;
    font-size: 3rem;
    border-radius: 0 3px 3px 0;
    user-select: none;
    transform: translateY(-50%);
    background:rgba(3,45,66,0.65);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    color: var(--accent);
}

.slideshow-dots {
    margin-top: 1.5rem;
}

.dot {
    height: 1.2rem;
    width: 1.2rem;
    margin: 0 .3rem;
    background-color: rgba(255,255,255,0.35);
    border-radius: 50%;
    display: inline-block;
    transition: background-color .4s;
}

.active-slide {
    background-color: var(--accent);
}

/* Media queries */

@media (max-width:1200px){

    html{
        font-size: 55%;
    }

    .welcome{
        padding:1rem 4rem;
    }

}

@media (max-width:991px){

   header{
       left:-120%;
   }

   #menu{
       display: block;
   }

   header.toggle{
        left:0%;
   }

   body{
       padding:0;
   }

}

@media (max-width:768px){

    html{
        font-size: 50%;
    }

    .welcome{
        padding: 8rem 3rem 3rem 3rem;
    }

    /* Center Education section on tablets & small screens */
    .education .box-container{
        padding-left: 0 !important;
        justify-content: center !important;
    }

    .education .box-container .box{
        width: 100% !important;
        max-width: 32rem;
        margin: 3rem auto !important;
        padding-left: 0 !important;
        border-left: none !important;
        text-align: center !important;
    }

    .education .box-container .box i{
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: -2.2rem !important;
    }

    .education .box-container .box span{
        margin-top: 3rem;
        display: inline-block;
    }
}

@media (max-width:400px){

    header{
        width: 100vw;
    }

    .heading{
        margin:0 3rem;
    }

    .about .row .counter .box{
        width: 100%;
    }
 
    .education .box-container .box{
        width:100%;
    }

    .portfolio .box-container .box{
        width:100%;
    }

    .project-card{
        width:100%;
    }
}

