/* Resets and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #020202;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Buttons */
.btn-logo {
    background-color: #6e4b75;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 22px;
    border-radius: 5px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-logo:hover {
    background-color: #825b8a;
}

.btn-action {
    background-color: #6e4b75;
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 5px;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background-color: #825b8a;
    color: #fff;
}

/* Header Center Navigation */
.header-center {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links .highlight-link {
    color: #bfa382; /* Golden/Bronze color */
}

.nav-links .highlight-link:hover {
    color: #d6b793;
}

/* Logo Styling */
.logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(25px); /* Push logo down to overlap the bottom edge */
    z-index: 1001;
}

/* Subtle glow behind logo to mimic reference */
.logo-wrapper::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    filter: blur(20px);
    z-index: -1;
}

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #111;
}

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

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

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay to make text readable */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .header-center {
        gap: 20px;
    }
    .nav-links {
        gap: 15px;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
}

/* Expertise Section */
.expertise-section {
    padding: 80px 20px;
    background: #08020a;
    background-image: radial-gradient(circle at center, #1a0a25 0%, #08020a 70%);
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(130, 91, 138, 0.2);
}

.expertise-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #f0e6d2; /* Light gold/bone color */
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.expertise-header p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 50px;
    font-weight: 300;
}

.expertise-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.expertise-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(10, 5, 15, 0.6);
    padding: 30px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    border-color: rgba(130, 91, 138, 0.4);
}

.expertise-icon {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%; /* Circular clipping */
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(130, 91, 138, 0.3);
    border: 2px solid #2a1b33;
}

.expertise-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #f0e6d2;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

.expertise-card ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.expertise-card ul li {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-action {
    margin-top: 30px;
}

.desktop-hide {
    display: none;
}

/* Responsive for Mobile */
@media (max-width: 900px) {
    .expertise-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .expertise-card {
        width: 100%;
        max-width: 450px;
    }
    .desktop-hide {
        display: block;
    }
    .expertise-header h2 {
        font-size: 1.8rem;
    }
    .expertise-icon {
        width: 160px;
        height: 160px;
    }
}

/* Branding Section */
.branding-section {
    padding: 80px 40px;
    background: #101114; /* Charbon du Kémet */
    position: relative;
    border-top: 1px solid rgba(178, 99, 240, 0.2); /* Violet Solaire */
    text-align: center;
}

/* Add a subtle background pattern or radial gradient */
.branding-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at center, rgba(115, 53, 158, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.branding-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.branding-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #D4AF37; /* Or Antique */
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.branding-header p {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: #e0e0e0;
}

.branding-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.branding-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
}

.right-col {
    text-align: right;
}

.branding-item {
    background: rgba(16, 17, 20, 0.5);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.branding-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(115, 53, 158, 0.15); /* Améthyste Royale */
}

.branding-icon {
    font-size: 2rem;
    color: #B263F0; /* Violet Solaire */
    margin-bottom: 10px;
}

.branding-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #f0e6d2;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.branding-item p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.5;
}

.branding-center-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.branding-center-img img {
    max-width: 100%;
    width: 350px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(115, 53, 158, 0.4);
}

.branding-action {
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.branding-action .btn-action {
    background-color: #73359E; /* Améthyste Royale */
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 1rem;
    border: 1px solid #B263F0;
}

.branding-action .btn-action:hover {
    background-color: #B263F0;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .branding-layout {
        flex-direction: column;
        gap: 40px;
    }
    .branding-col {
        text-align: center;
    }
    .right-col {
        text-align: center;
    }
    .branding-center-img {
        order: -1; /* Image at the top on mobile */
        margin-bottom: 20px;
    }
}

/* Mobile Only Helpers */
.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex;
    }

    /* Update Header for Mobile */
    .main-header {
        height: 70px;
        padding: 0 20px;
    }

    .mobile-logo-area {
        align-items: center;
    }

    .mobile-logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #73359E; /* Améthyste Royale */
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .mobile-logo-img {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }

    /* Hamburger Menu Icon */
    .hamburger-menu {
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #f0e6d2;
        border-radius: 3px;
    }

    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(5px);
        z-index: 9999;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* The Modal inside the overlay */
    .mobile-menu-modal {
        background: #101114; /* Charbon du Kémet */
        width: 90%;
        max-width: 400px;
        border-radius: 15px;
        border: 1px solid #D4AF37; /* Or Antique border/glow */
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: translateY(20px);
        transition: transform 0.3s ease;
    }

    .mobile-menu-overlay.active .mobile-menu-modal {
        transform: translateY(0);
    }

    .mobile-menu-top {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 40px;
    }

    .mobile-menu-logo {
        width: 60px;
        height: auto;
    }

    .close-menu {
        font-size: 2.5rem;
        color: #e0e0e0;
        cursor: pointer;
        line-height: 1;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 25px;
        margin-bottom: 50px;
    }

    .mobile-nav-links a {
        color: #ffffff;
        text-decoration: none;
        font-family: 'Playfair Display', serif;
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .small-text {
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
        color: #cccccc;
    }

    .mobile-menu-action {
        width: 100%;
        text-align: center;
    }
}

