/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    position: relative;
    background: #ECBE07;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid black; /* Black border */
    border-radius: 15px; /* Rounded edges for elegance */
    transition: all 0.3s ease; /* Smooth transitions */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Add subtle shadow */
}

/* Desktop View */
@media (min-width: 768px) {
    header {
        padding: 0 2rem;
        height: auto;
        border-radius: 25px; /* More rounded edges for desktop */
    }

    .logo {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .logo img {
        height: 150px;
        width: auto;
        animation: roaringFire 10s infinite; /* Roaring fire effect */
    }

    nav {
        flex: 2;
        display: flex;
        justify-content: center;
    }

    nav ul {
        display: flex;
        gap: 2rem;
        list-style: none;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        padding: 0.5rem 1.5rem;
        border-radius: 25px;
        background: linear-gradient(45deg, #007bff, #0056b3);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5);
        font-size: 1.2rem;
        transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
        border: 1px solid black; /* Black border */
    }

    nav ul li a:hover {
        background: linear-gradient(45deg, #ff6f00, #ffcc00);
        box-shadow: 0 8px 16px rgba(255, 69, 0, 0.7);
        transform: scale(1.05);
    }

    .chat-button-header {
        background: linear-gradient(45deg, #007bff, #0056b3);
        color: #fff;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        animation: roaringFire 4s infinite, chatButtonAnimation 4s infinite; /* Roaring fire effect */
        transition: background 0.3s, transform 0.3s;
        border: 1px solid black; /* Black border */
    }

    .chat-button-header:hover {
        background: linear-gradient(45deg, #ff6f00, #ffcc00);
        transform: translateY(-50%) scale(1.05);
    }
}

/* Mobile View */
@media (max-width: 767px) {
    header {
        height: auto;
        background: #ECBE07;
        padding: 0;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        border-radius: 15px; /* Slightly rounded edges for mobile */
    }

    .logo {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 1rem 0;
    }

    .logo img {
        height: auto;
        width: 100%;
        max-height: 150px;
        object-fit: contain;
        animation: zoomIn 0.5s ease-out, roaringFire 4s infinite; /* Add roaring fire effect */
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 1rem;
        margin-top: 1rem;
    }

    nav ul {
        display: flex;
        list-style: none;
        padding: 0;
        margin: 0;
        justify-content: center;
    }

    nav ul li {
        margin-right: 1rem;
    }

    nav ul li a {
        color: #fff;
        text-decoration: none;
        font-weight: bold;
        padding: 0.5rem 1rem;
        border-radius: 25px;
        background: linear-gradient(45deg, #007bff, #0056b3);
        box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5);
        font-size: 1rem;
        transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
    }

    nav ul li a:hover {
        background: linear-gradient(45deg, #ff6f00, #ffcc00);
        box-shadow: 0 8px 16px rgba(255, 69, 0, 0.7);
        transform: scale(1.05);
    }

    .chat-button-header {
        position: fixed;
        top: 10px;
        right: 10px;
        background: linear-gradient(45deg, #007bff, #0056b3);
        color: #fff;
        padding: 10px 20px;
        border-radius: 25px;
        font-size: 0.9rem;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        animation: roaringFire 4s infinite, chatButtonAnimation 4s infinite; /* Roaring fire effect */
        transition: background 0.3s, transform 0.3s;
    }

    .chat-button-header:hover {
        background: linear-gradient(45deg, #ff6f00, #ffcc00);
        transform: scale(1.05);
    }

    @keyframes zoomIn {
        from {
            transform: scale(0.5);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }
}

/* Chat Button Animation */
@keyframes chatButtonAnimation {
    0%, 100% {
        background: linear-gradient(45deg, #007bff, #0056b3);
    }
    50% {
        background: linear-gradient(45deg, #147d15, #137410); /* Basil color during animation */
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #ECBE07(0, 0, 0, 0.7);
    border-radius: 15px; /* Match the rounded edges of the header */
}

.modal-content {
    background: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative; /* Added for positioning the close button */
}

.close-button {
    color: #333;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px; /* Increased spacing for better readability */
    font-size: 1.8rem; /* Slightly larger font size for the heading */
    color: #000;
}

.modal-content p {
    font-size: 1.1rem; /* Slightly larger font size for better readability */
    color: #333;
    line-height: 1.6; /* Increased line height for better readability */
    margin-bottom: 15px; /* Added margin between paragraphs */
}

/* Fire flash animation */
@keyframes fireFlash {
    0% { background-color: #fff; }
    25% { background-color: #ff6f00; }
    50% { background-color: #ffcc00; }
    75% { background-color: #ff6f00; }
    100% { background-color: #fff; }
}

.fire-flash .modal-content {
    animation: fireFlash 5s ease;
}

@keyframes roaringFire {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.10);
        filter: brightness(1.4);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}
