@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: #200016;
}

header {
    position: fixed;
    width: 95%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    font-family: cursive;
}

header .logo {
    font-size: 30px;
    font-family: cursive;
}

header ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}

header li {
    padding-right: 30px;
}

header ul li a {
    padding: 6px 15px;
    border-radius: 20px;
}

header ul li a:hover {
    background-color: #fff;
    color: #200016;
}

body{
    margin :0;
    background-color: #210002;
    font-family: Poppins;
    font-size: 15px;
}
.banner{
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.banner .bg{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: auto 100%;
    background-position: center bottom;
    transition: 0.1s;
}
.banner .bg-1{
    background-image: url('img/0.png');
}
.banner .bg-2{
    background-image: url('img/1.png');
}
.banner .bg-3{
    background-image: url('img/2.png');
}
.banner .bg-4{
    background-image: url('img/3.png');
}
.banner .bg-5{
    background-image: url('img/4.png');
}
.banner .bg-6{
    background-image: url('img/5.png');
}
.banner .bg-7{
    background-image: url('img/6.png');
}
.banner .bg-8{
    background-image: url('img/7.png');
}
.banner .bg-9{
    background-image: url('img/8.png');
}
.banner  h1{
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11rem;
    font-family: 'Pacifico', cursive;
    color: #fff;
}


.intro{
    min-height: 50vh;
    color: #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.intro img{
    width: 130px;
    height: 130px;
    border-radius: 50%;
}
.intro p{
    max-width: 100%;
}
.intro button{
    background-color: #FD0003;
    padding: 10px 50px;
    border: 1px solid #591F1D;
    border-radius: 5px;
    color: #fff;
    font-family: Poppins;
    font-weight: 500;
}

.pra {
    font-size: 20px;
    font-family: cursive;
    margin: 10px;
}

 
/* div */
.me  {
    display: flex;
    flex-direction: column;
    font-size: 50px;
    font-family: cursive;
}

/* h3 */
h3 {
    padding: 0px;
    margin: 10px 10px 0px 10px;
    font-size: 23px;
}

/* p */
p {
    padding: 0px;
    margin: 10px 15px 15px 15px;
    font-size: 19px;
    font-family: cursive;
}

.animation-show{
    transform: translateY(50px);
    opacity: 0;
    transition: 0.7s;
    font-size: 20px;
    font-family: monospace;

}
.active .animation-show{
    transform: translateY(0);
    opacity: 1;
}
.animation-show:nth-child(2){
    transition-delay: 0.3s;
}
.animation-show:nth-child(3){
    transition-delay: 0.6s;
}
.animation-show:nth-child(4){
    transition-delay: 0.9s;
}
.library{
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    color: #fff;
}
.library img{
    width: 90%;
    height: 500px;
    object-fit: cover;
}
@media screen and (max-width: 768px){
    .banner h1{
        font-size: 5rem;
    }
    .library{
        grid-template-columns: repeat(2, 1fr);
    }
    .library img{
        height: 300px;
    }
}

/* ✨ اجعل الهيدر أصغر لما تصغر الشاشة */
@media (max-width: 768px) {
    header {
        padding: 15px 30px;
    }
    .logo {
        font-size: 20px;
    }
    ul li a {
        font-size: 16px;
    }
}

/* 📌 عند الشاشات الصغيرة جدًا (الموبايل) */
@media (max-width: 480px) {
    header {
        padding: 10px 20px;
    }
    .logo {
        font-size: 18px;
    }
    ul {
        gap: 10px;
    }
    ul li a {
        font-size: 14px;
    }
}





footer {
    background: linear-gradient(to top, #000000, #210002);
    border-radius: 20px 20px 0px 0px;
    color: white;
    text-align: center;
    padding: 40px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out;
}

footer .container {
    max-width: 800px;
    margin: auto;
}

footer h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

footer .social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: 0.3s;
}

footer .social-icons a:hover {
    color: #f39c12;
    transform: scale(1.2);
}

footer .copyright {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
    font-family: monospace;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #f39c12;
    transform: scale(1.2);
}

/* h2 about */
.h22 {
    padding: 10px;
    font-size: 25px;
    font-family: cursive;
}