*{
    margin: 0;
    padding: 0;

    font-family: "Cairo", sans-serif;
}

body{
  
    overflow-x: hidden;

}
section{
    min-height: 100vh;
    min-width: 100vw;
}

#hero img{
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
}

#hero{
    height: 100vh;
    overflow: hidden;
    min-height:700px;
    min-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-image: url("images/pexels-pixabay-531756.jpg");
    position: relative;
    overflow: hidden;
    z-index: 100;
    /* background-attachment: fixed; */
}

#hero img{
    width: 100%;
    position: absolute;
    bottom: -20%;
    left: 0%;
}

#hero .text h1{
    color: white;
    font-size: clamp(60px, 12vw, 200px);
    font-weight: 200;
    padding-right: 50px;
    margin-bottom: 100%;
    font-family: "Aref Ruqaa", serif;

}
.vid{
    width: 100%;
    max-width: 450px;
    height: auto;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 5%;
}

video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container{
    overflow-x: hidden;
}
#logo span{
        font-family: "Aref Ruqaa", serif !important;
        font-size:30px;
        margin-bottom: 30px;
}

#logo{
    margin-bottom: 20px;
}
.intro{
    height:auto;
    min-height: 70vh;
    padding: 20px;
    width: 100vw;
    background-color: #DCCEB1;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.intro .main{
    width: 70vw;
    height: auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-around;
    margin: auto;
    flex-wrap: wrap;
    gap: 20px;
}

.intro .title{
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: #000;
}
.intro .text{
    font-size: clamp(16px, 2.5vw, 22px);
    max-width: 100%;
    font-weight: 300;
    text-align: right;

}


#intro2{
    height:auto;
    min-height: 80vh;
    
    width: 100vw;
    background-color: #DCCEB1;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

#intro2 .main{
    width: 70vw;
    height: 70%;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-around;
    margin: auto;
    flex-wrap: wrap;
    gap: 20px;
}

#intro2 .title{
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #000;
}
#intro2 .text{
    font-size: clamp(16px, 2.5vw, 22px);
    max-width: none;
    width: 50%;
    font-weight: 300;
    text-align: right;

}

#start1{
    background: #000;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
#blockt{
    height: 120px;
    width: 100%;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}

#start1 h1{
    position: absolute;
    /* color: #D4AF37; */
    color: #B8860B;
    /* color: #C9A227; */
}
#blockb{
    height: 120px;
    width: 100%;
    background: #000;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 3;
}
#block{
    width: 100vw;
    height: 100vh;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    background-color: transparent;
}

.sketchfab-embed-wrapper{
    z-index: 2;
    height:100%;
}


.stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-image: url(images/pexels-pixabay-531756.jpg); 
    color: #000;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 50px 50px;
    background-attachment: fixed;
    min-height: unset;
    height: 25vh;
    position: relative;
    min-height: 150px;
}

.stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    z-index: 2;

}

.stick{
    width: 2px;
    height: 40px;
    z-index: 2;
    background: #ddcdb1;
}

section{
    overflow: hidden;
}

.counter {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stats p {
    margin: 0;
    font-size: 14px;
}


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.timeline {
    position: relative;
    width: 100vw;
    max-width: 800px;
    min-width: 500px;
    margin-top: 20px;
    height: auto;


}

#times .text{
    width: 100%;
    font-family: "Cairo", sans-serif;
    height: 100px; 
    display: flex;
    justify-content: center;
    align-items: center; 
    font-size: 30px;
    font-weight: 200;
}

#times{
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: auto;
    background-color: #DCCEB1;

}

.timeline::after {
    content: '';
    position: absolute;
    min-height: none;
    width: 4px;
    height: 85%;
    background: #3498db;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.containerc {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    text-align: center;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px #1a1a1a8b solid;
        box-shadow: 5px 5px 20px gray;
        text-align: center !important;

}

.content h3{
            text-align: center !important;

}

.content h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

#times h3{
    font-size: 25px;
}

.left .content {
    margin-right: 20px;
    text-align: center !important;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;

}

.right .content {
    margin-left: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;

}

.containerc::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #3498db;
    border-radius: 50%;
    top: 25px;
    right: -13.5px;
    z-index: 1;
    background-color: #3498db;
}

.right::after {
    left: -13.5px;
}

button {
    margin-top: 10px;
    border: none;
    height: 35px;
    background: #3498db;
    color: white;
    width: 100%;
    font-size: 20px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: flex;
}

button:hover {
    background: #2980b9;
}

.happen{
    align-items: center;
    display: flex;
    min-height: 85vh;
    height: auto;
    padding: 30px;
    min-height: 70vh;
    
}
.happen img{
    width: auto;
    height: 300px;
    position: relative;
    rotate: calc(200deg);
}
.happen .text{
    width: 40%;
    min-width: 350px;
}
.happen .image{
    height: 250px;
    width: 250px;
    rotate: calc(-200deg);
    position: relative;
    background-color: #c9a64691;
}

.happen .main{
    flex-direction: row-reverse;
    gap:50px;
}

#happen2 .main{
    flex-direction: row;
}

#happen2{
    background-color: #1a1a1a;
    color: #c9a646;
}

