@charset 'utf-8';
@import url('https://fonts.googleapis.com/css2?family=Cairo&display=swap');

/* custom css file ,ade by JeanDoe */
/* initaialisation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    outline: none;
    text-decoration: none;
}
/* declaration of variables */
:root {
    --main-clr: #ffc100;
    --second-clr: #567;
    --light-bg: #f1e1d1;
    --white-bg: #f9fafa;
    --white: #fff;
    --black: #1a1b1c;
    --light-clr: #eceff1;
    --border: 1px solid var(--light-clr);
    --body-font: 'Cairo', Arial, sans-serif;
}
/* base */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background: var(--light-bg);
    height: 100%;
    font-weight: normal;
    font-size: 0.938rem;
    font-family: var(--body-font);
    color: var(--black);
}
/* dark and light theme */
body.dark {
    --light-bg: #3e372d;
    --white-bg: #141414;
    --white: #1a1b1c;
    --black: #fff;
    --light-clr: #eceff1;
    --border: 1px solid var(--light-clr);
    --body-font: 'Cairo', Arial, sans-serif;
}
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

/* تدوير الدوامة */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* reusables classes */
.btn {
    display: inline-block;
    color: #867764; 
    text-transform: capitalize;
    padding: 1rem 2rem;
    border: 1.5px solid #867764;
    border-radius: .5rem;
    transition: all .2s ease;
    font-weight: 800;
}
.btn:hover {
    background-color: #867764;
    color: #fff; 
    transform: translateY(-5px);
}
.section {
    padding: 1rem;
    background: var(--white);
    max-width: 1200px;
}
/* landing section starts */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    border-radius: .25rem;
    height: auto;
    width: 100%;
    flex-wrap: wrap-reverse;
    position: relative;
    min-height: 95vh;  
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.25);
}
.home img {
    border-radius: .25rem;
    height: auto;
    max-width: 30rem;
}
.home .intro {
    max-width: 40rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    text-align: justify;
}
.home .intro img {
    width: 150px;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto; 
}

.home .intro h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.home .intro .description {
    font-weight: 500;
}
.home .intro .counter {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    text-transform: capitalize;
}
.home .intro .counter p {
    text-transform: capitalize;
    text-align: center;
    border: var(--border);
    padding: 1rem;
    border-radius: .5rem;
    flex: 1 1 20%;  
    min-width: 120px;
}
.home .intro .counter a {
    text-align: center;
    padding: 1rem;
    border-radius: .5rem;
    font-size: 1.5rem;
    cursor: pointer;
    text-decoration: none;
    color: #b7a28d; 
    transition: all 0.3s ease;
}
.home .intro .counter a:hover {
    background-color: #867764;
    color: #fff; 
    transform: translateY(-5px);
}
.home .intro .counter p span {
    display: block;
    font-size: 1.5rem;
    color: var(--second-clr);
}
/* lightbulb btn starts */
#theme-btn {
    font-size: 2rem;
    color: var(--second-clr);
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    border: var(--border);
    padding: .5rem 1rem;
    border-radius: .5rem;
}
#trans-btn {
    font-size: 2rem;
    color: var(--second-clr);
    position: absolute;
    top: 1rem;
    left: 1rem;
    cursor: pointer;
    border: var(--border);
    padding: .5rem 1rem;
    border-radius: .5rem;
}
#theme-btn:hover {
    border: 1px solid var(--main-clr);
}
/* Responsiveness */
@media screen and (max-width: 1200px) {
    .home {
        flex-direction: column;
        gap: 2rem;
        justify-content: flex-start;
    }
    .home img {
        max-width: 100%;
    }
    .home .intro h2 {
        font-size: 1.25rem;
    }
    .home .intro .counter p {
        font-size: 1rem;
    }
}
@media screen and (max-width: 768px) {
    .home {
        padding: 1rem;
    }

    .home .intro {
        padding: 0.5rem;
    }

    #theme-btn {
        font-size: 1.5rem;
        padding: .5rem;
    }

    .home .intro h2 {
        font-size: 1.1rem;
    }

    .home .intro .counter p {
        font-size: 0.9rem;
        padding: .75rem;
    }

    .home img {
        max-width: 100%;
    }
}
@media screen and (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .home .intro h2 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .home .intro .counter p {
        padding: .5rem;
        font-size: 0.8rem;
    }

    #theme-btn , #trans-btn {
        font-size: 1.5rem;
    }
}
