:root {

    --backgrounnd:linear-gradient(150deg, rgba(214, 220, 203, 0.86) 17%,
 rgba(100, 105, 130, 0.81) 48%, rgba(214, 220, 203, 0.9) 82%);
    line-height: 1.6;

    --primary-color: #D6DCCB;
    --secondary-color: #646982;
    --text-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
  font-family: "Tajawal", sans-serif;
    scroll-behavior: smooth;
}

body {

background: linear-gradient(150deg, rgba(214, 220, 203, 0.86) 17%,
 rgba(100, 105, 130, 0.81) 48%, rgba(214, 220, 203, 0.9) 82%);
    line-height: 1.6;
    
}

/* 2. الهيدر والـ Navigation */
header {
    width: min(90em, 95%);
    margin: 2em auto;
    padding: 2rem 2rem;
    border-radius: 2em;
    color:var(--secondary-color);
}

nav {
  margin: 1em auto 3em auto;
  width: min(800px, 100%);
  align-items:center ;
  background: rgba(255, 255, 255, 0);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3.2px);
  -webkit-backdrop-filter: blur(3.2px);

}
  

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  gap: 5.5rem;
font-size: 1.3em;
}

nav a {
  
  display: block;
  text-decoration: none;
  color: var(--secondary-color);
  transition: transform 0.2s ease;
}

nav a:hover {
  transform: scale(1.15);
  color : var(--white);
  text-decoration: underline;
  
}


/* 3. حاوية البروفايل (Flexbox) */
.Hcontainer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}
.Hcontainer p {
    font-size: 20px; 
}
.profile-img{
 /* الحاوية الأب التي تحدد الشكل */

  width: 200px;            
  background-color: #d6dccb60; 
  backdrop-filter: blur(3.2px);
  box-sizing: border-box;    
  padding: 10px;     /* مسافة اختيارية بين الإطار والصورة */
  
  /* --- أهم جزء للشكل --- */
  border-radius: 30px;       /* مستطيل بزوايا منحنية */
  /* لعمل دائرة كاملة، استخدم: border-radius: 50%; */
  
  /* --- الخدعة السحرية لإخفاء الأطراف الخارجة --- */
  overflow:hidden; 
}

/* تنسيق الصورة داخل الحاوية */
.profile-img img {
  display: block;
  width: 100%;               /* تجعل الصورة تملأ الحاوية */
  height: auto;              /* تحافظ على أبعاد الصورة (اختياري) */
  
}

/*--------------------------------------------------*/
.Htext {
    max-width: 600px;
    font-weight: 400;
}

.Htext h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-top: 3.5rem ;
    margin-bottom: 1.5rem;
}

/* 4. الحاوية العامة للصناديق (Flexbox System) */
section {
    width: min(90em, 95%);
    margin: 3em auto;
background: rgba(255, 255, 255, 0);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(3.2px);
-webkit-backdrop-filter: blur(3.2px);
    padding: 4rem 2rem;
    border-radius: 2em;
}

.Tcontainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; /* مسافة متساوية بين الكروت */
}

.section-title {
    flex: 1 1 100%; /* تأخذ السطر كاملاً */
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.6rem;
    font-weight: 700;
}

/* 5. تصميم الكروت (Items) */
.item {
    background-color: var(--primary-color);
    width: 280px;
    min-height: 280px;
    padding: 2rem;
    border-radius: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.item h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.item:hover {
    transform: translateY(-12px) scale(1.03);
    background-color: #e8ede0;
    box-shadow: var(--shadow);
}


/* 6. الأنيميشن (الظهور التدريجي) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تأخير ظهور الكروت ليعطي تأثير تتابع */
.item:nth-child(2) { animation-delay: 0.2s; }
.item:nth-child(3) { animation-delay: 0.4s; }
.item:nth-child(4) { animation-delay: 0.6s; }
.item:nth-child(5) { animation-delay: 0.8s; }

/* 7. الفوتر */
footer {
    padding: 3rem;
    text-align: center;
    color: var(--secondary-color);
}

.footer-links {
    margin-top: 1rem;
}

footer a {
    margin: 0 15px;
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}
.footer-links a:hover{
     transform: scale(1.15);
  color : var(--white);

}
/* 8. التجاوب مع الجوال (Responsive) */
@media (max-width: 768px) {
    .Hcontainer {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        gap: 1.5rem;
        flex-direction: row;
    }
    
    .item {
        width: 100%; /* الكروت تأخذ كامل العرض في الجوال */
    }
}