@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap");

* {
    font-family: "Inter", sans-serif;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
.hero-title,
.text-gradient {
    font-family: "Orbitron", sans-serif;
}

:root {
    --primary-gradient: linear-gradient(135deg, #8b1538 0%, #dc143c 100%);
    --secondary-gradient: linear-gradient(135deg, #1a0a0f 0%, #8b1538 100%);
    --burgundy: #8b1538;
    --crimson: #dc143c;
    --dark-bg: #0a0a0a;
    --shadow-elegant: 0 10px 30px -5px rgba(139, 21, 56, 0.3);
    --glow-red: 0 0 30px rgba(220, 20, 60, 0.6);
    --glow-burgundy: 0 0 20px rgba(139, 21, 56, 0.5);
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated Gradient Background */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-gradient {
    background: linear-gradient(135deg,
            #0a0a0a 0%,
            #1a0a0f 30%,
            #8b1538 60%,
            #dc143c 100%);
    background-size: 400% 400%;
    animation: gradient-shift 20s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero-gradient::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background-image: url('images/auto.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transform: rotate(-15deg);
    animation: float-diagonal 30s ease-in-out infinite;
}

@keyframes float-diagonal {

    0%,
    100% {
        transform: rotate(-15deg) translateY(0) translateX(0);
    }

    50% {
        transform: rotate(-15deg) translateY(-30px) translateX(30px);
    }
}

.hero-gradient::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%,
            rgba(220, 20, 60, 0.2) 0%,
            transparent 60%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Section Backgrounds */
.section-bg-1 {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-bg-2 {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.section-bg-3 {
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.03) 0%, rgba(220, 20, 60, 0.05) 100%);
}

/* Navbar Futuristic */
.navbar-elegant {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05),
        0 0 40px rgba(220, 20, 60, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.navbar-elegant::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            #dc143c,
            transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.navbar-elegant a:not(#logo) {
    color: #1e293b;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.navbar-elegant a:not(#logo, #btn-contact):hover {
    color: #dc143c;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
}

.navbar-elegant a#btn-contact {
    color: #f8f8f8;
}

.navbar-elegant a:not(#logo)::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b1538, #dc143c);
    transition: width 0.3s ease;
}

.navbar-elegant a:not(#logo):hover::after {
    width: 100%;
}

/* Button Elegant */
.btn-elegant {
    background: linear-gradient(135deg, #8b1538 0%, #dc143c 100%);
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px 0 rgba(139, 21, 56, 0.5),
        0 0 20px rgba(220, 20, 60, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.btn-elegant:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 7px 25px 0 rgba(139, 21, 56, 0.6),
        0 0 30px rgba(220, 20, 60, 0.5);

}

/* Card Elegant with Glow */
.card-elegant {
    background: white;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 21, 56, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-elegant::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(220, 20, 60, 0.1),
            transparent);
    transition: left 0.5s;
}

.card-elegant:hover::before {
    left: 100%;
}

.card-elegant:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 21, 56, 0.3),
        0 0 30px rgba(220, 20, 60, 0.2);
    border-color: rgba(220, 20, 60, 0.4);
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-fade-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Project Card with Advanced Hover */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.project-card:hover::after {
    width: 500px;
    height: 500px;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.3);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #8b1538 0%, #dc143c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #dc143c 0%, #ff4500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Icon Glow */
.icon-glow {
    filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.6));
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(220, 20, 60, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(220, 20, 60, 0.9));
    }
}

/* Service Carousel */
.service-carousel-cards {
    max-width: 500px;
    padding: 1.5rem 0;
}

@media (min-width: 768px) {
    .service-carousel-cards {
        max-width: 560px;
    }
}

@media (min-width: 1024px) {
    .service-carousel-cards {
        max-width: 650px;
        /* Augmenté de 600px */
    }
}

@media (min-width: 1536px) {
    .service-carousel-cards {
        max-width: 800px;
    }
}

.service-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(220, 20, 60, 0.3);
    border-radius: 25px;
    padding: 2.5rem;
    height: 520px;
    /* Augmenté de 380px */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(139, 21, 56, 0.3),
        0 0 40px rgba(220, 20, 60, 0.2);
    background-size: cover;
    background-position: center;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.95) 0%,
            rgba(139, 21, 56, 0.8) 100%);
    z-index: 1;
    transition: opacity 0.5s;
}

.service-card:hover::before {
    opacity: 0.7;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.05);
    border-color: rgba(220, 20, 60, 0.6);
    box-shadow: 0 25px 60px -12px rgba(139, 21, 56, 0.5),
        0 0 50px rgba(220, 20, 60, 0.4);
}

.service-card>* {
    position: relative;
    z-index: 2;
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #8b1538, #dc143c);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(220, 20, 60, 0.5),
        0 0 40px rgba(139, 21, 56, 0.4);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
    color: white;
    font-weight: bold;
}

/* Image with Parallax Effect */
.parallax-img {
    transition: transform 0.3s ease;
}

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

/* Stats Counter Animation */
@keyframes count-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.stat-elegant {
    animation: count-up 0.8s ease-out;
}

/* Form Elegant */
.form-elegant {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-elegant);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.input-elegant {
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.input-elegant:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .service-icon {
        width: 70px;
        height: 70px;
    }

    .service-card {
        height: 400px;
        /* Augmenté de 340px */
        padding: 2rem;
    }
}

@media (min-width: 1280px) {
    .service-card {
        height: 600px;
    }
}

@media (min-width: 1536px) {
    .service-card {
        height: 700px;
    }

    .service-icon {
        width: 120px;
        height: 120px;
    }

    .service-icon i {
        font-size: 3.5rem !important;
    }
}

/* Hero Title Animation */
.hero-title {
    animation: fade-in-up 1s ease-out;
}

.hero-subtitle {
    animation: fade-in-up 1.2s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@media (max-width: 1024px) {
    .navbar-elegant {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .navbar-elegant .navbar-start img {
        width: 140px;
        /* Logo plus petit sur mobile */
    }

    .navbar-elegant {
        height: 4rem;
        min-height: 4rem;
    }
}

/* Badge Tech with Glow */
.badge-tech {
    background: linear-gradient(135deg, #8b1538 0%, #dc143c 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.5),
        0 0 20px rgba(220, 20, 60, 0.3);
}

/* Footer Light */
.footer-light {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
}

.footer-light .footer-title {
    color: #8b1538;
}

.footer-light a {
    color: #475569;
    transition: all 0.3s ease;
}

.footer-light a:hover {
    color: #dc143c;
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
}

/* Utility Classes */
.text-burgundy {
    color: #8b1538;
}

.text-crimson {
    color: #dc143c;
}

.bg-burgundy {
    background-color: #8b1538;
}

.border-burgundy {
    border-color: #8b1538;
}

/* Image Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

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

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right,
            #f6f7f8 0%,
            #edeef1 20%,
            #f6f7f8 40%,
            #f6f7f8 100%);
    background-size: 1000px 100%;
}