/*=========================
GOOGLE FONT
=========================*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/*=========================
RESET
=========================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    color: #222;
    overflow-x: hidden;
}

body.dark {
    background: #111;
    color: #eee;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.fa-instagram {
    background: linear-gradient(45deg,
            #f09433,
            #e6683c,
            #dc2743,
            #cc2366,
            #bc1888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/*=========================
COLORS
=========================*/

:root {
    --primary: #4A5C35;
    --secondary: #738654;
        --accent: #d9b65d;
        --dark: #1e1e1e;
        --light: #ffffff;
        --gray: #f4f4f4;
        --shadow: 0 10px 30px rgba(0, 0, 0, .12);
        --transition: .4s;
}
/*=========================
    LOADER
=========================*/

#loader {

    position: fixed;

    top: 0;

    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: .6s;

}

.loader-content {

    text-align: center;

}

.loader-content img {

    width: 90px;

    margin: auto;

    margin-bottom: 15px;

    animation: rotateLogo 2s infinite linear;

}

.loader-content h2 {

    font-size: 35px;

    color: var(--primary);

    margin-bottom: 15px;

}

.loader-content span {

    display: block;

    width: 160px;

    height: 6px;

    background: #ddd;

    border-radius: 50px;

    overflow: hidden;

    position: relative;

}

.loader-content span::before {

    content: "";

    position: absolute;

    left: -50%;

    width: 50%;

    height: 100%;

    background: var(--primary);

    animation: loading 1.5s infinite;

}

@keyframes loading {

    100% {

        left: 100%;

    }

}

@keyframes rotateLogo {

    100% {

        transform: rotate(360deg);

    }

}

/*=========================
SCROLL BAR
=========================*/

#progress-bar {

    position: fixed;

    top: 0;

    left: 0;

    width: 0%;

    height: 5px;

    background: var(--accent);

    z-index: 999999;

}

/*=========================
HEADER
=========================*/

header {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    z-index: 999;

    transition: .4s;

    padding: 18px 0;

}

header.sticky {

    background: white;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);

    padding: 12px 0;

}

body.dark header.sticky {

    background: #1b1b1b;

}

nav {

    width: 90%;

    max-width: 1300px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.logo {

    display: flex;

    align-items: center;

    gap: 12px;

}

.logo img {

    width: 40px;

}

.logo h2 {

    font-size: 28px;

    color: white;

    transition: .3s;

}

header.sticky .logo h2 {

    color: var(--primary);

}

body.dark header.sticky .logo h2 {

    color: white;

}
html[dir="rtl"] nav{
    direction: rtl;
}

html[dir="rtl"] .right-nav{
    left: 60px;
    right: auto;
}

html[dir="rtl"] #menu-btn{
    left: 15px;
    right: auto;
}

html[dir="rtl"] .logo{
    margin-right: 0;
    margin-left: auto;
}

#menu {
    display: flex;
    gap: 35px;
}

#menu a {
    color: white;
    font-weight: 500;
    position: relative;
    transition: .3s;
}

header.sticky #menu a {
    color: #333;
}

body.dark header.sticky #menu a {
    color: white;
}

#menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: .3s;
}

#menu a:hover::after {
    width: 100%;
}

.right-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.language-switcher button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 8px 14px;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s;
}

.language-switcher button:hover {
    background: var(--accent);
}

#darkMode {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font-size: 18px;
    transition: .3s;
}

#darkMode:hover {
    transform: rotate(180deg);
    background: var(--accent);
}

#menu-btn {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: rgb(107, 102, 102);

}

@media (max-width:768px){

    nav{
        display:flex;
        justify-content:space-between;
        align-items:center;
        position:relative;
        padding:15px 20px;
    }

    .right-nav{
        display:flex !important;
        position:absolute;
        top:10px;
        right:55px;
        z-index:1000;
    }

    .language-switcher{
        display:flex !important;
    }

    .language-switcher button{
        padding:6px 10px;
        font-size:12px;
    }

    #menu-btn{
        display:block;
        position:absolute;
        top:10px;
        right:15px;
        font-size:28px;
    }
}

/*=========================
HERO
=========================*/

.hero {

    height: 100vh;

    background:

        linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, .65)),

        url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=80");

    background-size: cover;

    background-position: center;

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    position: relative;

    color: white;

    padding: 0 20px;

}

.hero-content {

    max-width: 900px;

    z-index: 2;

}

.hero h4 {

    letter-spacing: 3px;

    font-weight: 500;

    margin-bottom: 15px;

    color: var(--accent);

}

.hero h1 {
    font-size: 70px;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 700;
}
.hero h1 span {
    color: var(--accent);
}
.hero p {
    font-size: 20px;
    max-width: 750px;
    margin: auto;
    line-height: 1.8;
    margin-bottom: 40px;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.btn {
    padding: 15px 35px;
    background: var(--primary);
    color: white;
    border-radius: 40px;
    font-weight: 600;
    transition: .4s;
    box-shadow: var(--shadow);
}
.btn:hover {
    background: var(--accent);
    transform: translateY(-5px);
}
.btn-outline {
    padding: 15px 35px;
    border: 2px solid white;
    color: white;
    border-radius: 40px;
    transition: .4s;
}
.btn-outline:hover {
    background: white;
    color: #222;
}
.hero-stats {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    padding: 25px 40px;
    border-radius: 20px;
}
.stat {
    text-align: center;
}
.stat h2 {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 5px;
}
.stat p {
    font-size: 15px;
}

/*=========================
ABOUT
=========================*/

.about {
    padding: 100px 8%;
    background: #fff;
}

body.dark .about {
    background: #181818;
}

.container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: center;
}

