/* Estilos personalizados para EngClínica Pro */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-color: #f8fafc;
    --dark-color: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: #ffffff;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

.lead {
    font-weight: 400;
    color: var(--gray-600);
}

/* Hero Section */
.hero-section {
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 79px, rgba(37, 99, 235, 0.1) 81px, rgba(37, 99, 235, 0.1) 82px, transparent 84px),
        linear-gradient(0deg, transparent 79px, rgba(6, 182, 212, 0.1) 81px, rgba(6, 182, 212, 0.1) 82px, transparent 84px);
    background-size: 80px 80px;
    animation: tech-grid-move 20s linear infinite;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(6, 182, 212, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(16, 185, 129, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(245, 158, 11, 0.4), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(239, 68, 68, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    animation: particles-float 25s linear infinite;
    z-index: 1;
}

@keyframes tech-grid-move {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 80px 80px, 80px 80px; }
}

@keyframes particles-float {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* Cards */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: var(--primary-color);
}

.card-header {
    border-radius: 16px 16px 0 0 !important;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.service-card {
    background: linear-gradient(145deg, #ffffff 0%, var(--gray-50) 100%);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
}

/* Header Moderno */
.modern-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 0.75rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.modern-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--gray-900) !important;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.modern-brand:hover .brand-logo {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

.modern-toggler {
    border: none;
    background: none;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.toggler-line {
    width: 25px;
    height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-toggler:hover .toggler-line {
    background: var(--primary-color);
}

.modern-menu {
    gap: 1rem;
}

.modern-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.modern-link i {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modern-link:hover {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}

.modern-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.modern-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white !important;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-cta i {
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modern-cta:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.modern-cta:hover i {
    transform: translateX(2px);
}

.navbar.scrolled {
    background: 
        linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 46, 0.98) 50%, rgba(22, 33, 62, 0.98) 100%) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 2rem;
    letter-spacing: 0.025em;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    transform: translateY(-3px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.btn-light {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
}

.btn-light:hover {
    background: var(--gray-50);
    color: var(--primary-dark);
}

/* Icons */
.display-1, .display-4, .display-6 {
    opacity: 0.9;
}

/* Forms */
.form-control {
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
    padding: 0.875rem 1rem;
    font-weight: 400;
    background: var(--gray-50);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: white;
    outline: none;
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    margin-top: auto;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%) !important;
    border-top: 1px solid var(--gray-700);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Custom utilities */
.text-shadow {
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Destaque do texto principal */
.hero-title {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
    animation: title-glow 3s ease-in-out infinite alternate;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(6, 182, 212, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: -1;
    filter: blur(3px);
}

@keyframes title-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.6)) drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
    }
}

.hero-subtitle {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.hero-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: subtitle-shine 4s ease-in-out infinite;
}

@keyframes subtitle-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 5rem 0;
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
}

.icon-feature {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    font-size: 2rem;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.service-card:hover .icon-feature {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.5);
}

.professional-section {
    background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 50%, #ffffff 100%);
    position: relative;
}

.professional-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23e2e8f0" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    z-index: 1;
}

.professional-section > * {
    position: relative;
    z-index: 2;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

.hover-opacity-100:hover {
    opacity: 1 !important;
}

.min-vh-75 {
    min-height: 75vh;
}

.badge {
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%) !important;
}

.badge.bg-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
}

.btn:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}



/* Form validation styles */
.was-validated .form-control:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.66 9.2z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        text-align: center;
        padding: 3rem 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .display-5 {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .icon-feature {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .modern-menu {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .modern-link {
        text-align: center;
        margin: 0.25rem 0;
    }
    
    .modern-cta {
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Página Sobre Tecnológica */
.tech-hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
    position: relative;
}

.tech-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.central-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.4);
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 150px;
    height: 150px;
    animation: rotate 10s linear infinite;
}

.ring-2 {
    width: 200px;
    height: 200px;
    animation: rotate 15s linear infinite reverse;
}

.ring-3 {
    width: 250px;
    height: 250px;
    animation: rotate 20s linear infinite;
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

.icon-1 { top: 20%; right: 20%; animation-delay: 0s; }
.icon-2 { top: 20%; left: 20%; animation-delay: 0.5s; }
.icon-3 { bottom: 20%; right: 20%; animation-delay: 1s; }
.icon-4 { bottom: 20%; left: 20%; animation-delay: 1.5s; }

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.tech-stats {
    display: flex;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.tech-badge {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* Destaque do texto tecnológico */
.tech-title {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: tech-glow 3s ease-in-out infinite alternate;
}

@keyframes tech-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.6)) drop-shadow(0 0 30px rgba(6, 182, 212, 0.4));
    }
}

.tech-description {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: var(--gray-700);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.tech-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: tech-shine 5s ease-in-out infinite;
}

@keyframes tech-shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Destaque do texto de tecnologias */
.tech-stack-title {
    background: linear-gradient(135deg, #ffffff 0%, #06b6d4 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: stack-pulse 2.5s ease-in-out infinite alternate;
    text-shadow: none;
}

@keyframes stack-pulse {
    0% {
        filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.4));
    }
    100% {
        filter: drop-shadow(0 0 25px rgba(6, 182, 212, 0.8)) drop-shadow(0 0 35px rgba(37, 99, 235, 0.5));
    }
}

