:root {
    --bg-light: #f5f5f5;
    --text-dark: #111111;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;        
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-txt: 'JetBrains Mono', sans-serif;
}
html {
    scroll-behavior: smooth;
}
::-webkit-scrollbar {
    display: none;
}
::selection {
    background-color: var(--bg-card);
    color: var(--text-light);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--bg-dark);
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    flex-direction: column;
}
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}
section {
    overflow: hidden;
}
nav {
    background-color: #f5f5f595;
    backdrop-filter: blur(20px);
    width: 100%;
    height: 10vh;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}
.hidden-nav {
    transform: translateY(-100%);
}
nav .container-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 !important;
}
.container-nav img {
    height: 30px;
    filter: brightness(0);
    transition: 0.3s ease;
}
.logo-active {
    filter: brightness(1) !important;
}
.container-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
}

.container-nav ul a {
    text-decoration: none;
    color: #1a1a1a;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
    padding: 10px 25px;
    border-radius: 40px;
    border: 1px solid transparent;
    transition: 0.3s ease;
}

.container-nav ul a.active {
    background-color: var(--bg-dark);
    color: var(--text-light) !important;
}

.container-nav ul a:hover {
    border-bottom: 1px solid var(--bg-dark);
    border-radius: 0px;
}

nav.nav-black {
    background-color: #11111150;
    backdrop-filter: blur(10px);
}

nav.nav-black .container-nav ul a {
    color: var(--text-light); 
}

nav.nav-black .container-nav ul a.active {
    background-color: var(--bg-light) !important;
    color: var(--text-dark) !important;
}
nav.nav-black .container-nav ul a:hover {
    border-bottom: 1px solid var(--text-light);
    border-radius: 0px;
}
/* //////////////////////////////////// main //////////////////////////////////// */

main {
    width: 100%;
}
section {
    position: relative;
}

/* //////////////////////////////////// home //////////////////////////////////// */

#home {
    background: linear-gradient(-170deg, var(--bg-light) 90%, transparent 15%);
    width: 100%;
    height: 100vh;
    position: relative;
} 
.container-home {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 10;
}
#home .img {
    height: 650px;
    flex-shrink: 0;
    overflow: hidden;
}
#home .img img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    transition: 0.3s ease;
}
#home .img img:hover {
    filter: grayscale(0%);
}
.content-home {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
}
.content-home small {
    font-family: var(--font-txt);
    border:1px solid var(--bg-dark);
    color: var(--text-dark);
    padding: 5px 20px;
    border-radius: 20px;
    width: 150px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
}
.content-home h1 {
    font-family: var(--font-main);
    text-transform: uppercase;
    font-size: 80px;
}
.ahmed {
    font-weight: 300;
}
#sp {
    animation: sp 1.5s step-end infinite;
}
.top {
    margin-bottom: 25px;
}
.btn {  
    padding-top: 50px;
    width: 80%;
    border-top: 1px solid #00000050;
}
.btn a {
    text-decoration: none;
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 40px;
    background-color: var(--bg-dark);
    font-family: var(--font-main);
    font-size: 17px;
    text-transform: capitalize;
    margin: 5px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: 0.3s ease;
}
.cnt {
    background-color: transparent !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--bg-dark) !important;
}
.cnt:hover {
    border-bottom: 1px solid var(--bg-dark) !important;
    border-top: 1px solid transparent !important;
    border-left: 1px solid transparent !important;
    border-right: 1px solid transparent !important;
    border-radius: 0px;
}
.prj:hover {
    background-color: transparent;
    color: var(--text-dark);
    border-radius: 0px;
    border-bottom: 1px solid #333;
}
.txt-home {
    animation: eftxt 1s;
}
.img-home {
    animation: efimg 1s;
}
nav {
    animation: efnav 1s;
}
.btns-home {
    animation: efbtn 2s;
    display: flex;
}
.btns-home a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
    gap: 10px;
}
@keyframes sp {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes efimg {
    from {
        opacity: 0;
        transform: translateX(50%) scale(1.5);
    } to {
        opacity: 1;
        transform: translateX(0%) scale(1);
    }
}
@keyframes eftxt {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.5);
    } to {
        opacity: 1;
        transform: translateX(0%) scale(1);
    }
}
@keyframes efnav {
    from {
        opacity: 0;
        transform: translateY(-100%);
    } to {
        opacity: 1;
        transform: translateX(0%);
    }
}
@keyframes efbtn {
    from {
        opacity: 0;
        transform: translateY(100%);
    } to {
        opacity: 1;
        transform: translateX(0%);
    }
}
/* //////////////////////////////////// about //////////////////////////////////// */

