/* =========================
   Reset
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Cairo',sans-serif;
    background:#ffffff;
    color: #504e4e;
    overflow-x:hidden;
    min-height:100vh;
}



/* =========================
   NAVBAR
========================= */

nav{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:72px;

    background:#fff;

    border-bottom:1px solid #ececec;

    display:flex;
    justify-content:center;

    z-index:999;

    transition:.35s;

}

nav.scrolled{

    height:64px;

    box-shadow:0 10px 30px rgba(0,0,0,.06);

}

.container{

    width:92%;
    max-width:1200px;

    display:flex;
    justify-content:space-between;
    align-items:center;

}

/* Logo */

.logo{

    display:flex;
    align-items:center;
    gap:10px;

    text-decoration:none;
    color:#111;

    font-size:22px;
    font-weight:700;

}

.logo i{

    color:#e63946;
    font-size:20px;

}

/* Menu */

.menu{

    display:flex;
    gap:38px;

    list-style:none;

}

.menu a{
    text-decoration:none;
    color:#555;
    font-size:15px;

    font-weight:600;

    padding:6px 0;
    transition:.25s;
}

.menu a:hover{

    color:#d98aa9;

}

/* Login */

.login{

    padding:10px 18px;

    border:1px solid #ddd;

    border-radius:8px;

    text-decoration:none;

    color:#111;

    font-weight:600;

    transition:.25s;

}

.login:hover{

    background:#111;
    color:#fff;

}

/* Mobile Button */

.toggle{

    display:none;

    font-size:24px;

    cursor:pointer;

}

/* ================= MOBILE ================= */

@media(max-width:900px){

    .toggle{

        display:block;

    }

    .menu{

        position:absolute;

        top:72px;
        left:0;

        width:100%;

        background:#fff;

        display:none;

        flex-direction:column;

        padding:20px 0;

        border-bottom:1px solid #eee;

    }

    .menu.active{

        display:flex;

    }

    .menu li{

        text-align:center;
        padding:10px 0;

    }

    .login{

        display:none;

    }

}

/* Demo */

.hero {
    position: relative;
    overflow: hidden;

    padding-top: 140px;

    text-align: center;

    background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.45)
        ),
        url("../images/gg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}


/* =========================
   طبقة السماء
========================= */

.sky-effects {
    position: absolute;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 1;
}


/* =========================
   النجمة العادية
========================= */

.sky-star {
    position: absolute;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: white;

    box-shadow:
        0 0 5px white,
        0 0 10px rgba(255,255,255,.7);

    animation:
        starFall var(--duration) linear forwards;

    opacity: 0;
}


@keyframes starFall {

    0% {
        opacity: 0;

        transform:
            translate(0, 0)
            scale(var(--scale));
    }

    15% {
        opacity: var(--opacity);
    }

    70% {
        opacity: var(--opacity);
    }

    100% {
        opacity: 0;

        transform:
            translate(
                var(--move-x),
                var(--move-y)
            )
            scale(var(--scale));
    }
}


/* =========================
   الشهاب
========================= */

.hero {

    position: relative;

    overflow: hidden;

    padding-top: 140px;

    text-align: center;

    background:
        linear-gradient(
            rgba(0,0,0,0.45),
            rgba(0,0,0,0.45)
        ),
        url("../images/gg.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-direction: column;
}


/* =========================================
   طبقة النجوم
========================================= */

.falling-stars {

    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 1;
}


/* =========================================
   النجمة
========================================= */

.falling-star {

    position: absolute;

    width: 3px;

    height: 3px;

    border-radius: 50%;

    background: #fff;

    box-shadow:
        0 0 4px #fff,
        0 0 8px rgba(255,255,255,.8),
        0 0 14px rgba(255,255,255,.4);

    opacity: 0;

    animation:
        fallingStar var(--duration) ease-in forwards;
}


/* =========================================
   حركة النجمة
========================================= */

@keyframes fallingStar {

    0% {

        opacity: 0;

        transform:
            translate(0, 0)
            scale(var(--scale));

    }


    10% {

        opacity: var(--opacity);

    }


    50% {

        opacity: var(--opacity);

    }


    80% {

        opacity: calc(var(--opacity) * .7);

    }


    100% {

        opacity: 0;

        transform:
            translate(
                var(--move-x),
                var(--move-y)
            )
            scale(var(--scale));

    }

}


/* =========================================
   الموبايل
========================================= */

@media (max-width: 768px) {

    .falling-star {

        width: 2px;

        height: 2px;

    }

}

.hero h1{

    font-size:50px;

    margin-bottom:15px;

}

.hero p{

    color:#777;
    font-size:18px;

}




/* =========================
   Variables
========================= */

:root{
    --black:#171717;
    --white:#ffffff;
    --pink:#f3bfd0;
    --pink-dark:#d98aa9;
    --gray:#f7f7f7;
    --border:#ececec;
    --shadow:0 10px 30px rgba(0,0,0,.08);
}

/* =========================
   Background
========================= */

#background{
    position:fixed;
    inset:0;
    z-index:-1;
    overflow:hidden;
}

#background::before,
#background::after{
    content:"";
    position:absolute;
    width:400px;
    height:400px;
    border-radius:50%;
    background:rgba(243,191,208,.15);
    filter:blur(100px);
}

