@import url('https://fonts.googleapis.com/css2?family=Marcellus&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,100..900;1,100..900&family=Marcellus&display=swap');

:root {
    --hover_button_work: #efb549;
    --hover_button_contact: chocolate;
    --body_backg: black;
    --font_color: whitesmoke;
    --font_colorbtn: #fff;
    --anc: white;
    --anchover: #8a5609;
    --bgcolor_con_btn: rgb(0, 0, .1);

    --k-pr: #a86507;
    --k-sec: #F59E0B;
    --k-acc: #B45309;

    --k-prima: #4a6285;
    --k-second: #4b596f;
    --k-a: #192339;



    --about-text-color: white;
    --about-paragraph-opacity: 0.85;
    --about-card-bg: #111;
    --about-card-border: #333;
    --about-card-border-hover: #888;
    --about-heading-size: 36px;
    --about-subheading-size: 22px;
    --timeline-border: #444;
    --timeline-text-opacity: 0.8;
    --services-border-hover: #aaa;
}






.light-mode {
    --body_backg: #f4f4f4;
    --font_color: #1a1a1a;
    --font_colorbtn: #000;
    --anc: #333;
    --anchover: #420303;
    --bgcolor_con_btn: #f4f4f4;
    --hover_button_work: #7a4e0a;
    --hover_button_contact: #7a4e0a;
    --bgcolor_con_btn: #ffffff;

    --k-pr: #1F2937;
    --k-sec: #374151;
    --k-acc: #111827;

    --k-prima: #1F2937;
    --k-second: #374151;
    --k-: #111827;

    --about-text-color: #111;
    --about-paragraph-opacity: 0.9;

    --about-card-bg: #ffffff;
    --about-card-border: #ccc;
    --about-card-border-hover: #555;

    --about-heading-size: 36px;
    --about-subheading-size: 22px;

    --timeline-border: #888;
    --timeline-text-opacity: 0.85;

    --services-border-hover: #333;


}



* {
    box-sizing: border-box;
}


body {
    background-color: var(--body_backg);
    color: var(--font_color);
    margin: 0;
    overflow: hidden;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    display: none;
}

.hero-section {
    display: flex;
    height: 100vh;
}


.profile {
    width: 45%;
    /* border: 1px solid whitesmoke; */
    padding: 10px;
}

.about {
    width: 50%;
    /* border: 1px solid whitesmoke; */
    padding: 10px;


}

#links {
    width: 5%;
    position: relative;
}

.imagelight {
    position: relative;
    top: 150px;
    width: 250px;
    height: 250px;
    overflow: hidden;
    border-radius: 50%;
    transition: border-radius 0.5s ease;
    margin: 0 auto;
    box-shadow: 2px 2px 4px whitesmoke, -2px -2px 4px whitesmoke;

}

.containerimg {
    height: 100%;
    width: 90%;

    /* animation-name: fadeInSlide;
    animation-duration: 1.2s;
    animation-timing-function: ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both; */
}

#profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
    transition: all 0.5s ease;
    filter: grayscale(20%) contrast(110%) brightness(95%);
}

.containerimg {
    animation: floatIn 1.2s ease forwards;

}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#T1 {
    font-weight: 400;
    font-family: "Marcellus", serif;
    margin-top: 150px;
    display: flex;
    animation-name: fadeInSlide;
    animation-duration: 1.2s;
    animation-timing-function: ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;

}


#T3-logo {
    font-family: "Inconsolata", monospace;
    display: flex;
    justify-content: center;
    position: relative;
    right: 5px;

}

.containerbuttons {

    display: flex;
    position: relative;

}

.containerbuttons button {
    font-family: "Exo", sans-serif;
    padding: 6px 14px;
    /* زودنا الراحة شوية */
    font-weight: 600;
    border: 1px solid #1a1a1a;
    /* كان ناقص style */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    background: transparent;
    color: #1a1a1a;
    border-radius: 6px;
    /* لمسة ناعمة */
}