/* Parallax Background Wrapper */
.parallax-container {
    background-image: url('parallax-bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    /* Optional: add a slight dark overlay to the whole background so text is always readable */
}

.parallax-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(16, 17, 20, 0.7); /* Charbon du Kémet but semi-transparent */
    pointer-events: none;
    z-index: 0;
}

/* Ensure content stays above the parallax overlay */
.expertise-section, .branding-section {
    position: relative;
    z-index: 1;
    background: transparent !important;
    background-image: none !important;
    border-top: none !important;
}

.expertise-section::before, .branding-section::before {
    display: none !important;
}

/* We still want to keep the visual separation, maybe add a subtle border or gradient separator between sections */
.expertise-section {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1); /* Subtle gold separator */
}

/* UI/UX Audit Fixes */
@media (max-width: 1024px) {
    /* Fix mobile background-attachment fixed bug on iOS/mobile browsers */
    .parallax-container {
        background-attachment: scroll;
    }
}

/* Ensure mobile logo doesn't overflow or distort */
.mobile-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
}

.mobile-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
}

/* Main Footer */
.main-footer {
    background: #08090a; /* Slightly darker than Charbon du Kémet */
    border-top: 1px solid rgba(212, 175, 55, 0.3); /* Or Antique subtle border */
    padding: 80px 40px 30px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-brand {
    flex: 1;
    max-width: 350px;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.2));
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #D4AF37; /* Or Antique */
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.footer-subtitle {
    font-family: 'Inter', sans-serif;
    color: #B263F0; /* Violet Solaire */
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-desc {
    font-family: 'Inter', sans-serif;
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(115, 53, 158, 0.5); /* Améthyste Royale */
    color: #D4AF37;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #73359E;
    color: #fff;
    box-shadow: 0 0 15px rgba(115, 53, 158, 0.6);
}

.footer-links-wrapper {
    flex: 2;
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.footer-col h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #f0e6d2;
    margin-bottom: 25px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(115, 53, 158, 0.3);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #cccccc;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #D4AF37;
}

.footer-col ul li a::before {
    content: '• ';
    color: #B263F0;
    font-size: 1.2rem;
    vertical-align: middle;
}

.footer-bottom {
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
}

.footer-bottom p {
    color: #888;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer-tagline {
    color: #D4AF37 !important;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-container {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .footer-col h4 {
        margin-bottom: 15px;
    }
}

/* Minimal Footer */
.minimal-footer {
    padding: 30px 20px;
    background: #08090a;
}
.minimal-footer .footer-bottom {
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}
.legal-links {
    margin-top: 10px;
}
.legal-links a {
    color: #888;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}
.legal-links a:hover {
    color: #D4AF37;
}
.legal-links .separator {
    color: #444;
    margin: 0 10px;
    font-size: 0.85rem;
}

/* Global Section Styling Updates */
.code-section, .marketing-section, .contact-section {
    position: relative;
    z-index: 1;
    background: transparent !important;
    padding: 80px 40px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #D4AF37;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.section-header p {
    font-family: 'Inter', sans-serif;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.center-scarab-img {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.center-scarab-img img {
    max-width: 350px;
    height: auto;
    border-radius: 50%; /* Mask out hard corners of the jpg */
    box-shadow: 0 0 50px rgba(115, 53, 158, 0.4);
}

/* Feature Boxes */
.feature-boxes {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    flex: 1;
    background: rgba(16, 17, 20, 0.8);
    border: 1px solid rgba(115, 53, 158, 0.5); /* Améthyste Royale border */
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(115, 53, 158, 0.6);
}

.box-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #f0e6d2;
    margin-bottom: 5px;
}

.feature-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #D4AF37;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.feature-box p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.6;
}

/* Contact Section */
.contact-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.contact-left {
    flex: 1;
    text-align: center;
}

.contact-left h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #D4AF37;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.contact-scarab-img {
    max-width: 80%;
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(115, 53, 158, 0.5);
}

