/* variable for the color */
:root {
    --main_color: #0265f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Roboto", sans-serif;
}

a {
    /* text-decoration: none;
    color: #000; */
    all: unset;
}

ul li {
    list-style: none;
}

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

::-webkit-scrollbar-track {
    background-color: #000;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main_color);
    border-radius: 5px;
}

/* ==============Header Section============= */
.header {
    padding: 25px 12%;
    background-color: #000000;
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    z-index: 10;
}

.header .logo {
    font-size: 35px;
    font-weight: 700;
    cursor: pointer;
}

nav.navbar ul {
    display: flex;
    gap: 30px;
    font-size: 18px;
}

nav.navbar ul li {
    cursor: pointer;
}

nav.navbar ul li a {
    transition: 0.3s;
}

nav.navbar ul li a:hover {
    color: var(--main_color);
    text-decoration: underline;
}

/* ========================Home=========================== */
main.home {
    width: 100%;
    min-height: 100vh;
    background-color: rgb(241, 241, 241);
    display: flex;
    gap: 7rem;
    padding: 30px 12% 0;
    align-items: center;
}

.home_content h3 {
    font-size: 62px;
    margin-bottom: 10px;
}

.home_content h1 {
    font-size: 50px;
    line-height: 1.2;
}

.home_content h1 span {
    color: var(--main_color);
}

.home_content p {
    font-size: 18px;
    margin: 25px 0 30px;
}

.contact_btn button {
    width: 300px;
    outline: none;
    /* outline is the defalut border aroud the item */
    border: none;
    border-radius: 5px;
    background-color: var(--main_color);
    color: #fff;
    padding: 15px 0;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: 0.3s;
    /* animation: name of the animation , time delay , how many of repeat , wait a time before starting */
    animation: movebtn 1s infinite 3s;
    animation-play-state: running;
}

.contact_btn button:hover {
    opacity: 1;
    animation-play-state: paused;
}

@keyframes movebtn {
    0% {
        scale: 1;
    }

    50% {
        scale: 1.04;
    }

    100% {
        scale: 1;
    }
}

.home_img img {
    border-radius: 20px;
    filter: drop-shadow(0 0 15px #000);
}

/* =====================================about me section============== */
.about_me {
    width: 100%;
    min-height: 100vh;
    background-color: #242323;
    color: white;
    display: flex;
    padding: 30px 12% 0;
    align-items: center;
    justify-content: center;
    gap: 7rem;
}

.about_me_img img {
    border-radius: 20px;
    filter: drop-shadow(0 0 15px var(--main_color));
}

.about_me_content h1 {
    font-size: 50px;
    line-height: 1.5;
}

.about_me_content h1 span {
    color: var(--main_color);
}

.about_me_content h4 {
    margin: 30px 0 40px;
}

.icons {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    margin: 0 15px 0 350px;
    background-color: #242323;
}

.icons .link1,
.icons .link2,
.icons .link3,
.icons .link4 {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    margin-top: -139px;
    background-color: #4070f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.link1:hover {
    scale: 1.5;
}

.link2:hover {
    scale: 1.5;
}

.link3:hover {
    scale: 1.5;
}

.link4:hover {
    scale: 1.5;
}

/* =======================projects======================== */
section.projects {
    padding: 8% 12% 13%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: rgb(241, 241, 241);
    position: relative;
}

section.projects h2 {
    position: absolute;
    top: 20px;
    font-size: 60px;
    color: #00000048;
}

.project-cards {
    display: flex;
    gap: 4rem;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.project-cards .project-card {
    background-color: #bebebe67;
    border-radius: 10px;
    max-width: 435px;
    overflow: hidden;
    padding: 10px;
    transition: 0.3s;
    width: fit-content;
}

.project-cards .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgb(0, 0, 0, 0.19);
}

.project-cards .project-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-cards .project-card h3 {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    color: #0c0c0c;
    transition: .3s;
}

.project-cards .project-card:hover h3 {
    color: var(--main_color);
}

.project-cards .project-card p {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 60px;
}

.project-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-links .bxl-github {
    font-size: 25px;
    cursor: pointer;
}

.project-links .live-demo {
    color: var(--main_color);
    cursor: pointer;
}

/* ========================contact section=================== */
section.contact {
    text-align: center;
    background-color: #000;
    font-size: 20px;
}

section.contact .heading-title {
    font-size: 60px;
    color: #ffffff65;
    margin-bottom: 100px;
    position: relative;
    top: 20px;
}

section.contact form {
    display: flex;
    flex-direction: column;
    max-width: 50em;
    margin: 3rem auto 0;
}

section.contact form .input-box input,
section.contact form textarea {
    width: 80%;
    padding: 1.5em;
    font-size: 18px;
    color: #000;
    border-radius: 10px;
    outline: none;
    border: none;
    margin-bottom: 30px;
}

section.contact .send-btn {
    margin-bottom: 50px;

}

section.contact .send-btn input {
    width: 200px;
    outline: none;
    border: none;
    background-color: var(--main_color);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: .3s;
}

section.contact .send-btn input:hover {
    opacity: 1;
}

/* ========================footer section=================== */
footer.footer {
    padding: 0 10%;
    background-color: #252525;
    color: #fff;
    width: 100%;
}

footer p {
    text-align: center;
    padding: 30px 0;
}
/* ===============================media quere================= */
/* Mobile devices (max-width: 600px) */
@media screen and (max-width: 600px) {
    .header {
        flex-direction: column;
        padding: 15px 5%;
        align-items: flex-start;
    }
    nav.navbar ul {
        flex-direction: column;
        gap: 15px;
    }
    main.home {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        padding: 20px 5%;
    }
    .home_content h3 {
        font-size: 42px;
    }
    .home_content h1 {
        font-size: 36px;
    }
    .contact_btn button {
        width: 80%;
    }
    .about_me {
        flex-direction: column;
        gap: 2rem;
        padding: 20px 5%;
    }
    .project-cards {
        flex-direction: column;
        gap: 2rem;
    }
    .project-cards .project-card {
        max-width: 100%;
    }
    section.contact form .input-box input,
    section.contact form textarea {
        width: 90%;
    }
}

/* Tablets (max-width: 768px) */
@media screen and (max-width: 768px) {
    .header {
        padding: 20px 8%;
    }
    main.home {
        flex-direction: column;
        gap: 3rem;
        padding: 25px 8%;
    }
    .home_content h3 {
        font-size: 50px;
    }
    .home_content h1 {
        font-size: 40px;
    }
    .about_me {
        flex-direction: column;
        gap: 3rem;
        padding: 30px 8%;
    }
    .project-cards {
        gap: 2rem;
    }
    .project-cards .project-card {
        max-width: 90%;
    }
    section.contact form .input-box input,
    section.contact form textarea {
        width: 85%;
    }
}

/* Smaller desktops or laptops (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .header {
        padding: 20px 10%;
    }
    nav.navbar ul {
        gap: 20px;
    }
    main.home {
        gap: 5rem;
        padding: 30px 10%;
    }
    .project-cards {
        gap: 3rem;
    }
}