#background::before{
    top:-100px;
    right:-100px;
}

#background::after{
    bottom:-100px;
    left:-100px;
}

/* =========================
   Navbar
========================= */

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:999;
}



/* =========================
   MOBILE
========================= */

@media(max-width:768px){

    .menu-btn{
        display:block;
    }

    nav ul{
        position:fixed;
        top:70px;
        right:-100%;
        width:70%;
        height:100vh;
        background:#fff;
        flex-direction:column;
        padding:30px;
        gap:20px;
        transition:.4s ease;
        box-shadow:-5px 0 20px rgba(0,0,0,0.1);
    }

    nav ul.active{
        right:0;
    }
}
/* =========================
   Hero
========================= */

.hero{
    /* min-height: 68vh; */
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding: 90px 10px 20px;
}

.hero-content{
    max-width:700px;
}

.hero h1{
    font-size:60px;
    margin-bottom:20px;
    color: #e9e9e9;
}

.hero p{
    font-size:20px;
    line-height:2;
    margin-bottom:35px;
    color: #ebebeb;
}

.btn{
    display:inline-block;
    padding:14px 35px;
    background:var(--pink);
    color: #363434;
    text-decoration:none;
    border-radius:50px;
    font-weight:700;
    transition:.3s;
}

.btn:hover{
    transform:translateY(-4px);
    background:var(--pink-dark);
    color:#fff;
}

/* =========================
   Cards
========================= */

.cards{
    width:90%;
    max-width:1200px;
    margin:50px auto;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:25px;
    padding:35px 25px;
    text-align:center;
    box-shadow:var(--shadow);
    transition:.3s;
    font-size: 0.8rem;
}

.card:hover{
    transform:translateY(-10px);
}

.card i{
    font-size: 2rem;
    color:var(--pink-dark);
    margin-bottom: 20px;
}

.card h2{
    margin-bottom:10px;
}

.card p{
    color:#666;
    line-height:1.8;
}
/* =========================
   Counter
========================= */

.counter{
    width:90%;
    max-width:1200px;
    margin:100px auto;
    text-align:center;
}

.counter h2{
    font-size:40px;
    margin-bottom:50px;
}

.numbers{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:25px;
}

.numbers div{
    background:#fff;
    border-radius:25px;
    padding:30px;
    box-shadow:var(--shadow);
}

.numbers span{
    display:block;
    font-size:45px;
    font-weight:700;
    color:var(--pink-dark);
}

.numbers p{
    margin-top:10px;
    color:#666;
}

/* =========================
   Footer
========================= */

footer{
    /* margin-top:80px; */
    padding: 1rem;
    text-align:center;
    background:#fafafa;
    border-top:1px solid var(--border);
}

footer p{
    /* margin:8px 0; */
    color:#555;
}
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 34px;
   color: #ecb361;
}

.ornament-divider::before,
.ornament-divider::after {
    content: '';
    width: 60px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--c-gold),
        transparent
    );
}
/* =========================
   Responsive
========================= */