#about {
    width: 100%;
    height: 100vh;
    border-bottom: 1px solid var(--text-muted);
    display: flex;
    position: relative;
}
.container-about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.container-about .img {
    height: 100%;
    width: 50%;
    display: flex;
    align-items: end;
    justify-content: center;
}
.container-about .img img {
    height: 90%;
    filter: grayscale(100%);
    transition: 0.3s ease;
}
.content-about {
    height: 100%;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    z-index: 10;
}
.title-section {
    color: var(--text-light);
    font-family: var(--font-main);
    letter-spacing: 2px;
    font-size: 20px;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.title-section:hover {
    letter-spacing: 5px;
}
.content-about .name {
    font-family: var(--font-txt);
    color: var(--text-muted);
    font-size: 100px;
    text-transform: capitalize;
    font-weight: 800;
    line-height: 1;
    transition: 0.3s;
    cursor: pointer;
}
.content-about .name:hover {
    color: var(--text-light);
}
.skills {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}
.skill {
    font-family: var(--font-main);
    color: #888888;
    border: 1px solid var(--text-muted);
    padding: 5px 15px;
    border-radius: 20px;
    text-transform: capitalize;
    cursor: pointer;
    transition: 0.6s !important;
}
.skill:hover {
    color: var(--text-light);
    border: 1px solid var(--text-light);
    border-radius: 5px;
    letter-spacing: 3px;
}
.content-about .description {
    color: var(--text-muted);
    font-family: var(--font-txt);
    margin-top: 20px;
    line-height: 1.6;
}
.btns-about {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.btns-about a {
    height: 40px;
    gap: 10px;
    display: flex;
    align-items: center;
    padding: 5px 20px;
    text-decoration: none;
    color: #959595;
    font-family: var(--font-txt);
    font-size: 15px;
    transition: 0.3s ease;
    text-transform: capitalize;
}
.prj-btn {
    border-bottom: 1px solid var(--bg-light) !important;
}
.cv-btn {
    border-radius: 0;
    border-bottom: 1px solid var(--bg-light);
}
.cv-btn:hover, .prj-btn:hover {
    color: #fff !important;
    letter-spacing: 1px;
    border-radius: 0px;
}
/* //////////////////////////////////// projects //////////////////////////////////// */

#projects {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}
.head-project-section {
    width: 100%;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10px;
}
.head-project-section small {
    font-size: 50px;
    font-family: var(--font-main);
    text-transform: uppercase;
}
.head-project-section .rows {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.head-project-section .rows i {
    background-color: #333;
    padding: 20px;
    border-radius: 50%;
    font-size: 35px;
    color: #ccc !important;
    cursor: pointer;
    transition: 0.3s ease;
}
.head-project-section .rows i:hover {
    background-color: #444;
}
.cards-projects {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
}
.cards-projects .card {
    width: 370px;
    overflow: hidden;
    border-radius: 50px;
    background-color: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 20px;
    border: 1px solid #95959550;
    z-index: 3;
    cursor: pointer;
    transition: 0.3s;
}
.cards-projects .card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0px 5px 0px var(--bg-light);
}
.cards-projects .card .img {
    position: relative;
    height: 175px;
    transition: 0.5s;
}
.cards-projects .card img {
    width: 100%;
    height: 100%;
    border-bottom: 1px solid #888888;
}
.cards-projects .card .img:hover::after {
    position: absolute;
    content: "";
    top: 0; left: 0;
    background-color: #111111d7;
    height: 100%;
    width: 100%;
    z-index: 1;
}
.cards-projects .card .img:hover::before {
    position: absolute;
    content: attr(data-title);
    color: var(--accent);
    z-index: 2;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-family: var(--font-main);
    animation: ld 0.5s;
}
@keyframes ld {
    from {
        opacity: 0;
        transform: translateY(50px);
    } to {
        opacity: 1;
        transform: translateY(0);
    }
}
.cards-projects .card h3 {
    color: var(--text-light);
    font-family: var(--font-main);
    width: 100%;
    padding: 5px 15px;
    text-transform: uppercase;
    font-size: 25px;
}
.cards-projects .card p {
    font-family: var(--font-txt);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    padding: 5px 15px;
}
.lan-pro {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 5px 0;
    gap: 10px;
    margin-bottom: 5px;
}
.lan-pro .skill {
    font-size: 10px;
}
.btns-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.btns-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3c3838;
    padding: 10px 25px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--font-txt);
    font-size: 14px;
    color: #e4e1e1;
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
}
.btns-card a:hover {
    background-color: transparent;
    border-bottom: 1px solid var(--text-muted);
    border-radius: 0px;
}

