* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins";
}

:root {
    --bg-color: #080808;
    --second-bg-color: #101010;
    --text-color: white;
    --main-color: #ea580c;
}

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

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

body.no-scroll {
    overflow: hidden;
}

/* Form Message Styles */
.form-message {
    display: none;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem;
    border-radius: 0.8rem;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 1;
    max-width: 600px;
    width: 90%;
}

.form-message.success {
    background-color: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.form-message.error {
    background-color: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

/* Loading spinner for submit button */
.btn .fa-spinner {
    margin-right: 8px;
}

.skills-heading {
    font-size: 7rem;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 2rem 15%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

#menu-icon {
    font-size: 3.5rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

#menu-icon.fa-times {
    transform: rotate(180deg);
    color: var(--text-color);
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    background: linear-gradient(270deg,
            #DF8908 10%,
            #ff1d15 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.navbar {
    display: flex;
    transition: all 0.3s ease;
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
    padding: 0.5rem 0;
}

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

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

    .navbar a {
        font-size: 1.6rem;
        margin-left: 3rem;
    }

    section {
        padding: 8rem 3%;
    }

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

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

@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
    }

    #menu-icon {
        display: block;
        z-index: 1001;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.9);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .navbar.active {
        right: 0;
    }

    .navbar a {
        display: block;
        font-size: 4rem;
        margin: 2rem 0;
        color: var(--text-color);
        transition: color 0.3s, transform 0.3s;
        border-bottom: none;
    }

    .navbar a:hover,
    .navbar a.active {
        color: var(--main-color);
        border-bottom: none;
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    section {
        padding: 6rem 5%;
    }

    html {
        font-size: 50%;
    }

    .navbar a {
        font-size: 2.5rem;
        margin: 1.5rem 0;
    }

    .home {
        flex-direction: column;
        text-align: center;
        padding: 12rem 5% 5rem;
    }

    .home-content {
        width: 100%;
        margin-bottom: 3rem;
    }

    .home-img {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .home-img img {
        max-width: 80%;
        height: auto;
    }

    .about {
        flex-direction: column;
        padding: 10rem 5% 5rem;
        text-align: center;
    }

    .about-content {
        width: 100%;
    }

    .about-img {
        width: 100%;
        margin-bottom: 3rem;
    }

    .about-img img {
        max-width: 80%;
        height: auto;
    }

    .skills-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 0 5%;
    }

    .skill-item {
        padding: 1.5rem;
    }

    .skill-item i,
    .skill-item img {
        width: 40px;
        height: 40px;
        font-size: 3rem;
    }

    .skill-label {
        font-size: 1.4rem;
    }

    .projects-box {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 90%;
        margin-bottom: 3rem;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-box {
        width: 90%;
        margin-bottom: 2rem;
    }

    .contact form .input-group {
        flex-direction: column;
    }

    .contact form .input-group input,
    .contact form .input-group textarea {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

.skills-content .skill-label {
    font-size: 1.6rem;
    margin-top: 1rem;
    color: white;
}

.skills-content .c-icon-img {
    width: 66px;
    height: 66px;
    display: block;
    margin: 0 auto;
}

section {
    min-height: 100vh;
    padding: 6rem 15% 4rem 15%;
}

.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15rem 10% 10rem;
    margin: 0 auto;
    max-width: 1400px;
    gap: 15rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.home-content h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.home-content h3 {
    margin: 1rem 0;
    font-size: 4rem;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}

.home-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 var(--main-color);
    transition: 0.4s ease-in-out;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 25px var(--main-color),
        0 0 25px var(--main-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin: 3rem 0;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: #fff;
    margin: 0; /* Updated from '3rem 0.5rem' */
    transition: 0.3s ease-in-out;
}

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

.btn-group {
    display: flex;
    gap: 1.5rem;
}

.review-btn {
    color: var(--bg-color);
    white-space: nowrap;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: var(--bg-color);
    border: 2px solid transparent;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color);
}

.btn-group a:nth-of-type(2) {
    background-color: var(--bg-color);
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: none;
}

.btn-group a:nth-of-type(2):hover {
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: var(--bg-color);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 10rem 10% 10rem;
    margin: 0 auto;
    max-width: 1400px;
    background: var(--bg-color);
}

.about-img img {
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 var(--main-color);
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 20px var(--main-color),
        0 0 25px var(--main-color),
        0 0 25px var(--main-color);
}

.about-content h2 {
    font-size: 7rem;
    text-align: left;
}

.about-content p {
    font-size: 1.8rem;
}

.about-content .btn {
    margin: 3rem 0;
}

::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

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

.services {
    background-color: var(--bg-color);
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services h2 {
    color: var(--text-color);
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
}

.service-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    height: 380px;
    width: 300px;
    flex-shrink: 0;
    border-radius: 3rem;
    cursor: pointer;
    border: 5px solid transparent;
    transition: 0.4s ease-in-out;
}

.service-box:hover {
    background: var(--second-bg-color);
    color: var(--main-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}

.service-box:hover .service-info i {
    color: var(--main-color) !important;
}

.service-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.service-info h4 {
    font-size: 4rem;
    margin: 2rem 0;
    font-weight: 800;
}

.service-info p {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.7;
}

.service-info i {
    font-size: 5rem;
}

.projects {
    background-color: var(--second-bg-color);
}

.projects-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    place-items: center;
    gap: 3rem;
    row-gap: 5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    background-color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 3rem 3rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
    align-items: center;
}

.project-card:hover {
    box-shadow: 0 0 25px var(--main-color),
        0 0 50px var(--main-color);
    transform: scale(1.02);
}

.project-card img {
    max-width: 300px;
    border-radius: 2em;
    object-fit: cover;
    width: 100%;
}

@media (max-width: 768px) {
    .project-card img {
        width: 95%;
        height: auto;
        max-width: none;
    }
}

.project-card h3 {
    font-size: 3rem;
}

.project-card p {
    font-size: 1.6rem;
}

.contact {
    background-color: var(--bg-color);
}

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

.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    text-align: center;
}

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

.footer {
    background-color: var(--bg-color);
    padding: 50px 0;
}

.footer .social-icons {
    text-align: center;
}

.footer ul {
    text-align: center;
    font-size: 1.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer ul li {
    display: inline-block;
    margin: 0;
}

.footer ul li a {
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    margin: 40px auto 0;
    font-size: 1.6rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}


.skills-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3rem 2rem;
    margin: 3rem auto;
    padding: 1.5rem 5%;
    max-width: 1400px;
    justify-items: center;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 1.5rem 1rem;
    transition: all 0.3s ease;
}

.skill-item i,
.skill-item span[style*="display: flex"] {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 6rem;
    width: 100%;
}

.skills-content i {
    font-size: 6rem;
}

.skill-label {
    font-size: 1.6rem;
    margin-top: 1rem;
    color: white;
    text-align: center;
    word-break: break-word;
    width: 100%;
}

.skills-content .fa-html5 {
    color: #ea580c !important;
}

.skills-content .fa-css3-alt {
    color: #2965f1 !important;
}

.skills-content .fa-js {
    color: #f7df1e !important;
}

.skills-content .fa-python {
    color: #3776ab !important;
}

.skills-content .fa-java {
    color: #ea580c !important;
}

.skills-content .fa-git-alt {
    color: #f34f29 !important;
}

.skills-content .fa-github {
    color: #ffffffea !important;
}

.skills-content .fa-globe {
    color: #00b894 !important;
}

.skills-content .fa-database {
    color: #00758f !important;
}

.skills-content .fa-scissors {
    color: #f2eff6 !important;
}

.skills-content .fa-bootstrap {
    color: #7952b3 !important;
}

.skills-content .fa-person-chalkboard {
    color: #d24726 !important;
}

@media (max-width: 1200px) {
    .skills-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .skills-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
        max-width: 300px;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }
}

.skills-content i:hover,
.skills-content img:hover {
    transform: scale(1.15);
    z-index: 1;
}

@media (max-width:1285px) {
    .home {
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }

    .home-content {
        align-items: center;
        text-align: center;
    }

    .home-img img {
        width: 52vw;
        margin-top: -2rem;
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
        gap: 10rem;
    }

    .about-content h2 {
        text-align: center;
        margin-top: 3rem;
    }

    .about-img {
        width: 52vw;
        margin-top: -2rem;
    }

    .projects-box {
        grid-template-columns: 1fr;
    }

    .contact form {
        flex-direction: column;
    }

    .input-box {
        flex-direction: column;
        width: 100%;
    }

    .input-box input {
        width: 100%;
        margin-bottom: 1.5rem;
    }
}