@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;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #0f172a;
    --second-bg-color: #1e293b;
    --text-color: #f8fafc;
    --main-color: #06b6d4;
    /* Neon Cyan */
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Header Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    margin-left: 4rem;
    transition: .3s;
    font-weight: 500;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    text-shadow: 0 0 10px var(--main-color);
}

.menu-btn {
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
}

/* Section Common Styles */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

.heading span {
    color: var(--main-color);
}

/* Home Section */
.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h1 {
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content p {
    font-size: 1.6rem;
    margin: 2rem 0;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--main-color);
    margin: 0 1.5rem 3rem 0;
    transition: .5s ease;
}

.social-icons a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
    transform: translateY(-3px);
}

/* Profile Image Float Animation */
.home-img .glowing-circle {
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatImage 4s ease-in-out infinite;
}

.home-img img {
    width: 90%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2rem);
    }
}

/* About Section */
.about {
    background: var(--second-bg-color);
}

.about-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6rem;
    flex-wrap: wrap;
}

.about-content,
.about-skills {
    flex: 1 1 40rem;
}

.about-content h3,
.about-skills h3 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #94a3b8;
}

.about-info {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.info-box {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.info-box h5 {
    font-size: 2.8rem;
    color: var(--main-color);
    font-weight: 700;
}

.info-box p {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-top: 0.5rem;
}

/* Skills Bars */
.skill-bar {
    margin-bottom: 2.5rem;
}

.skill-bar .info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.skill-bar .info p {
    font-size: 1.6rem;
    font-weight: 500;
}

.skill-bar .bar {
    width: 100%;
    height: 1.2rem;
    background: var(--bg-color);
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}

.skill-bar .bar span {
    height: 100%;
    border-radius: 1rem;
    background: var(--main-color);
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0 0 10px var(--main-color);
    animation: loadSkill 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.skill-bar .bar span.html-css {
    width: 90%;
}

.skill-bar .bar span.javascript {
    width: 80%;
}

.skill-bar .bar span.react {
    width: 75%;
}

.skill-bar .bar span.backend {
    width: 80%;
}

@keyframes loadSkill {
    from {
        width: 0%;
    }
}

/* Services Section */
.services {
    background: var(--bg-color);
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.services-box {
    flex: 1 1 30rem;
    background: var(--second-bg-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid transparent;
    transition: .5s ease;
}

.services-box:hover {
    border-color: var(--main-color);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.services-box i {
    font-size: 7rem;
    color: var(--main-color);
}

.services-box h3 {
    font-size: 2.6rem;
    margin: 1rem 0;
}

.services-box p {
    font-size: 1.4rem;
}

/* Projects Section */
.projects {
    background: var(--second-bg-color);
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2.5rem;
}

.project-box {
    position: relative;
    border-radius: 2rem;
    box-shadow: 0 0 1rem rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
}

.project-box img {
    width: 100%;
    transition: .5s ease;
}

.project-box:hover img {
    transform: scale(1.1);
}

.project-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), var(--main-color));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 4rem;
    transform: translateY(100%);
    transition: .5s ease;
}

.project-box:hover .project-layer {
    transform: translateY(0);
}

.project-layer h4 {
    font-size: 3rem;
    color: var(--bg-color);
    font-weight: 700;
}

.project-layer p {
    font-size: 1.6rem;
    margin: .3rem 0 1rem;
    color: var(--bg-color);
    font-weight: 500;
}

.project-layer a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 5rem;
    height: 5rem;
    background: var(--text-color);
    border-radius: 50%;
    color: var(--bg-color);
    font-size: 2rem;
}

/* Footer */
footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 9%;
    background: var(--bg-color);
    border-top: .1rem solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 1.6rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 9%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0, 0, 0, 0.2);
        transition: .25s ease;
    }

    .navbar.active {
        left: 0;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .home {
        flex-direction: column-reverse;
    }

    .home-img .glowing-circle {
        width: 60vw;
        height: 60vw;
    }

    .about-container {
        gap: 4rem;
    }
}