/* 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: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    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 */
    border: 1px solid rgb(252, 182, 4); /* Black border */
    box-shadow: 0 0 20px rgba(241, 190, 4, 0.6); /* Soft red shadow for emphasis */
}

/* 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 4s 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 rgb(252, 182, 4); /* Gold border */
        box-shadow: 0 0 20px rgba(241, 190, 4, 0.6); /* Gold shadow for emphasis */
        display: inline-block;
        width: 120px; /* Fixed width for all buttons */
        text-align: center; /* Center text in buttons */
    }

    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: 12px 24px;
        border-radius: 25px;
        font-size: 16px;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        position: absolute;
        top: 50%;
        right: 24px;
        transform: translateY(-50%);
        animation: chatButtonAnimation 4s infinite;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: 1px solid rgb(252, 182, 4); /* Black border */
        box-shadow: 0 0 20px rgba(241, 190, 4, 0.6); /* Soft red shadow for emphasis */
        z-index: 1000;
    }
    .chat-button-header .messenger-icon {
        width: 18px;
        height: 18px;
        animation: pulseIcon 2s infinite;
    }

    .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: #000;
        padding: 0;
        justify-content: flex-start;
        align-items: center;
        flex-direction: column;
        border-radius: 12px;
        margin: 15px 10px 0 10px;
    }

    /* Flex row for logo and chat button */
    .header-row-mobile {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1.2rem 0.5rem 0.5rem 0.5rem;
        gap: 0.5rem;
    }

    .logo {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: auto;
        flex: 1 1 auto;
    }

    .logo img {
        height: auto;
        width: 95vw;
        max-width: 240px;
        max-height: 140px;
        object-fit: contain;
        animation: zoomIn 0.5s ease-out, roaringFire 4s infinite;
    }

    .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;
        transition: background 0.3s, transform 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid rgb(252, 182, 4);
        box-shadow: 0 0 20px rgba(241, 190, 4, 0.6);
        z-index: 9999;
    }

    .chat-button-header:hover {
        background: linear-gradient(45deg, #ff6f00, #ffcc00);
        transform: scale(1.05);
    }

    nav {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 1rem 1rem;
        margin-top: 0.8rem;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        gap: 12px;
        width: 100%;
        max-width: 340px;
    }

    nav a {
        padding: 10px 15px;
        font-size: 15px;
    }

    nav ul li {
        margin: 0;
        flex: 0 1 auto;
        min-width: 80px;
        max-width: 120px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    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;
        border: 1px solid rgb(252, 182, 4);
        box-shadow: 0 0 20px rgba(241, 190, 4, 0.6);
        display: inline-block;
        width: 100px;
        text-align: center;
    }

    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);
    }

    @keyframes zoomIn {
        from {
            transform: scale(0.5);
            opacity: 0;
        }
        to {
            transform: scale(1);
            opacity: 1;
        }
    }
}

/* Messenger Icon Styling */
.messenger-icon {
    width: 18px;
    height: 18px;
    animation: pulseIcon 2s infinite;
}

@media (max-width: 767px) {
    .messenger-icon {
        width: 16px;
        height: 16px;
    }
    .chat-button-header,
    .chat-button-footer {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 25px;
        background: linear-gradient(45deg, #007bff, #0056b3);
        color: #fff;
        font-weight: bold;
        text-align: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: 1px solid rgb(252, 182, 4);
        box-shadow: 0 0 20px rgba(241, 190, 4, 0.6);
    /* No forced width, keep original style */
    }
}

@keyframes pulseIcon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Chat Button Animation - Facebook Messenger colors */
@keyframes chatButtonAnimation {
    0%, 100% {
        background: linear-gradient(45deg, #007bff, #0056b3); /* Start with standard blue */
    }
    50% {
        background: linear-gradient(45deg, #00B2FF, #006AFF); /* Facebook Messenger blue */
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px; /* Match the rounded edges of the header */
}

.modal-content {
    background: #f7f7f7;
    margin: 8% auto;
    padding: 12px 8px 24px 8px;
    border-radius: 18px;
    width: 96%;
    max-width: 420px;
    box-shadow: 0 4px 16px rgba(44,179,74,0.18);
    text-align: center;
    position: relative;
    font-family: 'Courier New', Courier, monospace;
    color: #222;
}

.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: 16px;
    font-size: 1.4rem;
    color: #2cb34a;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.modal-content p {
    font-size: 1rem;
    color: #222;
    line-height: 1.5;
    margin-bottom: 12px;
}
/* Responsive modal and iframe for mobile */
.modal-content iframe {
    width: 100%;
    min-height: 528px;
    border-radius: 12px;
    border: 2px solid rgb(252, 182, 4); /* Golden border, same as payments.js */
    background: linear-gradient(145deg, #181818 60%, #252525 100%);
    position: relative;
    z-index: 20;
    box-shadow: 0 0 20px rgba(252, 182, 4, 0.25), 0 2px 8px rgba(0,0,0,0.10);
    filter: contrast(1.02);
    transition: border-color 0.3s, box-shadow 0.3s;
}
@media (max-width: 600px) {
    .modal-content iframe {
        min-height: 352px;
        border-radius: 8px;
        border: 2px solid rgb(252, 182, 4);
        box-shadow: 0 0 12px rgba(252, 182, 4, 0.18), 0 1px 4px rgba(0,0,0,0.10);
    }
}
.modal-content {
    background: linear-gradient(145deg, #181818 60%, #252525 100%);
    border-radius: 12px;
    border: 2px solid rgb(252, 182, 4); /* Golden border, same as payments.js */
    box-shadow: 0 0 20px rgba(252, 182, 4, 0.25), 0 2px 8px rgba(0,0,0,0.10);
    transition: border-color 0.3s, box-shadow 0.3s;
}
@media (max-width: 600px) {
    .modal-content {
        border-radius: 8px;
        border: 2px solid rgb(252, 182, 4);
        box-shadow: 0 0 12px rgba(252, 182, 4, 0.18), 0 1px 4px rgba(0,0,0,0.10);
    }
}
@media (max-width: 600px) {
    .modal-content iframe {
        min-height: 320px;
        border-radius: 6px;
    }
    .modal-content {
        border-radius: 8px;
    }
}
@media (max-width: 600px) {
    .modal-content iframe {
        min-height: 320px;
        border-radius: 8px;
        border: 2px solid rgb(252, 182, 4);
        box-shadow: 0 4px 12px rgba(252, 182, 4, 0.18), 0 1px 4px rgba(0,0,0,0.10);
        background: linear-gradient(145deg, #141414, #0a0a0a);
        color: #f8f8f8;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 99%;
        max-width: 99vw;
        padding: 4px 2px 16px 2px;
        border-radius: 12px;
    }
    .modal-content iframe {
        min-height: 320px;
        border-radius: 8px;
    }
    .modal-content h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}

/* 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 1s ease;
}

@keyframes roaringFire {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}
