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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 1.5rem 0;
    box-shadow: 0 2px 20px rgba(220, 38, 38, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #dc2626;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
    color: #dc2626;
    text-shadow: 0 0 8px rgba(220, 38, 38, 0.6);
}

/* Hero Section with Background */
.hero {
    background:
        linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(26, 26, 26, 0.60) 100%),
        url('../images/banner_electrocentertech.png') center/cover;
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    background-attachment: fixed;
    border-bottom: 3px solid #dc2626;
}

.hero::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 1200 600"><circle cx="100" cy="100" r="3" fill="rgba(220,38,38,0.3)"/><circle cx="300" cy="150" r="2" fill="rgba(220,38,38,0.2)"/><circle cx="500" cy="80" r="3" fill="rgba(220,38,38,0.3)"/><circle cx="700" cy="120" r="2" fill="rgba(220,38,38,0.2)"/><circle cx="900" cy="90" r="3" fill="rgba(220,38,38,0.3)"/><circle cx="1100" cy="140" r="2" fill="rgba(220,38,38,0.2)"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.8rem;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
}

.hero p {
    font-size: 1.3rem;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

/* Contact Buttons */
.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

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

.btn-whatsapp {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #25D366;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background: #25D366;
    color: #0a0a0a;
}

.btn-telegram {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #0088cc;
    border: 2px solid #0088cc;
}

.btn-telegram:hover {
    background: #0088cc;
    color: #0a0a0a;
}

.btn-phone {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 2px solid #dc2626;
}

.btn-phone:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-agent {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #dc2626;
    border: 2px solid #dc2626;
    animation: pulse 2s infinite;
}

.btn-agent:hover {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: #ffffff;
    transform: translateY(-3px);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }
}

/* Services Section */
.services {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    text-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    border-top: 4px solid #dc2626;
    border: 2px solid #2a2a2a;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: #b0b0b0;
    line-height: 1.8;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #e0e0e0;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
    border-top: 3px solid #dc2626;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.footer-section p, .footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #dc2626;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2a2a2a;
    color: #808080;
}

/* Modal do Agente */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

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

.modal-content {
    background-color: #000000;
    margin: 1% auto;
    padding: 0;
    border: 2px solid #dc2626;
    width: 90%;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(220, 38, 38, 0.5);
    animation: slideDown 0.4s ease;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content iframe {
    border-radius: 0 0 20px 20px;
    width: 100%;
    height: 600px;
    background-color: #0d0d0d;
}

.close {
    color: #dc2626;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 1;
}

.close:hover,
.close:focus {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .modal-content iframe {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .modal-content iframe {
        height: 450px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .contact-buttons .btn {
        width: 100%;
    }
}