.about-image {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.about-image:hover img {
    transform: scale(1.08);
}

.about-content h5 {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.about-content h2 {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
}

body.dark .about-content h2 {
    color: #fff;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #666;
}

body.dark .about-content p {
    color: #ccc;
}

.about-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.about-list div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.about-list i {
    color: var(--primary);
    font-size: 20px;
}

/*=========================
    SECTION TITLE
    =========================*/

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h5 {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 15px;
}

body.dark .section-title h2 {
    color: #fff;
}

.section-title p {
    max-width: 700px;
    margin: auto;
    color: #666;
    font-size: 17px;
    line-height: 1.8;
}

body.dark .section-title p {
    color: #ccc;
}

/*=========================
    SERVICES
    =========================*/

.services {
    padding: 100px 8%;
    background: #f7f7f7;
}

body.dark .services {
    background: #121212;
}

.services-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: .4s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    position: relative;
    overflow: hidden;
}

body.dark .card {
    background: #1d1d1d;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    transform: scaleX(0);
    transition: .4s;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.card i {
    font-size: 55px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: .4s;
}

.card:hover i {
    transform: rotate(10deg) scale(1.15);
    color: var(--accent);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary);
}

body.dark .card h3 {
    color: #fff;
}

.card p {
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

body.dark .card p {
    color: #ccc;
}

/*=========================
    PROJECTS
    =========================*/

.projects {
    padding: 100px 8%;
    background: #fff;
}

body.dark .projects {
    background: #181818;
}

.projects-grid {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0, 0, 0, .12);
}

.project img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: .5s;
}

.project:hover img {
    transform: scale(1.12);
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .9),
            rgba(0, 0, 0, .2),
            transparent);
    opacity: 0;
    transition: .4s;
}

.project:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
    transform: translateY(40px);
    transition: .4s;
}

.overlay p {
    color: #ddd;
    margin-bottom: 20px;
    transform: translateY(40px);
    transition: .5s;
}

.overlay a {
    display: inline-block;
    padding: 12px 25px;
    background: var(--accent);
    color: #222;
    font-weight: 600;
    border-radius: 30px;
    width: max-content;
    transform: translateY(40px);
    transition: .6s;
}

.project:hover .overlay h3,
.project:hover .overlay p,
.project:hover .overlay a {
    transform: translateY(0);
}

.overlay a:hover {
    background: #fff;
}

/*=========================
TESTIMONIALS
=========================*/

.testimonials {
    padding: 100px 8%;
    background: #f7f7f7;
}

body.dark .testimonials {
    background: #121212;
}

.testimonial-slider {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .4s;
}

body.dark .testimonial {
    background: #1d1d1d;
}

.testimonial:hover {
    transform: translateY(-10px);
}

.testimonial i {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 15px;
}

.testimonial p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

body.dark .testimonial p {
    color: #ccc;
}

.client {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
}

.client h4 {
    color: var(--primary);
}

body.dark .client h4 {
    color: #fff;
}

/*=========================
    FOOTER
    =========================*/

footer {
    background: #111;
    color: #fff;
    padding: 70px 8% 25px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
}

.footer-box h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-box p,
.footer-box a {
    color: #ccc;
    line-height: 2;
    transition: .3s;
}

.footer-box a:hover {
    color: #fff;
    padding-left: 5px;
}
.socials{
    display: flex;
    justify-content: center; /* centre horizontal */
    align-items: center;
    margin-top: 20px;
}
.socials a {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    border-radius: 50%;
    transition: .3s;
}

.socials a i {
    font-size: 26px;
    /* kabbri l'icon */
    color: #E4405F;
    /* couleur Instagram */
}



.footer-bottom {
    margin-top: 50px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

/*=========================
    BACK TO TOP
    =========================*/

#topBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #222;
    font-size: 22px;
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: .3s;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

#topBtn:hover {
    transform: translateY(-6px);
}

/*=========================
    ANIMATIONS
    =========================*/

.fade-up {
    animation: fadeUp 1s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

.hero img {
    animation: float 4s infinite;
}

/*=========================
    RESPONSIVE
    =========================*/

@media(max-width:992px) {

    .container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero-stats {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 50px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        padding: 40px 30px;
        gap: 25px;
        transition: .4s;
        box-shadow: -10px 0 30px rgba(0, 0, 0, .1);
    }

    body.dark #menu {
        background: #1b1b1b;
    }

    #menu.active {
        right: 0;
    }

    #menu a {
        color: #222 !important;
    }

    body.dark #menu a {
        color: #fff !important;
    }

    #menu-btn {
        display: block;
    }

    .language-switcher {
        display: none;
    }

    .logo h2 {
        font-size: 22px;
    }

}

@media(max-width:768px) {

    .hero {
        padding: 120px 20px 50px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-content h2,
    .section-title h2,
    .contact-info h2 {
        font-size: 32px;
    }

    .about-list {
        grid-template-columns: 1fr;
    }

    .stat {
        width: 100%;
    }

    .card {
        padding: 30px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-container {
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

}

@media(max-width:480px) {

    .hero h1 {
        font-size: 30px;
    }

    .hero p {
        font-size: 15px;
    }

    .btn,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .logo img {
        width: 45px;
    }

    .logo h2 {
        font-size: 18px;
    }

}