* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

.content-section {
    scroll-margin-top: 180px; 
    display: none; 
}

.content-section:target { display: block; }

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #321c2a;
    color:#fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow:hidden;
}

header {
    background: linear-gradient(90deg, #ff007f, #4a0e2a);
    padding: 15px;
    text-align:center ;
    position: relative;
    z-index: 1000;
     flex-shrink: 0;
      height: 80px;
      display: flex;
}

header h1 { font-size: 3rem; text-transform: uppercase; letter-spacing: 2px;}



footer {
    background: #111;
    color: #d81b60;
    text-align: center;
    padding: 10px;
    border-top: 2px solid #d81b60;
    flex-shrink: 0;
    height: 60px;
    position: fixed;
    bottom: 0;left: 0;right: 0;
    z-index: 1000;
}
#details-view { display: none; flex: 1;  overflow: hidden;}


body:has(section:target) 
#home-view { display: none; }


body:has(section:target)
#details-view { display: flex; }

#navbar {
    width: 250px;
    background: #111;
    border-right: 2px solid #ff007f;
    position: sticky;
    top: 110px; 
    height: calc(100vh - 110px);
    overflow-y: auto;
}

.nav-item { 
    display: block; 
    color: #bbb; 
    padding: 15px  20px; 
    text-decoration: none;
    border-bottom: 1px solid #222;
    font-size: 0.9rem; /*note:اضافة خاصة للناف*/
    transition: 0.3s;

}
.nav-item:hover { 
   
      background: #ff007f;
         color: #fff;
           }

            /*note:زر الرجوع للخلف بالناف*/
     .back { background: #ff007f;
             color: #fff; 
             text-align: center;
             }

#content-box {
     flex: 1; 
      padding: 40px;
       overflow-y: auto;
     }

h2 { font-size: 2.2rem; color: #fff; border-bottom: 3px solid #ff007f; margin-bottom: 20px; display: inline-block; }
.desc-text p { font-size: 1.1rem; color: #ccc; line-height: 1.8; }

@media screen and (max-width: 900px) {
    #details-view { 
        display:block;
    }
    
    #navbar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 80px; 
        z-index: 999;
        display: flex;
        flex-wrap: wrap;
        background: #111;
        border-bottom: 2px solid#ff007f;
    }

    .nav-item { 
        flex: 1 1 30%;
         font-size: 11px;
          padding: 12px 5px;
           text-align: center; 
           border: 0.5px solid#222;
        }
    .back {
         flex: 1 1 100%; 
        }
    .content-section {
        scroll-margin-top: 300px; 
        padding: 20px;
        margin: 10px;
    }
}

.flex-gallery { column-count: 3; 
    column-gap: 15px; 
}
.flex-gallery img { width: 100%;
     margin-bottom: 15px; 
     border-radius: 10px; 
     border: 2px solid #333; 
    }

footer { background: #111; 
    color: #ff007f;
     text-align: center;
      padding: 20px;
       border-top: 2px solid #ff007f;
     }

.grid-container { display: flex; 
    flex-wrap: wrap; 
    gap: 20px;
     justify-content: center;
      padding: 40px 20px; 
    }
.card { 
    width: 180px;
     height: 130px; 
     background: #151515; 
     border-radius: 15px; 
     display: flex; 
     align-items: center; 
     justify-content: center; 
     text-decoration: none;
      color: #ff007f; 
      font-weight: bold;
      border: 1px solid #333;
     }
     
     *{
         box-sizing: border-box;
          margin: 0;
           padding: 0; 
        }

html {
    scroll-behavior: smooth;
}

.content-section {
    scroll-margin-top: 180px; 
    display: none; 
}

.content-section:target { 
    display: block; 
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: linear-gradient(90deg, #ff007f, #4a0e2a);
    padding: 25px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header h1 { font-size: 3rem; text-transform: uppercase; }

#details-view { 
    display: none;
     flex: 1; 
    }
body:has(section:target) 

#home-view { display: none; }

body:has(section:target)

#details-view { display: flex; }

#navbar {
    width: 250px;
    background: #111;
    border-right: 2px solid #ff007f;
    position: sticky;
    top: 110px; 
    height: calc(100vh - 110px);
}

.nav-item { 
    display: block; 
    color: #bbb;
     padding: 20px; 
     text-decoration: none;
      border-bottom: 1px solid #222;
     }
.nav-item:hover { 
    background: #ff007f;
     color: #fff;
     }
.back { 
    background: #ff007f; 
    color: #fff;
     text-align: center; 
    }