#contact-btn {
    position: relative;
    left: 20px;
    background-color: var(--bgcolor_con_btn);
    color: var(--font_colorbtn);
    border: .1px inset var(--about-card-border);
    /* box-shadow: 2px 2px 1px -1px, -2px -1px 1px -1px; */
}

#mywork-btn {

    background-color: var(--bgcolor_con_btn);
    color: var(--font_colorbtn);
    /* border: .1px inset #fff; */
    box-shadow: 2px 2px 1px -1px, -2px -1px 1px -1px;
}

#contact-btn:hover {
    border: none;
    color: var(--hover_button_contact);
    background-color: transparent;
    transform: scale(1.2);
    box-shadow: none;
}



#mywork-btn:hover {
    color: var(--hover_button_work);
    background-color: transparent;
    border: 1px solid var(--body_backg);
    transform: scale(1.2);
    box-shadow: none;
}

#links a {
    color: var(--font_color);
    display: block;
    transition: 0.3s;
    transition-duration: 1s;
    text-decoration: none;
}

#ld {
    position: fixed;
    bottom: 10px;
    right: 30px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--font_color);
    outline: none;
    font-size: 1rem;
    transition: transform 0.3s ease;
    transition-duration: 1s;


}

#ld:hover {
    transform: scale(1.2);
    transform: rotate(180deg) scale(1.2);

}

#links a:hover {
    color: var(--hover_button_work);
    transform: scale(1.2);
}


#anc {
    position: relative;
    margin-top: 100px;
}

#anc a {
    color: var(--anc);
    font-size: 24px;
    display: block;
    margin-bottom: 20px;
    transition: 0.3s;
}

#anc a:hover {
    color: var(--anchover);
    transform: scale(1.2);
}

ul {
    list-style: none;
    padding: 25px;
    margin: 0;
}

#element {
    font-family: "Exo", sans-serif;
}

#Iam {
    font-family: "Exo", sans-serif;
}

#p1 {
    font-family: "DM Sans", sans-serif;
}


.hidden-section {
    position: relative;
    display: none;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--body_backg);
}



.active-section {
    display: block;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* section p. */
.divider {
    width: 600px;
    height: 3px;
    background: linear-gradient(90deg, var(--hover_button_contact), var(--hover_button_work));
    border-radius: 2px;
    margin: 1rem auto 0;
}


.page-header {
    font-family: "Marcellus", serif;
    text-align: center;
    position: -webkit-sticky;
    position: relative;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.1); */
}

.projects-container {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    flex-wrap: wrap;
}

.project-card {
    position: relative;
    overflow: hidden;
    width: 320px;
    background: #111;
    border-radius: 15px;
    padding: 15px;
    transition: 0.4s ease;
    box-shadow: 0px 0px 10px #000;
    color: var(--font_color);
    text-align: center;

}

.containelinks {
    position: relative;
    overflow: hidden;
}

.overlay-buttons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(20px);
}

#openOverlay {
    position: absolute;
    right: 5;
}


.hamburger-btn {
    background: none;
    border: none;
    color: var(--font_color);
    font-size: 23px;
    cursor: pointer;
    margin-bottom: 20px;
    display: block;
    transition: 0.3s;
    margin-left: 20px;
}


/* ---for hum-btn section */
.open-menu-btn {
    position: relative;
    bottom: 50px;

}

.project-card:hover .overlay-buttons {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover .over-p {
    opacity: 0;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 20px var(--hover_button_work);
}

.light-mode .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 0px 20px rgb(51, 1, 1);
}

.light-mode .project-card {
    background: #ffffff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.12);
}



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

.project-card h3 {
    font-family: "Marcellus", serif;
    position: relative;
    top: 10px;
}

