* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root {
    --text-color: #fff;
    --bg-color: #1b1f24;
    --second-bg-color: #22282f;
    --main-color: #13bbff;
    --other-color: #c3cad5;

    --h1-font: 4.5rem;
    --h2-font: 2.9rem;
    --p-font: 1rem;
}

body {
    color: var(--text-color);
    background: var(--bg-color);
}

header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16%;
    background: transparent;
    transition: all .50s ease;
}

.logo {
    font-size: 36px;
    color: var(--text-color);
    font-weight: 600;
}

span {
    color: var(--main-color);
}

.navlist {
    display: flex;
}

.navlist a {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--other-color);
    margin-left: 40px;
    transition: all .50s ease;
}

.navlist a:hover {
    color: var(--main-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);
}

#menu-icon {
    font-size: 35px;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

.h-btn {
    display: inline-block;
    padding: 11px 26px;
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}

.h-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}

section {
    padding: 110px 16% 90px;
}

.hero {
    height: 100vh;
    width: 100%;
    background-position: top right;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.main-content h4 {
    font-size: 1.6rem;
}

.main-content h1 {
    font-size: var(--h1-font);
    font-weight: 900;
    margin: 20px 0px 20px;
    line-height: 1.2;
}

.main-content p {
    font-size: var(--p-font);
    font-weight: 400;
    width: 620px;
    max-width: 100%;
    color: var(--other-color);
    line-height: 30px;
    margin-bottom: 15px;
}

.social {
    margin-bottom: 40px;
}

.social i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--main-color);
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 20px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all .50s ease;
}

.social i:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

.btn {
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}

.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

.btn2 {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    margin-left: 15px;
    transition: all .50s ease;
}

.btn2:hover {
    background: var(--main-color);
    color: var(--bg-color);
}

header.sticky{
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem rgba(0, 0, 0, .2);
    padding: 16px 16%;
}

.about {
    background: var(--second-bg-color);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 1rem;
}

.about-img img {
    width: 100%;
    height: 430px;
    max-width: 430px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}

.abt-cntnt h2 {
    font-size: var(--h2-font);
    line-height: 1.3;
    margin-bottom: 20px;
}

.abt-cntnt p {
    font-size: var(--p-font);
    line-height: 27px;
    text-align: justify;
}

.center-text {
    text-align: center;
}

.center-text h2 {
    font-size: var(--h2-font);
}

/* Skills section styling */
.skills {
    padding: 80px 20px;
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    transform: translateX(-50%);
    z-index: -1;
    opacity: 0.8;
}

.center-text h2 {
    font-size: 2.5rem;
    color: #03e9f4;
    margin-bottom: 10px;
    position: relative;
}

.center-text h2 span {
    color: #ff0080;
}

.skills-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
}

.skills-content .box {
    background: #24243e;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 30px);
    min-width: 300px;
    position: relative;
}

.skills-content .box:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.7);
}

.skills-content .box h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #03e9f4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.skills-content .box img {
    height: 40px;
    margin: 10px 5px;
    transition: transform 0.3s ease;
}

.skills-content .box img:hover {
    transform: scale(1.2);
}

.skills-content .box p {
    font-size: 1rem;
    line-height: 1.8;
    color: #dcdcdc;
    margin: 10px 0;
}

/* Responsive styles */
@media (max-width: 768px) {
    .skills-content {
        flex-direction: column;
        align-items: center;
    }

    .skills-content .box {
        width: 100%;
    }

    .center-text h2 {
        font-size: 2rem;
    }
}

/* Projects Section */
.projects {
    background: var(--second-bg-color);
}

.projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 2.5rem;
    margin-top: 4rem;
    padding: 0 20px;
}

.row {
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    padding: 20px;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    min-height: 450px;
    max-height: 450px;
}

.row img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}

.main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0.5rem;
}

.row-text h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--other-color);
    text-align: left;
}

.row-icon a i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 24px;
    border-radius: 50%;
    color: var(--text-color);
    background: #075fe4;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.row-icon a i:hover {
    background-color: var(--main-color);
    transform: scale(1.1);
}

