@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;1,200;1,400;1,600&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    text-transform: capitalize;
    transition: .1s linear;
}

:root {
    --green: #27ae60;
    --black: #444;
    --light-color: #777;
    --bg-color: #e6e6e6;
    --border: .1rem solid rgba(0,0,0,.2);
    --box-shadow: .4rem .4rem 1rem #ccc, -.4rem -.4rem 1rem #ccc;
    --box-shadow-inset: .4rem .4rem 1rem #ccc inset, -.4rem -.4rem 1rem #ccc inset;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    padding-left: 30rem;
}

section {
    min-height: 100vh;
    padding: 2rem;
}

/* Start Header */
.header .user img {
    margin: 2rem 0;
    border: 1rem solid transparent;
    border-radius: 24%;
    height: 10%;
    width: 35%;
    box-shadow: var(--box-shadow);
    transition: 1s;
}

.header .user img:hover {
    transform: scale(1.1);
    background-color: #0098a1;
}

.header {
    position: fixed;
    top: 0;
    left: 10px;
    z-index: 999;
    background-color: var(--bg-color);
    width: 25%;
    border-right: var(--border);
    height: 100%;
    padding: .2rem;
    text-align: center;
}

.header .user h3 {
    color: var(--black);
    font-size: 2rem;
    padding-right: 15px;
}

.header .user h3 span {
    font-size: 2.5rem;
    color: #0098a1;
}

.header .user p {
    color: var(--green);
    font-size: 1.5rem;
}

.header .navbar {
    padding-top: 1rem;
}

.header .navbar a {
    display: block;
    margin: 1rem 0;
    padding: .7rem;
    border-radius: 5rem;
    font-size: 1.5rem;
    box-shadow: var(--box-shadow);
    color: var(--black);
}

.header .navbar a:hover {
    box-shadow: var(--box-shadow-inset);
    color: #27ae60;
}

/* End Header */

/* Start Home */
.home {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home .content h3 {
    font-size: 4rem;
    color: var(--black);
    line-height: 1;
    text-transform: uppercase;
}

.home .content p {
    font-size: 2rem;
    color: var(--green);
    line-height: 1.1;
    text-transform: uppercase;
    padding-bottom: .5rem;
}

.home .content .btn {
    margin-top: 1rem;
    padding: 1rem 3.5rem;
    display: inline-block;
    border-radius: .5rem;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    color: var(--black);
    box-shadow: var(--box-shadow);
}

.home .content .btn:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--green);
}

.home .share {
    position: relative;
    top: 10rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    padding: 1rem;
}

.home .share a {
    width: 4rem;
    height: 4rem;
    line-height: 4rem;
    box-shadow: var(--box-shadow);
    font-size: 2rem;
    color: var(--black);
    margin: .5rem;
}

.home .share a:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--green);
}

/* End Home */

/* Start About */
.heading {
    font-size: 4rem;
    color: var(--black);
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 2rem;
}

.heading span {
    color: var(--green);
    text-transform: uppercase;
}

.content .btn {
    margin-top: 1rem;
    padding: 1rem 3.5rem;
    display: inline-block;
    border-radius: .5rem;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    color: var(--black);
    box-shadow: var(--box-shadow);
}

.content .btn:hover {
    box-shadow: var(--box-shadow-inset);
    color: var(--green);
}

.about .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap-reverse;
    gap: 2rem;
}

.about .row .box-container {
    display: flex;
    flex: 1 1 40rem;
    gap: 1.2rem;
}

.about .row .box-container .box {
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
    text-align: center;
    flex: 1 1 15rem;
    height: 150px;
    transition: 1.1s;
}

.about .row .box-container .box h3 {
    font-size: 3rem;
    color: var(--black);
    line-height: 1.1;
}

.about .row .box-container .box p {
    font-size: 1rem;
    color: var(--light-color);
    line-height: 1.1;
}

.about .row .box-container .content span {
    color: #0098a1;
}

.about .row .content {
    flex: 1 1 40rem;
}

.about .row .content h3 {
    font-size: 1.5rem;
    color: var(--black);
    text-decoration: underline;
}

.about .row .content p {
    color: var(--light-color);
    line-height: 1.5;
    padding: 1rem 0;
}

.skils-bar {
    margin-top: 1.2rem;
    width: 90%;
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    border-radius: .5rem;
    padding: 1.2rem 1.2rem;
}

.skils-bar h1 {
    text-align: center;
    color: var(--black);
    font-size: 2rem;
}

.skils-bar .bar {
    margin-top: 20px;
}

.skils-bar .bar:first-child {
    margin-top: 0px;
}

.skils-bar h1 span {
    color: #0098a1;
    text-decoration: underline;
}

.skils-bar .info span {
    font-size: 1rem;
    font-weight: 500;
}

.skils-bar .info h4 {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 6px;
}

.skils-bar .progress-line {
    width: 100%;
    height: 10px;
    background: #ccc;
    border-radius: .5rem;
    margin-top: 8px;
    position: relative;
}

.progress-line span {
    background-color: #6665ee;
    width: 80%;
    height: 100%;
    position: absolute;
    border-radius: .5rem;
}

