*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #050510;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10+ and Edge */
    user-select: none;         /* Standard syntax */
    
    /* لمنع ظهور القائمة الزرقاء عند الضغط المطول في بعض المتصفحات */
    -webkit-touch-callout: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem; 
    
}

.nav {
    position: sticky;
    top:0;
    background-color: transparent;
    z-index: 1000;
    padding: 1rem 0;
    
}
.nav-container{
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background-color: #222;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    z-index: 5;

    /* Animation */
    animation: logoEntrance 1s ease-out forwards;

    /* Hover + fade */
    transition:  transform 0.4s ease;
    cursor: pointer;
}



@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nav-logo:hover {
    transform: scale(1.5);
}

.nav-links{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
    font-family: 'Cairo', sans-serif;
    background-color: #222;
    padding:10px ;
    position: relative;
    border-radius: 8px
}

.nav-links span{
    position: absolute;
    top:0;
    left:0;
    background: linear-gradient(45deg, #2e3192,#1bffff);
    height: 100%;
    width: 120px;
    border-radius: 8px;
    z-index:1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-links li{
    z-index:1001;
    width: 100px;
    text-align: center;
}
.nav-links li:nth-child(1):hover~span{
    left: 0px;
}
.nav-links li:nth-child(2):hover~span{
    left: 110px;
    width: 90px;
}
.nav-links li:nth-child(3):hover~span{
    left: 215px;
    width: 85px;
}
.nav-links li:nth-child(4):hover~span{
    left: 300px;
    width: 110px;
}
.nav-links li:nth-child(5):hover~span{
    left: 400px;
    width: 120px;
}

.nav-links a {
    color:#fff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    z-index:1001;
}

.menu{
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    cursor: pointer;
    display: none;
    color: #fff;
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    
}
.hero_bg_vd{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
    filter: brightness(0.6) contrast(.7);
    
}
.hero-content {
    z-index: 2;
    text-align: center;
    max-width: 900px;
    font-family: 'Cairo', sans-serif;
    
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #601cfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    color: #b0b0b0;
    margin-bottom: 3rem;
    
}
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-block;
    font-family: 'Cairo', sans-serif;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: #601cfc;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(96, 28, 252, 0.4);
    
}
.btn-primary:hover {
    background-color: #7a3dff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(96, 28, 252, 0.6);

}
.btn-secondary{
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(96, 28, 252, 0.4);
    border:2px solid #7a3dff;
    background-color: transparent;
    
}
.btn-secondary:hover {
    background-color: rgba(96, 28, 252, 0.1);
    transform: translateY(-2px);
}
/* ------------about section---------------- */

.about{
    height: 100vh;
    display: flex;
    align-items: center;
    padding:  2rem;
    background-color: #5A7863;
    background: url('imges/background.png') center center no-repeat;
    background-size: cover;
}

.about-container{
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    width: 100%;
    height: 80%;

}

.myphoto{
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
    height:auto;
    overflow: hidden;
    background: linear-gradient(90deg, #A2CB8B,#FEFFD3) ;
    padding: 10px;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(10, 8, 15, 0.5);
}

.myphoto-img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
    
}

.about-content{
    box-shadow: 0 4px 20px rgba(10, 8, 15, 0.5);
    text-align: center;
    height: 100%;
    width: 100%;
    padding: 2rem ;
    position: relative;
    color: #30364F;
    

}

.span1{
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 25%;
    border-top: 10px solid #fff;
    border-right: 10px solid #fff;
    border-radius: 8px;
}
.span2{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height: 25%;
    border-bottom: 10px solid #fff;
    border-left: 10px solid #fff;
    border-radius: 8px;
    
}
.span3{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height: 25%;
    border-bottom: 10px solid #fff;
    border-right: 10px solid #fff;
    border-radius: 8px;
    
}
.span4{
    position: absolute;
    top: 0;
    left: 0;
    width: 25%;
    height: 25%;
    border-top: 10px solid #fff;
    border-left: 10px solid #fff;
    border-radius: 8px;
    
}


.about-title{
    margin: 0 auto;
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    color: #30364F;
}

.about-text {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.9;
    direction: rtl;
    
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-text span {
    color: #ffae00;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    padding: 0 4px;
}

.roles{
    height: 100vh;
    width: 100vw;
    background: url('imges/background.png') center center no-repeat;
    background-size: cover;
    padding: 4rem 2rem;
}

.roles-container{
    
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
}

.img2{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 25%;
    height:auto;
    
}
.img1{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25%;
    height:auto;
    
}

.role-contant{
    text-align: center;
    width: 75%;
    height: auto;
    max-height: 85vh;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(60, 27, 143, 0.7);
    border: 5px solid #FFD700;
}

.role_title{
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    color: #FF6B6B;
    text-shadow: 2px 2px 0px #FFE66D;
}

.role-text{
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    direction: rtl;
    margin-top: 1.5rem;
    text-align: center;
    color: #444;
    line-height: 1.8;
}
.role-list{
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    direction: rtl;
    padding:  0 75px;
    margin-top: 1.5rem;
    text-align: right;
    color: #2e3192;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.role-list li {
    background-color: #E0F7FA;
    padding: 10px 15px;
    border-radius: 15px;
    border-right: 5px solid #00BCD4;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
}

.role-list li:hover {
    transform: scale(1.05);
    background-color: #B2EBF2;
}

/* --- Scrolled Navigation State (Desktop behaves like Mobile) --- */
.scrolled-nav .menu {
    display: block;
    color: #fff;
}

.scrolled-nav .nav-links {
    position: absolute;
    top: 100%;
    right: 2rem;
    flex-direction: column;
    width: 200px;
    align-items: stretch;
    transform: scale(0.9) translateY(-20px);
    transform-origin: top right;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background-color: #222;
}

.scrolled-nav .nav-links span {
    display: none; /* Hide the sliding animation span */
}

.scrolled-nav .nav-links li {
    width: 100%;
    margin: 5px 0;
}

.scrolled-nav .nav-links a {
    display: block;
    padding: 10px;
}

.scrolled-nav .nav-links li:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    background: linear-gradient(45deg, #2e3192,#1bffff);
}

.scrolled-nav .menu:hover ~ .nav-links,
.scrolled-nav .nav-links:hover {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}


/* -----------------projects_section------------ */
:root {
    --card-width: 250px;
    --card-height: 350px;
    --carousel-radius: 350px; /* تحكم في قطر الدائرة من هنا */
}

.projects {
    padding: 10px 0 50px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg ,#ccf8f8 , #050510 70%);
    content-visibility: auto;
}

.projects-title {
    font-family: 'Cairo', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(45deg, #601cfc, #ff6b6b, #E5BA41);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 10px rgba(96, 28, 252, 0.15));
}

.carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    cursor: grab;
    width: 100%;
    height: 450px;
}

.carousel {
    position: relative;
    width: var(--card-width);
    height: var(--card-height);
    transform-style: preserve-3d;
    transition: transform 0.5s;
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    background: #1a1a1a;
    border: 2px solid #601cfc;
    box-shadow: 0 0 20px rgba(96, 28, 252, 0.3);
    -webkit-box-reflect: below 15px linear-gradient(transparent, transparent, rgba(0,0,0,0.2));
}


.card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, #000, transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: right;
    direction: rtl;
    pointer-events: none;
}

.card:hover .card-content {
    transform: translateY(0);
}

#projects2{
    padding: 20px 6rem 30px;
    height: 90vh;
    background: url('imges/background.png') center center no-repeat;
    background-size: cover;
    z-index: 1;
    position: relative;
    overflow: hidden;
}

