@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #1a237e;
    --secondary: #0d47a1;
    --accent: #64b5f6;
    /* Changed from #00c853 to a blue shade */
    --text: #333;
    --bg-dark: #1a237e;
    --bg-light: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

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

/* Skip to main content link - Keyboard navigation accessibility */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    background: #000;
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: bold;
    border-radius: 4px;
}

.skip-link:focus {
    top: 10px;
    left: 10px;
}

/* Updated Loader - Light Theme */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader__spinner {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 24px;
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary);
    font-size: 36px;
    z-index: 2;
}

.shield {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary);
    border-top-color: transparent;
    animation: shield-rotate 1.5s linear infinite;
}

.binary {
    position: absolute;
    width: 200px;
    text-align: center;
    color: var(--primary);
    font-family: monospace;
    font-size: 12px;
    letter-spacing: 5px;
    bottom: -40px;
    opacity: 0.8;
    animation: binary-fade 2s infinite alternate;
}

@keyframes shield-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes binary-fade {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.8;
    }
}

/* Navigation */
.nav-link {
    position: relative;
    color: var(--text);
    transition: color 0.3s ease;
    text-decoration: none;
}

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

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

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 10px;
}

/* Cyber Button */
.cyber-button {
    position: relative;
    padding: 15px 30px;
    color: #64b5f6;
    background: transparent;
    border: 2px solid #64b5f6;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(100, 181, 246, 0.3);
    font-weight: bold;
}

.cyber-button:hover {
    color: #ffffff;
    box-shadow: 0 0 30px rgba(100, 181, 246, 0.5);
}

.cyber-button__glitch {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background: repeating-linear-gradient(120deg,
            transparent 0%,
            rgba(100, 181, 246, 0.3) 3%,
            transparent 6%);
    animation: glitch 3s infinite linear;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-button:hover .cyber-button__glitch {
    opacity: 1;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    text-align: center;
}

.service-card .cyber-button {
    margin-top: 20px;
    font-size: 0.9em;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card .cyber-button:hover {
    transform: translateY(-3px);
    background: var(--secondary);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg {
    color: var(--primary);
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

/* Contact Form */
.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text);
    border: none;
    border-bottom: 2px solid #ddd;
    outline: none;
    background: transparent;
    transition: 0.3s;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 16px;
    color: #999;
    pointer-events: none;
    transition: 0.3s;
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:valid~label,
.form-group textarea:valid~label {
    top: -20px;
    font-size: 12px;
    color: var(--primary);
}

.form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: 0.3s;
}

.form-group input:focus~.line,
.form-group textarea:focus~.line {
    transform: scaleX(1);
}

.submit-button {
    padding: 15px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.submit-button:hover {
    background: var(--secondary);
}

/* Mobile Menu - Fix */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 40;
    display: none;
    flex-direction: column;
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu a {
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 50;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    z-index: 1000;
    transition: width 0.3s ease;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
    animation: width-grow 2s ease infinite;
}

.services h2 {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.logo {
    width: 70px;
}

.left-nav {
    display: flex;
    align-items: center;
}

@keyframes width-grow {

    0%,
    100% {
        width: 50px;
    }

    50% {
        width: 100px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-gradient {
        text-align: center;
        padding-top: 80px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .cyber-sphere {
        display: none;
    }

    .approach-cards {
        grid-template-columns: 1fr;
    }

    .cta-text {
        font-size: 1.25rem;
    }

    .team-members {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .role-icon {
        width: 100px;
        height: 100px;
    }

    .scroll-arrow {
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .cyber-button {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .service-icon {
        font-size: 2.5em;
    }

    .cta-container {
        padding: 1.5rem;
    }
}

/* Team Section Styles */

.qui-somme-nous h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

.clients h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

.team-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.team-card {
    perspective: 1000px;
    height: 300px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.team-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    background: white;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
}

.team-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    display: none;
    /* Hide the original images */
}

.role-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    padding: 0.75rem;
    color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card-front:hover .role-icon {
    transform: scale(1.1);
    background: var(--secondary);
}

/* Clients Section Styles */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.client-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.client-card:hover {
    transform: translateY(-10px);
}

.client-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    object-fit: contain;
}

.client-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.client-card p {
    color: var(--text);
    font-style: italic;
}

@media (max-width: 768px) {

    .team-members,
    .clients-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .team-card {
        height: 250px;
    }
}

/* Add this to your existing CSS file */

.approach-section {
    position: relative;
    overflow: hidden;
}

.approach-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.approach-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 181, 246, 0.2);
    /* Using the new blue accent color */
    border-radius: 20px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.approach-icon {
    margin-bottom: 1.5rem;
    color: #64b5f6;
    /* Changed to blue */
}

.approach-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.approach-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #64b5f6, transparent);
    /* Changed to blue */
    animation: glow 2s linear infinite;
}

.cta-container {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.cta-text {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #64b5f6;
    /* Changed from green to blue */
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: #90caf9;
    /* Lighter blue on hover */
}

.cta-button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.2), transparent);
    /* Adjusted to blue */
    animation: buttonGlow 2s linear infinite;
}

.divider {
    margin: 20px 420px;
    border: 0.5px solid #0d47a1;
    background-color: #0d47a1;
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes buttonGlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

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

    .cta-text {
        font-size: 1.25rem;
    }
}

/* Common dark gradient section style */
.dark-gradient-section {
    background: linear-gradient(to bottom right, var(--bg-dark), #0d47a1);
    color: white;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.glass-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.glass-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.glow-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: glow 2s linear infinite;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.dark-gradient-section .form-group input,
.dark-gradient-section .form-group textarea {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.dark-gradient-section .form-group label {
    color: rgba(255, 255, 255, 0.7);
}

.dark-gradient-section .form-group input:focus~label,
.dark-gradient-section .form-group textarea:focus~label,
.dark-gradient-section .form-group input:valid~label,
.dark-gradient-section .form-group textarea:valid~label {
    color: var(--accent);
}

.dark-gradient-section .form-group .line {
    background: var(--accent);
}

/* Replace existing marquee styles with these new styles */

.partners-section {
    overflow: hidden;
    position: relative;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.marquee {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

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

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

.marquee-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    min-width: 100%;
    gap: 40px;
    padding: 0 20px;
}

.marquee-img {
    height: 180px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.marquee-img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Add this to your existing CSS file */
.scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 2;
    opacity: 0.8;
}

.scroll-arrow:hover {
    opacity: 1;
}

.animate-bounce {
    animation: bounce 1.5s infinite;
}

@keyframes bounce {

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

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

/* Unified Button Styles */
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: #06b6d4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
    text-align: center;
}

.btn-primary:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    background: transparent;
    color: #64b5f6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid #64b5f6;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(100, 181, 246, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.2);
}

/* Card CTA Button - used on cards */
.card-cta {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: #06b6d4;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.card-cta:hover {
    background: #0891b2;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(6, 182, 212, 0.3);
}

/* Compliance Section Styles */
.compliance-section {
    position: relative;
    overflow: hidden;
}

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

.compliance-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid #1a237e;
    display: flex;
    flex-direction: column;
}

.compliance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.compliance-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1a237e, #0d47a1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
}

.compliance-card h3 {
    color: #1a237e;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.compliance-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.compliance-card ul {
    list-style: none;
    padding: 0;
}

.compliance-card li {
    color: #555;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.compliance-card li:last-child {
    border-bottom: none;
}

.compliance-cta {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .compliance-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .compliance-card {
        padding: 1.5rem;
    }
}