.progress-line span:hover {
    box-shadow: var(--box-shadow);
}

.progress-line .html {
    width: 100%;
}

.progress-line .css {
    width: 95%;
}

.progress-line .javascript {
    width: 56%;
}

.progress-line .webdesigner {
    width: 80%;
}

/* End About */

/* Start Services */
.services .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.services .box-container .box {
    min-width: 100%;
    padding: 2rem;
    border-radius: .5rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: 1s;
}

.services .box-container .box i {
    font-size: 4rem;
    color: #62a7aa;
    padding-bottom: 1rem;
}

.services .box-container .box h3 {
    font-size: 2rem;
    color: var(--black);
    padding-bottom: 1rem;
}

.services .box-container .box p {
    font-size: 1.2rem;
    color: var(--light-color);
    padding-bottom: 1rem;
}

/* End Services */

/* Start Portfolio */
.portfolio .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.project-card {
    background-color: var(--box-shadow-inset);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card .content {
    padding: 1.2rem;
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card p {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.project-card a {
    text-decoration: none;
    color: #0ea5e9;
    font-weight: bold;
    transition: color 0.2s ease;
}

.project-card a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* End Portfolio */

/* Start Contact */
.contact .row {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.contact .row .contact-info .box {
    margin: 3rem 1rem;
}

.contact .row .contact-info .box h3 {
    font-size: 1rem;
    color: #333;
    margin-left: -10px;
}

.contact .row .contact-info .box h3 i {
    color: #0098a1;
    padding-right: 10px;
}

.contact .row .contact-info .box p {
    padding-top: 10px;
    font-size: 1rem;
    padding-left: 2rem;
    color: #666;
}

.contact .row .contact-form {
    width: 60%;
}

.contact .row .contact-form h3 {
    font-size: 2rem;
    padding-top: 4rem;
    color: #0098a1;
}

.contact .row .contact-form form input,
textarea {
    outline: none;
    border: .2rem solid #0098a1;
    height: 3rem;
    background-color: #fff;
    padding: 0 1rem;
    margin: 1rem 0;
    font-size: 1rem;
    width: 60%;
}

.contact .row .contact-form form textarea {
    width: 100%;
    height: 20%;
    padding: 1rem;
    resize: none;
}

.contact .row .contact-form form .submit {
    color: #eee;
    border: .2rem solid #eee;
    width: 10rem;
    transition: .4s;
    cursor: pointer;
    background-color: #0098a1;
    border-radius: 5px;
}

.contact .row .contact-form form .submit:hover {
    transform: scale(1.1);
    background-color: #eee;
    color: #0098a1;
}

.creat {
    color: #333;
}

.creat span {
    color: #0098a1;
}

/* End Contact */

/* Start Media Queries for Responsiveness */
@media (max-width: 991px) {
    body {
        padding-left: 0;
    }

    .header {
        width: 100%;
        height: auto;
        position: relative;
        left: 0;
        border-right: none;
        border-bottom: var(--border);
        padding: 1rem;
    }

    .header .user img {
        width: 50%;
        height: auto;
    }

    .header .navbar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header .navbar a {
        margin: 0.5rem;
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    section {
        padding: 1rem;
    }

    .home .content h3 {
        font-size: 2.5rem;
    }

    .home .content p {
        font-size: 1.5rem;
    }

    .home .share {
        top: 5rem;
    }

    .heading {
        font-size: 2.5rem;
    }

    .about .row {
        flex-direction: column;
    }

    .about .row .box-container {
        flex-direction: column;
        gap: 1rem;
    }

    .about .row .box-container .box {
        height: auto;
        padding: 1.5rem;
    }

    .skils-bar {
        width: 100%;
    }

    .services .box-container {
        grid-template-columns: 1fr;
    }

    .portfolio .box-container {
        grid-template-columns: 1fr;
    }

    .contact .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact .row .contact-form {
        width: 100%;
    }

    .contact .row .contact-form form input {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header .user h3 {
        font-size: 1.5rem;
    }

    .header .user h3 span {
        font-size: 2rem;
    }

    .header .user p {
        font-size: 1.2rem;
    }

    .home .content h3 {
        font-size: 2rem;
    }

    .home .content p {
        font-size: 1.2rem;
    }

    .home .share a {
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        font-size: 1.5rem;
    }

    .about .row .box-container .box h3 {
        font-size: 2rem;
    }

    .services .box-container .box i {
        font-size: 3rem;
    }

    .services .box-container .box h3 {
        font-size: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

    .contact .row .contact-form h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 450px) {
    .header .user img {
        width: 70%;
    }

    .header .navbar a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }

    .home .content h3 {
        font-size: 1.8rem;
    }

    .home .content p {
        font-size: 1rem;
    }

    .heading {
        font-size: 2rem;
    }

    .skils-bar h1 {
        font-size: 1.5rem;
    }

    .contact .row .contact-info .box h3 {
        font-size: 0.9rem;
    }

    .contact .row .contact-info .box p {
        font-size: 0.8rem;
    }
}
/* End Media Queries */