/* Global Styles */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    background-color: transparent;
    height: 100%;
    overflow-x: hidden;
}

/* Logo Text Styling with High-Visibility Idle Animation */
.logo-text {
    font-family: 'Lato', sans-serif;
    font-size: 2.5em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    position: relative;
    top: 0;
    left: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    /* Strong shadow for contrast */
    transition: all 0.3s ease-in-out;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffffff, #00ffff, #ffff00);
    /* Bright, neon colors for high visibility */
    background-size: 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonIdleGlow 3s ease-in-out infinite, gradientShift 5s ease infinite;
    /* Brighter neon-like idle glow */
}

/* Hover Effect with Glowing Ember Pop */
.logo-text:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #ff4500, #ff6347, #ffa500);
    /* Glowing ember gradient */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 4px 4px 12px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 99, 71, 0.9), 0 0 50px rgba(255, 165, 0, 1);
    /* Neon ember glow */
    transform: scale(1.2);
    animation: emberGlow 1.5s ease-out 1.2s, popOut 0.6s ease-out 1.2s;
    /* Retain hover animations */
}

/* Touched state for touch screens */
.logo-text.touched {
    color: #ffffff;
    background: linear-gradient(135deg, #ff4500, #ff6347, #ffa500);
    /* Glowing ember gradient */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 4px 4px 12px rgba(255, 69, 0, 1), 0 0 30px rgba(255, 99, 71, 0.9), 0 0 50px rgba(255, 165, 0, 1);
    /* Neon ember glow */
    transform: scale(1.2);
    animation: emberGlow 1.5s ease-out, popOut 0.6s ease-out;
    /* Replicate the hover animations */
}

/* Neon-like Idle Glow Effect with High Contrast */
@keyframes neonIdleGlow {
    0% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 1), 0 0 50px rgba(255, 255, 0, 1);
    }

    50% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 1), 0 0 40px rgba(0, 255, 255, 1), 0 0 60px rgba(255, 255, 0, 1);
    }

    100% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 1), 0 0 50px rgba(255, 255, 0, 1);
    }
}

/* Hover Ember Glow Effect (Stronger Animation) */
@keyframes emberGlow {
    0% {
        text-shadow: 0 0 20px rgba(255, 99, 71, 0.7), 0 0 30px rgba(255, 69, 0, 0.8);
    }

    50% {
        text-shadow: 0 0 30px rgba(255, 165, 0, 1), 0 0 50px rgba(255, 69, 0, 1);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 99, 71, 0.7), 0 0 30px rgba(255, 69, 0, 0.8);
    }
}

/* Gradient shift animation (continuous for both idle and hover states) */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Pop Out Effect for Climax (on hover) */
@keyframes popOut {
    0% {
        transform: scale(1.2);
        /* Start at hover scale */
        text-shadow: 0 0 30px rgba(255, 69, 0, 0.9), 0 0 50px rgba(255, 165, 0, 1);
    }

    50% {
        transform: scale(1.5);
        /* Pop out burst */
        text-shadow: 0 0 50px rgba(255, 165, 0, 1), 0 0 70px rgba(255, 69, 0, 1);
    }

    100% {
        transform: scale(1.2);
        /* Settle back to hover size */
        text-shadow: 0 0 30px rgba(255, 69, 0, 0.9), 0 0 50px rgba(255, 165, 0, 1);
    }
}

/* Narrative Container */
.narrative-container {
    margin: 0 auto;
    padding: 20px;
    max-width: 85%;
    color: #ffffff;
    text-align: left;
    line-height: 1.8;
}

.narrative-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
}

.narrative-box:hover {
    transform: translateY(-5px);
    background: rgba(171, 4, 4, 0.8);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Headings */
h1 {
    font-size: 2.8em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    color: #27ae60;
    margin-bottom: 15px;
}

/* Paragraph Styling */
p {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Footer Section */
.footer-note {
    position: absolute;
    top: -20px;
    /* Adjust this value to position above the footer */
    left: 20px;
    font-size: 0.8em;
    color: white;
    background-color: rgba(0, 0, 0, 0);
    /* Optional: for better readability */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2;
    text-align: left;
}

footer {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 1;
}

/* Social Media Icons with Font Awesome */
.footer-social {
    margin-top: 20px;
    text-align: center;
}

.footer-social a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
    font-size: 1.5em;
    /* Increase font size for flamboyance */
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: #FFD700;
    /* Gold color on hover */
    transform: scale(1.1);
}

.footer-social i {
    margin-right: 8px;
}

/* Cookie Notice Styles */
.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-link {
    color: #FFD700;
    text-decoration: underline;
}

.cookie-button {
    background-color: #FFD700;
    color: black;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-button:hover {
    background-color: #FFC107;
}

/* Media Query for Narrow Screens */
@media screen and (max-width: 600px) {
    .menu-items {
        display: none;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
    }

    .menu-icon {
        display: block;
    }

    .menu-items.active {
        display: flex;
    }

    .menu-item {
        width: 100%;
    }

    .narrative-box {
        margin: 0 auto;
        padding: 15px;
        width: 98%;
        box-sizing: border-box;
    }

    .menu {
        justify-content: center;
        /* Ensure the entire menu is centered on narrow screens */
    }

    .logo-text {
        margin: 0 auto;
        /* Center the logo within its container */
        left: 0;
        /* Remove any left offset */
        text-align: center;
        /* Center the text within the logo element */
    }

    .menu-items {
        justify-content: center;
        /* Ensure menu items are centered on narrow screens */
    }
}

/* Media Query for Wider Screens */
@media screen and (min-width: 768px) {
    .narrative-container {
        grid-template-columns: 1fr 1fr;
        max-width: 90%;
    }

    .narrative-box {
        width: 95%;
    }
}

@media screen and (min-width: 1200px) {
    .narrative-container {
        grid-template-columns: 1fr 1fr 1fr;
        max-width: 85%;
    }

    .narrative-box {
        width: 90%;
    }
}

.footer-contact {
    text-align: center;
    margin-top: 20px;
}

.email-button {
    display: inline-flex;
    /* Ensures the button only takes the width of its content */
    align-items: center;
    /* Vertically centers content */
    justify-content: center;
    /* Horizontally centers content */
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.2em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease, transform 0.3s ease;
}

.email-button:hover {
    background: linear-gradient(135deg, #FFC107, #FFD700);
    transform: scale(1.05);
}

.email-icon {
    margin-right: 10px;
    font-size: 2em;
    /* Increase the size of the emoji */
    line-height: 1;
    /* Ensures the emoji doesn't affect vertical alignment */
}