@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Borel&display=swap');
.cairo-uniquifier {
  font-family: 'Cairo', sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings:
    "slnt" 0;
}
html{
    font-size: 16px;
}
body{
    margin: 0;
    font-family: 'Cairo';
    font-size: 1rem;
    line-height: 1.6;
    background-color: #D6E7F3;
    background: url(pic/mecca.jpg) center/cover ;
    transition: all 2s ease-out;
}
side{
    animation: show 1s;
    transform: translateX(0px);
    transition: transform 0.35s ease;
    will-change: transform;
    position: fixed;
    right: 0;
    margin: 0 0 0 auto;
    height: 100dvh;
    width: 230px;
    background-color: #0C0E0B;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}
side.collapsed{
    transform: translateX(229px);
}
/*side scroll bar*/
    side::-webkit-scrollbar{
        width: 5px;
        transition: all 0.2s;
    }
    side::-webkit-scrollbar-track{
        background: #0C0E0B ;
    }
    side::-webkit-scrollbar-thumb{
        background: #D6303A  ;
    }
    side::-webkit-scrollbar-thumb:hover{
        background: #D6E7F3;
    }
/*side scroll bar*/
@keyframes show{
    from{
        opacity: 0;
        transform: translateX(229px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}
main{
    height: 100dvh;
    display: flex;
    text-align: center;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-evenly;
    flex-wrap: nowrap;
}
/*main scroll bar*/
    main::-webkit-scrollbar{
        width: 5px;
        transition: all 0.2s;
    }
    main::-webkit-scrollbar-track{
        background: #0C0E0B ;
    }
    main::-webkit-scrollbar-thumb{
        background:  #D6303A ;
    }
    main::-webkit-scrollbar-thumb:hover{
        background: #D6E7F3 ;
    }
/*main scroll bar*/
h1{
    transition: all 0.2s ease;
    margin: 0;
    position: absolute;
    top: 30px;
    right: 430px;
    z-index: 2;
    background-color: #D6E7F3;
    color: #0C0E0B;
    padding: 12px 20px;
    text-decoration: underline #D6303A;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    user-select: none;
    border-radius: 15px;
}
h1:hover{
    background-color: #0C0E0B;
    color: #D6E7F3;
    transform: translateY(-2px);
}
salwat{
    position: relative;
    right: 160px;
    margin: 0 auto;
    top: 25px;
    height: 90dvh;
    width: 1028px;
    background-color: #0c0e0b9a;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-content: space-around;
    flex-direction: row-reverse;
}
salat{
    transition: all 0.3s ease-in-out;
    background-color: #D6E7F3;
    color: #0C0E0B;
    width: 300px;
    padding: 5px 10px;
    font-size: 1.375rem;
    font-weight: 600 ;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    user-select: none;
    border-bottom: solid 2px #D6303A;
    letter-spacing: 0.3;
}
salat:hover{
    background-color: #0C0E0B;
    color: #D6E7F3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
#salat{
    padding-right: 25px;
}

/*FOOTR*/
footer{
    background: #D6303A;
    color: white;
    padding: 3rem 2rem 1rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #DDD0C8;
}

.footer-section p, .footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #DDD0C8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

    .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #DDD0C8;
    color: #333;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}
@media (max-width: 900px) {
    html {
        font-size: 15px; /* Slightly smaller base on medium screens */
    }
    
    h1 {
        font-size: 1.5rem; /* 24px equivalent */
        top: 3.1dvh;
        right: 15dvh;
    }
    
    salat {
        font-size: 1.25rem; /* 20px equivalent */
        padding: 12px 16px;
    }
    
    salat span:last-child {
        font-size: 1.375rem; /* 22px equivalent */
    }
}
@media (max-width: 600px) {
    html{
        font-size: 14px;
    }
    side{
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        transform: translateX(230px);
    }
    side.collapsed{
        transform: translateX(0px);
        display: flex;
    }
    body.sidebar-open{
        overflow: hidden;
    }
    main{
        height: 100svh;
    }
    salwat{
        width: 345px;
        position: static;

    }
    h1{
        top: 0.1dvh;
        right: 5dvh;
        font-size: 1.375rem;
    }
    salat{
        font-size: 1.125rem;
        padding: 10px 15px;
        width: 280px;
    }
    salat sapn:last-child {
        font-size: 1.25rem;
    }
    h1:hover > side {
        display: flex;
    }
}
@media (max-width: 480px) {
    html {
        font-size: 13px; /* Even smaller base for very small screens */
    }
    
    salwat {
        width: 320px;
    }
    h1{
        top: 2.5dvh;
        right: 2dvh;
    }   
    salat {
        width: 260px;
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    salat span:last-child {
        font-size: 1.125rem;
    }
}