.row h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text-color);
}

.row:hover {
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
}

.row a:hover {
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .projects-content {
        grid-template-columns: 1fr;
    }

    .row {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .main-row {
        flex-direction: column;
        align-items: center;
    }

    .row img {
        max-width: 100%;
    }

    .row-text h5 {
        text-align: center;
        font-size: 16px;
    }

    .row h4 {
        font-size: 20px;
    }

    .row-icon a i {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .projects-content {
        padding: 0 10px;
    }

    .row img {
        max-width: 100%;
    }

    .row h4 {
        font-size: 18px;
    }

    .row-text h5 {
        font-size: 14px;
    }
}

.contact-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.2rem;
}

.contact-form form {
    position: relative;
    width: 600px;
    max-width: 100%; /* Ensures the form does not exceed the screen width */
}

form input, form textarea {
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    box-shadow: 0 0 5px var(--main-color);
    background: #2d343f;
    color: var(--text-color);
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 16px; /* Set a more standard font size */
}

form input::placeholder, form textarea::placeholder {
    color: var(--other-color);
    font-size: 15px;
}

form .send-btn {
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.50s ease;
    width: 30%;
    min-width: 150px; /* Ensures the button doesn’t get too small on small screens */
    text-align: center;
}

form .send-btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form form {
        width: 90%; /* Reduces width for smaller screens */
    }

    form input, form textarea {
        padding: 16px; /* Slightly smaller padding for smaller screens */
        font-size: 14px; /* Adjust the font size for better readability */
    }

    form .send-btn {
        width: 50%; /* Makes button width larger on smaller screens */
    }
}

@media (max-width: 576px) {
    form input, form textarea {
        padding: 14px; /* Further reduction for small mobile devices */
        font-size: 13px; /* Smaller font for compact devices */
    }

    form .send-btn {
        width: 100%; /* Button takes full width on small screens */
        padding: 12px 20px; /* Increase button padding for better touch experience */
    }
}

.footer {
    padding: 22px 16%;
    background: var(--second-bg-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.copyright p {
    font-size: 15px;
    font-weight: 400;
    color: var(--other-color);
}

.scroll-top i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #075fe4;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 27px;
}

@media (max-width: 1700px) {
    header {
        padding: 20px 8%;
    }
    header.sticky {
        padding: 14px 8%;
    }
    section {
        padding: 90px 8% 80px;
    }
    .footer {
        padding: 18px 8%;
    }
    .logo {
        font-size: 28px;
    }
}

@media (max-width: 1380px) {
    header {
        padding: 20px 5%;
    }
    header.sticky {
        padding: 14px 5%;
    }
    section {
        padding: 90px 5% 80px;
    }
    .footer {
        padding: 18px 5%;
    }
    .hero {
        height: 90vh;
        background-position: center;
    }
}

@media (max-width: 1290px) {
    .box {
        padding: 40px 40px 46px;
        width: 100%;
        margin-bottom: 20px;
    }
    .box img {
        width: 100%;
        height: 60px;
        max-width: 60px;
    }
    .box h3 {
        font-size: 21px;
    }
}

@media (max-width: 1240px) {
    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .about-img img {
        text-align: center;
        width: 100%;
        height: 400px;
        max-width: 400px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
    :root {
        --h1-font: 4rem;
        --h2-font: 2.2rem;
        --p-font: 15px;
    }
}

@media (max-width: 950px) {
    :root {
        --h1-font:3.5rem;
    }
    .social {
        margin-bottom: 20px;
    }
    #menu-icon {
        display: block;
    }
    .navlist {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        transition: all .50s ease;
    }
    .navlist a{
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navlist.active {
        right: 0;
    }
}

@media (max-width: 680px) {
    .main-content p{
        width: 100%;
    }
}

@media (max-width: 470px) {
    :root {
        --h1-font: 3rem;
        --h2-font: 2rem;
    }
    .about-img img {
        text-align: center;
        width: 100%;
        height: 300px;
        max-width: 300px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }
}