@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 5s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.fade-in {
    animation: fadeIn 1s forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 1s forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.fade-in-delay-3 {
    animation: fadeIn 1s forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

/* Text gradient styles */
.text-gradient {
    background: linear-gradient(to right, #1976d2, #43a047);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Enhanced section title styling */
.section-title {
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #1976d2, #43a047);
}

/* Leaflet map container style */
#map-container {
    height: 450px;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
    position: relative;
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 45, 61, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 45, 61, 0.2);
}

/* Navbar styles */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    padding-left: 280px;
    background-color: #f5f5f5;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
}

.dark .info-bar {
    background-color: #1a1a1a;
    color: #f5f5f5;
}

.phone:hover,
.mail:hover {
    color: #1976d2;
}

.trapezoid-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 125px;
    background-color: white;
    clip-path: polygon(0% 0%, 80% 0%, 60% 100%, 0% 100%);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 40px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    background-image: url("../images/background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dark .trapezoid-logo {
    background-color: #1e1e1e;
    background-image: none;
}

.trapezoid-logo img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    padding-left: 260px;
    background-color: white;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    height: 82px;
}

.dark .main-nav {
    background-color: #121212;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #1976d2;
    transition: width 0.3s ease;
}

.dark .nav-links a::after {
    background-color: #64b5f6;
}

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

/* Emergency Helpline Pulse Effect */
@keyframes pulse-emergency {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pulse-icon {
    display: inline-block;
    animation: pulse-emergency 2s infinite ease-in-out;
}

/* Different timing for each emergency icon for visual variety */
.emergency-icon:nth-child(1) {
    animation-delay: 0s;
}
.emergency-icon:nth-child(2) {
    animation-delay: 0.5s;
}
.emergency-icon:nth-child(3) {
    animation-delay: 1s;
}
.emergency-icon:nth-child(4) {
    animation-delay: 1.5s;
}