/* Styles Premium pour Muzuri Holding SARL */

:root {
    --primary-color: #001122;
    --secondary-color: #333333;
    --accent-color: #FFD700;
    --light-bg: #f8f9fa;
    --dark-bg: #001122;
    --text-color: #333;
    --white: #ffffff;
    --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-color);
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Header Premium */
.header-transparent {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(0, 18, 34, 0.9);
    backdrop-filter: blur(10px);
}

.header-transparent.scrolled {
    background: var(--primary-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    transition: var(--transition);
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-cta {
    background: linear-gradient(45deg, var(--accent-color), #ff8c00);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Hero Section Ultra Premium */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: translateY(var(--scroll, 0));
    transition: transform 0.1s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(0, 18, 34, 0.85) 0%,
        rgba(0, 18, 34, 0.75) 25%,
        rgba(0, 18, 34, 0.65) 50%,
        rgba(0, 18, 34, 0.8) 75%,
        rgba(0, 18, 34, 0.9) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-color), #ff8c00);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    animation: badgeGlow 2s ease-in-out infinite alternate;
}

@keyframes badgeGlow {
    from { box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
    to { box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-title-main {
    display: block;
    background: linear-gradient(45deg, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShine 3s ease-in-out infinite;
}

.hero-title-accent {
    display: block;
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hero-title-sub {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

@keyframes titleShine {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
}

.hero-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.btn-primary-premium {
    background: linear-gradient(45deg, var(--accent-color), #ff8c00);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary-premium:hover::before {
    left: 100%;
}

.btn-primary-premium:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
}

.btn-outline-premium {
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-outline-premium:hover::before {
    transform: scaleX(1);
}

.btn-outline-premium:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-primary-premium:hover .btn-icon,
.btn-outline-premium:hover .btn-icon {
    transform: translateX(5px);
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 280px;
}

.stat-item {
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.hero-shape {
    position: relative;
    width: 200px;
    height: 200px;
    animation: shapeRotate 20s linear infinite;
}

.hero-shape svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
}

@keyframes shapeRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 3;
    overflow: hidden;
}

.hero-separator svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.7;
}

.scroll-mouse {
    width: 24px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary-premium,
    .btn-outline-premium {
        justify-content: center;
    }

    .hero-stats {
        min-width: auto;
        width: 100%;
    }

    .hero-visual {
        margin-top: 3rem;
    }
}

/* Stats */
.stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cards */
.mineral-card, .service-card, .why-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.mineral-card::before, .service-card::before, .why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

.mineral-card:hover::before, .service-card:hover::before, .why-card:hover::before {
    transform: scaleX(1);
}

.mineral-card:hover, .service-card:hover, .why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.mineral-card .card-img-top {
    margin-top: 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.mineral-card:hover .card-img-top {
    transform: scale(1.05);
}

.service-icon, .why-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #002244 100%);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Gallery */
.gallery-filters {
    margin-bottom: 2rem;
}

.gallery-filter-btn {
    border: 1px solid rgba(198, 154, 75, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-weight: 500;
    transition: var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(198, 154, 75, 0.22);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    transition: opacity 0.35s ease, transform 0.35s ease;
    aspect-ratio: 4 / 3;
    min-height: 250px;
}

.gallery-item.is-hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.28) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gallery-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-6px);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.12);
    filter: saturate(1.08) contrast(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.gallery-lightbox .modal-content {
    background: rgba(5, 8, 15, 0.92);
    border: 0;
    border-radius: 24px;
    overflow: hidden;
}

.gallery-lightbox .modal-body {
    padding: 1.5rem;
}

.gallery-lightbox-image {
    max-height: 82vh;
    width: auto;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.gallery-lightbox-caption {
    color: rgba(255, 255, 255, 0.82);
    margin-top: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    opacity: 0.9;
 }

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-item {
        min-height: 220px;
    }

    .gallery-filters {
        gap: 0.75rem;
    }

    .gallery-filter-btn {
        padding: 0.55rem 1rem;
        font-size: 0.95rem;
    }
}

/* Footer */
.footer-premium {
    background: var(--dark-bg);
    color: var(--white);
}

.footer-premium h5 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-premium a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-premium a:hover {
    color: var(--accent-color);
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #002244);
    border: none;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #002244, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 18, 34, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .stats .stat-number {
        font-size: 2rem;
    }

    .mineral-card, .service-card, .why-card {
        padding: 1.5rem;
    }
}

/* AOS Custom */
[data-aos] {
    transition-duration: 0.8s;
}

[data-aos][data-aos][data-aos-duration="50"],
body[data-aos-duration="50"] [data-aos] {
    transition-duration: 50ms;
}

[data-aos][data-aos][data-aos-delay="50"],
body[data-aos-delay="50"] [data-aos] {
    transition-delay: 0;
}

[data-aos][data-aos][data-aos-delay="50"].aos-animate,
body[data-aos-delay="50"] [data-aos].aos-animate {
    transition-delay: 50ms;
}