.project-card p {
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.about_p_h {
    position: relative;
    top: 10px;

}

.overlay-buttons a {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    background-color: white;
    color: black;
    font-weight: bold;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    width: 125px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.overlay-buttons i {
    opacity: 0;
    width: 0;
    display: flex;
    justify-content: center;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.btn-demo:hover i {
    opacity: 1;
    transform: translateX(0);
}

.btn-demo:hover span {
    display: none;
}

.btn-code:hover i {
    opacity: 1;
    transform: translateX(0);
}

.btn-code:hover span {
    display: none;
}

/* 
.btn-demo,
.btn-code {
    display: inline-block;
    margin: 10px 5px;
    padding: 8px 15px;
    color: white;
    background: var(--hover_button_work);
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
} */

.btn-demo:hover,
.btn-code:hover {
    background: var(--hover_button_contact);
}

.light-mode .btn-demo:hover {
    background-color: rgb(107, 0, 25);

}

.light-mode .btn-code:hover {
    background-color: rgb(107, 0, 25);

}







.contact-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px 20px;
    background: var(--body_backg);
    border-radius: 12px;
    border: 1px solid var(--about-card-border);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);

}

.contact-box a {
    background-color: var(--about-card-bg);
}

.light-mode .contact-box {
    background: #fff;
    border: 1px solid #ddd;
}


/* Each item is a clickable link */
.contact-item {
    /* display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 10px;
    border-radius: 10px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: 0.3s ease; */
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 15px;
    border-radius: 12px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.35s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.contact-item:hover {
    transform: translateX(8px) scale(1.02);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--hover_button_work);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}


/* Icon style */
.contact-item i {
    font-size: 22px;
    color: var(--hover_button_contact);
    transition: 0.3s;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
    color: var(--hover_button_work);
}

/* Text inside each item */
.contact-item h3 {
    font-family: "Marcellus", serif;
    color: var(--font_color);
    margin-bottom: 4px;
    font-size: 18px;
}

.contact-item p {
    font-family: "DM Sans", sans-serif;
    color: var(--font_color);
    margin: 0;
    font-size: 14px;
}

/* Hover */
.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0%;
    background: var(--hover_button_work);
    transition: 0.4s ease;
}

.contact-item:hover::before {
    height: 100%;
}


/* Light mode hover */
.light-mode .contact-item:hover {
    background: #f2f2f2;
}





.back-home-btn {
    display: block;
    border: 2px solid var(--font_color);
    background: transparent;
    color: var(--font_color);
    font-family: "Exo", sans-serif;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    padding: 12px 50px;
    transition: all 0.45s ease;
    margin: 25px auto 0;
}

.back-home-btn:hover {
    background-position: 100%;
    transform: translateY(-4px) scale(1.05);
    background: var(--font_color);
    color: var(--body_backg);
    transform: translateY(-3px);

}

#about-section .back-home-btn {
    position: absolute;
    bottom: 40px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--about-card-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
}

#about-section .back-home-btn:hover {
    transform: translateY(-5px);
    background-color: #7a4e0a;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

#about-section .back-home-btn i {
    margin: 0;
    padding: 0;
    line-height: 1;
}


