:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #06ffa5;
    --dark: #0a0a0f;
    --darker: #050507;
    --light: #f8fafc;
    --gray: #1e1e2e;
    --text-light: #a1a1aa;
    --gradient-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06ffa5 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1e1e2e 100%);
    --glow: 0 0 30px rgba(99, 102, 241, 0.3);
    --glow-accent: 0 0 30px rgba(6, 255, 165, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: white;
    background: var(--dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-main);
    border-radius: 4px;
}

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav.scrolled {
    background: rgba(10, 10, 15, 0.95);
    padding: 1rem 0;
    box-shadow: var(--glow);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;

    position: relative;
}

.nav-logo {
    height: 40px;
    transition: all 0.3s ease;
}

.nav-logo img {
    width: auto;
    height: 100%;
}

.nav-logo:hover {
    transform: scale(1.6);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: var(--glow-accent);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.nav-toggle__bar {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #fff;
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.nav-toggle__bar:nth-child(1) {
    top: 13px;
}

.nav-toggle__bar:nth-child(2) {
    top: 21px;
}

.nav-toggle__bar:nth-child(3) {
    top: 29px;
}

.nav-toggle.active .nav-toggle__bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.nav-toggle.active .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle__bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}


.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 2rem;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h1 .gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 150px;
}

.btn-primary {
    padding: 1.2rem 3rem;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glow);
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    padding: 1.2rem 1.8rem;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: var(--glow-accent);
}

.stats {
    padding: 4rem 0;
    background: rgba(30, 30, 46, 0.5);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    padding: 0 2rem;
    text-align: center;
}

.stat-item {
    opacity: 0;
    transform: translateY(30px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}


.services {
    padding: 8rem 0;
    background: var(--dark);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.6;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-main);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: var(--glow);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
    text-shadow: var(--glow-accent);
}


.styling {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--darker) 0%, var(--gray) 100%);
    position: relative;
    overflow: hidden;
}

.styling::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 255, 165, 0.1) 0%, transparent 70%);
    animation: float-bg 20s ease-in-out infinite;
}

@keyframes float-bg {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -20px) rotate(180deg);
    }
}

.reviews {
    padding: 8rem 0;
    background: var(--dark);
    position: relative;
}

.reviews-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

@media (max-width: 1200px) {
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(10, 10, 15, .98);
        padding: 1rem 2rem;
    }

    .nav-links.open {
        display: flex;
    }

}

.review-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.5s ease;
    position: relative;
    backdrop-filter: blur(20px);
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.review-stars {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.contact {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--gray) 0%, var(--darker) 100%);
    position: relative;
    overflow: hidden;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-content>div,
.cal-widget {
    width: 100%;
    max-width: 500px;
}

.cal-widget {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.form-group label {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--dark);
    padding: 0 0.5rem;
}

.cal-widget {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(20px);
}

.cal-widget h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cal-widget p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.social-section {
    padding: 4rem 0;
    background: var(--darker);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    width: 60px;
    height: 60px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    transition: all 0.4s ease;
    box-shadow: var(--glow);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.linkedin {
    background: #0a66c2;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.gitlab {
    background: #fc6d26;
}

.social-link:hover {
    transform: translateY(-10px) scale(1.2);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.footer {
    padding: 2rem 0;
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-cta {
        display: none;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .section-header,
    .services-grid,
    .pricing-grid,
    .reviews-grid,
    .contact-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    height: 105px;
    animation: pulse 1.8s ease-in-out infinite;
    &::after {
        content: 'Chargement...';
        position: absolute;
        top: 100%;
        left: 50%;
        font-size: 1.1rem;
        color: var(--text-light);
        transform: translate(-50%, -50%);
        letter-spacing: 1px;
        font-weight: 500;
        text-transform: uppercase;
    }
}


.loading-logo img {
    height: 100%;
    width: auto;
    filter: brightness(0) invert(1);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.cursor {
    width: 20px;
    height: 20px;
    background: transparent;
    border: 2px solid var(--accent);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s linear;
    mix-blend-mode: difference;
}

.cursor::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor.hover {
    transform: scale(2);
    background: var(--accent);
}

@media (max-width: 600px) {
    .cursor {
        display: none;
    }
}