/* fonts */

@font-face {
    font-family: "Samim";
    src: url("../fonts/samim-font-v2.0.1/Samim-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
    font-style: normal;
}


/* Variables */

:root{
    --primary-bgcolor: #ebf9ff;
    --secondary-bgcolor: #1c1e1f;
    --secondary-bgcolor-2: #181a1b ;
    --primary-color: #eb7846;
    --primary-color-2: #fff;
    --secondary-color: #000;
    --secondary-color-2: #c95828;
    --secondary-color-3: #e84c09;
    --detailed-color: #B0B3B8;
    --detailed-color-2: #29B6F6;
}

/* Details Css */
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body{
    margin: 0;
    padding: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: "Samim", Arial, sans-serif;
    font-weight: 400;
    background-color: var(--primary-bgcolor);
}

section{
    scroll-margin-top: 100px;
}

a{
    text-decoration: none;
}

img{
    width: 100%;
}

h1, h2, .btn-h {
    font-weight: 700;
}

/* Header */

.hamburger{
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span{
    width: 28px;
    height: 3px;
    background-color: var(--primary-color-2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1){
    transform: translateY(8px) rotate(47deg);
}
.hamburger.active span:nth-child(2){
    opacity: 0;
}
.hamburger.active span:nth-child(3){
    transform: translateY(-8px) rotate(-47deg);
}

.nav_container{
    display: flex;
    align-items: center;
}

header{
    background-color: var(--primary-bgcolor);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header_wrapper{
    background: linear-gradient(135deg, var(--secondary-color-2), var(--secondary-color-3));
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    max-width: 80rem;

    border-radius: 1.6rem;
    margin: 0 auto;
    padding: 0 1.5rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_image{
    max-width: 5rem;
    margin-bottom: -0.4rem;
    margin-left: 1rem;
}

.header_image img{
    border-radius: 100%;
}

.header_links_wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header_btn{
    max-width: 10rem;
    margin-left: 2.5rem;
}

.btn-h{
    font-family: "Samim";
    font-size: 1.05rem;
    padding: 1rem 1.2rem;
    border-radius: 0.6rem;
    outline: none;
    border: none;
    box-shadow: var(--primary-color-2) 0 0 2px;
    color: var(--primary-color-2);
    background-color: var(--primary-color);
    cursor: pointer;
    transition: all ease-in 0.2s;
}

.btn-h:hover{
    background-color: var(--secondary-color-2);
    transform: translateY(-0.3rem);
}

nav{
    display: flex;
    gap: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;

    font-size: 1.2rem;
}

.header_link_box {
    padding: 0.4rem;
    position: relative;
}

.header_link_box > a{
    color: var(--primary-color-2);
    transition: all ease 0.2s;
}

.header_link_border_bottem{
    position: absolute;
    right: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s ease-in;
}

.header_link_box > a:hover{
    color: var(--secondary-color);
}

.header_link_box:hover > .header_link_border_bottem{
    width: 100%;
}

@media (max-width: 960px){

    nav ul{
        font-size: 1.2rem;
        gap: 0.5rem;
        padding: 0.2rem 0;
    }
}

@media (max-width: 900px){

    .header_wrapper{
        padding: 0.4rem 1rem;
    }

    .header_btn{
        display: none;
    }

    nav ul{
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
    }

    .nav_container{
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        background: linear-gradient(135deg, var(--secondary-color-2), var(--secondary-color-3));
        border-radius: 1.2rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 999;
    }

    .nav_container.open{
        max-height: 400px;
    }

    .hamburger{
        display: flex;
        margin-left: 1rem;
    }

    .header_links_wrapper{
        width: 100%;
        justify-content: space-between;
    }

    .header_image{
        max-width: 4.8rem;
    }
}


/* Footer */

footer{
    padding: 1rem;
    margin: 6rem 0 1rem;
    color: var(--primary-color-2);
}

.footer_wrapper{
    background: linear-gradient(135deg, var(--secondary-bgcolor), var(--secondary-bgcolor-2));
    border-radius: 1rem;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer_box > h3{
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.footer_box ul, li{
    list-style: none;
}

.footer_box li{
    list-style: none;
    margin-right: -0.2rem;
    margin-top: 0.2rem;
}


.footer_box div{
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer_box img{
    max-width: 1.6rem;
}

.footer_box p{
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.8rem;
}

.footer_link{
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    margin-right: 1rem;
}

.footer_link::before{
    background-color: var(--primary-color);
    content: " ";
    position: absolute;
    right: -15%;
    bottom: 40%;
    width: 0.5rem;
    height: 2px;
}

.footer_link >a{
    color: #ccc;
}

.footer_box_image{
    max-height: 2rem;
}

#footer_about_box{
    max-width: 30rem;
}

#footer_link_box{
    max-width: 10rem;
}

#footer_location_box{
    max-width: 10rem;
}

#footer_communicate_box{
    max-width: 20rem;
}

/* Footer */

/* -----------404 Page------------ */

.notfound-page{
    max-width: 75rem;
    margin: 4rem auto;
    padding: 0 1rem;
}

.notfound-wrapper{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.notfound-content{
    flex: 1 1 45%;
}

.notfound-content h1{
    font-size: 6rem;
    color: var(--secondary-color-3);
    margin-bottom: 1rem;
}

.notfound-content h2{
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.notfound-content p{
    color: var(--detailed-color-2);
    line-height: 1.9rem;
    margin-bottom: 1.5rem;
}

.notfound-btn{
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background-color: var(--secondary-color-3);
    color: #fff;
    border-radius: 0.6rem;
    transition: 0.3s ease;
}

.notfound-btn:hover{
    background-color: var(--secondary-color-2);
}

.notfound-image{
    flex: 1 1 45%;
}

.notfound-image img{
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Responsive */
@media (max-width: 768px){
    .notfound-wrapper{
        flex-direction: column;
        text-align: center;
    }
    
    .notfound-content h1{
        font-size: 4.5rem;
    }
}

/* -----------404 Page------------ */

/* ------------messages------------------- */

.flash-messages {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.flash-message {
    padding: 0.9rem 1.4rem;
    border-radius: 0.6rem;
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlide 0.4s forwards;
}

.flash-message.success {
    background-color: #28a745;
}

.flash-message.error {
    background-color: #dc3545;
}

@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ------------messages------------------- */