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

:root {
    --primary: #086AD8;
    --primary-dark: #0556b3;
    --primary-darker: #043a75;
    --secondary: #00d4ff;
    --accent: #1e90ff;
    --success: #10b981;
    --error: #ef4444;
    --dark: #1a1a2e;
    --dark-blue: #0f1f3d;
    --gray: #4a5568;
    --light-gray: #f7fafc;
    --white: #ffffff;
    
    /* Cores oficiais das apps */
    --zabbix: #D40000;
    --grafana: #F46800;
    --influxdb: #22ADF6;
    --cockpit: #0066CC;
    --admin: #667eea;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-gray);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Fundo animado com partículas */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.2;
    will-change: transform;
    animation: float 25s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(100px, -80px, 0); }
    50% { transform: translate3d(-50px, -150px, 0); }
    75% { transform: translate3d(-80px, -80px, 0); }
}

/* Header com efeito glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(8, 106, 216, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    will-change: transform, box-shadow;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(8, 106, 216, 0.15);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-wrapper img {
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-wrapper img:hover {
    transform: scale(1.05);
}

.header-right .status-live {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--success);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.4); }
}

/* Seção Hero */
.hero {
    padding: 5rem 2rem;
    text-align: center;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(8, 106, 216, 0.1);
    color: var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

/* Container principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Grid de estatísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    margin-top: 0.5rem;
}

.stat-detail {
    font-size: 0.9rem;
    color: var(--gray);
    opacity: 0.8;
}

/* Cabeçalho da seção */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title .text-blue {
    color: var(--primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Grid de aplicativos */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.app-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: var(--dark);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.app-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--app-color, var(--primary));
}

.app-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4f8;
    transition: transform 0.3s ease;
}

.app-card:hover .app-icon-wrapper {
    transform: scale(1.1);
}

.app-icon {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.app-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-description {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.app-tag {
    background: rgba(0, 0, 0, 0.05);
    color: var(--gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.app-card[data-app="admin"] .app-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--admin);
}

.app-btn {
    display: inline-block;
    background: var(--app-color, var(--primary));
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.app-card[data-app="admin"] .app-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.app-btn:hover {
    filter: brightness(1.1);
}

/* Seção de Contato */
.contact-section {
    margin-top: 5rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.contact-form .form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.contact-form .form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 106, 216, 0.2);
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: var(--primary-dark);
}

.btn-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    text-align: center;
}

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

.footer-logo img {
    height: 50px;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-info {
    font-size: 0.9rem;
    opacity: 0.7;
    line-height: 1.8;
}

.footer-info p {
    margin: 0.5rem 0;
}

/* Botão Flutuante Admin */
.admin-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.admin-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Animações de scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s, bottom 0.4s;
}

.toast.show {
    opacity: 1;
    bottom: 40px;
}

.toast.success {
    background-color: var(--success);
}

.toast.error {
    background-color: var(--error);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .contact-form .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
