/* ========== CUSTOM STYLES ========== */

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
}

html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-bg {
    background: linear-gradient(rgba(220, 38, 38, 0.55), rgba(185, 28, 28, 0.55)), url('resocos/hero_bg.jpeg');
    background-size: cover;
    background-position: center;
}

/* Map Container */
#map {
    height: 400px;
    width: 100%;
    z-index: 1;
}

/* Modal */
.modal {
    transition: opacity 0.3s ease;
}

/* Hidden Pages / Sections */
.hidden-page {
    display: none;
}

.hidden-section {
    display: none;
}

.active-section {
    display: block;
    animation: fadeIn 0.4s;
}

/* Form Input Text Capitalization */
input[type="text"],
input[type="tel"],
textarea,
select {
    text-transform: uppercase;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 4px;
}

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

/* View Sections */
.view-section {
    display: none;
}

.view-section.active {
    display: block;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Loader */
.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ef4444;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Emergency Page Button Styles */
.pulse-red {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.main-button {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.main-button:active {
    transform: scale(0.9);
}