/* ==========================
   MUS'AB Global Resources
   Style Part 1
========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

/* Prevents the fixed header from covering section titles when
   jumping to a #section via nav links */
section[id]{
    scroll-margin-top:110px;
}
@media (max-width:768px){
    section[id]{ scroll-margin-top:85px; }
}

body{
    font-family:Arial,sans-serif;
    background:#f5f5f5;
    color:#222;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    padding:20px;
    background:#0b5d3b;
}

.logo h2{
    color:#FFD700;
    font-size:30px;
}

.logo span{
    color:#fff;
    font-size:14px;
}

nav{
    margin-top:15px;
}

nav a{
    display:inline-block;
    margin:8px;
    color:#fff;
    text-decoration:none;
    font-weight:bold;
}

nav a:hover{
    color:#FFD700;
}

.hero{
    text-align:center;
    padding:100px 20px;
}

.hero h1{
    font-size:40px;
    color:#0b5d3b;
}

.hero p{
    margin-top:20px;
    font-size:18px;
    line-height:1.7;
}

.hero button{
    margin-top:30px;
    padding:15px 35px;
    border:none;
    border-radius:8px;
    background:#0b5d3b;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease, background .3s ease;
}

.hero button:hover{
    background:#08472d;
    transform:translateY(-3px);
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}
.hero{
    position:relative;
    min-height:100vh;
    overflow:hidden;

    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding-top:180px;
}

.hero-slider{
    position:absolute;
    inset:0;
    z-index:0;
}

.hero-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
    opacity:0;
    transform:scale(1.08);
    transition:opacity 1.6s ease, transform 6s ease;
}

.hero-slide.active{
    opacity:1;
    transform:scale(1);
}

@media (prefers-reduced-motion: reduce){
    .hero-slide{ transition:opacity 1.2s ease; transform:none; }
    .hero-slide.active{ transform:none; }
}

.hero-dots{
    position:absolute;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    z-index:3;
    display:flex;
    gap:10px;
}

.hero-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    border:1.5px solid rgba(255,255,255,.8);
    background:rgba(255,255,255,.25);
    padding:0;
    cursor:pointer;
    transition:.3s;
}

.hero-dot.active{
    background:#FFD700;
    border-color:#FFD700;
    transform:scale(1.2);
}

.overlay{
    position:relative;
    z-index:2;
    width:100%;
    background:transparent;
    padding:40px 20px 80px;
}

.overlay h1{
    color:#FFD700;
}

.overlay p{
    color:white;
}

.overlay button{
    background:#FFD700;
    color:#0b5d3b;
    font-weight:bold;
}

.profile-img{
    width:220px;
    height:220px;
    border-radius:50%;
    object-fit:cover;
    object-position:center top;
    border:5px solid gold;
    margin:30px auto;
    display:block;
}

.profile-name{
    color:#FFD700;
    font-size:30px;
    font-weight:bold;
    margin-top:15px;
    text-align:center;
}

.profile-title{
    color:#ffffff;
    font-size:18px;
    text-align:center;
    line-height:1.8;
    margin-top:8px;
}

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

.about{
    padding:80px 10%;
    background:#ffffff;
    text-align:center;
}

.about h2{
    font-size:36px;
    color:#0b5d3b;
    margin-bottom:20px;
}

.about p{
    font-size:18px;
    line-height:1.8;
    color:#555;
    max-width:800px;
    margin:auto;
}

.about-box{
    display:flex;
    justify-content:center;
    gap:30px;
    flex-wrap:wrap;
    margin-top:50px;
}

.card{
    width:320px;
    background:#f8f8f8;
    padding:25px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
    transform:translateY(-8px);
}

.card h3{
    color:#0b5d3b;
    margin-bottom:15px;
}

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

.services{
    padding:80px 10%;
    background:#f4f7f6;
    text-align:center;
}

.services h2{
    font-size:36px;
    color:#0b5d3b;
    margin-bottom:40px;
}

.service-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.service-card{
    background:#fff;
    padding:30px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.1);
    transition:0.4s;
    border-top:5px solid #FFD700;
}

.service-card:hover{
    transform:translateY(-10px);
    background:#0b5d3b;
    color:#fff;
    transition:transform .3s ease, background .3s ease, color .3s ease;
}

.service-card h3{
    margin-bottom:15px;
    color:#0b5d3b;
}

.service-card:hover h3{
    color:#FFD700;
}

.service-card p{
    line-height:1.7;
}

/* WHY CHOOSE US */

.why-us{
    padding:80px 10%;
    background:#ffffff;
    text-align:center;
}

.why-us h2{
    font-size:36px;
    color:#0b5d3b;
    margin-bottom:40px;
}

.why-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:25px;
}

