* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

.main {
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #dcdcdc 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    align-content: flex-start;
    flex-wrap: wrap;
}

.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.main-content img {
    max-width: 120px;
}

.main-content label {
    font-size: 1.2rem;
    color: black;
    animation: fadeInUp 1s ease-out 1s both;
    margin-top: 15px;
}
.main-content .contact-form_items {
    font-size: 1.2rem;
    color: black;
    animation: fadeInUp 1.2s ease-out 1.2s both;
}
#contactItems {
    display: none;
}

.main h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 0.5s ease-out;
    color: black;
    font-weight: 600;
}

.main .subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.5s both;
    color: black;
    text-shadow: 1px 1px 4px rgb(0 0 0 / 20%);
    margin-inline: 0;
}

.color-bar {
    width: 58vw;
    height: 8px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.color-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
    #0066ff,
    #00cc99,
    #66ff66,
    #00ff88,
    #0099cc,
    #0066ff
    );
    background-size: 400% 400%;
    animation: colorShift 8s ease-in-out infinite;
    filter: blur(2px);
}

.color-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
    #0066ff,
    #00aa77,
    #44dd44,
    #00cc88,
    #0088bb,
    #0066ff
    );
    background-size: 300% 300%;
    animation: colorShift 8s ease-in-out infinite reverse;
    filter: blur(3px);
    opacity: 0.7;
}

@keyframes colorShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 25%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 25% 0%;
    }
}

.main .cta {
    background: #ff6b35;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 1s both;
    text-decoration: none;
    display: inline-block;
}

.main .cta:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255,107,53,0.3);
}

.navbar {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgb(255 255 255 / 30%);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    background: #0d8af1;
    color: white;
}
.nav-link.active {
    background: #016fc6;
    color: white;
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 100px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100vw;
}
.container hr {
    border-color: hsl(0deg 0% 100% / 25%);
    margin: 2rem 0;
    width: 90%;
}
#contact > .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section h2 {
    font-size: 3rem;
    color: #333;
    position: relative;
}

.section p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 1rem;
    color: #505050;
    line-height: 1.8;
}

/* Section backgrounds */
#accueil {
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

#accueil {
    background:
            linear-gradient(260deg, #ffffff 0%, transparent 100%),
            url('assets/electricity.jpg');
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
}

#electricity {
    background:
            linear-gradient(180deg, #ffffff 0%, transparent 100%),
            url('assets/industry.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#monitoring {
    background:
            linear-gradient(180deg, #ffffff 0%, transparent 100%),
            url('assets/controle.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#charge {
    background:
            linear-gradient(180deg, #e6e6e6 0%, transparent 100%),
            url('assets/charge.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#printer {
    background:
            linear-gradient(180deg, #e6e6e6 0%, transparent 100%),
            url('assets/printer.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#sells {
    background:
            linear-gradient(180deg, #e6e6e6 0%, transparent 100%),
            url('assets/sells.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#contact {
    background: linear-gradient(180deg, #016fc6 0%, #51b2ff 100%
    100%
    );
}

/* electricity Grid */
.electricity-grid {
    display: flex;
    gap: 30px;
    margin-top: 6rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.service-card {
    background: rgb(255 255 255 / 63%);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 500px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.btn-submit {
    background: #333;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #555;
    transform: translateY(-2px);
}

#contact h2, #contact p {
    color: white;
}

.contact-form_items {
    margin-top: 3rem;
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.contact-form_items p {
    margin: 0;
}

.carousel-container {
    max-width: 800px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}

.carousel-slide img {
    width: fit-content;
    height: 450px;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.25);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.footer {
    background: linear-gradient(0deg, #ffffff 0%, #50b2ff 100%
    100%
    );
    color: #000;
    padding: 3rem 2rem;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer__brand div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.footer__brand img {
    height: 30px;
    width: auto;
}
.footer__brand h3 {
    font-size: 2rem;
    font-weight: 700;
    background-clip: text;
    font-family: 'medium_font', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.footer__brand p {
    font-size: 0.9rem;
}
.footer__copy a {
    transition: 0.2s;
    text-decoration: none;
    color: #000;
}
.footer__copy a:hover {
    color: #2e2e2e;
    text-decoration: underline;
}
.footer__copy p {
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact_link {
    text-decoration: none;
    color: #000;
    background-color: #fff;
    padding: 10px 20px;
    border-radius: 27px;
    transition: 0.2s;
}
.contact_link:hover {
    box-shadow: 0 0 7px #00000080;
    transition: 0.2s;
}

/* Responsive */
@media (max-width: 810px) {
    .carousel-container {
        margin-bottom: 1rem;
        padding: 20px 10px;
    }
}

@media (max-width: 768px) {
    .main h1 {
        font-size: 2.5rem;
    }

    .main .subtitle {
        font-size: 1.2rem;
    }

    .main-content label {
        font-size: 1rem;
    }

    .main-content .contact-form_items {
        margin-top: 3rem;
    }

    .main-content .contact-form_items p {
        font-size: 0.8rem;
    }

    .section {
        padding: 50px 20px;
    }

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

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .navbar {
        bottom: 0;
        border-radius: 0;
        width: 100%;
    }
    .color-bar {
        height: 6px;
    }

    .carousel-container {
        margin-bottom: 1rem;
        padding: 20px 5px;
    }

    .carousel-slide img {
        height: 350px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .contact-form_items {
        gap: 20px;
        margin-top: 1rem;
    }

    .contact-form_items p {
        font-size: 1rem;
    }
}

@media (max-width: 850px) {
    .main {
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #dcdcdc 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: white;
        position: relative;
        align-content: center;
    }

    .main-content {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -100px;
    }

    .color-bar {
        height: 4px;
    }

    .electricity-grid {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 15px;
        margin: 10px;
    }

    .carousel-slide img {
        height: 200px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    .nav-link {
        font-size: 0.6rem;
    }
}

@media (max-width: 400px) {
    .main-content #contacts {
        display: none;
    }
    .main-content #contactItems {
        display: flex;
    }
}
