:root {
    --primary: #0066ff;
    --primary-dark: #0044cc;
    --secondary: #6366f1;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    gap: 2rem;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

/* Typography */
h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: #94a3b8;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
    letter-spacing: 0.01em;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Sections */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 2rem 5rem;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

.hero-bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    /* Check this checks out above the video */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-image {
    /* Optional: Hide or style the side image if needed. keeping it for structure but maybe transparent? */
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); Removed duplicate shadow if video is BG */
}

/* Ensure images/videos in hero-image still behave if we keep them */
.hero-image img,
.hero-image video {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Services */
.services {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-premium:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 102, 255, 0.5);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-outline:hover {
    background: var(--glass);
}

/* Mobile Adjustments */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        /* Hide links by default on mobile */
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 3rem;
    }

    .nav-links.active {
        right: 0;
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .hero-image {
        order: -1;
        max-width: 80%;
        margin: 0 auto;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .section-label {
        margin: 0 auto 1.5rem;
    }

    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 120px;
    }

    .btn-premium,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .hero-btns {
        flex-direction: column;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.table-container {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    overflow-x: auto;
    /* Allow horizontal scroll on mobile */
    margin-top: 3rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--light);
}

.pricing-table th,
.pricing-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-table th {
    background: rgba(0, 102, 255, 0.2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

.price-tag {
    font-weight: 700;
    color: #a5b4fc;
    font-family: 'Outfit', sans-serif;
}

@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }

    .pricing-table {
        min-width: 600px;
    }
}

/* Contact Section */
.contact-section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--glass);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Infinite Scroll Animation */
.scroll-container {
    max-width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 2rem 0;
}

.scroll-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.scroll-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }

    /* Moves half the track width (assuming duplicated content) */
}

/* Specific Card Sizing for Carousel */
.scroll-track .glass-card {
    width: 350px;
    flex-shrink: 0;
}

/* Services Interactive Grid */
.services-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card-interactive {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card-interactive:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-card-interactive::after {
    content: 'Voir Détails →';
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: var(--primary);
    font-weight: 700;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-card-interactive:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-image {
    height: 100%;
    min-height: 400px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-details {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 250px;
        min-height: auto;
    }

    .modal-details {
        padding: 2rem;
    }
}