.tech-stack-subtitle {
    background: rgba(6, 182, 212, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 15px;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.tech-stack-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
    animation: subtitle-flow 4s ease-in-out infinite;
}

@keyframes subtitle-flow {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Cards Futuristas */
.futuristic-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.futuristic-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: rotate 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.futuristic-card:hover .card-glow {
    opacity: 1;
}

.holographic-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    position: relative;
    overflow: hidden;
}

.icon-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
    background-size: 10px 10px;
    animation: particles 3s linear infinite;
    opacity: 0.6;
}

@keyframes particles {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10px, -10px); }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.data-stream {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: data-flow 2s linear infinite;
}

/* Cards Neurais */
.neural-card {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(26, 26, 46, 0.9));
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    color: white;
}

.neural-card:hover {
    transform: translateY(-15px);
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.3);
}

.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: neural-pulse 4s ease-in-out infinite;
}

@keyframes neural-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.cyber-title {
    color: rgba(6, 182, 212, 0.9);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.cyber-badge {
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cyber-badge.primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cyber-badge.success {
    border-color: var(--success-color);
    color: var(--success-color);
}

.cyber-badge.info {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.cyber-badge.warning {
    border-color: var(--warning-color);
    color: var(--warning-color);
}

.cyber-badge.danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.cyber-badge.dark {
    border-color: #6b7280;
    color: #6b7280;
}

.cyber-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px currentColor;
}

/* Página Contato Futurista */
.cyber-form-container {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.8), rgba(26, 26, 46, 0.9));
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 25px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    color: white;
}

.form-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0.5;
}

.cyber-form {
    position: relative;
    z-index: 2;
}

.cyber-label {
    color: rgba(6, 182, 212, 0.9);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    text-shadow: 0 0 5px rgba(6, 182, 212, 0.3);
}

.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.cyber-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(6, 182, 212, 0.3);
    border-radius: 15px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.cyber-input:focus {
    outline: none;
    border-color: rgba(6, 182, 212, 0.8);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.cyber-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.2), transparent);
    opacity: 0;
    animation: input-scan 3s linear infinite;
}

.cyber-input:focus + .input-glow {
    opacity: 1;
}

@keyframes input-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.cyber-button {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 20px;
    padding: 1rem 3rem;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.button-content {
    position: relative;
    z-index: 2;
}

.button-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: rotate 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.cyber-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.cyber-button:hover .button-glow {
    opacity: 1;
}

.cyber-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid;
}

.cyber-contact-btn.primary {
    background: rgba(37, 99, 235, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cyber-contact-btn.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success-color);
    color: var(--success-color);
}

.cyber-contact-btn.outline {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.cyber-contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px currentColor;
    color: white;
}

.cyber-contact-btn.primary:hover {
    background: var(--primary-color);
}

.cyber-contact-btn.success:hover {
    background: var(--success-color);
}

.cyber-contact-btn.outline:hover {
    background: var(--accent-color);
}

.btn-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
    background-size: 8px 8px;
    animation: particles 2s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.cyber-contact-btn:hover .btn-particles {
    opacity: 1;
}

/* Destaque da marca SIS MÉDICA */
.brand-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--success-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: brand-glow 3s ease-in-out infinite alternate;
    font-weight: 700;
    letter-spacing: -0.5px;
}

@keyframes brand-glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.6)) drop-shadow(0 0 20px rgba(6, 182, 212, 0.4));
    }
}

.footer-brand-highlight {
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: footer-pulse 2.5s ease-in-out infinite alternate;
    font-weight: 700;
}

@keyframes footer-pulse {
    0% {
        filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.5)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.3));
    }
}