@media (max-width:579px) {

    body {
        overflow: auto;
        overscroll-behavior: none;
    }

    section {
        min-height: 100vh;
        overscroll-behavior: contain;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
    }

    .profile {
        display: flex;
        width: 100%;
        padding: 10px;
        justify-content: center;
    }

    .about {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px;
        box-shadow: none;

    }


    #links {
        width: 100%;
        display: flex;
        flex-direction: row wrap;
        justify-content: center;
        align-items: flex-end;
        gap: 20px;
        padding: 20px 0;
    }

    ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 20px;
    }

    #links a {
        display: flex;
        flex-direction: row wrap;
    }

    .back-home-btn {
        position: absolute;
        top: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        border: none;
        cursor: pointer;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 1000;
        padding: 0;
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .back-home-btn:hover {
        transform: translateY(-5px);
        background-color: #7a4e0a;
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
    }

    .containerimg {
        position: relative;
        top: 150px;
        width: 250px;
        height: 250px;
        overflow: hidden;
        border-radius: 50%;
        transition: border-radius 0.5s ease;
        margin: 0 auto;
        box-shadow: 2px 2px 4px whitesmoke, -2px -2px 4px whitesmoke;
        animation-name: fadeInSlide;
        animation-duration: 1.2s;
        animation-timing-function: ease-out;
        animation-delay: 0.5s;
        animation-fill-mode: both;
    }


    .divider {
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, var(--hover_button_contact), var(--hover_button_work));
        border-radius: 2px;
        margin: 1rem auto 0;
        animation-name: fadeInSlide;
        animation-duration: 1.2s;
        animation-timing-function: ease-out;
        animation-delay: 0.5s;
        animation-fill-mode: both;
    }


    #openOverlay {
        position: relative;
        top: 5px;
    }


    /* ===== Section Spacing ===== */
    .about_me-inside,
    .skills,
    .education,
    .services {
        margin-bottom: 45px !important;
    }

    .container_about_section {
        width: 94%;
        padding-top: 25px !important;
        padding-bottom: 30px !important;
    }



    /* ===== Titles ===== */
    .about_me-inside h2,
    .skills h2,
    .education h2,
    .services h2 {
        font-size: 28px !important;
        margin-bottom: 18px !important;
        text-align: center;
    }


    /* ===== About Text ===== */
    .about_me-inside p {
        font-size: 16px !important;
        line-height: 1.6;
        text-align: center;
        margin-bottom: 10px !important;
    }


    /* ===== Skills Grid ===== */
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px !important;
        margin-top: 10px !important;
    }

    .skill-card {
        font-size: 15px !important;
        padding: 12px !important;
        border-radius: 10px;
    }


    /* ===== Education (Timeline) ===== */
    .timeline {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 10px !important;
    }

    .timeline .item {
        margin-bottom: 25px !important;
        padding: 10px 5px !important;
        text-align: center;
    }

    .timeline .item h3 {
        font-size: 19px !important;
        margin-bottom: 6px !important;
    }

    .timeline .item p {
        font-size: 15px !important;
    }


    /* ===== Services ===== */
    .service-box {
        padding: 20px !important;
        margin-bottom: 25px !important;
        border-radius: 12px !important;
        text-align: center;
    }

    #anc {
        position: relative;
        top: 2px;
    }


    .contact-box {
        max-width: 90%;
        margin: 40px auto;
        padding: 25px 20px;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }


    #about-section .back-home-btn {
        position: absolute;
        top: 5px;
        right: 5%;
        background: none;
    }

    #ld {
        position: relative;
        bottom: 21px;
        right: 2px;
    }

}


@media (min-width:580px) and (max-width:1000px) {


    body {
        overflow: auto;
        overscroll-behavior: none;
    }

    section {
        min-height: 100vh;

        overscroll-behavior: contain;
        width: 100%;
        overflow-x: hidden;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: auto;
    }

    .profile {
        display: flex;
        width: 100%;
        padding: 10px;
        justify-content: center;
    }

    .about {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 20px;
        box-shadow: none;

    }

    #links {
        width: 100%;
        display: flex;
        flex-direction: row wrap;
        justify-content: center;
        align-items: flex-end;
        gap: 20px;
        position: relative;
        padding: 20px 0;
    }

    ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 20px;
    }

    #links a {
        display: flex;
        flex-direction: row wrap;
    }

    .containerimg {
        position: relative;
        top: 150px;
        width: 250px;
        height: 250px;
        overflow: hidden;
        border-radius: 50%;
        transition: border-radius 0.5s ease;
        margin: 0 auto;
        box-shadow: 2px 2px 4px whitesmoke, -2px -2px 4px whitesmoke;
        animation-name: fadeInSlide;
        animation-duration: 1.2s;
        animation-timing-function: ease-out;
        animation-delay: 0.5s;
        animation-fill-mode: both;
    }

    #T3-logo {
        display: none;

    }

    #openOverlay {
        position: relative;
        top: 6px;
        right: 20px;
        z-index: 1001;
        display: block !important;
    }


}

