/* Tegridy Security - Main Style */

/* Global Styles */
body {
    background-color: #e5e5e5;
    background-image: url('../img/background.png');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    background-size: 50%;
    background-blend-mode: overlay;
}

.bg-light {
    background-color: #e0e0e0 !important;
}

.bg-primary {
    background-color: #003366 !important;
}

.btn-primary {
    background-color: #003366;
    border-color: #003366;
}

.btn-primary:hover {
    background-color: #002244;
    border-color: #002244;
}

/* Ícones do rodapé */
.footer-icon {
    height: 20px;
    width: auto;
}

/* Estilos para o formulário de contato */
.form-control:focus {
    border-color: #003366;
    box-shadow: 0 0 0 0.25rem rgba(0, 51, 102, 0.25);
}

/* Estilos para o botão de WhatsApp flutuante */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Estilos originais */
:root {
    --primary-color: #003366;
    --secondary-color: #002244;
    --light-color: #e0e0e0;
    --dark-color: #212529;
    --white-color: #ffffff;
    --gray-color: #6c757d;
    --text-color: #333333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #e5e5e5;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
}

p, .card-text, .lead {
    color: var(--text-color);
    font-weight: 500;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

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

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

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

/* Navbar */
.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/digital_blue_code.webp');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    position: relative;
}

/* Services Section */
.services-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* About Section */
.about-img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Areas Section */
.area-card {
    transition: transform 0.3s ease;
}

.area-card:hover {
    transform: translateY(-10px);
}

/* Blog Section */
.blog-card {
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-img {
    height: 200px;
    object-fit: cover;
}

/* Card images in blog section - ensure consistent height */
.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
}

/* Footer */
.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: var(--white-color);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Improved text contrast */
.bg-light {
    background-color: #e0e0e0 !important;
}

.text-content {
    color: #222222;
    font-weight: 600;
}

.lead {
    font-weight: 600;
    color: #222222;
}

.card-text {
    color: #222222;
    font-weight: 600;
}

/* Melhor contraste para textos sobre fundo claro */
p, .card-text, .lead, .text-content {
    color: #222222;
    font-weight: 600;
}

/* Melhor contraste para textos sobre fundo escuro */
.bg-primary, .bg-dark, .hero-section, footer, .cta-section {
    color: #ffffff;
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.hero-section h1, .hero-section h2, .hero-section h3, .hero-section h4, .hero-section h5, .hero-section h6,
footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.cta-section h1, .cta-section h2, .cta-section h3, .cta-section h4, .cta-section h5, .cta-section h6 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.bg-primary p, .bg-dark p, .hero-section p, footer p, .cta-section p,
.bg-primary .lead, .bg-dark .lead, .hero-section .lead, footer .lead, .cta-section .lead,
.bg-primary .text-content, .bg-dark .text-content, .hero-section .text-content, footer .text-content, .cta-section .text-content {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

footer a, footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

footer .text-white {
    color: #ffffff !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    h1.display-4 {
        font-size: 2.5rem;
    }
    
    .services-icon {
        font-size: 2.5rem;
    }
}

/* Animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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