/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: #fff;
    overflow-x: hidden;
}

/* =========================
   TOP BAR (FIXED)
========================= */
.top-bar {
    background-color: rgba(0, 74, 173, 0.85);
    color: white;
    height: 40px;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a,
.social-icons a {
    color: whitesmoke;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 25px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    height: 2px;
    background-color: white;
}

/* =========================
   NAVBAR (FIXED UNDER TOPBAR)
========================= */
.navbar {
    background-color: white;
    padding: 0 5%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 40px; /* height of top-bar */
    left: 0;
    width: 100%;
    z-index: 10000;
}

.logo {
    height: 60px;
    width: auto;
}

/* =========================
   NAV MENU
========================= */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: #2B2A2A;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

/* =========================
   DROPDOWN (CLICK ONLY)
========================= */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 0;
    background-color: #2B2A2A;
    min-width: 220px;
    border-radius: 10px;
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 1000;

}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    color: white;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background-color: rgba(0, 74, 173, 0.85);
}

/* OPEN STATE */
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.open .fa-chevron-down {
    transform: rotate(180deg);
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* =========================
   MOBILE NAV
========================= */
@media (max-width: 768px) {
    .contact-info,
    .social-icons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }
}

/* =========================
   PAGE OFFSET (IMPORTANT)
========================= */
body {
    padding-top: 110px; /* topbar + navbar */
}

@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
}


/* Hero */
.hero {
    position: relative;
    height: 80vh;
    background-image: url('hero.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* dark layer */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: #fff;
}

/* CTA */
.cta-button {
    background-color: white;
    color: #2B2A2A;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background-color: rgba(0, 74, 173, 0.85);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(43, 42, 42, 0.97);
    z-index: 1000;
    padding: 25px;
    color: white;
}

.contact-info-mobile a {
    color: rgba(0, 74, 173, 0.85);
    display: block;
    margin: 10px 0;
    text-decoration: none;
    font-size: 18px;
}

.mobile-nav-list {
    list-style: none;
    margin-top: 30px;
}

.mobile-nav-list a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #555;
}

/* Mobile menu close button */
.mobile-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1100;
}

.mobile-close:hover {
    color: #FEB05D;
}