.contact-right {
    flex: 1;
}

.form-container {
    background: rgba(16, 17, 20, 0.85);
    border: 1px solid #D4AF37;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
}

.form-container h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #f0e6d2;
    margin-bottom: 30px;
    text-align: center;
}

.magic-form .form-group {
    margin-bottom: 25px;
}

.magic-form label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #a0a0a0;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 15px;
    color: #B263F0;
}

.magic-form input, .magic-form select, .magic-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(115, 53, 158, 0.4);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.magic-form input[type="text"] {
    padding-left: 45px;
}

.magic-form input:focus, .magic-form select:focus, .magic-form textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(45deg, #73359E, #B263F0);
    color: #fff;
    border: none;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(178, 99, 240, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    background: linear-gradient(45deg, #B263F0, #D4AF37);
}

/* Responsive Updates */
@media (max-width: 900px) {
    .feature-boxes {
        flex-direction: column;
    }
    .contact-layout {
        flex-direction: column;
    }
    .contact-scarab-img {
        max-width: 60%;
        margin-bottom: 20px;
    }
}

/* Hero Text Breathing Animation */
@keyframes magicalBreathing {
    0%, 100% {
        opacity: 0.5;
        text-shadow: 0 0 10px rgba(178, 99, 240, 0.2);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 40px rgba(212, 175, 55, 0.8), 0 0 20px rgba(178, 99, 240, 0.8);
    }
}

.hero-content h1 {
    animation: magicalBreathing 6s infinite ease-in-out;
}

/* Mobile Adjustments for Hero Text */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 10px;
    }
    .hero-content h1 {
        font-size: 2.2rem; /* Reduced to keep 'votre identité' on the same line */
         /* Force single line if possible, or adjust words */
    }
}

/* Ensure no stray overflow below footer */
html, body {
    overflow-x: hidden;
}

/* Fix Mobile Menu Button wrapping */
@media (max-width: 768px) {
    .mobile-menu-action {
        font-size: 0.8rem !important;
        padding: 12px 10px !important;
        letter-spacing: 0 !important;
        white-space: nowrap;
    }
}

/* Magical Marquee Banner */
.magical-marquee {
    width: 100%;
    overflow: hidden;
    background: rgba(16, 17, 20, 0.8);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 25px 0;
    margin: 40px 0;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}
.marquee-content {
    display: inline-block;
    animation: marqueeScroll 25s linear infinite;
}
.marquee-content span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 20px;
    vertical-align: middle;
}
.marquee-content .star {
    color: #D4AF37;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
    .marquee-content span {
        font-size: 1.1rem;
    }
}

/* Fixes for Desktop Centering and Mobile Overlay Hide */
.main-header {
    justify-content: center !important;
}

@media (min-width: 1025px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* 1.5x Mobile Header Size */
@media (max-width: 1024px) {
    .main-header {
        height: 100px !important;
        justify-content: space-between !important;
    }
    .mobile-logo-img {
        width: 60px !important;
        height: 60px !important;
        margin-right: 15px !important;
    }
    .mobile-logo-text {
        font-size: 1.65rem !important;
        letter-spacing: 1.5px !important;
    }
    .hamburger-menu {
        width: 45px !important;
        height: 30px !important;
    }
    .hamburger-menu span {
        height: 4px !important;
        border-radius: 4px !important;
    }
}

/* Icon styles for feature boxes */
.small-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* 3D Floating Scarabs */
@keyframes scarabFloat3D {
    0% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 40px rgba(115, 53, 158, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
    }
    50% {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 40px 60px rgba(115, 53, 158, 0.7), 0 0 40px rgba(212, 175, 55, 0.5);
    }
    100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 40px rgba(115, 53, 158, 0.4), 0 0 20px rgba(212, 175, 55, 0.2);
    }
}

.center-scarab-img img, .branding-center-img img, .contact-scarab-img {
    animation: scarabFloat3D 6s infinite ease-in-out;
    border-radius: 50%;
    /* Add a subtle inset/outset pseudo-3D look to the image border */
    border: 2px solid rgba(212, 175, 55, 0.5);
}

