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

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

html{
    scroll-padding-top:100px;
}

body{
    font-family:"Poppins", sans-serif;
    background:midnightblue;
    color:aliceblue;
    overflow-x:hidden;
}

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

section{
    scroll-margin-top:100px;
}

/* Navigation Bar */

.navbar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 8%;
    background:rgba(0, 0, 0, 0.92);
    backdrop-filter:blur(8px);
    z-index:1000;
}

.logo{
    color:white;
    text-decoration:none;
    font-size:28px;
    font-weight:700;
    white-space:nowrap;
}

.nav-links{
    list-style:none;
    display:flex;
    align-items:center;
    gap:30px;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-size:17px;
    font-weight:500;
    transition:color 0.3s ease;
}

.nav-links a:hover{
    color:deepskyblue;
}

.nav-links a.active{
    color:#38BDF8;
    font-weight:600;
}

/* Hero Section */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:60px;
    padding:140px 8% 80px;
}

.hero-text{
    max-width:650px;
}

.hero-text h3{
    color:deepskyblue;
    font-size:30px;
    font-weight:500;
}

.hero-text h1{
    font-size:64px;
    line-height:1.15;
    margin:10px 0;
}

.hero-text h2{
    font-size:34px;
    margin-bottom:20px;
}

.hero-text p{
    color:lightgray;
    font-size:18px;
    line-height:1.8;
    margin-bottom:30px;
}

