* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
}

@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        scale: 1;
        transform: translateX(0);
    }
}

:root {
    --bg-color: #001;
    --second-bg-color: #112;
    --text-color: #fff;
    --main-color: #16ff00;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 9%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-family: "poppins", sans-serif;
}

.logo {
    font-size: 3rem;
    font-weight: 400;
    cursor: pointer;
    text-align: center;
    background: -webkit-linear-gradient(#16ff00, #ffed00);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo2 {
    height: 50px;
}

.navbar {
    display: flex;
    list-style: none;
}

.navbar a {
    font-size: 1.8rem;
    position: relative;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 4rem;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -5px;
    height: 2px;
    background-color: var(--main-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.5s ease;
}

.navbar a:hover::after {
    transform: scaleX(1);
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}

.nav-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.05);
}

.home {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--second-bg-color);
    font-family: "Montserrat Alternates", sans-serif;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    top: 0;
    left: 0;
}

.home-content {
    max-width: 90%;
    z-index: 2;
}

.home-content h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 2rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    font-size: 5.8rem;
    font-weight: 700;
    line-height: 1.3;
    background: -webkit-linear-gradient(#16ff00, #ffed00);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}


.button a {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
}

.btn:hover,
.btn2:hover {
    transform: scale(1.1);
}

.social-media {
    margin: 20px 0;
}

.social-media a {
    font-size: 4rem;
    margin: 0 10px;
    color: var(--main-color);
    transition: 0.3s;
}

.social-media a:hover {
    transform: scale(1.2);
    color: #ffed00;
}

.home-content p {
    font-size: 1.6rem;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 3rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-media a:hover {
    transform: scale(1.2) translateY(-8px);
    background-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn {
    display: inline-flex;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: none;
    font-size: 1.8rem;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    box-shadow: 0 0 1.6rem var(--main-color);
}

.btn2 {
    display: none;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: var(--bg-color);
    font-family: "Montserrat Alternates", sans-serif;
}

.about-img img {
    width: 25vw;
    height: 50vh;
    border: 3px solid var(--main-color);
    border-radius: 51% 49% 48% 52% / 49% 49% 51% 51%;
    position: relative;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
}

.about-content {
    padding: 0 4rem;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.about-content h2 {
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 2.6rem;
}

.about-content p {
    font-size: 1.6rem;
    margin: 2rem 0 3rem;
}

/* skills Section */
.skills {
    padding: 5rem 2rem;
    background-color: var(--second-bg-color);
    text-align: center;
    font-family: "Montserrat Alternates", sans-serif;
}

.skills .heading {
    font-size: rem;
    margin-top: 5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.skill-box {
    background: var(--bg-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 255, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.skill-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(22, 255, 0, 0.3);
}

.skill-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-box .fa-html5 {
    color: #e34c26;
}

.skill-box .fa-css3-alt {
    color: #264de4;
}

.skill-box .fa-js-square {
    color: #f0db4f;
}

.skill-box .fa-react {
    color: #61dbfb;
}

.skill-box .fa-code {
    color: #16ff00;
}

.skill-box .fa-c {
    color: #00599C;
}

.skill-box .fa-cuttlefish {
    color: #659AD2;
}

.skill-box .bx {
    color: #3b82f6;
}

.skill-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--main-color);
}

.progress-bar {
    background: #223;
    border-radius: 30px;
    overflow: hidden;
    height: 20px;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: var(--main-color);
    border-radius: 30px;
    animation: fillProgress 1.5s ease-in-out;
}

.skill-box span {
    font-weight: bold;
    color: var(--text-color);
    font-size: 1.1rem;
}

@keyframes fillProgress {
    from {
        width: 0;
    }
}


.portfolio {
    background: var(--second-bg-color);
    font-family: "Montserrat Alternates", sans-serif;
}

.portfolio-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, auto));
    align-items: center;
    gap: 2.3rem;
    margin-top: 4.2rem;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.row {
    background: var(--bg-color);
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    padding: 20px;
    transition: all 0.3s ease;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.row img {
    height: auto;
    width: 100%;
    margin-bottom: 1.4rem;
    border-radius: 15px;
}

.main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.row h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.row i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 27px;
    color: var(--text-color);
    background: #075fe4;
    border-radius: 50%;
}

.row h4 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4rem;
}

.row-icon-text {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
}

.logo-icon1 {
    font-size: 1.5rem;
    border: 1px solid transparent;
    border-radius: 28px;
    cursor: pointer;
}

.logo-icon2 {
    font-size: 1.5rem;
    border: 1px solid transparent;
    border-radius: 28px;
    cursor: pointer;
}

.logo-icon3 {
    font-size: 1.5rem;
    border: 1px solid transparent;
    border-radius: 28px;
    cursor: pointer;
}

#a-link {
    color: var(--main-color);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background-color: var(--second-bg-color);
}

.row:hover {
    border: 2px solid var(--main-color);
    transform: translateY(-5px) scale(1.05);
    cursor: pointer;
}

.contact {
    background: var(--bg-color);
    font-family: "Montserrat Alternates", sans-serif;
}

.contact h2 {
    margin-bottom: 3rem;
    color: var(--text-color);
}

.contact form {
    max-width: 90rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.contact form textarea {
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 1px solid var(--main-color);
    margin: 0.7rem 0;
    resize: none;
}

.contact form .input-box input {
    width: 49%;
    margin: 0.7rem 0.35rem;
}

.contact form .btn {
    margin-top: 2rem;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    background: var(--second-bg-color);
    font-family: 'Courier New', Courier, monospace;

}

.footer .social {
    text-align: center;
    color: var(--main-color);
}

.footer .social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 28px;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: all 0.3s ease;
}

.footer .social a:hover {
    transform: scale(1.2) translateY(-8px);
    background: var(--main-color);
    color: var(--text-color);
}

.footer .copyright {
    text-align: center;
    font-size: 15px;
    color: var(--text-color);
}

/* Responsive Design code */

@media (max-width: 1285px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 990px) {
    header {
        padding: 2rem 3%;
    }

    section {
        padding: 10rem 3% 2rem;
    }

    .footer {
        padding: 2rem 3%;
    }

    @media (max-width: 786px) {
        #menu-icon {
            display: block;
        }

        .navbar {
            position: absolute;
            top: 100%;
            right: -100%;
            width: 255px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            background: var(--second-bg-color);
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .nav-btn {
            display: none;
        }

        .navbar a {
            display: block;
            padding: 17px;
            font-size: 22px;
        }

        .navbar.active {
            right: 0;
        }

        .home {
            flex-direction: column;
        }

        .home-content h3 {
            font-size: 2.6rem;
        }

        .home-content h1 {
            font-size: 5rem;
        }

        .home-content {
            order: 2;
        }

        .about {
            flex-direction: column;
        }

        .about-img img {
            width: 70vw;
            margin-top: 4rem;
        }

        .contact form .input-box input {
            width: 100%;
        }
    }

    @media (max-width: 617px) {
        .about-img img {
            width: 80vw;
            margin-top: 4rem;
        }
    }

    @media (max-width: 440px) {
        .home-content {
            display: flex;
            flex-direction: column;
        }

        .home-content h3 {
            text-align: left;
        }

        .social-media,
        .button {
            text-align: left;
        }

        .home-content h1 {
            text-align: left;
        }

        .home-content p {
            text-align: left;
        }

        .heading {
            font-size: 5rem;
            text-align: center;
            margin: 2rem 0;
        }
    }
}