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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Poppins", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: #080808;
    --secong-bg-color: #101010;
    --text-color: #ffffff;
    --main-color: #c11616;
}

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

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

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

#menu-icon {
    font-size: 4rem;
    color: var(--main-color);
    transform: translateX(30px);
    display: none;
}
.logo {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}
.logo:hover {
    transform: scale(1.1);
}
span {
    background: linear-gradient(
        270deg, 
        #ef3c3c 10%,
        #c11616 100%
    );
    background-clip: text;
    color: transparent;
}

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

.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    border: none;
    background: linear-gradient(
        270deg, 
        #ef3c3c 10%,
        #af0c0c 100% 
    );
    color: var(--text-color);
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    text-wrap: nowrap;
}
.gradient-btn:hover {
    transform: scale(1.05);
}

/* Home */
section {
    min-height: 100vh;
    padding: 10rem 15%;
}
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    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 {
    font-size: 4rem;
    margin-top: 1rem 0;
}
.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
}

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

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 0.5rem;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover {
    box-shadow: 0 0 10px var(--main-color);
    color: var(--text-color);
    background: var(--main-color);
    transform: scale(1.1)translateY(-5px);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
}
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--main-color);
    box-shadow: 0 0 15px var(--main-color);
    border-radius: 3rem;
    font-size: 1.8rem;
    color: var(--text-color);
    border: 2px solid transparent;
    font-weight: 600;
    transition: 0.3s ease-in-out;
}
.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--main-color),
                0 0 20px var(--main-color);
}
.btn-group a:nth-of-type(2) {
    background: var(--secong-bg-color);
    color: var(--text-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 10px transparent;
}
.btn-group a:nth-of-type(2):hover {
    background: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 20px var(--main-color);
}


/* About */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    background: var(--secong-bg-color);
}

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

.about-content h2 {
    font-size: 7rem;
    text-align: left;
    margin-top: 40px;
}
.about-content p, #more-about-me p {
    font-size: 1.8rem;
}
.about-content .btn {
    margin: 3rem 0;
}

/* Scroll bar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: var(--main-color);
}
::-webkit-scrollbar-track {
    background: var(--secong-bg-color);
}


/* Skills */
.heading {
    text-align: center;
    font-size: 7rem;
}

.skills {
    background: var(--bg-color);
    color: #000;
}
.skills h2 {
    color: var(--text-color);
}

.skills-container {
    margin: 0 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: center;
    gap: 2.5rem;
}

.skills-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--main-color);
    height: 600px;
    border-radius: 3rem;
    cursor: pointer;
    border: 3px solid transparent;
    transition: 0.4s ease-in-out;
}
.skills-box:hover {
    background: var(--secong-bg-color);
    color: var(--main-color);
    border: 3px solid var(--main-color);
    transform: scale(1.03);
}

.skills-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem;
}
.skills-info:hover {
    color: var(--text-color);
}
.skills-info i {
    font-size: 5rem;
}
.skills-info h4 {
    font-size: 3rem;
    margin: 2rem 0;
    font-weight: 800;
}
.skills-info p {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.7;
}
/* Projects */
.projects {
    background: var(--secong-bg-color);

}

.projects h2 {
    margin-bottom: 40px;
}

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

.project-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease-in-out;
}
.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: 2rem;
    object-fit: cover;
}
.project-card h3 {
    font-size: 2.4rem;
}
.project-card p {
    font-size: 1.3rem;
    padding: 0 20px;
}
/* Contact */
.contact {
    background: var(--bg-color);
}
.contact h2 {
    margin-bottom: 3rem;
    color: var(--text-color);
}
.contact form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin: 5rem 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: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    margin: 1.5rem 0;
    resize: none;
}
.contact input::placeholder, 
textarea::placeholder {
    color: var(--text-color);
}
.contact form .btn {
    margin-top: 20px;
}


/* Footer */
.footer {
    background: var(--secong-bg-color);
    padding: 50px 0;
}
.footer .social-icons {
    text-align: center;
}
.footer ul {
    text-align: center;
    font-size: 1.8rem;
}
.footer ul li {
    display: inline-block;
    margin-left: 20px;
}
.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-top: 40px;
    font-size: 16px;
}


/* Thanks Page */
.thanks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.thanks h1 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}
.thanks .btn {
    box-shadow: 0 0 10px var(--main-color);
}

/* Responsivness */
@media(max-width: 800px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background: rgba(0, 0, 0, 0.8);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0 ;
        color: var(--text-color);

    }
    .navbar.active {
        display: block;
    }
    .gradient-btn {
        display: none;
    }
    .home {
        flex-direction: column-reverse;
        margin: 5rem 0;
        gap: 5rem;
    }
    .home-content {
        align-items: center;
        text-align: center;
    }
    .home-content h3 {
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .home-img img {
        width: 42vw;
    }
    .about {
        flex-direction: column-reverse;
        text-align: center;
    }
    .about h2 {
        text-align: center;
        margin: 1.5rem 0;
    }
    .about img {
        width: 52vw;
    }
    .skills-info p {
        text-align: center;
    }
    .contact form {
        flex-direction: column
    }
    .thanks h1 {
        font-size: 2rem;
    }
}