/* Client Marquee Brilliance */
.client-marquee {
    background: linear-gradient(90deg, rgba(16,17,20,1) 0%, rgba(115,53,158,0.3) 50%, rgba(16,17,20,1) 100%);
    border-top: 2px solid #D4AF37;
    border-bottom: 2px solid #D4AF37;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.3);
}

.client-marquee .client-title {
    color: #a0a0a0;
    font-size: 1.1rem;
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
    vertical-align: middle;
}

.client-marquee .client-name {
    color: #D4AF37;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(212, 175, 55, 1), 0 0 30px rgba(115, 53, 158, 0.8);
    font-family: 'Playfair Display', serif;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .client-marquee .client-name {
        font-size: 1.3rem;
    }
    .client-marquee .client-title {
        font-size: 0.9rem;
    }
}

/* Dynamic Parallax Background Effects */
.parallax-container {
    background: transparent !important;
    background-image: none !important;
}

.parallax-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('parallax-bg.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
    /* Magical Filter Animation */
    animation: mysticalBgFilter 12s infinite alternate ease-in-out;
}

.parallax-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(16, 17, 20, 0.75);
    pointer-events: none;
    z-index: 0;
}

@keyframes mysticalBgFilter {
    0% { filter: saturate(100%) blur(0px) brightness(1); }
    100% { filter: saturate(160%) blur(5px) brightness(1.2) hue-rotate(10deg); }
}

@media (max-width: 1024px) {
    .parallax-container::before {
        background-attachment: scroll;
    }
}

/* Feature Boxes Background Magic */
.feature-box {
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Subtle! */
    z-index: -1;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.feature-box:hover::before {
    transform: scale(1.1);
    opacity: 0.3;
}

/* Fallback backgrounds until quota resets */
.box-perf::before { background-image: url('perf-icon.webp'); }
.box-ecom::before { background-image: url('ecom-icon.webp'); }
.box-cloud::before { background-image: url('cloud-icon.webp'); }
.box-seo::before { background-image: url('seo-icon.webp'); }
.box-media::before { background-image: url('parallax-bg.webp'); }
.box-data::before { background-image: url('parallax-bg.webp'); }

.feature-box h3, .feature-box h4, .feature-box p {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

/* Ultimate Hero Text Magic Effects */
.hero-content h1 {
    font-size: 5rem !important;
    letter-spacing: 5px;
    text-transform: uppercase;
    
    /* Dynamic Golden & Amethyst Gradient */
    background: linear-gradient(to right, #D4AF37 0%, #f0e6d2 25%, #B263F0 50%, #f0e6d2 75%, #D4AF37 100%);
    background-size: 200% auto;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    
    /* Animate the gradient flow and the glowing aura */
    animation: heroMagicText 8s linear infinite !important;
    
    /* Remove old text-shadow and use drop-shadow filter for transparent text */
    text-shadow: none !important;
}

@keyframes heroMagicText {
    0% { 
        background-position: 0% center; 
        filter: drop-shadow(0 0 15px rgba(115, 53, 158, 0.6)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.3)); 
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.8)) drop-shadow(0 0 50px rgba(178, 99, 240, 0.6)); 
    }
    100% { 
        background-position: 200% center; 
        filter: drop-shadow(0 0 15px rgba(115, 53, 158, 0.6)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.3)); 
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem !important;
        letter-spacing: 2px;
    }
}

/* Smooth Scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed header when scrolling to anchor links */
section[id] {
    scroll-margin-top: 100px; /* Adjust based on header height */
}

/* Ultimate Mobile Logo Enlarge */
@media (max-width: 1024px) {
    .mobile-logo-img {
        width: 90px !important;
        height: 90px !important;
    }
}

/* Seamless Cinematic Transition between Hero and Content */
.video-overlay {
    background: linear-gradient(
        to bottom, 
        rgba(16, 17, 20, 0.4) 0%, 
        rgba(16, 17, 20, 0.6) 75%, 
        rgba(16, 17, 20, 1) 100%
    ) !important;
}

.parallax-container::after {
    background: linear-gradient(
        to bottom,
        rgba(16, 17, 20, 1) 0%,
        rgba(16, 17, 20, 0.75) 10%,
        rgba(16, 17, 20, 0.75) 100%
    ) !important;
}

/* Also remove the top border of the first section to avoid drawing a line */
.code-section {
    border-top: none !important;
}

/* Dynamic Active Menu Link (ScrollSpy) */
.nav-links .highlight-link, .mobile-nav-links .highlight-link {
    color: #D4AF37 !important;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6) !important;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