.hero-buttons{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    background:deepskyblue;
    color:white;
    text-decoration:none;
    padding:13px 26px;
    border:2px solid deepskyblue;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.btn:hover{
    background:dodgerblue;
    border-color:dodgerblue;
    transform:translateY(-4px);
}

.social-icons{
    display:flex;
    gap:20px;
}

.social-icons a{
    width:46px;
    height:46px;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    text-decoration:none;
    font-size:26px;
    border:2px solid deepskyblue;
    border-radius:50%;
    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.3s ease;
}

.social-icons a:hover{
    color:midnightblue;
    background:deepskyblue;
    transform:translateY(-4px);
}

/* Profile Image */

.hero-image{
    flex-shrink:0;
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-image img{
    width:330px;
    height:330px;
    object-fit:cover;
    object-position:center top;
    border-radius:50%;
    border:5px solid deepskyblue;
    box-shadow:0 0 25px deepskyblue;
    transition:transform 0.4s ease;
}

.hero-image img:hover{
    transform:scale(1.04);
}

/* Shared Section Headings */

.about h2,
.skills h2,
.projects h2,
.contact h2{
    text-align:center;
    color:deepskyblue;
    font-size:40px;
    margin-bottom:50px;
}

/* About Section */

.about{
    padding:90px 8%;
}

.about-content{
    max-width:950px;
    margin:auto;
}

.about-text{
    background:darkslateblue;
    padding:40px;
    border-radius:16px;
    border:1px solid rgba(255, 255, 255, 0.12);
    box-shadow:0 12px 30px rgba(0, 0, 0, 0.25);
}

.about-text p{
    color:aliceblue;
    font-size:18px;
    line-height:1.9;
    margin-bottom:20px;
}

.about-text p:last-child{
    margin-bottom:0;
}

.about-text strong{
    color:deepskyblue;
}

/* Skills Section */

.skills{
    padding:90px 8%;
    text-align:center;
}

.skills-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
    gap:25px;
}

.skill-card{
    min-height:170px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background:darkslateblue;
    padding:30px 20px;
    border-radius:15px;
    border:1px solid rgba(255, 255, 255, 0.12);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.skill-card:hover{
    transform:translateY(-8px);
    box-shadow:0 0 20px deepskyblue;
}

.skill-card i{
    color:deepskyblue;
    font-size:50px;
    margin-bottom:15px;
}

.skill-card h3{
    font-size:21px;
}

/* Projects Section */

.projects{
    padding:90px 8%;
    text-align:center;
}

.project-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
    gap:35px;
}

.project-card{
    display:flex;
    flex-direction:column;
    background:darkslateblue;
    border-radius:16px;
    overflow:hidden;
    border:1px solid rgba(255, 255, 255, 0.12);
    text-align:left;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover{
    transform:translateY(-10px);
    box-shadow:0 0 25px deepskyblue;
}

.project-card img{
    width:100%;
    height:210px;
    object-fit:cover;
    background:black;
}

.project-card-content{
    padding:25px;
    display:flex;
    flex-direction:column;
    height:100%;
}

.project-card h3{
    color:white;
    font-size:22px;
    margin-bottom:12px;
}

.project-card p{
    color:lightgray;
    font-size:15px;
    line-height:1.7;
    margin-bottom:18px;
}

.tech-stack{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:15px 20px 20px;
}

.tech-stack span{
    background:deepskyblue;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
}

.project-links{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:auto;
    padding:20px;
}

.project-links .btn{
    padding:10px 19px;
}

/* Contact Section */

.contact{
    padding:90px 8%;
    text-align:center;
}

.contact h2{
    margin-bottom:20px;
}

.contact > p{
    max-width:700px;
    margin:0 auto 40px;
    color:lightgray;
    font-size:18px;
    line-height:1.7;
}

.contact-info{
    max-width:650px;
    margin:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:20px;
}

.contact-item{
    display:flex;
    align-items:center;
    gap:18px;
    background:darkslateblue;
    padding:20px 24px;
    border-radius:12px;
    border:1px solid rgba(255, 255, 255, 0.12);
    font-size:18px;
    text-align:left;
}

.contact-item i{
    width:32px;
    color:deepskyblue;
    font-size:27px;
    text-align:center;
}

.contact-item a{
    color:white;
    text-decoration:none;
    overflow-wrap:anywhere;
    transition:color 0.3s ease;
}

.contact-item a:hover{
    color:deepskyblue;
}

/* Footer */

footer{
    background:black;
    padding:28px 20px;
    text-align:center;
    color:lightgray;
    font-size:15px;
}

/* Tablet Screens */

@media(max-width:900px){

    .navbar{
        padding:18px 5%;
    }

    .nav-links{
        gap:18px;
    }

    .hero{
        flex-direction:column-reverse;
        justify-content:center;
        text-align:center;
        padding:140px 6% 80px;
    }

    .hero-text{
        max-width:750px;
    }

    .hero-buttons,
    .social-icons{
        justify-content:center;
    }

    .hero-text h1{
        font-size:54px;
    }

    .hero-image img{
        width:290px;
        height:290px;
    }
}

/* Mobile Screens */

@media(max-width:700px){

    html{
        scroll-padding-top:155px;
    }

    section{
        scroll-margin-top:155px;
    }

    .navbar{
        position:fixed;
        flex-direction:column;
        gap:14px;
        padding:14px 20px;
    }

    .logo{
        font-size:24px;
    }

    .nav-links{
        width:100%;
        justify-content:center;
        flex-wrap:wrap;
        gap:10px 18px;
    }

    .nav-links a{
        font-size:14px;
    }

    .hero{
        min-height:auto;
        padding:190px 6% 75px;
        gap:40px;
    }

    .hero-text h3{
        font-size:23px;
    }

    .hero-text h1{
        font-size:42px;
    }

    .hero-text h2{
        font-size:26px;
    }

    .hero-text p{
        font-size:16px;
    }

    .hero-image img{
        width:240px;
        height:240px;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

    .hero-buttons .btn{
        width:100%;
        max-width:260px;
    }

    .about,
    .skills,
    .projects,
    .contact{
        padding:75px 6%;
    }

    .about h2,
    .skills h2,
    .projects h2,
    .contact h2{
        font-size:32px;
        margin-bottom:35px;
    }

    .about-text{
        padding:25px;
    }

    .about-text p{
        font-size:16px;
    }

    .skills-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
        gap:15px;
    }

    .skill-card{
        min-height:145px;
        padding:22px 12px;
    }

    .skill-card i{
        font-size:42px;
    }

    .skill-card h3{
        font-size:17px;
    }

    .project-grid{
        grid-template-columns:1fr;
    }

    .project-card img{
        height:200px;
    }

    .contact-item{
        align-items:flex-start;
        padding:18px;
        font-size:15px;
    }
}

/* Very Small Screens */

@media(max-width:420px){

    .skills-grid{
        grid-template-columns:1fr;
    }

    .hero-text h1{
        font-size:36px;
    }

    .hero-text h2{
        font-size:23px;
    }

    .hero-image img{
        width:215px;
        height:215px;
    }

    .social-icons a{
        width:42px;
        height:42px;
        font-size:23px;
    }
}