: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;
  
}
/*-----------------------------------------------*/

/* إعدادات عامة لمنع خروج العناصر عن الحدود */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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%);
    min-height: 100vh;
}


.front{
    font-family:"Tajawal", sans-serif; ;
    text-align: center;
    font-size: 35px;
    font-weight: 500;
    color: var(--secondary-color);
}

.bento-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 أعمدة متساوية */
    grid-auto-rows: minmax(100px, auto);
    gap: 20px;
    max-width: 1100px;
    width: 100%;
    margin: 40px auto;
}
img{
    border-radius: 30px;
}
/* المربعات مع تأثير التوهج */
.bento-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* تأثير التوهج عند التمرير (Glow Effect) */
.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(214, 220, 203, 0.6); /* لون من خلفيتك */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 
                0 0 20px rgba(214, 220, 203, 0.2); /* توهج خفيف */
}

/* تنسيق الصور */
.bento-item img {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    object-fit: contain; 
    padding: 15px;
    transition: transform 0.5s ease;
}

.bento-item:hover img {
    transform: scale(1.05); /* زووم خفيف للصورة عند الهوفر */
}

/* --- التوزيع الصحيح (نظام 6 أعمدة) --- */
.hero-box { grid-column: 1 / span 3; grid-row: span 5; }
.discover-box { grid-column: 4 / span 3; grid-row: span 5; }
.details-box { grid-column: 1 / span 6; grid-row: span 1; padding: 25px; }
.footer-box { grid-column: 1 / span 6; grid-row: auto; }

/* أنيميشن الظهور (Fade In) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.bento-item {
    animation: fadeIn 0.6s ease forwards;
}
.details-box {
    grid-column: span 6; /* يمتد على كامل عرض المربعين أعلاه */
    grid-row: span 1;
    background: #D6DCCB;
background: linear-gradient(150deg,rgba(214, 220, 203, 0.86) 17%, rgba(0, 0, 0, 0.781) 53%, rgba(255, 255, 255, 0.616) 82%);
    display: flex;
    flex-direction: row; /* لجعل الألوان بجانب بعضها */
    gap: 15px;
}




.bento-item-footer {
object-fit: cover;
    grid-column: span 6; /* يمتد على كامل العرض في الأسفل */
    grid-row: auto;
    min-height: 100px;
    
}


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);

}
@media (max-width: 768px) {
    @media (max-width: 900px) {
        
        
        
        
        
        
    .bento-container {
        grid-template-columns: 1fr; /* عمود واحد فقط */
    }
    
    .hero-box, .discover-box, .details-box, .footer-box {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: 250px;
    }
}

    .Hcontainer {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        gap: 1.5rem;
        flex-direction: row;
    }
    
    .item {
        width: 100%; /* الكروت تأخذ كامل العرض في الجوال */
    }
}