.why-card{
    background:#f8f8f8;
    padding:30px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.1);
    transition:.4s;
}

.why-card:hover{
    background:#FFD700;
    transform:translateY(-10px) scale(1);
    transition:transform .3s ease, background .3s ease;
}

.why-card h3{
    color:#0b5d3b;
    margin-bottom:15px;
}

/* COMPANY STATS */

.stats{
    padding:80px 10%;
    background:#0b5d3b;
    text-align:center;
    color:#fff;
}

.stats h2{
    color:#FFD700;
    margin-bottom:40px;
    font-size:36px;
}

.stats-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:25px;
}

.stat-box{
    background:rgba(255,255,255,.1);
    padding:30px;
    border-radius:15px;
    transition:.3s;
}

.stat-box:hover{
    transform:scale(1.05);
    background:#FFD700;
    color:#0b5d3b;
}

.stat-box h3{
    font-size:42px;
    margin-bottom:10px;
}

/* ==========================
   GALLERY
========================== */

.gallery{
    padding:80px 10%;
    background:#f8f8f8;
    text-align:center;
}

.gallery h2{
    color:#0b5d3b;
    font-size:36px;
    margin-bottom:40px;
}

.gallery-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.gallery-container img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:15px;
    transition:.4s;
    cursor:pointer;
}

.gallery-container img:hover{
    transform:scale(1.05);
    box-shadow:0 10px 25px rgba(0,0,0,.3);
}

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

.testimonials{
    padding:80px 10%;
    background:#ffffff;
    text-align:center;
}

.testimonials h2{
    font-size:36px;
    color:#0b5d3b;
    margin-bottom:40px;
}

.testimonial-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:25px;
}

.testimonial-card{
    background:#f8f8f8;
    padding:25px;
    border-radius:15px;
    box-shadow:0 8px 20px rgba(0,0,0,.1);
    transition:.3s;
}

.testimonial-card:hover{
    transform:translateY(-8px);
    background:#0b5d3b;
    color:#fff;
    transition:transform .3s ease, background .3s ease, color .3s ease;
}

.testimonial-card h4{
    margin-top:20px;
    color:#FFD700;
}

.contact{
    padding:60px 15px;
    background:#f4f7f6;
}

.contact h2{
    text-align:center;
    color:#0b5d3b;
    font-size:36px;
    margin-bottom:30px;
}

.contact-container{
    max-width:1000px;
    width:100%;
    margin:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:25px;
}

.contact-info{
    text-align:center;
}

.contact-info a{
    display:block;
    margin:10px 0;
    color:#0b5d3b;
    text-decoration:none;
    font-weight:bold;
    word-break:break-word;
}

.contact-form{
    width:100%;
}

.contact-form input,
.contact-form textarea,
.contact-form button{
    width:100%;
    max-width:100%;
    box-sizing:border-box;
}

.contact-form input,
.contact-form textarea{
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ccc;
    border-radius:8px;
}

.contact-form textarea{
    min-height:150px;
}

.hp-field{
    position:absolute !important;
    left:-9999px !important;
    top:auto;
    width:1px !important;
    height:1px !important;
    overflow:hidden;
    opacity:0;
    margin:0 !important;
    padding:0 !important;
}

.contact-form button{
    padding:15px;
    background:#0b5d3b;
    color:#fff;
    border:none;
    border-radius:8px;
}

.map{
    width:100%;
    overflow:hidden;
    border-radius:15px;
}

.map iframe{
    width:100%;
    height:300px;
    border:0;
}

@media(min-width:768px){
    .contact-container{
        grid-template-columns:1fr 1fr;
    }

    .map{
        grid-column:1 / -1;
    }
}

/* ==========================
   WHATSAPP BUTTON
========================== */

.whatsapp{
    position:fixed;
    right:20px;
    bottom:20px;
    width:65px;
    height:65px;
    background:#25D366;
    color:#fff;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:32px;
    text-decoration:none;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
    z-index:999;
    animation:whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp:hover{
    animation-play-state:paused;
}

@keyframes whatsappPulse{
    0%, 100%{
        box-shadow:0 8px 20px rgba(0,0,0,.3), 0 0 0 0 rgba(37,211,102,.55);
    }
    50%{
        box-shadow:0 8px 20px rgba(0,0,0,.3), 0 0 0 12px rgba(37,211,102,0);
    }
}

@media (prefers-reduced-motion: reduce){
    .whatsapp{ animation:none; }
}

.whatsapp:hover{
    transform:scale(1.1);
}

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

.footer{
    background:#0b5d3b;
    color:#fff;
    text-align:center;
    padding:40px 20px;
}

.footer h2{
    color:#FFD700;
    margin-bottom:15px;
}

.footer p{
    margin:10px 0;
    line-height:1.8;
}

/* ==========================
   MENU TOGGLE
========================== */

.menu-toggle{
    display:none;
    font-size:34px;
    color:#FFD700;
    cursor:pointer;
    margin-top:5px;
    transition:.3s;
}

.menu-toggle:hover{
    transform:scale(1.1);
}
@media(max-width:768px){

nav{
    display:none;
}

.menu-toggle{
    display:block;
}

}

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

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:#0b5d3b;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 8%;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    z-index:1000;
}