@media(max-width:900px){

    nav ul{
        display:none;
    }

    .menu-btn{
        display:block;
    }

    .hero h1{
        font-size:42px;
    }

    .hero p{
        font-size:18px;
    }

}

@media(max-width:600px){

    nav{
        padding:15px;
    }

    .logo{
        font-size:18px;
    }

    .hero h1{
        font-size:32px;
    }

    .hero p{
        font-size:16px;
    }

    .counter h2{
        font-size:28px;
    }

    .numbers span{
        font-size:35px;
    }

}

.gallery-section{

    padding: 20px 5%;
}



.gallery-title{

    text-align:center;

    margin-bottom:40px;

}



.gallery-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

    gap:25px;

}



.gallery-card{

    background:#fff;

    border-radius:25px;

    overflow:hidden;

    box-shadow:0 15px 40px rgba(0,0,0,.1);

    transition:.3s;

}



.gallery-card:hover{

    transform:translateY(-8px);

}



.gallery-image{

    height:260px;

    position:relative;

    overflow:hidden;

    cursor:pointer;

}



.gallery-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.4s;

}



.gallery-card:hover img{

/* transform:scale(1.08); */
}


.like-btn{

    position:absolute;

    top:15px;

    right:15px;

    border:none;

    background:rgba(0,0,0,.35);

    backdrop-filter:blur(8px);

    width:55px;

    height:55px;

    border-radius:50%;

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    color:white;

    cursor:pointer;

    transition:.3s;

}



.like-btn i{

    font-style:normal;

    font-size:25px;

    line-height:20px;

    color:white;

    transition:.3s;

}



.like-btn span{

    font-size:11px;

    margin-top:5px;

    color:white;

}



.like-btn:hover{

    transform:scale(1.12);

    background:rgba(0,0,0,.5);

}



.like-btn.active i{

    color: #e63946;

    animation:heartPop .35s ease;
}



@keyframes heartPop{


    0%{

        transform:scale(1);

    }


    50%{

        transform:scale(1.5);

    }


    100%{

        transform:scale(1);

    }


}


.gallery-info{

    padding:20px;

}

.gallery-info a{
  text-decoration: none;
  color: #e63946;
}

.gallery-info h3{
    margin:0;
}
.gallery-info p {
    color: #666;
    font-size: 1rem;
    text-align: justify;

    display: -webkit-box;
    -webkit-line-clamp: 3; /* عدد الأسطر */
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 75px;
}


.gallery-date {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgb(230 57 70);
    color: #fff;
    padding: 3px 11px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 2;
}

.gallery-info span{

    color:#777;

    font-size:14px;

}




/* Lightbox */


.gallery-lightbox{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.9);

    align-items:center;

    justify-content:center;

    z-index:9999;

}



.gallery-lightbox img{

    max-width:85%;

    max-height:80%;

    border-radius:20px;

}



.close-lightbox,
.gallery-prev,
.gallery-next{

    position:absolute;

    border:0;

    background:white;

    width:45px;

    height:45px;

    border-radius:50%;

    font-size:22px;

    cursor:pointer;

}



.close-lightbox{

    top:30px;

    right:30px;

}



.gallery-prev{

    left:30px;

}



.gallery-next{

    right:30px;

}



.lightbox-title{

    position:absolute;

    bottom:30px;

    color:white;

    font-size:20px;

}



@media(max-width:600px){

    .gallery-image{

        height:220px;

    }

}
.liked-users{

    display:flex;

    border-top: 1px #e3e3e3 solid;

    padding-top: 0.5rem;

    align-items:center;

    gap:10px;

    margin-top:15px;

    flex-wrap:wrap;
}


.liked-user{

    display:flex;

    align-items:center;

    gap:7px;

    background:#f5f5f5;

    padding: 4px 10px;

    border-left: 1px #e5b0c5 solid;

    border-radius:20px;

    font-size:13px;

    margin-bottom: 0.5rem;

    margin-right: 0.6rem;
}


.liked-user img{

    width:30px;

    height:30px;

    border-radius:50%;

    object-fit:cover;

}
.like-btn i{
    color:white;
}


solid #d98aa9;
}