#content-box { 
    flex: 1
    ; padding: 10px;
    margin-top: 20px;
 }

h2 { font-size: 2.2rem;
     color: #fff;
      border-bottom: 3px solid #ff007f;
       margin-bottom: 20px; 
       display: inline-block;
     }
.desc-text p { 
    font-size: 1.1rem; 
    color: #ccc; 
    line-height: 1.8;
 }

@media screen and (max-width: 800px) {
    #details-view { flex-direction: column; }
    
    #navbar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 80px; 
        display: flex;
        flex-wrap: wrap;
        
    }

    .nav-item {
         flex: 1 1 30%;
          font-size: 10px; 
          padding: 10px 5px; 
          text-align: center;
         }
    .back { 
        flex: 1 1 100%; 
    }

    .content-section {
        scroll-margin-top: 350px; 
    }
}

.flex-gallery {
     column-count: 3;
     column-gap: 5px; 
    }
.flex-gallery img {
     width: 100%;
      margin-bottom: 10px;
      border-radius: 8px;
       border: 1px solid #333; 
    }

footer { background: #111;
     color: #ff007f;
      text-align: center; 
      padding: 20px;
       border-top: 2px solid #ff007f;
     }

.grid-container { 
    display: flex; 
    flex-wrap: wrap;
     gap: 20px; 
     justify-content: center;
      padding: 50px;
     }
.card { 
    width: 180px; 
    height: 130px; 
    background: #151515;
     border-radius: 15px;
      display: flex;
       align-items: center;
        justify-content: center; 
        text-decoration: none;
         color: #ff007f; 
         font-weight: bold;
          border: 1px solid #333;
         }* { box-sizing: border-box; 
            margin: 0; 
            padding: 0;
         }

body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #1a0f16;
    color: #eee;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

header {
    background: linear-gradient(90deg, #d81b60, #4a0e2a); 
    padding: 15px;
    text-align: center;
    flex-shrink: 0;
    height: 80px;
    z-index: 1000;
    position:flex;
    top: 0; left: 0; right: 0 ;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

header h1 { font-size: 1.5rem;
     text-transform: uppercase;
      letter-spacing: 2px;
     }
header p { font-size: 0.8rem;
     opacity: 0.8;
      margin-top: 5px;
     }



#details-view {
    display: none;
    flex: 1;
    overflow: hidden; 
} 

body:has(section:target) #home-view { display: none; }
body:has(section:target) #details-view { display: flex; }


#navbar {
    width: 220px;
    background: #111;
    border-right: 1px solid #d81b60;
    overflow-y: auto;
}

.nav-item { 
    display: block; color: #bbb; padding: 15px 20px; 
    text-decoration: none; border-bottom: 1px solid #222; 
    font-size: 0.9rem; transition: 0.3s;
}

.nav-item:hover { background: #d81b60; color: #fff; }
.back { background: #d81b60; color: #fff; text-align: center; font-weight: bold; }


#content-box {
    flex: 1;
    padding: 30px;
    overflow-y: auto; 
    background: #1a0f16;
}

.content-section {
    display: none;
    background: #251620; 
    padding: 25px;
    border-radius: 15px; 
    border: 1px solid #3d2434;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
}

.content-section:target { display: block; }


h2 { 
    font-size: 1.4rem; color: #d81b60; 
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid #3d2434; 
}

p, li { font-size: 0.95rem; line-height: 1.6; color: #ccc; margin-bottom: 10px; }


.goals-flex { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 15px; }
.goal-card {
    flex: 1; min-width: 200px;
    background: #111; padding: 15px;
    border-radius: 10px; border-left: 4px solid #d81b60;
}

.flex-gallery { column-count: 3; column-gap: 5px; }
.flex-gallery img { width: 100%; margin-bottom: 10px; border-radius: 8px; border: 1px solid #333; }

.grid-container { 
    display: flex; flex-wrap: wrap; gap: 15px; 
    justify-content: center; padding: 40px; 
    overflow-y: auto; height: 100%;
}

.card { 
    width: 150px; height: 100px; background: #251620; 
    border-radius: 12px; display: flex; align-items: center; 
    justify-content: center; text-decoration: none; color: #d81b60; 
    font-weight: 500; font-size: 0.9rem; border: 1px solid #3d2434;
    transition: 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px #d81b6044; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media screen and (max-width: 800px) {
    #details-view { flex-direction: column; }
    #navbar { width: 100%; height: auto; display: flex; flex-wrap: wrap; }
    .nav-item { flex: 1 1 30%; font-size: 10px; padding: 10px 5px; text-align: center; }
}