/* Responsive */
@media (max-width: 768px) {
    .contact-info,
    .social-icons {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

/* Mobile dropdown */
.mobile-dropdown .dropdown-menu {
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.1);
    margin-top: 10px;
    border-radius: 8px;
    padding: 10px 0;
}

.mobile-dropdown.open .dropdown-menu {
    display: flex;
}

.mobile-dropdown .dropdown-menu a {
    padding: 10px 20px;
    color: white;
}


/* Nos Valeurs */
.values {
    padding: 90px 5%;
    background-color: #fff;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

/* Card */
.value-card {
    background-color: #ffffff;
    padding: 40px 30px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.value-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #2B2A2A;
}

.value-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #555;
}

/* Center card (circle on top) */
.value-card.center {
    padding-top: 30px;
}

/* Reverse card (text on top, triangle bottom) */
.value-card.reverse {
    justify-content: flex-start;
}

/* Shapes */
.shape {
    margin-top: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Square */
.square {
    width: 70px;
    height: 70px;
    background-color: #004AAD;
    border-radius: 8px;
}

/* Circle */
.circle {
    width: 70px;
    height: 70px;
    background-color: #004AAD;
    border-radius: 50%;
    margin-bottom: 25px;
}

/* Triangle */
.triangle {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-top: 70px solid #004AAD;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .values-container {
        grid-template-columns: 1fr;
    }

    .value-card {
        margin-bottom: 20px;
    }
}



/* SERVICES SECTION (SIMPLIFIED) */
.services {
    padding: 90px 5%;
    background: #f4f7fb;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 60px;
}

/* Service Card */
.service-card {
    background: #004AAD;
    color: white;
    padding: 40px 30px;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    line-height: 1.6;
    opacity: 0.95;
}

/* Button */
.service-btn {
    margin-top: 25px;
    align-self: flex-start;
    padding: 12px 28px;
    background: white;
    color: #004AAD;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background: #FEB05D;
    color: #2B2A2A;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}


/* About Section */
.about {
    padding: 90px 5%;
    background-color: #fff;
}

.about-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-row.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2B2A2A;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* Clients Section */
.clients {
    padding: 80px 5%;
    background-color: #f8f8f8;
    text-align: center;
}

.clients h2 {
    font-size: 2.6rem;
    margin-bottom: 20px;
}

.clients-desc {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: #555;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.clients-logos img {
    height: 85px;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.clients-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 74, 173, 0.85);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 1200;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}



/* Contact Page */
.contact-page {
    display: flex;
    min-height: 80vh;
}

.contact-form-box {
    flex: 1;
    padding: 80px 5%;
}

.contact-form-box h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.contact-form-box p {
    margin-bottom: 30px;
    color: #555;
}

.contact-form-box form input,
.contact-form-box form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.contact-form-box button {
    background-color: #004AAD;
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
}

/* Contact Info */
.contact-info-box {
    flex: 1;
    background-color: rgba(0, 74, 173, 0.85);
    color: white;
    padding: 80px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.contact-details i {
    margin-right: 10px;
}

.contact-socials {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.contact-socials a {
    color: white;
    font-size: 22px;
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    background-color: #004AAD;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-page {
        flex-direction: column;
    }
}

/* SCRIMTECH HERO */
.scrimtech-hero {
    position: relative;
    height: 80vh;
    background: url('scrimtech/hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5%;
}

.scrimtech-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.scrimtech-box {
    position: relative;
    z-index: 2;
    background: rgba(0,74,173,0.85);
    color: white;
    padding: 50px;
    max-width: 520px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.scrimtech-box h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

/* ENVISAIN HERO */
.envisain-hero {
    position: relative;
    height: 80vh;
    background: url('envisain/hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5%;
}

/* EPIE HERO */
.epie-hero {
    position: relative;
    height: 80vh;
    background: url('epie/hero.webp') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 5%;
}


/* SERVICES */
.scrimtech-services {
    padding: 90px 5%;
    background: #f8f8f8;
}

.scrimtech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    margin-top: 60px;
}

.scrimtech-card {
    background: white;
    padding: 35px 30px 35px 45px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.scrimtech-card .band {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background: #004AAD;
    border-radius: 15px 0 0 15px;
}

.scrimtech-card h3 {
    margin-bottom: 15px;
    color: #004AAD;
}

.scrimtech-card ul {
    padding-left: 20px;
    line-height: 1.6;
}

/* MOBILE */
@media (max-width: 768px) {
    .scrimtech-hero {
        background: none;
        height: auto;
        padding: 40px 5%;
    }

    .scrimtech-overlay {
        display: none;
    }

    .scrimtech-box {
        max-width: 100%;
    }

    .scrimtech-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrimtech button */
.scrimtech-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #004AAD;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.scrimtech-btn:hover {
    background-color: #FEB05D;
    color: #2B2A2A;
    transform: translateY(-2px);
}

/* Scroll animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Footer */
.footer {
    background-color: rgba(0, 74, 173, 0.85);
    color: white;
    padding: 60px 5% 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-brand p {
    max-width: 300px;
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 15px;
    color: white;
}

.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: whitesmoke;
}

.footer-contact p {
    color: white;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: white;
}
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-socials a {
    color: white;
    font-size: 20px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
    transform: scale(1.15);
    opacity: 0.85;
}

/* Center on mobile */
@media (max-width: 768px) {
    .footer-socials {
        justify-content: center;
    }
}


/* Responsive */
@media (max-width: 768px) {
    .about-row,
    .about-row.reverse {
        flex-direction: column;
    }

    .clients-logos img {
        height: 60px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }
}

/* =========================
   MOBILE DROPDOWN ONLY
========================= */
@media (max-width: 768px) {
    .mobile-dropdown .dropdown-menu {
        display: none;
        position: static;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px 0;
    }

    .mobile-dropdown.open .dropdown-menu {
        display: block;
    }

    .mobile-dropdown .dropdown-menu a {
        color: white;
        padding: 12px 20px;
        display: block;
        font-size: 18px;
    }
}

/* =========================
   MOBILE DROPDOWN (ISOLATED)
========================= */
@media (max-width: 768px) {

    .m-dropdown {
        width: 100%;
    }

    .m-dropdown-toggle {
        width: 100%;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        font-weight: 600;
        padding: 14px 0;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .m-dropdown-toggle i {
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    .m-dropdown-menu {
        display: none;
        list-style: none;
        padding-left: 15px;
        margin-top: 10px;
    }

    .m-dropdown-menu a {
        display: block;
        color: white;
        font-size: 20px;
        padding: 10px 0;
        text-decoration: none;
        border-bottom: 1px solid #555;
    }

    .m-dropdown.open .m-dropdown-menu {
        display: block;
    }

    .m-dropdown.open .m-dropdown-toggle i {
        transform: rotate(180deg);
    }
}