/* Efeitos Tecnológicos de Engenharia Clínica */
.tech-hub {
    width: 400px;
    height: 400px;
    margin: 0 auto;
    position: relative;
}

.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hub-core {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid rgba(37, 99, 235, 0.4);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.orbital-equipment {
    position: absolute;
    width: 80px;
    height: 80px;
}

.orbit-1 {
    top: 10%;
    right: 20%;
    animation: float 3s ease-in-out infinite;
}

.orbit-2 {
    top: 30%;
    left: 5%;
    animation: float 3s ease-in-out infinite 0.5s;
}

.orbit-3 {
    bottom: 30%;
    right: 5%;
    animation: float 3s ease-in-out infinite 1s;
}

.orbit-4 {
    bottom: 10%;
    left: 20%;
    animation: float 3s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.equipment-node {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.equipment-node:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.equipment-node i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.equipment-label {
    font-size: 0.7rem;
    color: white;
    font-weight: 500;
    text-align: center;
}

.data-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.6), transparent);
    animation: data-flow 2s linear infinite;
}

.connection-1 {
    top: 25%;
    left: 25%;
    width: 50%;
    transform: rotate(45deg);
}

.connection-2 {
    top: 45%;
    left: 15%;
    width: 30%;
    transform: rotate(-30deg);
    animation-delay: 0.5s;
}

.connection-3 {
    bottom: 45%;
    right: 15%;
    width: 30%;
    transform: rotate(30deg);
    animation-delay: 1s;
}

.connection-4 {
    bottom: 25%;
    left: 25%;
    width: 50%;
    transform: rotate(-45deg);
    animation-delay: 1.5s;
}

@keyframes data-flow {
    0% {
        background: linear-gradient(90deg, transparent, transparent, transparent);
    }
    50% {
        background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.8), transparent);
    }
    100% {
        background: linear-gradient(90deg, transparent, transparent, transparent);
    }
}

/* Efeito tecnológico adicional */
.hero-section .container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, 
        transparent 0deg, 
        rgba(37, 99, 235, 0.05) 60deg, 
        transparent 120deg, 
        rgba(6, 182, 212, 0.05) 180deg, 
        transparent 240deg, 
        rgba(16, 185, 129, 0.05) 300deg, 
        transparent 360deg);
    animation: tech-rotate 30s linear infinite;
    z-index: 1;
    pointer-events: none;
}

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

@media (max-width: 768px) {
    .tech-hub {
        width: 300px;
        height: 300px;
    }
    
    .medical-tech-display {
        max-width: 300px;
    }
    
    .main-screen {
        padding: 1rem;
    }
    
    .vital-signs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .connected-devices {
        gap: 0.5rem;
    }
    
    .device {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hub-core {
        width: 80px;
        height: 80px;
    }
    
    .pulse-ring {
        width: 80px;
        height: 80px;
    }
    
    .orbital-equipment {
        width: 60px;
        height: 60px;
    }
    
    .equipment-node {
        width: 60px;
        height: 60px;
    }
    
    .equipment-node i {
        font-size: 1.2rem;
    }
    
    .equipment-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .tech-hub {
        width: 250px;
        height: 250px;
    }
    

}

/* Seção Tecnologia Médica */
.tech-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 49%, rgba(37, 99, 235, 0.1) 50%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, rgba(6, 182, 212, 0.1) 50%, transparent 51%);
    background-size: 30px 30px;
    animation: tech-grid 10s linear infinite;
    opacity: 0.3;
}

@keyframes tech-grid {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 30px 30px, -30px 30px; }
}

.tech-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.medical-tech-display {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.main-screen {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    position: relative;
}

.screen-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    margin-right: 0.5rem;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.screen-title {
    color: #10b981;
    font-size: 0.9rem;
    font-weight: 600;
}

.vital-signs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.vital-item {
    text-align: center;
    flex: 1;
}

.vital-item i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.vital-value {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.waveform {
    height: 60px;
    background: #000;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.wave {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #10b981 20%, 
        #10b981 40%, 
        transparent 60%,
        #ef4444 70%,
        #ef4444 80%,
        transparent 100%);
    animation: wave-move 3s linear infinite;
}

@keyframes wave-move {
    0% { transform: translateX(-100%) translateY(-50%); }
    100% { transform: translateX(100%) translateY(-50%); }
}

.connected-devices {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.device {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    animation: device-pulse 3s ease-in-out infinite;
}

.device-1 { animation-delay: 0s; }
.device-2 { animation-delay: 1s; }
.device-3 { animation-delay: 2s; }

@keyframes device-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
}