/* =========================================
   REC INTELLIGENT - DESIGN SYSTEM & STYLES
   ========================================= */

:root {
    /* Colors - Dark Premium Medical Theme */
    --bg-dark: #0A0F1C;
    --bg-card: rgba(19, 28, 51, 0.6);
    --primary-color: #00E5FF; /* Cyan/Teal for health-tech */
    --primary-dark: #0097A7;
    --secondary-color: #3D5AFE; /* Deep tech blue */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-grad: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    
    /* Typography */
    --font-main: 'Outfit', sans-serif;
    
    /* Spacings */
    --section-pad: 100px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

::selection {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================== TYPOGRAPHY ================== */
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; font-weight: 800; }
h2 { font-size: 2.5rem; margin-bottom: 15px; font-weight: 700; }
h3 { font-size: 1.5rem; margin-bottom: 10px; font-weight: 600; }
p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 20px; }

/* ================== BUTTONS ================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-text {
    background: transparent;
    color: var(--text-main);
    padding: 12px 10px;
}

.btn-text i {
    margin-left: 8px;
    transition: var(--transition);
}

.btn-text:hover i {
    transform: translateX(5px);
    color: var(--primary-color);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ================== NAVBAR ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo-icon {
    color: var(--primary-color);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ================== HERO ================== */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(10, 15, 28, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

/* Glass Dashboard Mockup */
.glass-dashboard {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.glass-dashboard:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dash-header {
    background: rgba(255,255,255,0.03);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.circles {
    display: flex;
    gap: 6px;
}

.circles i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F56;
}
.circles i:nth-child(2) { background: #FFBD2E; }
.circles i:nth-child(3) { background: #27C93F; }

.dash-body {
    padding: 24px;
}

.dash-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.dash-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
}

.dash-card h6 {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.dash-card h3 {
    margin: 5px 0;
    font-size: 2rem;
}

.status.positive {
    color: #27C93F;
    font-size: 0.8rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
    margin-top: 10px;
}

.progress-bar .fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.dash-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

.dash-chart .bar {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border-radius: 4px 4px 0 0;
    transition: var(--transition);
}

.dash-chart .bar:hover {
    background: var(--primary-color);
}

/* ================== SERVICES ================== */
.section {
    padding: var(--section-pad) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 229, 255, 0.3);
}

.service-card:hover::after {
    opacity: 1;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
}

.service-card p {
    font-size: 1rem;
    margin: 0;
}

/* ================== HOSPITAL FOCUS ================== */
.alternate-bg {
    background: linear-gradient(to bottom, var(--bg-dark), #0C152B);
}

.hospital-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    list-style: none;
    margin-top: 30px;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.features-list i {
    color: var(--primary-color);
    margin-top: 5px;
}

/* Abstract Node Visual */
.medical-nodes {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px;
}

.medical-nodes .node {
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    position: absolute;
    box-shadow: 0 0 20px rgba(0,229,255,0.2);
    z-index: 2;
}

.medical-nodes .main-node {
    width: 100px;
    height: 100px;
    font-size: 2rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    box-shadow: 0 0 30px rgba(0,229,255,0.5);
}

.node:nth-child(1) { top: 20%; left: 10%; }
.node:nth-child(3) { bottom: 20%; left: 30%; }
.node:nth-child(7) { top: 30%; right: 10%; }

/* Add animation to the pulse node */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0,229,255,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(0,229,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
}

.pulse {
    animation: pulseGlow 2s infinite;
}

/* ================== PORTFOLIO ================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.product-banner {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.bg-1 { background: linear-gradient(45deg, #1A2980, #26D0CE); }
.bg-2 { background: linear-gradient(45deg, #FF416C, #FF4B2B); }
.bg-3 { background: linear-gradient(45deg, #00B4DB, #0083B0); }

.product-banner h4 {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 800;
}

.product-body {
    padding: 25px;
}

.product-body h3 {
    font-size: 1.3rem;
}

.product-body p {
    font-size: 0.95rem;
    margin: 0;
}

/* ================== CONTACT ================== */
.contact-container {
    padding: 0 20px;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    backdrop-filter: blur(10px);
}

.contact-info h2 {
    font-size: 2.2rem;
}

.contact-methods {
    margin-top: 40px;
}

.contact-methods p {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-main);
}

.contact-methods i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.06);
}

/* ================== FOOTER ================== */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 15, 28, 0.8);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h3 {
    margin-bottom: 5px;
}

.footer-brand p, .footer-links p {
    margin: 0;
    font-size: 0.9rem;
}

/* ================== ANIMATIONS ================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* ================== PAINÉIS TABS ================== */
.paineis-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 30px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: rgba(0, 229, 255, 0.4);
    color: var(--text-main);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.paineis-content {
    min-height: 380px;
}

.tab-content {
    display: none;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

@keyframes fadeIn {
    to { opacity: 1; }
}

.tab-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.tab-info p {
    font-size: 1.15rem;
}

.tab-info ul {
    list-style: none;
    margin-top: 25px;
}

.tab-info li {
    font-size: 1.05rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-info li i {
    color: var(--primary-color);
    background: rgba(0, 229, 255, 0.1);
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.tab-visual {
    height: 300px;
    background: rgba(10, 15, 28, 0.5);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.giant-icon {
    font-size: 6rem;
    opacity: 0.8;
}

.blue-glow { box-shadow: 0 0 40px rgba(0, 180, 219, 0.2); border-color: rgba(0, 180, 219, 0.3); }
.blue-glow i { color: #00B4DB; }

.red-glow { box-shadow: 0 0 40px rgba(255, 65, 108, 0.2); border-color: rgba(255, 65, 108, 0.3); }
.red-glow i { color: #FF416C; }

.teal-glow { box-shadow: 0 0 40px rgba(38, 208, 206, 0.2); border-color: rgba(38, 208, 206, 0.3); }
.teal-glow i { color: #26D0CE; }

.orange-glow { box-shadow: 0 0 40px rgba(255, 140, 0, 0.2); border-color: rgba(255, 140, 0, 0.3); }
.orange-glow i { color: #FF8C00; }

/* ================== ACCESS CONTROL ================== */
.acessos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.acesso-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    border: 1px solid var(--border-color);
}

.acesso-card:hover {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.1);
    transform: translateY(-5px);
}

.acesso-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0,229,255,0.2), rgba(61,90,254,0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0,229,255,0.1);
}

.acesso-info h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.acesso-info p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 992px) {
    .hero-container, 
    .hospital-container,
    .glass-card {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.8rem; }
    
    .hero {
        padding-top: 120px;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .btn-outline {
        display: none;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    h1 { font-size: 2.3rem; }
    
    .glass-card {
        padding: 40px 20px;
    }
    
    .medical-nodes {
        height: 250px;
        transform: scale(0.8);
    }
}