#happen2 img{
    width: auto;
    height: 300px;
    position: relative;
    rotate: calc(200deg);
}

#happen3 img{
    width: 400px;
    height: unset;
    bottom: -40px;
    left: -35%;
    
}

#roman{
    background-color: #f5f5f5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


#roman h1{
    font-size:200px;
    position: absolute;
    color: #6b7a8f;
}

#roman #blockt,#roman #blockb{
    background-color: #f5f5f5;
}

#happen5 img{
    height: 300px;
}

#happen5{
    background-color: #eaeaea;
    color: #6b7a8f;
}

#happen5 .main{
    flex-direction: row;
}

#happen4 .image,#happen5 .image,#happen6 .image{
    background-color: #66666653;
}

.image img{
    opacity: 1;
}


#happen6 img{
    left:-20%;
}


#islam{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    translate: y;
background: linear-gradient(180deg, #020617, #0f172a, #1e293b);    
}









#happen7 img{
    width: 420px;
    height: unset;
    left: -80px;
    border-radius: 20px;
}


#happen8 img{
    rotate: calc(190deg);
}

#happen8{
    background-color: #1e293b;
}

#happen8 .main{
    flex-direction: row;
}

#happen8 .text{
    color: #14b8a6;
}

#happen7 .image,#happen8 .image,#happen9 .image{
    background-color: #14b8a551;
}

#islam h1{
    font-size:200px;
    position: absolute;
    color: #14b8a6;
}

#islam #blockt,#islam #blockb{
    background-color: #1e293b;
}

#new{
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    translate: y;
    background-color:  #0A1F44;
}
#new h1{
    font-size:200px;
    position: absolute;
    color: #1E90FF;

}    

#happen9 img{
    width: 50vw;
    max-width:400px;
    min-width: 300px;
    height: unset;
    left: -50px;
    top: -20px;
    position: absolute;
    border-radius: 20px;

}

#happen10 img{
    left: -50px;
}

#happen11 img{
    width: 50vw;
    max-width:400px;
    min-width: 300px;
    height: unset;
    left: -50px;
    top: -20px;
    position: absolute;
    border-radius: 20px;

}

#happen12 img{
    width: 50vw;
    max-width:400px;
    min-width: 300px;
    height: unset;
    left: -50px;
    position: absolute;
    border-radius: 20px;

}
#happen11{
    background-color:  #0A1F44;
        color: #1E90FF;
}

#happen10 .image,#happen11 .image,#happen12 .image{
    background-color: #1e8fff48;
}


#happen11 .main{
    flex-direction: row;

}


.navbar{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    z-index:10000;
    background:transparent;
}

.burger{
    font-size:30px;
    cursor:pointer;
    color: white;
    display: none;
}

.links{
    width: 40%;
    min-width: 300px;
    display: flex;
    gap: 20px;
    color: white;
    flex-direction: row-reverse;
}

.links a{
    color: white;
}

.links a:hover{
    color: #ddcdb1;
}



#logo{
    color: white;
}

.burger-menu{
    position:fixed;
    top:0;
    right:-100%;
    width:250px;
    height:100vh;
    background:white;
    display:flex;
    flex-direction:column;
    padding:50px 20px;
    gap:20px;
    transition:0.3s;
    z-index:10001;
    background-color: #ffffff;
    box-shadow: 5px 5px 30px #1e293b;
}

.overlay{
    /* z-index: -1; */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background-color: #0000007b;
}

 a{
        text-decoration: none;
        transition: .3s;
}

.burger-menu a{
    color: #000;
}
.navbar{
    /* background-color: #f4e2c6; */
    background-color: #fff;;

    color: #000;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.burger-menu.active{
    right:0;
}

.transparent{
    background-color: transparent;
    box-shadow:none;
}

.dark-text{
    color: #000  !important;
}

.close{
    font-size:25px;
    cursor:pointer;
    margin-bottom:20px;
}#me{
    display: flex;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    padding: 50px 20px;
    height: auto; 
    overflow: hidden;
}


.start1 h1{
    font-size: clamp(40px, 10vw, 150px) !important;

}

#me .main{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20%;
    flex-direction: row;
    height: auto;
    flex-wrap: wrap; 
}

#me img{
    width: 100px; 
    height: auto;
    border-radius: 20px;
}

#me .main img{
    width: 200px;
}

#me .text{
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#seco{
    align-self: flex-end;
}

p{
    display: flex;
    align-items: center;
}

#me span{
    font-weight: 200;
    font-size: 22px;
}

.resources{
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap; /* 🔥 responsive */
    gap: 20px;
    margin-top: 40px;
}

#me .mcard{
    /* width: 80px; */
    border: #000 2px solid;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: .3s;
    background-color: #fff;
}
/* HTML (orange) */
.mcard.html:hover {
    box-shadow: 40px 0 40px rgba(255, 102, 0, 0.6),
                -40px 0 40px rgba(255, 102, 0, 0.6);
}

/* CSS (blue) */
.mcard.css:hover {
    box-shadow: 40px 0 40px rgba(0, 119, 255, 0.6),
                -40px 0 40px rgba(0, 119, 255, 0.6);
}