.logo h2{
    color:#FFD700;
    margin:0;
}

.logo span{
    color:#fff;
    font-size:14px;
}

nav a{
    position:relative;
    color:#fff;
    text-decoration:none;
    margin-left:25px;
    font-weight:bold;
    transition:color .3s;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-4px;
    width:0%;
    height:2px;
    background:#FFD700;
    transition:width .3s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover{
    color:#FFD700;
}

nav a:hover::after{
    width:100%;
}

@media (max-width:768px){

header{
    padding:8px 15px;
}

nav{
    width:100%;
    display:none;
    flex-direction:column;
    background:#0b5d3b;
    margin-top:15px;
}

nav a{
    display:block;
    padding:15px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.2);
}

nav.active{
    display:flex;
}

.menu-toggle{
    display:block;
}

}

body.dark{
    background:#121212 !important;
    color:white !important;
}

body.dark section{
    background:#1a1a1a !important;
    color:white !important;
}

body.dark h1,
body.dark h2,
body.dark h3,
body.dark p,
body.dark a{
    color:white !important;
}

body.dark .footer{
    background:#000 !important;
}

/* ===== Smooth Animation ===== */

section{
    opacity:0;
    transform:translateY(50px);
    transition:opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

section.show{
    opacity:1;
    transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
    section{ opacity:1; transform:none; transition:none; }
}

/* ===== GOOGLE MAP ===== */

.map{
    margin-top:40px;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 8px 20px rgba(0,0,0,.2);
}

/* ===== LOADING SCREEN ===== */

#loader{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:#0b5d3b;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

#loader h2{
    color:#FFD700;
    margin-top:20px;
    font-size:30px;
}

.spinner{
    width:70px;
    height:70px;
    border:6px solid rgba(255,255,255,.3);
    border-top:6px solid #FFD700;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

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

#topBtn{
    display:flex;
    align-items:center;
    justify-content:center;
    position:fixed;
    bottom:100px;
    right:20px;
    width:55px;
    height:55px;
    border:none;
    border-radius:50%;
    background:#FFD700;
    color:#0b5d3b;
    font-size:22px;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(0,0,0,.3);
    z-index:999;
    opacity:0;
    transform:translateY(15px) scale(.85);
    pointer-events:none;
    transition:opacity .35s cubic-bezier(0.16, 1, 0.3, 1), transform .35s cubic-bezier(0.16, 1, 0.3, 1);
}

#topBtn.visible{
    opacity:1;
    transform:translateY(0) scale(1);
    pointer-events:auto;
}

@media (prefers-reduced-motion: reduce){
    #topBtn{ transition:opacity .2s linear; transform:none; }
    #topBtn.visible{ transform:none; }
}

#topBtn:hover{
    transform:scale(1.1);
}

/* ===== Scroll Progress Bar ===== */

#progressBar{
    position:fixed;
    top:0;
    left:0;
    width:0%;
    height:5px;
    background:#FFD700;
    z-index:999999;
}

.logo{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.logo img{
    width:90px;
    height:auto;
    object-fit:contain;
}

@media (max-width:768px){
    .logo img{
        width:70px;
    }
}

.business-number{
    position:absolute;
    top:5px;
    right:55px;
    color:#FFD700;
    font-size:11px;
    font-weight:bold;
    letter-spacing:1px;
    z-index:1001;
}

#themeBtn{
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:#FFD700;
    color:#0b5d3b;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

#themeBtn:hover{
    transform:scale(1.1);
    background:#ffffff;
}
   
#themeBtn{
    width:50px;
    height:50px;
}

.map{
    width:100%;
    margin-top:20px;
    border-radius:15px;
    overflow:hidden;
}

.map iframe{
    width:100%;
    height:250px;
    border:0;
    border-radius:15px;
    display:block;
}

html,
body{
    overflow-x:hidden;
}

*{
    max-width:100%;
}

.contact-info h3{
    color:#0b5d3b !important;
}

.contact-info p{
    color:#555 !important;
    font-size:18px;
}

.contact-info a{
    color:#0b5d3b !important;
    text-decoration:none;
    font-weight:bold;
}

/* ===== Gallery Lightbox ===== */

#lightbox{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.9);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

#lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:15px;
    box-shadow:0 0 30px rgba(255,255,255,.3);
    animation:zoom .3s ease;
}