.pagination a.active{
    background:#d98aa9;
    color:white;
}
.pagination{
    display:flex;
    justify-content:center;
    gap:8px;
    /* margin:30px 0; */
}


.pagination a{
    padding:8px 14px;
    background:#eee;
    color:#333;
    border-radius:8px;
    text-decoration:none;
}
.pagination .active-page{
    background:#d98aa9;
    color:white;
    padding:8px 14px;
    border-radius:8px;
    font-weight:bold;
}


/* ==========================================
   profile-page
========================================== */

.profile-page{
    /* margin-top: 5rem; */
    padding:30px;
}


.profile-card{
    background:#fff;
    border-radius:20px;
    padding:35px;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    margin-bottom:25px;
}


button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}
.big-profile img{

    width:170px;

    height:170px;

    border-radius:50%;

    object-fit:cover;

    border: 5px solid #d98aa9;

    margin:auto;
}



.big-profile h2{

    margin:20px 0 10px;

}



.big-profile span{

    background: #d98aa9;

    color:#fff;

    padding:8px 18px;

    border-radius:30px;

    font-size:14px;
}



.upload-profile{

    margin-top:25px;

}



.upload-profile input{

    display:none;

}



.upload-profile label{

    display:inline-flex;

    gap:10px;

    align-items:center;

    background:#111;

    color:#fff;

    padding:14px 25px;

    border-radius:12px;

    cursor:pointer;

}





.info-card,
.security-card{

    background:#fff;

    padding:30px;

    border-radius:20px;

    box-shadow:0 8px 25px rgba(0,0,0,.06);

    margin-bottom:25px;

}



.info-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}



.info-item{

    display:flex;

    align-items:center;

    gap:15px;

    padding:20px;

    background:#f7f7f7;

    border-radius:15px;

}



.info-item i{

    width:50px;

    height:50px;

    background: #d98aa9;

    color:#fff;

    border-radius:12px;

    display:flex;

    align-items:center;

    justify-content:center;
}



.info-item p{

    color:#777;

    font-size:14px;
}



.role{

    background: #fbe9f0;

    color: #ff5d6a;

    display:inline-block;

    padding:5px 15px;

    border-radius:20px;

    font-size:14px;
}





.security-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:20px 0;

    border-bottom:1px solid #eee;

}



.security-row button{

    background: #d98aa9;

    color:#fff;

    padding:10px 20px;

    border-radius:10px;
}
.title {
    display: flex
    ;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}
.title button {
    background: #d98aa9;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
}




@media(max-width:768px){


    .profile-page{

        padding:15px;

    }



    .info-grid{

        grid-template-columns:1fr;

    }



    .info-item{

        flex-direction:column;

        text-align:center;

    }


    .security-row{

        flex-direction:column;

        gap:15px;

    }


}
.modal{

    display:none;

    position:fixed;

    left:0;

    top:0;

    width:100%;

    height:100%;

    background:rgba(0,0,0,.5);

    justify-content:center;

    align-items:center;

    z-index:9999;

}

.modal-content{

    background:#fff;

    padding:25px;

    border-radius:12px;

    width:95%;

    max-width:450px;

}

.modal-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.modal-header span{

    font-size:28px;

    cursor:pointer;

}

.form-group{margin-bottom: 8px;}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:bold;

}

.form-group input{

    width:100%;

    padding:12px;

    border:1px solid #ddd;

    border-radius:8px;

    outline:none;

}

.save-btn{

    width:100%;

    padding:12px;

    border:none;

    background:#007bff;

    color:#fff;

    border-radius:8px;

    cursor:pointer;

    font-size:16px;

}
.alert{

    width:100%;

    padding:15px 18px;

    border-radius:10px;

    margin-bottom:20px;

    font-size:15px;

    display:flex;

    align-items:center;

    gap:10px;

    font-weight:600;

}

.success{

    background:#eafaf1;

    color:#198754;

    border:1px solid #b6e4c9;

}

.error{

    background:#fdecec;

    color:#dc3545;

    border:1px solid #f5c2c7;

}
.last_login{
    background: #f1f1f1;
    padding: 0.4rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 1rem;
}
}
/* ==========================================
   profile-page End
========================================== */





