@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

section {
    /* تقليل المسافات العمودية بين السكاشن */
    padding: 50px clamp(10px, 4vw, 120px); 
}
/* --- Header --- */

header {
    background-color: #0f172a; 
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;

    /* Responsive padding */
    padding: 10px clamp(20px, 6vw, 200px);

    border-bottom: 1px solid #1e293b;
}

.logo {
    text-decoration: none;
    color: #38bdf8; 
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.8em;
}

.navigation a{
    text-transform: uppercase;
    color: #f8fafc; 
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding-left: 30px;
}

.navigation a:hover {
    color: #38bdf8;
}

/* --- Sections --- */

section {
    padding: 100px clamp(20px, 6vw, 200px);
}

/* --- Main Section --- */

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(img/backgraond.png) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.main h2 {
    color: #f8fafc;
    font-size: 1.4em;
    font-weight: 500;
}

.main span {
    display: inline-block;
    margin-top: 10px;
    color: #38bdf8;
    font-size: 2.5em;
    font-weight: 600;
}

.main h3 {
    color: #cbd5e1;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 30px;
}

.main-btu {
    color: #ffffff;
    background-color: #2563eb;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    padding: 0.9em 2.1em;
    letter-spacing: 1px;
    border-radius: 15px;
    margin-bottom: 40px;
    transition: 0.4s ease;
}

.main-btu:hover {
    background: #1d4ed8;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.social-icon a{
    color: #f0f0f0;
    font-size: 1.7em;
    padding-right: 30px;
}

.social-icon a:hover {
    color: #38bdf8;
}
.services{
    background-color: #57595B;
}

.core-Expertise {
    background-color: #020617;
}

/* --- Cards --- */

.title {
    display: flex;
    justify-content: center;
    color: #38bdf8;
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 30px;
}

.content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background-color: #1e293b;
    width: min(100%, 21.25em);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 15px;
    transition: 0.4s ease;
    border: 1px solid #334155;
}

.card:hover{
    transform: scale(1.05);
    border-color: #38bdf8;
}

.icon {
    color: #38bdf8;
    font-size: 6em;
    text-align: center;
}

.info {
    text-align: center;
}

.info h3 {
    color: #f8fafc;
    font-size: 1.2em;
    font-weight: 700;
    margin: 10px;
}

.info p {
    color: #94a3b8;
}

/* --- Projects --- */

/* --- Projects Slider Layout --- */

/* --- سكشن المشاريع: عزل تام ولقطة 3 كروت --- */
.projects {
    background-color: #020617;
    /* الحشو ده بيصغر السكشن كأنه معمول له زوم */
    padding: 40px clamp(15px, 5vw, 120px); 
}

/* 1. الحاوية الأساسية (النافذة): هي اللي بتقص أي حاجة بره الـ 3 كروت */
.projects-slider-container {
    width: 100%;
    max-width: 1080px; /* عرض مثالي لـ 3 كروت جنب بعض */
    margin: 0 auto;
    position: relative;
    overflow: hidden; /* 👈 السطر ده هو اللي بيمنع ظهور المشاريع اللي بعدها */
}

/* 2. المسار: لازم يكون Flex عشان الصفحات تقف جنب بعض */
.projects-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1);
    width: 100%;
}

/* 3. الصفحة الواحدة: لازم تكون 100% من عرض الحاوية بالظبط */
.project-page {
    flex: 0 0 100%; /* تضمن إن الصفحة الواحدة واخدة العرض كامل وما يتسربش منها حاجة */
    min-width: 100%;
    padding: 0 5px;
    box-sizing: border-box;
}

/* 4. الشبكة: بتوزع الـ 3 مشاريع بالتساوي داخل الصفحة */
.projects-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة إجبارية */
    gap: 15px;
    justify-items: center;
}

/* 5. الكارت (مقاس مصغر للفخامة) */
.project-card {
    width: 100%;
    max-width: 17.5em; /* صغرنا الحجم عشان نلم الزحمة */
    aspect-ratio: 4 / 5.2;
    perspective: 1000px;
}
.chapter-title {
    color: #38bdf8;
    text-align: center;
    margin-bottom: 15px; /* مسافة صغيرة */
    font-size: 1.1em;
    font-weight: 600;
    opacity: 0.9;
}

/* التحكم (الأزرار): قربناها من المشاريع عشان اللقطة تكمل */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 20px;
}

.nav-btn {
    width: 38px;
    height: 38px;
    background: #1e293b;
    border: 1px solid #334155;
    color: #38bdf8;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.nav-btn:hover { background: #38bdf8; color: #020617; }

.dot {
    width: 8px;
    height: 8px;
    background: #334155;
    border-radius: 50%;
    transition: 0.3s;
}

.dot.active {
    background: #38bdf8;
    width: 22px;
    border-radius: 10px;
}
/* --- Responsive Slider --- */

@media (max-width: 1100px) {
    .projects-grid-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* مشروعين في الصف عند الشاشات المتوسطة */
        justify-items: center;
    }
    .project-card {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .projects-grid-wrapper {
        grid-template-columns: 1fr; /* مشروع واحد فقط في الصف للموبايل */
    }
    .chapter-title {
        font-size: 1.2em;
    }
}

.projects .content{
    margin-top: 30px;
}

.project-card {
    background-color: transparent;
    width: min(100%, 23em);

    /* responsive height */
    aspect-ratio: 23 / 25;

    perspective: 1000px;
    margin: 20px;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    border-radius: 10px;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.project-card-front {
    background-color: #1e293b;
    display: flex;
    flex-direction: column;
}

.project-card-front img {
    width: 100%;
    height: 75%;
    object-fit: cover;
}

.project-card-back {
    background-color: #2563eb;
    color: white;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    text-align: center;
}

.project-card-back p {
    margin-bottom: 25px;
}

.project-card-back .more-details {
    color: #2563eb;
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
}

.project-card-back .more-details:hover {
    background: #0f172a;
    color: #fff;
}




.project-card-back .data-report-here {
    color: #2563eb;
    background: #ffffff;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 10px;
    text-decoration: none;
}

.project-card-back .data-report-here:hover {
    background: #0f172a;
    color: #fff;
}





.project-info {
    padding: 1em;
}

.project-category {
    font-size: 0.8em;
    color: #94a3b8;
}

.project-title {
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
    color: #f8fafc;
}

/* --- Contact --- */
.contact{
    background-color: #57595B;
}
.contact .icon{
    font-size: 4.5em;
    color: #38bdf8;
}

.contact .info h3 {
    color: #f8fafc;
}

.contact .info p {
    font-size: 1.5em;
    color: #94a3b8;
}

/* --- Footer --- */

.footer {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 2em clamp(20px, 6vw, 200px);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    border-top: 1px solid #1e293b;
}

.footer-title {
    font-size: 1.3em;
    font-weight: 600;
}

.footer-title span {
    color: #38bdf8;
}
/* تنسيق علامة الكتابة */
.typed-cursor {
    color: #38bdf8;
    font-size: 0.8em;
}

/* تأكد إن الـ span واخد مساحة عشان الكلام ميهزش الصفحة */
#typing-text {
    color: #38bdf8;
    min-height: 1.2em;
    display: inline-block;
}
/* --- Responsive --- */

@media (max-width:1023px){
    .navigation a{
        padding-left: 15px;
    }

    .title{
        font-size: 1.8em;
    }

    section{
        padding: 80px 20px;
    }

    .content{
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width:641px){
    body{
        font-size: 13px;
    }
}

@media (max-width:300px){
    body{
        font-size: 11px;
    }
}