body{
    background-color: #f8f5f2;
}
.navbar {
    background-color: transparent;
    transition: background-color 0.5s ease-in-out; 
}
.navbar.nav-scrolled {
    background-color: #4a2a54; 
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15); 
}
.dropdown:hover > .dropdown-menu {
    display: block;
}
.dropdown-menu .dropdown-menu {
    right: 100%;
    top: 30px;
}
.dropdown-menu > li:hover > .dropdown-menu {
    display: block;
}
.dropdown-menu{
    border-radius: 0;
    padding: 10px 20px;
}
.dropdown-menu li{
    margin-bottom: 10px;
}
.navbar .container .navbar-brand{
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.navbar .container .nav-item .nav-link{
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    position: relative;
}
.dropdown > .nav-link.dropdown-toggle {
    position: relative;
}
.navbar .container .nav-item .nav-link::after,
.dropdown > .nav-link span::after
{
    content: '';
    width: 0px;
    height: 2px;
    background-color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: all 1s ease;
}
.navbar .container .nav-item .nav-link:hover::after,
.navbar .container .nav-item .nav-link.active::after,
.dropdown:hover > .nav-link span::after
{
    width: 70%;
    transform: translateX(10px);
}
.navbar .container .nav-item{
    margin-right: 10px;
}
.navbar .container{
    margin-top: 10px;
}
.navbar .container .dropdown-menu .dropdown-item,
.navbar .container .dropdown-menu .dropdown-submenu .nav-link
{
    font-size: 14px;
    font-weight: 600;
    line-height: 21px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #7C7676;
}
.navbar .container .dropdown-menu .dropdown-submenu .nav-link i{
    font-size: 10px;
}
.navbar .dropdown-item span:hover{
    color:#c5a475;
}

@media (max-width: 991.98px) {
    .navbar-collapse .navbar-nav {
    align-items: flex-start;
    padding: 10px 0;
    }
    .navbar .nav-link::after {
    display: none !important;
    }
    .navbar .nav-link span:hover,
    .navbar .nav-link.active {
    color: #0078FF !important;
    border-radius: 5px;  
    width: fit-content;  
    }
    .navbar .nav-link span{
        color: rgba(0,0,0,0.8);
    }
    .navbar-collapse.show {
    background-color: #fff;
    padding: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    }
}

/* Header */
header{
    background-color: #4a2a54;
    height: 100vh;
}
header .caption h1{
    color: #fff;
    font-weight: 600;
    font-size: 72px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
header .caption p{
    color: #fff;
    font-weight: 600;
    font-size: 40px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* about section */
main #about{
    margin-top: 70px;
}
main #about .container{
    padding: 65px 60px;
}
#about .personalinfo p{
    color: RGB(30, 30, 30);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 17.6px;
    font-weight: 600;
}
#about .personalinfo .myinfo span{
    color: RGB(30, 30, 30);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 17.6px;
    font-weight: 600;
}
#about .personalinfo .myinfo li{
    color: RGB(78, 78, 78);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
#about .personalinfo span{
    color: RGB(78, 78, 78);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
#about .personalinfo .imgsize{
    width: 65%;
}
#about .aboutme h5{
    color:RGB(30, 30, 30);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 32px;
    font-weight: 500;
    position: relative;
    margin-bottom: 45px;
}
#about .aboutme h5::after{
    content: '';
    width: 100px;
    height: 3px;
    background-color: #c5a475;
    position: absolute;
    bottom: -10px;
    left: 0;
}
#about .aboutme p{
    color:RGB(78, 78, 78);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 20px;
    font-weight: 300;
}

/* services section */
#services{
    margin-top: 100px;
    margin-bottom: 50px;
}
#services .circle{
    width: 115px;
    height: 115px;
    border: 10px solid #c5a475;    border-radius: 50%;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: auto; */
    color: black;
    transition: all 0.5s ease;
    margin-bottom: 12px;
}
#services .card{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 2px;
    border: none;
}
#services .card:hover .circle{
    border: 8px solid rgba(197, 164, 117, 0.3) solid;
    background-color: #c5a475;
    color: #fff;
}
#services .s-title{
    color: RGB(30, 30, 30);
    font-size: 48px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 700;
}
#services .s-description{
    color:RGB(78, 78, 78) ;
    font-size: 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    margin-bottom: 90px;
    position: relative;
}
#services .s-description::after{
    content: "";
    width: 40px;
    height: 5px;
    background-color: #c5a475;
    position: absolute;
    top: 50px;
    left: 49%;
}
#services .card h3{
    color: RGB(30, 30, 30);
    font-size: 22.4px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
}
#services .card p{
    color: RGB(78, 78, 78);
    font-size: 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
}
/* counters section */
#counters{
    background-color: #c5a775;
    min-height: 460px;
    margin-bottom: 70px;
    display: flex;
    align-items: center;
}
#counters .numinfo span{
    width: 85px;
    height: 85px;
    border: 10px solid #CDE1F8 ;
    border-radius: 50%;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#counters .card{
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
#counters .card .num{
    font-size: 32px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    margin-top: 8px;
    margin-bottom: 5px;
} 
#counters .card .numinfo{
    font-size: 16px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
}
@media (max-width: 767.98px) {
    #counters {
        height: auto;
        background-attachment: scroll; 
    }
}

