* {
    margin: 0;
    padding: 0;
    font-family: sans-serif;

}



.hero {

    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #eff4fd;

}

nav {
    display: flex;

    padding: 20px 10px;
    align-items: center;
    justify-content: space-between;

}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: .3s;
    opacity: 0;
    animation: slideTop .5s ease forwards;
    animation-delay: calc(.2s* var(--i));

}

nav ul li a:hover {
    color: rgb(171, 149, 42);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 80px;
    background-color: #eff4fd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Logo Styles */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=My+Soul&family=Shadows+Into+Light&display=swap');

.logo {
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: 0.5s ease;
    margin-right: 60px;
    margin: 0;
    text-decoration: none;


}

.white-text {
    font-family: "Great Vibes", cursive;
    font-weight: 200;
    font-style: normal;
    color: rgb(13, 12, 12);
}

.yellow-text {
    color: rgb(146, 136, 25);
    font-family: "Great Vibes", cursive;
    font-weight: 200;
    font-style: normal;
}


.detel {
    margin-left: 8%;
    margin-top: 10%;
}

.detel h3 {
    font-size: 32px;
    font-weight: 700;
    opacity: 0;
    animation: slideBottom 1s ease forwards;
    animation-delay: .7s;
}

.detel h3:nth-of-type(2) {
    margin-bottom: 30px;
    animation: slideTop 1s ease forwards;
    animation-delay: .7s;

}

.detel h1 {
    font-size: 50px;
    color: #212121;
    margin-bottom: 20px;
    opacity: 0;
    animation: slideRight 1s ease forwards;
    animation-delay: 1s;
}

span {
    color: rgb(171, 149, 42);
}

.detel p {
    color: #555;
    line-height: 22px;
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;

}

.detel a {
    background: #212121;
    color: #eff4fd;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin: 30px 0;
}

.CV {
    opacity: 0;
    animation: slideLeft 1s ease forwards;
    animation-delay: 1s;
}

.CV:hover {
    background: rgb(171, 149, 42);
}

.images {
    width: 45%;
    height: 60%;
    position: absolute;
    bottom: 90px;
    right: 100px;
}

.images img {
    height: 100%;
    position: absolute;
    left: 30%;
    bottom: 0;
    transform: bottom 1s, left 1s;
}

.girl {
    width: 60%;
    height: 70%;
}

.Section {
    color: var(--purple-light);
}

/*  */

@keyframes slideRight {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}

@keyframes slideTop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideBottom {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

@keyframes slideLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0px);
        opacity: 1;
    }
}



/* About Section */
.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background-color: #eff4fd;

}

.about img {
    width: 300px;
    border-radius: 15px;
    margin: 20px;
}

.about-text {
    max-width: 600px;
    margin: 20px;
}

.about-text h2 {
    font-size: 36px;
    color: rgb(171, 149, 42);
    margin-bottom: 20px;
}

/* Services Section */
.services {
    padding: 80px 20px;
    text-align: center;
    background-color: #eff4fd;


}

.services h2 {
    font-size: 36px;
    color: rgb(171, 149, 42);
    margin-bottom: 50px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background-color: var(--purple-light);
    padding: 30px 20px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: rgba(171, 150, 42, 0.575);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background-color: rgb(171, 149, 42);
}

.service-card i {
    font-size: 40px;
    color: var(--purple-dark);
    margin-bottom: 20px;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 20px;
    text-align: center;
    background-color: #eff4fd;

}

.portfolio h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: rgb(171, 149, 42);
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.project {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.project img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.project:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(123, 44, 191, 0.7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project:hover .project-overlay {
    opacity: 1;
    background-color: rgba(140, 128, 69, 0.194);
}

/* skills */
canvas {
    max-width: 800px;
    /* حجم الرسم الكبير */
    height: 500px;
    /* ارتفاع الرسم */
    margin: 40px auto;
}

.skills {
    padding: 80px 20px;
    text-align: center;
    background-color: #eff4fd;
}

.skills h2 {
    font-size: 36px;
    color: rgb(171, 149, 42);
    margin-bottom: 50px;

}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--blue-light);
    text-align: center;
    background-color: #eff4fd;
}

.contact h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: rgb(171, 149, 42);
}

.contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact input,
.contact textarea {
    padding: 15px;
    border-radius: 5px;
    border: none;
    font-size: 16px;
}

.contact button {
    padding: 15px;
    background-color: var(--yellow);
    border: none;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.contact button:hover {
    transform: scale(1.05);
    background-color: rgba(158, 144, 74, 0.74);
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    margin: 0 10px;
    color: var(--purple-dark);
    transition: color 0.3s;
}

.social-icons a:hover {
    color: rgb(171, 149, 42);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #eff4fd;
    background-color: var(--purple-dark);
    color: var(--white);

}

.menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
}

/* Mobile */


/* Responsive */
@media(max-width: 1110px) {
    .images {
        display: none;
    }

}

@media(max-width: 768px) {
    .about {
        flex-direction: column;
    }

    nav {
        flex-direction: column;
    }

    nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    nav ul li {
        margin: 10px 5px;
    }

    canvas {
        max-width: 330px;

        height: 200px;
        /* ارتفاع الرسم */
        margin: 40px auto;
    }
}



.project-detail {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.project-detail h1 {
    font-size: 42px;
    color: var(--purple-dark);
    margin-bottom: 20px;
}

.project-detail p {
    font-size: 18px;
    margin-bottom: 20px;
}

.project-detail ul {
    list-style: disc;
    margin-bottom: 30px;
    text-align: left;
    padding-left: 40px;
}

.project-detail .project-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.project-detail .project-images img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
}

.back-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--yellow);
    color: var(--purple-dark);
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s;
}

.back-btn:hover {
    transform: scale(1.05);
}

/* Scroll animation for sections */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animate images */
.img-hidden {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.img-visible {
    opacity: 1;
    transform: scale(1);

}


