/* Custom CSS for Masterlink Website */

a {
    text-decoration: none !important;
}

:root {
    --primary-color: #3b1757;
    --secondary-color: #eb9b2a;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --gradient-primary: linear-gradient(135deg, #3b1757 0%, #eb9b2a 100%);
    --gradient-secondary: linear-gradient(135deg, #eb9b2a 0%, #3b1757 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}


.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
    transition: all 0.3s ease;
}

.service-card .btn-outline-primary
{
    color: #ffffff;
    border-color: #ffffff;
}

.btn-outline-primary:hover {
    color: white;
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3b1757 0%, #1a1a1a 50%, #eb9b2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    max-width: 200px;
    height: auto;
    animation: pulse 2s infinite;
    margin-bottom: 30px;
}

.loading-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 20px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

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

/* Navigation */
.navbar {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    padding: 0.5rem 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

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

.social-link {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    color: white;
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #3b1757 50%, #eb9b2a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tech-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 23, 87, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 23, 87, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(235, 155, 42, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: var(--gradient-secondary);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.tech-illustration {
    width: 100%;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hologram-effect {
    width: 300px;
    height: 300px;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    position: relative;
    animation: hologramSpin 10s linear infinite;
}

.hologram-effect::before,
.hologram-effect::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(235, 155, 42, 0.5);
    border-radius: 50%;
}

.hologram-effect::before {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hologramSpin 8s linear infinite reverse;
}

.hologram-effect::after {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hologramSpin 6s linear infinite;
}

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

/* Sections */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 0 auto 3rem;
    border-radius: 2px;
}

/* About Section */
.about-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(59, 23, 87, 0.1);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
}

.about-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Services Section */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    color: white;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-card h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Simulation CTA */
.simulation-cta {
    background: linear-gradient(135deg, rgba(59, 23, 87, 0.1) 0%, rgba(235, 155, 42, 0.1) 100%);
    border-top: 1px solid rgba(59, 23, 87, 0.2);
    border-bottom: 1px solid rgba(59, 23, 87, 0.2);
}

.cta-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.cta-features {
    list-style: none;
    padding: 0;
}

.cta-features li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pulse-btn {
    animation: pulse-effect 2s infinite;
    font-size: 1.2rem;
    padding: 15px 40px;
}

@keyframes pulse-effect {
    0% { box-shadow: 0 0 0 0 rgba(59, 23, 87, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 23, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 23, 87, 0); }
}

/* Success Cases */
.case-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.case-image {
    height: 250px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 2rem;
}

.case-content h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

case-features {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-features .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.5rem; /* Margem para evitar que fiquem colados */
}

.badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Blog Section */
.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Map Section */
.map-section {
    background: var(--light-color);
}

.map-info {
    padding: 3rem;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info h3 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
    width: 30px;
}

.contact-item strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.map-container {
    height: 400px;
}

.map-container iframe {
    filter: grayscale(20%) contrast(1.2);
}

/* Footer */
.footer {
    padding: 3rem 0 1rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #3b1757 100%);
}

.footer-brand img {
    filter: brightness(1.2);
}

.footer h5 {
    font-family: 'Orbitron', monospace;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-hover);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    font-family: 'Orbitron', monospace;
}

.btn-close {
    filter: invert(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin: 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .map-info {
        padding: 2rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .about-card,
    .service-card {
        margin-bottom: 2rem;
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-secondary {
    background: var(--gradient-secondary) !important;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Adicione isso ao seu arquivo style.css */

@media (max-width: 768px) {
    .hero-section {
        padding-top: 150px; /* Altura aproximada da navbar no mobile */
        min-height: calc(100vh - 80px); /* Ajusta a altura considerando a navbar */
    }
    
    /* Ajuste adicional para garantir que o conteúdo não fique muito próximo das bordas */
    .hero-content {
        padding: 0 15px;
    }

    .hero-section .btn-primary
    {
        margin-bottom: 20px;
    }
}

/* Para telas muito pequenas (menos de 400px de altura) */
@media (max-width: 768px) and (max-height: 700px) {
    .hero-section {
        padding-top: 100px;
        min-height: calc(100vh - 70px);
    }

    .hero-section .btn-primary
    {
        margin-bottom: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}