@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2a296f;
    --primary-light: #3d3c8c;
    --secondary-color: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navbar */
header {
    background: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: padding 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo span {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.logged-in header .container {
    max-width: 1400px;
}

.logged-in .nav-links {
    gap: 15px;
}

.mobile-header {
    display: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    position: relative;
    white-space: nowrap;
}

.nav-links a:not(.btn-login):not(.btn-register)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-login {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 600 !important;
}

.btn-login:hover {
    background: var(--primary-color);
    color: #fff !important;
}

.btn-register {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 5px;
    font-weight: 600 !important;
    border: 2px solid var(--primary-color);
}

.btn-register:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* Adjust auth button font size when logged in to save space */
.logged-in .nav-auth a {
    font-size: 0.9rem;
}

.logged-in .btn-login {
    padding: 6px 15px;
}

/* Auth Page Styles */
.auth-body {
    background: var(--bg-light);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 50px;
}

.auth-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.auth-card h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-card p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.auth-form .form-group {
    text-align: left;
    margin-bottom: 20px;
}

.auth-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: var(--transition);
}

.auth-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(42, 41, 111, 0.1);
}

.auth-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.auth-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 25px;
    color: var(--text-light);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(42, 41, 111, 0.7), rgba(42, 41, 111, 0.7)), url('../img/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    padding-top: 80px;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 4px;
    white-space: nowrap;
}

.hero-tagline {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    margin-bottom: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.hero-desc {
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

/* Sections General */
section {
    padding: 100px 0;
}

section:not(.hero) {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--primary-color);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Services Section */
.services {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Core Businesses Section */
.core-biz-item {
    margin-bottom: 60px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.core-biz-item:last-child {
    margin-bottom: 0;
}

.core-biz-text h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.core-biz-text ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 30px;
}

.core-biz-text ul li {
    margin-bottom: 12px;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.core-biz-text ul li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.core-biz-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.core-biz-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.core-biz-gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@media (max-width: 992px) {
    .core-biz-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .core-biz-gallery {
        grid-template-columns: 1fr;
    }

    .core-biz-text h3 {
        font-size: 1.5rem;
    }
}



/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-form {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--secondary-color);
        flex-direction: column;
        gap: 0;
        padding: 0;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 2000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        display: flex !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f8f9fa;
    }

    .nav-links a {
        padding: 18px 30px;
        display: block;
        font-weight: 500;
        color: var(--text-dark);
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background: #f8f9fa;
        color: var(--primary-color);
        padding-left: 35px;
    }

    .nav-links a::after {
        display: none;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 25px 30px;
        border-bottom: 2px solid var(--bg-light);
        margin-bottom: 10px;
        background: #fff;
    }

    .mobile-header .logo img {
        height: 45px;
    }

    .mobile-header .logo span {
        font-size: 1.2rem;
    }

    .close-menu {
        font-size: 1.8rem;
        color: var(--primary-color);
        cursor: pointer;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(42, 41, 111, 0.5);
        display: none;
        z-index: 1000;
        backdrop-filter: blur(5px);
    }

    .nav-overlay.active {
        display: block;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 4.2vw;
        letter-spacing: 0;
        white-space: nowrap;
        margin-bottom: 20px;
    }

    .hero .container {
        padding: 0 10px;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .hero-desc {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Auth buttons in mobile menu */
    .nav-links .nav-auth {
        border-bottom: none;
        padding: 5px 30px;
    }

    .nav-links .btn-login,
    .nav-links .btn-register {
        display: block;
        text-align: center;
        padding: 12px;
        margin: 5px 0;
    }
}

@media (max-width: 768px) {

    .about-grid,
    .contact-container,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 3.8vw;
        letter-spacing: -0.2px;
        white-space: nowrap;
    }

    html[lang="fr"] .hero h1 {
        font-size: 3.6vw;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 993px) {

    .mobile-header,
    .nav-overlay {
        display: none !important;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}

/* Team Section */
.team-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.team-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img {
    height: 350px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.team-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}