/* JS (yellow) */
.mcard.js:hover {
    box-shadow: 40px 0 40px rgba(255, 221, 0, 0.7),
                -40px 0 40px rgba(255, 221, 0, 0.7);
}

/* GSAP (green or purple) */
.mcard.gsap:hover {
    box-shadow: 40px 0 40px rgba(0, 255, 128, 0.6),
                -40px 0 40px rgba(0, 255, 128, 0.6);
}
#me h1{
    font-size: 50px;
}

.flip-card {
  background-color: transparent;
  width: 190px;
  height: 254px;
  perspective: 1000px;
  font-family: sans-serif;
}


.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;

}

.contact-card {
  background-color: transparent;
  width: 180px;   /* أصغر */
  height: 60px;  /* أصغر */
  perspective: 1000px;
  margin-top: 20px;
}

.copied-msg{
    /* opacity: 0; */
    font-size: 10px;
    color: #fff;
    transition: 0.3s;
    display: none;
}

.contact-title {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.contact-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.contact-card:hover .contact-inner {
  transform: rotateY(180deg);
}

.contact-front, 
.contact-back {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100%;

  backface-visibility: hidden;
  border-radius: 15px;
}

/* الواجهة */
.contact-front {
  background: #1e293b;
  color: white;
}

/* الخلف */
.contact-back {
  background: #1E90FF;
  color: white;
  transform: rotateY(180deg);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);

}

.flip-card-front, .flip-card-back {
  box-shadow: 0 8px 14px 0 rgba(0,0,0,0.2);
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid coral;
  border-radius: 1rem;
}

.flip-card-front {
  background: linear-gradient(120deg, bisque 60%, rgb(255, 231, 222) 88%,
     rgb(255, 211, 195) 40%, rgba(255, 127, 80, 0.603) 48%);
  color: coral;
}

.flip-card-back {
  background: linear-gradient(120deg, rgb(255, 174, 145) 30%, coral 88%,
     bisque 40%, rgb(255, 185, 160) 78%);
  color: white;
  display: flex;
  align-items: center;

  justify-content: center;
  flex-direction: column;
  transform: rotateY(180deg);
}
/* Mobile */
@media screen and (max-width: 1000px) {
    #intro2 .text{
        width: 80%;
        max-width:none;
    }

    #happen12 img,#happen9 img{
        left: -40%;
        position: absolute;
        max-width: 400px;
    }
    #intro2 .title{
        height: auto;
        font-size: 40px;
    }

    #intro1 .title{
        text-align: center;
        height: auto;
                font-size: 40px;

    }

    .start1{
        height: 70vh !important;
        min-height: 0 !important;
    }

    #times .text{
        font-size: 20px !important;
        margin: 10px 0;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    
.text{
    text-align: center !important;
    margin: auto;
}

    #me .main{
        gap: 20px;
    }
    .timeline::after {
        left: 20px;
        height: 85%;
    }

    .containerc {
        width: 70%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .containerc::after {
        left: 7px;
    }

    .timeline{
        /* margin: 10px 0px 0 30px; */
        width: 300px;
        margin: auto;
    }

    #hero img{
        bottom: -2%;
    }
    #times{
        padding: 20px;
    }
    #times .text{
        margin: 10px 0;
        /* padding: 20px; */
    }

    .right{
        left:0;
    }

    .left .content,
    .right .content {
        margin: 0;
        text-align: left;
    }

    .start1 h1{
        font-size: 40px !important;
    }

    #intro .main{
        flex-direction: column;
        align-items: center;
        margin: 0;
        width: 100%;
        
    }

    #intro .main .vid{
        height: 300px;
        width: 300px;
    }

    .burger{
        display: block;

    }

    .links{
        display: none;
    }


.shit{
    display: none;}
/* }
#happen12 img{
    left: 0;
} */
#happen10 img{
    left: -30%;
}
.stats{
    flex-wrap: wrap;
    height: auto;
    min-height: none;
    gap: 20px;
}
.stat {
    width: 40%;
    height: 100px;
    text-align: center;
    /* position: relative; */
}

#hero h1{
    font-size: 100px !important;
}

.intro{
    min-height: 0;
}


    #happen9 .image,
    #happen12 .image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 90%;
    }

    #happen9 img,
    #happen12 img {
        position: relative;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        bottom: 0 !important;

        margin: auto;
        display: block;

        width: 80%;
        max-width: 300px;
        height: auto;
    }
}

.footer{
    background-color: #0f172a;
    color: white;
    padding: 40px 20px;
    text-align: center;
    width: 100vw;
}

.footer-content{
    max-width: 1100px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.footer-brand h2{
    font-size: 30px;
    margin-bottom: 5px;
    font-family: "Aref Ruqaa", serif;
}

.footer-brand p{
    font-size: 14px;
    opacity: 0.8;
}

.footer-links{
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a{
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

a:hover{
    color: #1E90FF;
    transform: translateY(-2px);
}

.footer-bottom{
    font-size: 12px;
    opacity: 0.6;
    border-top: 1px solid #334155;
    padding-top: 15px;
    width: 100%;
}