@keyframes zoom{
    from{
        transform:scale(.7);
    }
    to{
        transform:scale(1);
    }
}

/* ===== Social Media Icons ===== */

.social-icons{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin:25px 0;
    flex-wrap:wrap;
}

.social-icons a{
    width:50px;
    height:50px;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#FFD700;
    color:#0b5d3b;
    border-radius:50%;
    text-decoration:none;
    font-size:24px;
    transition:.3s;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
}

.social-icons a:hover{
    background:#ffffff;
    transform:translateY(-5px) scale(1.1);
}

/* ===== Service Card Animation ===== */

.service-card{
    opacity:0;
    transform:translateY(40px);
    transition:opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1), background .4s, color .4s;
}

section.show .service-card{
    opacity:1;
    transform:translateY(0);
}

.service-card:nth-child(2){
    transition-delay:.1s;
}

.service-card:nth-child(3){
    transition-delay:.2s;
}

.service-card:nth-child(4){
    transition-delay:.3s;
}

.service-card:nth-child(5){
    transition-delay:.4s;
}

.service-card:nth-child(6){
    transition-delay:.5s;
}

.service-card:nth-child(7){
    transition-delay:.6s;
}

/* ===== Why-Us Card Animation ===== */

.why-card{
    opacity:0;
    transform:translateY(40px) scale(.96);
    transition:opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1), background .3s;
}

section.show .why-card{
    opacity:1;
    transform:translateY(0) scale(1);
}

.why-card:nth-child(2){ transition-delay:.12s; }
.why-card:nth-child(3){ transition-delay:.24s; }
.why-card:nth-child(4){ transition-delay:.36s; }

/* ===== Testimonial Card Animation ===== */

.testimonial-card{
    opacity:0;
    transform:translateY(40px);
    transition:opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1), background .3s, color .3s;
}

section.show .testimonial-card{
    opacity:1;
    transform:translateY(0);
}

.testimonial-card:nth-child(2){ transition-delay:.15s; }
.testimonial-card:nth-child(3){ transition-delay:.3s; }

/* ===== Gallery Image Animation ===== */

.gallery-container img{
    opacity:0;
    transform:scale(.92);
}

section.show .gallery-container img{
    opacity:1;
    transform:scale(1);
    transition:opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-container img:hover{
    transition:transform .3s ease, box-shadow .3s ease;
}

.gallery-container img:nth-child(2){ transition-delay:.1s !important; }
.gallery-container img:nth-child(3){ transition-delay:.2s !important; }
.gallery-container img:nth-child(4){ transition-delay:.3s !important; }

/* ===== Stat Box Animation ===== */

.stat-box{
    opacity:0;
    transform:translateY(30px);
    transition:opacity .7s cubic-bezier(0.16, 1, 0.3, 1), transform .7s cubic-bezier(0.16, 1, 0.3, 1), background .3s, color .3s;
}

section.show .stat-box{
    opacity:1;
    transform:translateY(0);
}

.stat-box:hover{
    transition:transform .25s ease, background .25s ease, color .25s ease;
}

.stat-box:nth-child(2){ transition-delay:.1s; }
.stat-box:nth-child(3){ transition-delay:.2s; }
.stat-box:nth-child(4){ transition-delay:.3s; }

@media (prefers-reduced-motion: reduce){
    .service-card, .why-card, .testimonial-card, .gallery-container img, .stat-box{
        opacity:1 !important;
        transform:none !important;
        transition:none !important;
    }
}

/* ===== Premium Hero Text Animation ===== */

.overlay h1{
    animation:heroFade 1.5s ease;
}

.overlay p{
    animation:heroFade 2s ease;
}

.overlay button{
    animation:heroFade 2.5s ease;
}

@keyframes heroFade{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===== Premium Footer ===== */

.footer-links{
    margin:20px 0;
}

.footer-links a{
    color:#FFD700;
    text-decoration:none;
    margin:0 12px;
    font-weight:bold;
    transition:.3s;
}

.footer-links a:hover{
    color:#ffffff;
}

.footer-social{
    margin:20px 0;
    display:flex;
    justify-content:center;
    gap:15px;
}

.footer-social a{
    width:45px;
    height:45px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#FFD700;
    color:#0b5d3b;
    border-radius:50%;
    text-decoration:none;
    font-size:22px;
    transition:.3s;
}

.footer-social a:hover{
    background:#ffffff;
    transform:scale(1.1);
}

#success-message{
    position:fixed;
    top:20px;
    right:20px;
    background:#28a745;
    color:#fff;
    padding:15px 25px;
    border-radius:10px;
    font-weight:bold;
    box-shadow:0 5px 20px rgba(0,0,0,.3);
    z-index:99999;
    animation:fadeIn .4s;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(-20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
