/* ============================================================
   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: 220px;
    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%;
    min-height: 320px;
    perspective: 1200px;
    overflow: hidden;
}

.flip-inner {
    width: 100%;
    height: 100%;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
}

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

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    border-radius: 1rem;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

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

/* FRONT */
.flip-front {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

/* BACK */
.flip-back {
    background: rgba(0, 8, 20, 0.95);
    border: 1px solid #0F9EFD;
    transform: rotateY(180deg);
    box-shadow: 0 0 20px #0F9EFD, 0 0 40px #38BDF8;
    overflow-y: auto;
}

/* ICON BOTH SIDES */
.flip-front .icon,
.flip-back .icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

/* NAME BOTH SIDES */
.flip-front h3,
.flip-back h3 {
    color: #0F9EFD;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

/* DESCRIPTION ONLY ON BACK */
.flip-back p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
    margin-top: 0.6rem;
    text-align: center;
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.tab-btn {
    padding: 0.8rem 1.6rem;
    background: #0a0f1f;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 999px;
    cursor: pointer;
    transition: 0.3s ease;
}

.tab-btn:hover {
    border-color: #0F9EFD;
    box-shadow: 0 0 20px #0F9EFD;
}

.tab-btn.active {
    background: #0F9EFD;
    color: #fff;
    box-shadow: 0 0 20px #0F9EFD, 0 0 40px #38BDF8;
}

.tab-content {
    display: none;
    margin-top: 2rem;
}

.tab-content.active {
    display: block;
}

/* ============================================================
   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;
    bottom: 22px;
    right: 22px;
    width: 64px;
    height: 64px;
    background: #0F9EFD;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px #0F9EFD, 0 0 40px #38BDF8;
    cursor: pointer;
    z-index: 9999;
    transition: 0.3s ease;
}

.floating-whatsapp img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

.floating-whatsapp:hover {
    transform: scale(1.15);
    box-shadow: 0 0 30px #0F9EFD, 0 0 60px #38BDF8;
}
