/*
 * ============================================================================
 * STYLE.CSS - Korx Solutions
 * ============================================================================
 */

:root {
    --primary-blue: #1a4fa3;
    --secondary-blue: #3b82f6;
    --neon-blue: #4da6ff;
    --neon-red: #FF0055;
    --dark-bg: #060c1a;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(77, 166, 255, 0.15);
    --glass-stroke: rgba(77, 166, 255, 0.12);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: #fff;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.seo-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.5;
}

@keyframes float {
    from { transform: translateY(100vh) translateX(0); }
    to { transform: translateY(-100px) translateX(100px); }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(6, 12, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-modal, 1000);
    transition: all 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: var(--z-raised, 2);
}

.glitch-text {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); }
    25% { text-shadow: -2px 0 #1a4fa3, 2px 0 var(--neon-blue); }
    50% { text-shadow: 2px 0 #0d47a1, -2px 0 var(--neon-blue); }
    75% { text-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6; }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 300;
}

.cube-container {
    width: 200px;
    height: 200px;
    margin: 60px auto;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate-cube 10s infinite linear;
}

@keyframes rotate-cube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--neon-blue);
    background: rgba(77, 166, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cube-face:nth-child(1) { transform: translateZ(100px); }
.cube-face:nth-child(2) { transform: rotateY(90deg) translateZ(100px); }
.cube-face:nth-child(3) { transform: rotateY(180deg) translateZ(100px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(100px); }
.cube-face:nth-child(5) { transform: rotateX(90deg) translateZ(100px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(100px); }

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.cta-button {
    padding: 15px 48px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    position: relative;
    opacity: 0;
    transform: translateY(15px);
    animation: cta-fade-in 0.6s ease forwards;
}

.cta-container .cta-button:nth-child(1) { animation-delay: 0.3s; }
.cta-container .cta-button:nth-child(2) { animation-delay: 0.5s; }
.cta-container .cta-button:nth-child(3) { animation-delay: 0.7s; }

@keyframes cta-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-primary {
    background: linear-gradient(135deg, #25d366, #128C47);
    color: white;
    border: 1px solid #25d366;
}

.cta-primary:hover {
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.cta-secondary {
    background: linear-gradient(135deg, #4da6ff, #1a4fa3);
    color: white;
    border: 1px solid #4da6ff;
}

.cta-secondary:hover {
    box-shadow: 0 6px 30px rgba(77, 166, 255, 0.5);
}

.cta-orcamento {
    background: linear-gradient(135deg, #1a4fa3, #0d2d6b);
    color: white;
    border: 1px solid #4da6ff;
}

.cta-orcamento:hover {
    box-shadow: 0 6px 30px rgba(26, 79, 163, 0.6);
}

.cta-button i {
    font-size: 1.2em;
    transition: transform 0.35s ease;
}

.cta-button:hover i {
    transform: scale(1.2);
}

/* GRADIENT TEXT */
.gradient-text {
    background: linear-gradient(135deg, #4da6ff, #1a4fa3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Grid */
.services {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #4da6ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card {
    padding: 30px;
    border-radius: 20px;
    transition: all 0.4s ease;
    cursor: default;
}

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

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(135deg, #1a4fa3, #0d2d6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4da6ff;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(77, 166, 255, 0.3);
}

.service-title {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-description {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Tech Stack */
.tech-stack {
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: default;
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(26, 79, 163, 0.4), rgba(13, 29, 59, 0.8));
    border: 1px solid rgba(77, 166, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4da6ff;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.tech-item:hover .tech-icon {
    border-color: #4da6ff;
    box-shadow: 0 0 20px rgba(77, 166, 255, 0.4);
}

.tech-name {
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
    font-weight: 500;
}

/* Footer */
footer {
    background: rgba(6, 12, 26, 0.9);
    border-top: 1px solid rgba(77, 166, 255, 0.15);
    padding: 60px 40px 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.footer-logo {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4da6ff, #1a4fa3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(77, 166, 255, 0.1);
    border: 1px solid rgba(77, 166, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4da6ff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-link:hover {
    background: rgba(77, 166, 255, 0.25);
    border-color: #4da6ff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(77, 166, 255, 0.3);
}

.footer-title {
    font-family: 'Rajdhani', 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #4da6ff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-list li i {
    color: #4da6ff;
    width: 16px;
}

.footer-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #4da6ff;
}

.footer-bottom {
    border-top: 1px solid rgba(77, 166, 255, 0.1);
    padding-top: 25px;
    text-align: center;
}

.footer-bottom p {
    color: #64748b;
    font-size: 0.9rem;
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.fab-whatsapp {
    background: rgba(37, 211, 102, 0.2);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
}

.fab-instagram {
    background: rgba(77, 166, 255, 0.15);
    color: #4da6ff;
    border: 1px solid rgba(77, 166, 255, 0.3);
    box-shadow: 0 8px 32px rgba(77, 166, 255, 0.2);
}

.fab-btn:hover {
    transform: scale(1.1);
}

.fab-tooltip {
    position: absolute;
    right: 65px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.fab-btn:hover .fab-tooltip {
    opacity: 1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1a4fa3, #4da6ff);
    border-radius: 3px;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-cube {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(77, 166, 255, 0.2);
    border-top-color: #4da6ff;
    border-radius: 50%;
    animation: loader-spin 1s infinite linear;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}