/* portfolio section */
#portfolio h3{
    color: RGB(30, 30, 30);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 48px;
    font-weight: 700;
}
#portfolio .sectiondescription{
    color:RGB(78, 78, 78) ;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
    position: relative;
    margin-bottom: 80px;
}
#portfolio .sectiondescription::after{
    content: "";
    position: absolute;
    width: 40px;
    height: 5px;
    background-color: #c5a475;
    bottom: -20px;
    left: 49%;
}
/* --- Interactive Gallery Portfolio Styles --- */

.project-gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    aspect-ratio: 4 / 3; /* للحفاظ على أبعاد ثابتة للكارت */
    color: #fff;
}

.project-gallery-card .card-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
}

.project-gallery-card .card-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* يبدأ المحتوى من الأسفل */
    align-items: center;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.1));
    transition: background 0.4s ease;
}

.project-gallery-card .content-hidden {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.project-gallery-card .content-links {
    opacity: 0; /* إخفاء الروابط في البداية */
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 1rem;
}

.project-gallery-card .project-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-gallery-card .project-tags span {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0.2rem;
}

/* --- التأثيرات عند الـ Hover --- */

.project-gallery-card:hover .card-background {
    transform: scale(1.1); /* تكبير الخلفية */
    filter: blur(4px); /* إضافة ضبابية للخلفية */
}

.project-gallery-card:hover .card-content {
    background: linear-gradient(to top, rgba(30, 2, 43, 0.9), rgba(0,0,0,0.3)); /* تغيير لون الطبقة الشفافة */
    justify-content: center; /* توسيط كل المحتوى */
}

.project-gallery-card:hover .content-hidden {
    transform: translateY(-10px);
}

.project-gallery-card:hover .content-links {
    opacity: 1; /* إظهار الروابط */
    transform: translateY(0);
}

.project-gallery-card .content-links .btn {
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
}

/* Rcommendations section */
#recommendations {
    background-color: #f8f5f2; 
}
.recommendation-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
    height: 100%;
    position: relative;
}
.recommendation-card .quote-icon {
    font-size: 5rem;
    font-weight: 700;
    color: #c5a475; 
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.15;
    line-height: 1;
}
.recommendation-card .quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.recommender-info {
    display: flex;
    align-items: center;
}
.recommender-info .recommender-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid #f8f5f2;
}
.recommender-info .recommender-name {
    display: block;
    font-weight: 700;
    color: #4a2a54; 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.recommender-info .recommender-title {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#recommendations .s-title {
    color: #1e1e1e; 
    font-size: 48px;
    font-weight: 700;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#recommendations .s-description {
    color: #4e4e4e; 
    position: relative;
    padding-bottom: 25px; 
}
#recommendations .s-description::after {
    content: "";
    width: 40px;
    height: 5px;
    background-color: #c5a475; 
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* contact section */
#contact{
    background-color: #c5a775;
    min-height:660px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 50px;
}
#contact .container h5{
    color: RGB(30, 30, 30);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 32px;
    font-weight: 500;
    position: relative;
}
#contact .container h5::after{
    content: '';
    width: 100px;
    height: 3px;
    background-color: #c5a475;
    position: absolute;
    top: 45px;
    left: 0;
}
#contact .container form input{
    border: 1px solid #DEE2E6;
    width: 98%;
}
#contact .container form textarea{
    border: 1px solid #DEE2E6;
    width: 98%;
}
#contact .container form button{
    background-color: #c5a475;
    color: #fff;
    border: none;
    border-top-left-radius:30px ;
    border-bottom-left-radius:30px ;
    border-top-right-radius:30px ;
    border-bottom-right-radius:30px ;
    padding: 10px 20px;
    font-size: 19.2px;
    font-weight: 400;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    transition: background-color 0.3s ease;
}
#contact .container form button:hover{
    background-color: #d4b992;
}
#contact .container p{
    color: RGB(78, 78, 78);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 20px;
    font-weight: 300;
    margin-top: 50px;
}
#contact .container span{
    color: RGB(78, 78, 78);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 400;
}
#contact .container .socialicons li{
    border: 3px solid #c5a475;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-align: center;
    margin-right: 10px;
}
/* footer section */
footer{
    background-color: #4a2a54;
    min-height:100px ;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 6px 10px -5px rgba(0, 0, 0, 0.2);
}
footer .copyright .designer a{
    text-decoration: none;
    color: #fff;
}
footer .copyright p{
    margin-bottom: 6px;
}