@media (min-width: 1001px) and (max-width: 1238px) {
    .hero-section {
        display: flex;
        flex-direction: row;
        height: 100vh;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 0 5%;
        overflow: hidden;
    }

    .profile {
        flex: 1;
        display: flex;
        justify-content: center;
        max-width: 400px;
    }

    .about {
        flex: 1.2;

        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .containerimg {

        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1.2;
        max-height: 500px;
    }

    #profile-pic {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 25px;
        box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4);
    }


    #links {
        position: absolute;
        right: 20px;
        bottom: 30%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    #T3-logo {
        display: none;

    }

    .containerimg {
        position: relative;
        top: 100px;
        width: 250px;
        height: 250px;
        overflow: hidden;
        border-radius: 50%;
        transition: border-radius 0.5s ease;
        margin: 0 auto;
        box-shadow: 2px 2px 4px whitesmoke, -2px -2px 4px whitesmoke;
        animation-name: fadeInSlide;
        animation-duration: 1.2s;
        animation-timing-function: ease-out;
        animation-delay: 0.5s;
        animation-fill-mode: both;
    }

    #openOverlay {
        position: relative;
        top: 30px;
        right: 20px;
        z-index: 1001;
        display: block !important;
    }

}



.hamburger-btn:hover {
    color: var(--hover_button_work);
    transform: scale(1.1);
}

.full-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--body_backg);
    z-index: 10000;
    overflow: hidden;
    transition: 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.overlay-links a {
    font-family: "Marcellus", serif;
    font-size: 50px;
    color: var(--font_color);
    text-decoration: none;
    margin: 20px 0;
    display: block;
    transition: 0.3s;
}

.overlay-links a:hover {
    color: var(--hover_button_work);
}

.close-overlay {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 60px;
    background: none;
    border: none;
    color: var(--font_color);
    cursor: pointer;
}

/* ===== Container About Section ===== */
.container_about_section {
    width: 90%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 50px 30px;
    border-radius: 20px;
    animation: fadeInUp 0.8s ease;
    background: linear-gradient(-45deg, #0d0d0d, #111, #222, #111);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--about-text-color);
}

@media (max-width:579px) {
    .container_about_section {
        background: none;
    }

}

/* ===== About Cards ===== */
.about-me-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 20px 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-me-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

/* ===== Stagger Animations ===== */
.about-me-card:nth-child(1) {
    animation-delay: 0.2s;
}

.about-me-card:nth-child(2) {
    animation-delay: 0.4s;
}

.about-me-card:nth-child(3) {
    animation-delay: 0.6s;
}

.about-me-card:nth-child(4) {
    animation-delay: 0.8s;
}

/* ===== About Headings ===== */
.about_me-inside h2,
.skills h2,
.education h2,
.services h2 {
    font-family: "Marcellus", serif;
    font-size: var(--about-heading-size);
    margin-bottom: 25px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--hover_button_work), var(--hover_button_contact));
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
    animation-delay: .9s;
}

/* ===== Paragraphs ===== */
.about_me-inside p {
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    line-height: 1.85;
    letter-spacing: 0.5px;
    color: var(--about-text-color);
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.25);
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 1s forwards;
    animation-delay: .9s;

}

/* ===== Skills Section ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.skill-card {
    padding: 14px 20px;
    background: var(--about-card-bg);
    border: 1px solid var(--about-card-border);
    border-radius: 10px;
    font-size: 17px;
    text-align: center;
    transition: transform 0.35s, box-shadow 0.35s;
}

.skill-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* ===== Timeline / Education ===== */
.timeline {
    border-left: 3px solid var(--timeline-border);
    padding-left: 50px;
    position: relative;
    margin-left: 10px;
}

