/* ============================================================
   GLOBAL
   ============================================================ */
body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #000814;
    color: #e2e8f0;
    overflow-x: hidden;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 8, 20, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav a {
    margin-left: 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: 0.25s ease;
}

#nav a:hover {
    color: #0F9EFD;
    text-shadow: 0 0 10px #0F9EFD;
}

.nav-logo {
    height: 42px;
    filter: drop-shadow(0 0 10px #0F9EFD);
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 4rem;
}

.hero-center {
    position: relative;
    z-index: 10;
}

.hero-logo {
    height: 350px;
    filter: drop-shadow(0 0 35px #0F9EFD) drop-shadow(0 0 70px #38BDF8);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% { filter: drop-shadow(0 0 35px #0F9EFD) drop-shadow(0 0 70px #38BDF8); }
    50% { filter: drop-shadow(0 0 45px #0F9EFD) drop-shadow(0 0 90px #38BDF8); }
    100% { filter: drop-shadow(0 0 35px #0F9EFD) drop-shadow(0 0 70px #38BDF8); }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-top: 1rem;
    line-height: 1.1;
}

.hero-slogan {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    color: #94a3b8;
}

.btn {
    padding: 1rem 2.2rem;
    background: #0F9EFD;
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 2rem;
    transition: 0.3s ease;
    box-shadow: 0 0 25px rgba(15,158,253,0.5);
}

.btn:hover {
    background: #0c7fcc;
    transform: scale(1.06);
    box-shadow: 0 0 35px #0F9EFD;
}

/* ============================================================
   TECH GRID BACKGROUND
   ============================================================ */
.tech-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(#0F9EFD22 1px, transparent 1px),
                      linear-gradient(90deg, #0F9EFD22 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.18;
    pointer-events: none;
}

/* ============================================================
   PARTICLES CANVAS
   ============================================================ */
#particles {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section {
    padding: 6rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

section h2 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

section p {
    color: #94a3b8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   CARD BASE STYLE
   ============================================================ */
.card {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s ease;
    text-align: center;
}

/* ============================================================
   ICON BLUE FILTER
   ============================================================ */
.icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    transition: 0.3s ease;
    filter: brightness(0) saturate(100%) invert(48%) sepia(96%) saturate(2000%) hue-rotate(180deg) brightness(105%);
}

/* ============================================================
   3D FLIP CARD SYSTEM
   ============================================================ */

.card.flip-card {
    position: relative;

    width: 100%;
    height: 320px;

    perspective: 1200px;

    /* IMPORTANT:
       Do not use overflow:hidden here.
       It can interfere with the 3D transform. */
    overflow: visible;

    background: transparent;
    border: none;
    box-shadow: none;
}


/* ============================================================
   INNER 3D CONTAINER
   ============================================================ */

.flip-inner {
    position: relative;

    width: 100%;
    height: 100%;

    transition:
        transform 0.8s cubic-bezier(.2,.75,.25,1);

    transform-style: preserve-3d;

    -webkit-transform-style: preserve-3d;
}


/* ============================================================
   HOVER FLIP
   ============================================================ */

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


/* ============================================================
   FRONT + BACK
   ============================================================ */

.flip-front,
.flip-back {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 2rem;

    border-radius: 1.25rem;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;

    box-sizing: border-box;
}


/* ============================================================
   FRONT
   ============================================================ */

.flip-front {

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(15, 158, 253, .12),
            transparent 55%
        ),
        rgba(255, 255, 255, .04);

    border: 1px solid rgba(15, 158, 253, .25);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, .25),
        inset 0 0 30px rgba(15, 158, 253, .03);

    transition:
        border-color .3s ease,
        box-shadow .3s ease;
}


/* Front hover glow */

.card.flip-card:hover .flip-front {

    border-color:
        rgba(15, 158, 253, .55);

}


/* ============================================================
   BACK
   ============================================================ */

.flip-back {

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(15, 158, 253, .18),
            transparent 55%
        ),
        rgba(0, 8, 20, .98);

    border: 1px solid #0F9EFD;

    transform: rotateY(180deg);

    box-shadow:
        0 0 15px rgba(15, 158, 253, .45),
        0 0 35px rgba(15, 158, 253, .18),
        inset 0 0 30px rgba(15, 158, 253, .04);

    overflow: hidden;
}


/* ============================================================
   ICON
   ============================================================ */

.flip-front .icon,
.flip-back .icon {

    font-size: 2.8rem;

    line-height: 1;

    margin-bottom: 1.25rem;

    display: flex;

    align-items: center;
    justify-content: center;

    transition:
        transform .3s ease,
        filter .3s ease;
}


/* Slight icon movement */

.card.flip-card:hover .flip-front .icon {

    transform: scale(1.05);

}


/* ============================================================
   FRONT ICON
   ============================================================ */

.flip-front .icon {

    color: #0F9EFD;

    filter:
        drop-shadow(
            0 0 10px rgba(15, 158, 253, .45)
        );
}


/* ============================================================
   BACK ICON
   ============================================================ */

.flip-back .icon {

    color: #ffffff;

    filter:
        drop-shadow(
            0 0 10px rgba(255, 255, 255, .35)
        );

}


/* ============================================================
   PRODUCT NAME
   ============================================================ */

.flip-front h3,
.flip-back h3 {

    margin: 0;

    font-size: 1.45rem;

    font-weight: 800;

    letter-spacing: -.02em;

}


/* FRONT NAME */

.flip-front h3 {

    color: #0F9EFD;

}


/* BACK NAME */

.flip-back h3 {

    color: #ffffff;

}


/* ============================================================
   DESCRIPTION
   ============================================================ */

.flip-back p {

    margin:

        .9rem
        0
        0;

    max-width: 90%;

    color: #94a3b8;

    font-size: .95rem;

    line-height: 1.6;

    text-align: center;

}


/* ============================================================
   CARD GLOW
   ============================================================ */

.card.flip-card::before {

    content: "";

    position: absolute;

    inset: 10px;

    border-radius: 1.25rem;

    background:
        radial-gradient(
            circle,
            rgba(15, 158, 253, .12),
            transparent 70%
        );

    filter: blur(25px);

    opacity: 0;

    z-index: -1;

    transition:
        opacity .4s ease;

}


.card.flip-card:hover::before {

    opacity: 1;

}
.contact-submit {
    width: 100%;
    padding: 14px 24px;

    margin-top: 10px;

    border: none;
    border-radius: 10px;

    background: #0F9EFD;
    color: #ffffff;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.contact-submit:hover {
    background: #38BDF8;

    transform: translateY(-2px);

    box-shadow:
        0 0 20px rgba(15, 158, 253, .5),
        0 0 40px rgba(56, 189, 248, .25);
}

/* ============================================================
   MOBILE / TOUCH DEVICES
   ============================================================ */

@media (max-width: 768px) {

    .card.flip-card {

        height: 300px;

    }

    .flip-front,
    .flip-back {

        padding: 1.75rem;

    }

    .flip-front .icon,
    .flip-back .icon {

        font-size: 2.5rem;

    }

    .flip-front h3,
    .flip-back h3 {

        font-size: 1.3rem;

    }

    .flip-back p {

        font-size: .9rem;

    }

}


/* ============================================================
   SMALL MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .card.flip-card {

        height: 280px;

    }

    .flip-front,
    .flip-back {

        padding: 1.5rem;

    }

}


/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form {
    display: grid;
    gap: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #334155;
    background: #0a0f1f;
    color: #e2e8f0;
}

.contact-links {
    margin-top: 2rem;
}

.contact-link {
    display: block;
    margin-bottom: 0.5rem;
    color: #0F9EFD;
    font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #000;
    color: #94a3b8;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */

.floating-whatsapp {
    position: fixed;

    right: 24px;
    bottom: 24px;

    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #0F9EFD;

    color: #fff;

    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    text-decoration: none;

    z-index: 9999;

    box-shadow:
        0 0 15px rgba(15, 158, 253, 0.55),
        0 0 35px rgba(15, 158, 253, 0.30);

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}


/* ============================================================
   WHATSAPP ICON
   ============================================================ */

.floating-whatsapp i {
    display: block;

    font-size: 32px;

    color: #fff;

    line-height: 1;

    position: relative;
    z-index: 2;

    transition:
        transform .3s ease;
}


/* ============================================================
   SUBTLE PULSE
   ============================================================ */

.floating-whatsapp::before {
    content: "";

    position: absolute;

    inset: -6px;

    border-radius: 50%;

    border: 1px solid rgba(15, 158, 253, .35);

    animation: whatsappPulse 2.5s ease-out infinite;
}


/* ============================================================
   HOVER
   ============================================================ */

.floating-whatsapp:hover {
    transform: translateY(-4px) scale(1.06);

    box-shadow:
        0 0 20px rgba(15, 158, 253, 0.65),
        0 0 45px rgba(15, 158, 253, 0.40);
}

.floating-whatsapp:hover i {
    transform: scale(1.12);
}


/* ============================================================
   TOOLTIP
   ============================================================ */

.whatsapp-tooltip {
    position: absolute;

    right: 74px;
    top: 50%;

    transform:
        translateY(-50%)
        translateX(8px);

    background: #0f172a;

    color: #fff;

    padding: 8px 13px;

    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .25s ease,
        transform .25s ease;
}

.floating-whatsapp:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}


/* ============================================================
   TOOLTIP ARROW
   ============================================================ */

.whatsapp-tooltip::after {
    content: "";

    position: absolute;

    right: -4px;
    top: 50%;

    width: 8px;
    height: 8px;

    background: #0f172a;

    transform:
        translateY(-50%)
        rotate(45deg);
}


/* ============================================================
   PULSE
   ============================================================ */

@keyframes whatsappPulse {

    0% {
        transform: scale(.85);
        opacity: .7;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .floating-whatsapp {
        width: 56px;
        height: 56px;

        right: 16px;
        bottom: 16px;
    }

    .floating-whatsapp i {
        font-size: 29px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}