/* //////////////////////////////////// contact //////////////////////////////////// */

#contact {
    width: 100%;
    height: 100vh;
    background-color: white;
    background-image: 
    linear-gradient(to bottom right, var(--bg-dark) 80px, transparent 80px),
    linear-gradient(to bottom left, var(--bg-dark) 80px, transparent 80px);
}
.container-contact {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.container-contact h3 {
    font-size: 150px;
    font-weight: 900;
    font-family: system-ui;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-transform: uppercase;
}
.container-contact form {
    padding: 20px 15px;
    border-radius: 20px;
    width: 40%;
    overflow: hidden;
}

.container-contact form .group-inp {
    width: 100%;
}
.group-inp input {
    width: 100%;
    height: 50px;
    outline: none;
    border-bottom: 1px solid #0f0f0f;
    border-top: none;
    border-left: none;
    border-right: none;
    margin: 10px 0;
    padding: 0 12px;
    background-color: transparent;
}
label {
    left: 12px;
    color: #666;
    font-family: var(--font-txt);
    font-size: 12px;
    pointer-events: none;
    transition: 0.3s;
    padding: 0 6px;
    text-transform: capitalize;
}
.name-inp {
    display: flex;
    gap: 10px;
}
textarea {
    width: 100%;
    outline: none;
    border-bottom: 1px solid #0f0f0f;
    border-top: none;
    border-left: none;
    border-right: none;
    position: relative;
    height: 100px;
    padding: 10px;
    margin-top: 10px;
    background-color: transparent;
}
#send {
    background-color: #222;
    width: 100%;
    height: 50px;
    border: none;
    color: var(--text-light);
    font-size: 15px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    text-transform: capitalize;
    margin-top: 5px;
    transition: 0.3s;
}
#send:hover {
   background-color: black;
   letter-spacing: 1px;
}
.content-contact {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-around;
}
.content-contact .txt {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 30px;
}
.content-contact .txt small {
    font-family: var(--font-txt);
    font-size: 18px;
}
.social-media i {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 7px;
    font-size: 25px;
    transition: 0.3s ease;
}
.social-media i:hover {
    color: var(--text-dark);
    background-color: transparent;
    border-bottom: 1px solid var(--bg-dark);
}
.txt label {
    font-size: 18px;
}

/* //////////////////////////////////// footer //////////////////////////////////// */

footer {
    width: 100%;
    background-color: var(--bg-light);
}
.foot {
    border-top: 1px solid var(--text-muted);
    display: flex;
    align-items: space-between;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
}
.title-footer {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
    cursor: pointer;
}
.title-footer img {
    height: 20px;
    filter: brightness(0);
}
.title-footer p {
    font-size: 20px;
    font-family: var(--font-txt);
    text-transform: uppercase;
}
.container-footer {
    display: flex;
    justify-content: space-around;
}
.block {
    display: flex;
    gap: 20px;
    flex-direction: column;
}
.block small {
    font-size: 18px;
    font-family: var(--font-txt);
    color: #222;
    text-transform: capitalize;
}
.block ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}
.block ul a {
    color: #444;
    text-decoration: none;
    font-family: var(--font-txt);
    display: flex;
    align-items: center;
    text-transform: capitalize;
    gap: 5px;
}
.block ul a:hover, .block small:hover {
    color: black;
}
.footer-social {    
    display: flex;
    flex-direction: row-reverse;
    align-items: end;
    justify-content: space-between;
}
.footer-social p {
    color: var(--text-muted);
    font-family: var(--font-txt);
    font-size: 14px;
    text-transform: capitalize;
    transition: 0.3s;
}
.footer-social p:hover {
    color: var(--bg-dark);
    cursor: pointer;
}
.footer-social .social-media {
    display: flex;
    gap: 30px;
}
.footer-social .social-media i {
    color: var(--text-dark);
    background-color: transparent;
    transition: 0.3s;
}
.footer-social .social-media i:hover {
    transform: translateY(-5px) rotate(-10deg) scale(1.4);
}

