/* Widgets */
/* About */

#About {
    position: relative;

}

.logo_text {
    font-size: 2rem;
    font-weight: 700;
    font-family: monospace;
    color: #fff;
    width: max-content;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #00bcd4;
    animation: typing 3s steps(8) infinite alternate,
        blink 0.7s infinite;
}

.logo_text span {
    color: #00bcd4;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 10ch
    }
}

@keyframes blink {
    50% {
        border-color: transparent
    }
}

#myimage {
    /*size of image*/
    height: 80%;
    width: 50%;
    margin: 0% 30%;
    /*position*/
    position: absolute;
    transform: translateY(30%);
    bottom: 0;
    inset: 0;
    object-fit: fill;
    z-index: -1;
    aspect-ratio: 4 / 3;
    /*to maintain aspect ratio and prevent distortion*/

    /*other*/
    opacity: 0.85;

}

#small-box {
    height: 12px;
    width: 60px;
    background-color: #FFC254;
}

#biggest-row {

    display: flex;
    justify-content: space-between;
    /* توزيع أفقي */
    align-items: center;
    min-height: 500px;
}

.Cols_About {
    display: flex;
    padding: 10%;
    min-height: 1000px;

}

#right_Cols_About {
    height: 450px;
    width: 40%;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: start;

    /*to be of half size of large section*/
    z-index: 1;
    /*to appear front of image*/
    overflow-y: auto;

}

#left_Cols_About {
    height: 450px;
    width: 60%;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: start;

    /*to be of half size of large section*/
    z-index: 1;
    /*to appear front of image*/
    overflow-y: auto;


}

/* Sections */

.Cols_Info {
    display: flex;
    padding: 10%;
    min-height: 1000px;

}


#right_Cols_Info {
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: start;

    flex: 1;
    /*to be of half size of large section*/
    z-index: 1;
    /*to appear front of image*/
    overflow-y: auto;

}

#left_Cols_Info {
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: start;

    flex: 1;
    /*to be of half size of large section*/
    z-index: 1;
    /*to appear front of image*/
    overflow-y: auto;


}

#Skills {

    overflow-y: auto;
    overflow-x: auto;

}

#Certificates {
    position: relative;
    height: 700px;
    top: -70px;

    background-color: #474d66;
    z-index: -1;
    overflow-y: auto;
    overflow-x: auto;

}

.Certificates_Col {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: start;
    padding: 10% 5%;
    flex: 1;
    /*to be of half size of large section*/

}

/* Navigator Bar */
#navigator {
    display: fixed;
    position: 0 0;
    z-index: 1;
}

/* Skills Section with Boxes */
#Skills_With_Boxes {
    background-color: #242734;

}

#Main-Boxes-Skills {
    position: relative;
    top: -70px;
    margin: 0px 20px;
    gap: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.Box {
    flex: 1;
    aspect-ratio: 2 / 1;
    min-width: 0;
    height: 30%;
    width: 30%;
    background-color: #FFC254;

    display: flex;
    align-items: center;
    justify-content: space-around;
    overflow-x: auto;
    overflow-y: auto;

}

.Box img {
    height: 50%;
    width: 30%;
}

.BoxImg {
    display: flex;
    flex-direction: column;
    align-items: bottom;
    justify-content: space-around;

}

.BoxImg h4,
text {
    font-size: 1.7vw;
}

/* Skills Animation Word Cloud */
/*
.word-cloud {
    position: relative;
    width: 500px;
    height: 300px;
    margin: 40px auto;
    border: 1px dashed #ccc;
}

.skill {
    position: absolute;
    opacity: 0;
    animation: show 1s ease forwards;
    animation-iteration-count: infinite;
}

@keyframes show {
    from {
        transform: scale(.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
*/

/** Projects Section */
#projects {
    background-color: #242734;
    display: flex;
    flex-direction: column;
    overflow-x: auto;

}


.project {
    height: 400px;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 7% 3%;
    overflow: hidden;
    gap: 20px;
}

.project-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    flex: 1;

}

.project-text p {
    max-width: 70%;
    overflow-y: auto;
    overflow-wrap: break-word;

}

.project-image {
    width: 50%;
    height: 100%;
    max-width: 700px;
    min-width: 100px;
    border-radius: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);

}

.project-text-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: stretch;
    align-items: center;
    gap: 6%;
    width: 50%;
}

.btn {
    /*Overide bootstrap*/
    position: relative;
    padding: 0.6em 1.5em;
    white-space: nowrap;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, #2196f3, #00bcd4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
}

/* تأثير "المياه" */
.btn::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.25);
    transition: height 0.35s ease;
    z-index: 0;
}

/* عند الـ hover الميه تطلع لفوق */
.btn:hover::before {
    height: 100%;
}

/* نخلي النص فوق الميه */
.btn span {
    position: relative;
    z-index: 1;
}


.image-project-wrapper {
    flex: 1;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;

    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: rotate(-10deg) translateY(0);
    }

    50% {
        transform: rotate(-7deg) translateY(-8px);
    }

    100% {
        transform: rotate(-10deg) translateY(0);
    }
}

/*Experience*/
#Experiences {
    display: flex;
    flex-direction: column;
    align-items: start;
    width: 100%;
    background-color: #525e92;

}

#Experiences h1 {
    margin: 3vh 9vw;
    color: #fff;
    
}

.Experience_element {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 2vh 9vw 2vh 15vw;
    overflow: hidden;
    gap: 10vw;

}

.Experience_element .project-text p {
    height: 400px;
    overflow-y: auto;

}

/*Contact*/
#Contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #3b498b;
    color: #fff;
}

#Contact h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

#Contact p {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 700px;
    margin-bottom: 30px;
}

.contact-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    font-size: 2.5rem;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-links a:hover {
    transform: translateY(-5px);
    color: #FFC254;
    /* highlight color */
}

/*Details*/
#Details {
    width: 100%;
    background-color: #4156b8;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;

}

#Details_card {

    margin: 18vh 9vw;
    padding: 10vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background-color: #2c3766;
    height: 70%;
    width: 70%;

    border-radius: 15px;
    overflow-y: auto;
}

/*footer*/
footer {
    background-color: #2c3766;
    width: 100%;
    position: fixed;
    display: flex;

    justify-content: center;
    align-items: center;
    bottom: 0;

}