#projects2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg ,transparent 50%, #050510  );
    z-index: 2;
}

#projects2 *{
    z-index: 3;
}
#projects2 h3{
    font-family: 'Cairo', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #E5BA41 0%, #601cfc 100%);
    
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(96, 28, 252, 0.4));
    margin-bottom: 0
}
.projects-subtitle{
    font-family: 'Cairo', sans-serif;
    text-align: center;
    color: #91d414;
    font-size: 1.2rem;
    margin-bottom: 0;
    display: block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.projects_web{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; 
    padding: 20px;
    height: 80%;
    width: 50%;
    
}

.projects_web .normal_card{
    border: 2px solid #E5BA41;
    overflow: hidden;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding-bottom: 10px;
    transition: transform 0.3s ease;
    
}

.projects_web .normal_card:hover{
    transform: scale(1.05);
    
    
}
.projects_web .normal_card p{
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    color: #222;
    margin-left: 25px;
    text-align: center;
}

.projects_web .normal_card img{
    width: 100%;
    height: 75%;
    object-fit: cover;
    
}
.goto_web{
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/*contact*/
#contact{
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding:  2rem;
    background: linear-gradient(135deg, #F7F6E5,#76D2DB);
}

#contact h2{
    font-family: 'Segoe UI','Cairo', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #36064D 0%, #DA4848 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(189, 179, 214, 0.4));
    margin-bottom: 10px
}

.contact-container{
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    direction: rtl;
    margin: 0 auto;
}

.contact-container > .contact_card {
    background: linear-gradient(-135deg, #F3E3D0, #AACDDC);
    color: white;
    width:100%;
    padding: 15px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    margin-bottom: -20px; /* تداخل بسيط جمالي */
    z-index: 2;
}

.contact-container > .contact_card .card_titel {
    
    color: #36064D;
    font-size: 1.5rem;
    margin: 10px 300px;
}



.leval2{
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.5);
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    border-radius: 10px;

}

.leval2 .contact_card {
    background: #F7F6E5;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}

.leval2 .contact_card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #6c5ce7;
}

.card_titel {
    font-size: 1.8rem;
    color: #2d3436;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #6c5ce7;
    font-weight: 700;
}
.contact_card p {
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact_card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 10px;
    border: 1px dashed #76D2DB;
}

.contact_card ul li {
    margin-bottom: 12px;
    padding-right: 25px;
    position: relative;
    font-size: 0.95rem;
    color: #2d3436;
}

.contact_card ul li::before {
    content: '✔'; /* علامة صح */
    position: absolute;
    right: 0;
    top: 2px;
    color: #00b894;
    font-weight: bold;
}

.contact_card span {
    color: #d63031; /* لون أحمر للعناوين الفرعية */
    font-weight: bold;
    font-size: 1.1rem;
    display: inline-block;
    margin-top: 10px;
}

.contact_card hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 20px 0;
}
.reserv{
    display: block;
    width: 100%;
    text-align: center;
    
}
.check_icon{
    margin-left:10px ;
    color: #85C79A;
}