.timeline .item {
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
}

.timeline .item::before {
    content: "";
    width: 14px;
    height: 14px;
    background: var(--timeline-border);
    border-radius: 50%;
    position: absolute;
    left: -8px;
    top: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline .item:hover::before {
    transform: scale(1.5);
    background: var(--hover_button_work);
}

.timeline .item .timeline-card {
    background: var(--about-card-bg);
    border: 1px solid var(--about-card-border);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.35s, box-shadow 0.35s;
}

.timeline .item .timeline-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* ===== Services Section ===== */
.service-box {
    background: var(--about-card-bg);
    border: 1px solid var(--about-card-border);
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 25px;
    text-align: center;
    transition: transform 0.35s, box-shadow 0.35s;
}

.service-box:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ===== Light Mode ===== */
.light-mode .container_about_section {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
}

.light-mode .about-me-card,
.light-mode .skill-card,
.light-mode .timeline-card,
.light-mode .service-box {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}


.hidden-section {
    padding-top: 50px;
    padding-bottom: 50px;

}

/* #p_and_h_top{
        position: fixed;
        top: 70px;
        z-index: 1001;
        display: block !important;
} */

.professional-logo {
    position: relative;
    top: 20px;
    left: 17px;
    width: 40px;
    height: 40px;
    border-radius: 500%;
    box-shadow: 0 4px 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    --k-primary: var(--k-prima);
    --k-secondary: var(--k-second);
    --k-accent: var(--k-a);
}

.professional-logo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --k-primary: var(--k-pr);
    --k-secondary: var(--k-sec);
    --k-accent: var(--k-acc);
}

.professional-logo svg {
    width: 100%;
    height: 100%;
}


@media (max-width:579px) {
    .professional-logo {
        /* position: relative;
        top: -16px;
        left: -30px;
        width: 30px;
        height: 30px; */
        display: none;
    }
}

@media (min-width:580px) and (max-width:1000px) {
    .professional-logo {
        position: relative;
        top: -15px;
        left: -15px;
        width: 30px;
        height: 30px;
    }
}

/* 
.k-theme-dark {
    --k-primary: #1F2937;
    --k-secondary: #374151;
    --k-accent: #111827;
}

.k-theme-blue {
    --k-primary: #1E40AF;
    --k-secondary: #3B82F6;
    --k-accent: #1D4ED8;
}

.k-theme-gold {
    --k-primary: #D97706;
    --k-secondary: #F59E0B;
    --k-accent: #B45309;
}

.k-theme-green {
    --k-primary: #059669;
    --k-secondary: #10B981;
    --k-accent: #047857;
} */


.contact-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 15px;
    background: var(--about-card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.contact-form h2 {
    margin-bottom: 25px;
    font-family: "Marcellus", serif;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--about-card-border);
    border-radius: 8px;
    background: transparent;
    color: var(--font_color);
    outline: none;
    font-size: 14px;
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #888;
    font-size: 13px;
    transition: 0.3s;
    pointer-events: none;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:valid+label,
.form-group textarea:valid+label {
    top: -15px;
    left: 8px;
    font-size: 11px;
    color: var(--hover_button_work);
    background: var(--about-card-bg);
    padding: 0 5px;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    border: 1px solid var(--hover_button_work);
    background: transparent;
    color: var(--font_color);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
}



.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover {
    box-shadow: 0 0 15px var(--hover_button_work);
    transform: scale(1.05);
}



.container_contact {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-box,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form textarea {
    min-height: 140px;
    resize: none;
    overflow: hidden;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--about-card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--font_color);
    font-size: 14px;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--hover_button_work);
    box-shadow: 0 0 10px rgba(239, 181, 73, 0.3);
}

.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form {
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .container_contact {
        flex-direction: column;
        padding: 20px;
    }

    .contact-box,
    .contact-form {
        width: 100%;
        min-width: unset;
    }

    .contact-form h2 {
        text-align: center;
    }
}