/* ////////////////////////////////////////// animation */

.reveal {
    opacity: 0;
    transform: translateY(50%);
    transition: 1s ease;
}
.reveal0 { opacity: 0; transform: translateY(50%); transition: 0.8s ease !important; }
.reveal1 { opacity: 0; transform: translateY(50%); transition: 1s ease !important; }
.reveal2 { opacity: 0; transform: translateY(50%); transition: 1.2s ease !important; }
.active-reveal {
    opacity: 1 !important;
    transform: translateY(0%) !important;
}

/* ///////////////////////// responseve */

@media (max-width: 400px) {
    #nav {
        background: transparent;
        backdrop-filter: blur(0px);
    }
    #nav ul {
        display: none;
    }
    #logo {
        width: 50px;
        margin-left: 30px;
    }
    /* ///////////// home  */
    #home {
        background: linear-gradient(-160deg, var(--bg-light) 95%, transparent 15%);
        height: 90vh;
    }
    .container-home {
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
    }
    .content-home {
        width: 100%;
        height: 50%;
        align-items: center;
        gap: 20px;
    }
    .img-home {
        display: none;
    }
    .poin {
        font-size: 12px;
        margin: 0 30px;
    }
    .ahmed {
        font-size: 40px !important;
        text-align: center;
    }
    .btns-home a {
        font-size: 12px;
        padding: 10px 15px;
    }
    /* ///////////// about  */
    
    .container-about {
        justify-content: center;
    }
    .container-about .name {
        font-size: 40px;
    }
    #about .img {
        display: none;
    }
    .description {
        font-size: 12px;
        letter-spacing: 1px;
    }
    .skills {
        gap: 5px;
        margin-bottom: 20px;
        font-size: 12px;
    }
    .btns-about a {
        padding-bottom: 10px !important;
        text-align: center;
        font-size: 10px;
        white-space: nowrap;
    }
    /* ///////////// projects  */

    .container-projects {
        align-items: center;
        justify-content: center;
        margin: auto 0;
    }
    .head-project-section {
        justify-content: space-around;
    }
    .head-project-section small {
        font-size: 25px;
    }
    .head-project-section i {
        font-size: 25px !important;
        padding: 10px !important;
    }
    #cards {
        flex-direction: row-reverse;
        overflow: hidden;
        height: 470px;
    }
    .card {
        width: 80% !important;
        
    }
    /* ///////////// contact  */

    #contact {
        background: white;
    }
    .container-contact h3 {
        font-size: 40px;
    }
    .content-contact {
        flex-direction: column;
        align-items: center;
    }
    .content-contact form {
        width: 80%;
    }
    .content-contact .txt {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    .content-contact .txt label {
        display: none;
    }
    .content-contact .txt small {
        font-size: 10px;
    }
    .my-info-contact {
        display: none;
    }
    /* ///////////// footer  */


    footer {
        padding: 0 15px;
    }
    .title-footer {
        justify-content: center;
    }
    .title-footer img {
        height: 20px;
    }
    .title-footer p {
        font-size: 15px;
    }
    .block small {
        font-size: 12px;
    }
    .block ul a {
        font-size: 10px;
    }
    .footer-social {
        justify-content: start;
        padding-left: 40px; 
    }
    .footer-social p {
        font-size: 12px;
        display: block;
        width: 100%;
    }
    .social-media-f {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }
}

