@font-face {
    font-family: 'Tainagari';
    src: url('tainagari.ttf') format('truetype');
}

body {
    font-family: 'Tainagari', sans-serif;
    background: linear-gradient(135deg, #fdf5e6 0%, #f8f4e6 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}



.emergency-hero {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}





.emergency-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    animation: slideInDown 1s ease-out;
}

.emergency-hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    animation: slideInUp 1s ease-out 0.3s both;
}

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

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

.emergency-alert {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 25px;
    margin: 30px auto;
    max-width: 1000px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    text-align: center;
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}



@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}



.emergency-alert h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.emergency-alert p {
    font-size: 1.2rem;
    margin: 0;
}

.emergency-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    font-size: 2.5rem;
    color: #4a90e2;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    animation: fadeInScale 1s ease-out;
}



.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border-radius: 2px;
}



@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.emergency-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.step-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out;
}

.step-card:nth-child(2) {
    animation-delay: 0.2s;
}

.step-card:nth-child(3) {
    animation-delay: 0.4s;
}

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

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
}





.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.step-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.step-description {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1.1rem;
}

.emergency-contacts {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin: 50px 0;
    animation: fadeIn 1s ease-out;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    border-left: 5px solid #4a90e2;
    transition: all 0.3s ease;
    position: relative;
}



.contact-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.contact-name {
    font-size: 1.3rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-info {
    color: #7f8c8d;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info::before {
    content: '📞';
    font-size: 1.2rem;
}

.emergency-call-btn {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20a83a 100%);
    color: white;
    padding: 20px 40px;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    margin: 40px auto;
    display: block;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    animation: bounceIn 1s ease-out;
    position: relative;
}





@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.emergency-call-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.4);
    text-decoration: none;
    color: white;
}

.emergency-call-btn::before {
    content: '🚨';
    margin-right: 10px;
    animation: flash 1.5s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.tips-section {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 20px;
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.tips-section::before {
    content: '💡';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 50px;
    opacity: 0.3;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    to { text-shadow: 0 0 20px rgba(255,255,255,0.8); }
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.tip-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.tip-item:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

@media (max-width: 768px) {
    .emergency-hero h1 {
        font-size: 2.5rem;
    }
    
    .emergency-hero p {
        font-size: 1.2rem;
    }
    
    .emergency-steps {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .emergency-container {
        padding: 20px 15px;
    }
    
    .emergency-call-btn {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
}