/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-color: #0f172a;
    /* Slate 900 */
    --accent-color: #d97706;
    /* Amber 600 */
    --text-color: #334155;
    /* Slate 700 */
    --bg-light: #f8fafc;
    /* Slate 50 */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.7)), url('/Imagens/transformador.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
}

/* Buttons */
.btn-primary {
    background-image: linear-gradient(to right, #d97706, #b45309);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-image: linear-gradient(to right, #b45309, #d97706);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

/* Maps Icon Pulse */
.maps-icon i {
    transition: color 0.3s ease, transform 0.3s ease;
}

.maps-icon:hover i {
    transform: scale(1.2);
    color: var(--accent-color);
}

.tooltip {
    visibility: hidden;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.maps-icon:hover .tooltip {
    visibility: visible;
    opacity: 1;
    bottom: 130%;
}

/* Modals */
.modal {
    z-index: 2000;
}

.modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #64748b;
    transition: color 0.2s;
}

.close:hover {
    color: #ef4444;
}

/* Chat Styles */
.chat-button button {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.chat-box {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.chat-message p {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.bot-message p {
    background-color: white;
    color: var(--text-color);
    border-top-left-radius: 2px;
    border: 1px solid #e2e8f0;
}

.user-message p {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    border-top-right-radius: 2px;
    margin-left: auto;
}

/* Footer & Social */
.footer {
    background-color: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    background-color: #1e293b;
    /* Slate 800 */
}