/* Footer Styles */
.footer {
    
    background: linear-gradient(180deg ,#281C59 ,#050510 );
    color: #fff;
    padding: 0 20px;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 20px;
}

.social-icons {
    margin-bottom: 20px;
}

.social-icon {
    color: #fff;
    font-size: 28px; /* حجم الأيقونة */
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effects for icons */
.social-icon.fa-facebook-f:hover {
    color: #1877F2; /* لون فيسبوك الحقيقي */
    transform: scale(1.2);
}

.social-icon.fa-whatsapp:hover {
    color: #25D366; /* لون واتساب الحقيقي */
    transform: scale(1.2);
}

.social-icon.fa-phone:hover {
    color: #229ED9; /* لون تليجرام الحقيقي */
    transform: scale(1.2);
}

.copyright {
    font-size: 14px;
    color: #aaa;
}

/*confirm*/
.main {
    min-height: 100vh; /* استخدام الارتفاع الأدنى لمرونة أكبر */
    width: 100%;
    background: url("imges/confirm.png") center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem; /* إضافة هوامش للمسافات */
    position: relative;
}

.main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)); /* تدرج أغمق لتباين أفضل */
    z-index: 1; /* خلف الفورم */
}

.form {
    width: 100%;
    max-width: 700px; /* التحكم في العرض الأقصى على الشاشات الكبيرة */
    padding: 10px;
    background: linear-gradient(135deg, #FFB2B2, #E36A6A);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2; /* وضع الفورم فوق الطبقة الشفافة */
    height: auto; /* السماح للمحتوى بتحديد الارتفاع */
}

#form_titel {
    color: #41431B;
    font-family: 'Cairo', sans-serif; /* استخدام خط متناسق */
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-container {
    padding: 2rem;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    background: linear-gradient(45deg, #FFFBF1, #FFF2D0);
}

.inside_form { /* تم تصحيح الخطأ الإملائي من 'insaid_form' */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem; /* زيادة المسافة لتباعد أفضل */
    height: 100%;
    width: 100%;
    border: none; /* إزالة الإطار الداخلي الزائد */
    padding: 0;
}

.form-container hr {
    border: 0;
    height: 1px;
    background-color: #6A7E3F;
    opacity: 0.5;
    width: 100%;
    margin: 1rem 0;
}

.form-container div {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* محاذاة العناوين (Labels) إلى اليمين */
    width: 100%;
    direction: rtl;
    color: #333;
    gap: 0.5rem;
}

.form-container div select,
.form-container div input {
    width: 100%; /* جعل حقول الإدخال بعرض الحاوية الكامل */
    height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container div input:focus,
.form-container div select:focus {
    outline: none;
    border-color: #6A7E3F;
    box-shadow: 0 0 0 3px rgba(106, 126, 63, 0.2);
}

.form-container button {
    width: 100%;
    border: none;
    cursor: pointer;
    /* إعادة استخدام تنسيقات الزر الرئيسي */
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #601cfc;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(96, 28, 252, 0.4);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-container button:hover {
    background-color: #7a3dff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(96, 28, 252, 0.6);
}

/* succ */
.succ {
    height: auto;
    width: auto;
    border-radius: 10px;
    
    background: linear-gradient(135deg, #FFB2B2, #E36A6A);
    z-index: 5;
    padding: 10px;
    
}

.succ-contener{
    border-radius: 10px;
    background: linear-gradient(45deg, #FFFBF1, #FFF2D0);
    padding: 2rem 1rem;
    text-align: center;
    height: 100%;
    width: 100%;
}

.succ h3 {
    color: #41431B;
    font-family: 'Cairo', sans-serif; /* استخدام خط متناسق */
    font-size: 1.7rem;
    margin-bottom: 1.5rem;
}
.succ p {
    color: #41431B;
    font-family: 'Cairo', sans-serif; /* استخدام خط متناسق */
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.name {
    font-size: 2.3rem;
}

.succ a {
    color: #012506;
}

#updateBox{
    display: none;
}

#updateBox p{
    color: #dd2909;
    font-family: 'Cairo', sans-serif; /* استخدام خط متناسق */
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}



#callback_btn{
    background-color: #D97A2B;
}


/* -------------------------------------media-------------------------------------------- */

@media (max-width: 1000px) {
        .contact-container > .contact_card .card_titel {
    margin:0 150px;}
    }


@media (max-width: 768px){
    .menu{
        display: block;
    }
    .nav-logo {
    font-size: 1.2rem;}

    .nav-links{
        position: absolute;
        top: 100%;
        right: 2rem;
        flex-direction: column;
        width: 200px;
        align-items: stretch;
        transform: scale(0.9) translateY(-20px);
        transform-origin: top right;
        
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .nav-links span {
        display: none;
    }
    .nav-links li {
        width: 100%;
        margin: 5px 0;
    }
    .nav-links a {
        display: block;
        padding: 10px;
        
    }
    .nav-links li:hover {
        background: rgba(255,255,255,0.1);
        border-radius: 5px;
        background: linear-gradient(45deg, #2e3192,#1bffff);
    }
    .menu:hover ~ .nav-links,
    .nav-links:hover {
        opacity: 1;
        visibility: visible;
        transform: scale(1) translateY(0);
    }

    .about {
        height: auto;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .myphoto {
        width: 80%;
        margin-bottom: 2rem;
    }

    /* Roles Section Responsive */
    .roles {
        height: auto;
        min-height: 100vh;
        padding: 3rem 1rem;
    }
    .role-contant {
        width: 95%;
        padding: 1.5rem;
        max-height: none; /* Allow full height on mobile */
    }
    .role-list {
        grid-template-columns: 1fr; /* 1 Column on mobile */
        padding: 0;
    }
    .roles-container {
        padding-bottom: 140px;
    }
    .img1, .img2 {
        width: 35%;
        bottom: 10px;
    }
    .role_title {
        font-size: 2rem;
    }

    :root {
        --card-width: 180px;
        --card-height: 260px;
        --carousel-radius: 150px;
    }
    .projects{
        padding: 30px 0 10px;
    }
    .projects-title { font-size: 1.5rem;margin-bottom: 0; }

    #projects2 {
        padding: 40px ;
        height: auto;
    }
    #projects2 h3 {
        font-size: 2rem;
    }
    #contact{
        height: auto;
        direction: rtl;
    }
    #contact h2 {
        font-size: 2rem;
    }
    .projects_web {
        grid-template-columns: 1fr;
    }
    .contact-container{
        grid-template-columns: 1fr;
    }
    .leval2{
        grid-template-columns: 1fr;
    }
    .contact-container > .contact_card .card_titel {
    margin:0;
    }
    .inside_form { /* تم تصحيح الخطأ الإملائي من 'insaid_form' */
        gap: 1rem;
    }
    .form-container {
        padding: 1.5rem;
    }
    .form h3 {
        font-size: 1.5rem;
    }
    .succ h3{
        font-size: 1.2rem;
    }
    .succ p{
        font-size: 1rem;
    }
    .name{
        font-size: 1.5rem;
    }
    .projects_web{
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container, .nav-container {
        padding: 0 1rem;
    }
    .about-title, .role_title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 80%;
        gap: 1rem;
        margin: 0 auto;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Read More Button Styles */
.read-more-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #601cfc;
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin: 10px auto;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: #d63031;
}

.more-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}