/* Global Styles */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
    background-color: transparent;
}

/* Full-Screen Video Styles */
.fullscreen-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

#background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 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);
    }
}

/* Menu Styles */
.menu {
    display: flex;
    justify-content: space-around;
    position: relative;
    align-items: center;
    padding: 20px;
    gap: 20px;
    z-index: 1;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.menu-items {
    display: flex;
    gap: 20px;
}

/* Main menu items */
.menu-item {
    padding: 10px 20px;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 1);
    text-align: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.menu-item>a {
    color: black;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.menu-item i {
    margin-right: 10px;
    color: #15a702;
    /* Tomato color for the icons */
    font-size: 1.2em;
    /* Slightly bigger icon size */
}

/* Styling for CO2 Text */
.co2-icon {
    font-size: 0.9em;
    color: #2ecc71;
    /* A green color to represent CO2 removal */
    font-style: italic;
    margin-left: 5px;
}

/* Hover effect for main menu items */
.menu-item:hover {
    transform: scale(1.2);
    /* Scale for zesty effect */
}

.menu-item:hover>a {
    color: #FF6347;
    /* Bold, energetic color for hover (Tomato Red) */
}

/* Submenu Styling */
.menu-item .dropdown {
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 1);
    position: absolute;
    top: 100%;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    z-index: 100;
    transition: opacity 0.3s ease, max-height 0.3s ease, width 0.3s ease;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    min-width: 200px;
    /* Default dropdown width */
    left: 0;
    /* Opens to the right by default */
}

/* Submenu items (wider space and animations) */
.menu-item .dropdown a {
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    font-size: 1em;
    transition: background 0.3s ease, padding-left 0.3s ease;
    text-align: left;
    position: relative;
    /* Ensure relative positioning for the teaser */
    display: block;
}

/* For dropdown menus near the right edge */
.menu-item.dropdown-right .dropdown {
    left: auto;
    right: 0;
    /* Aligns the dropdown to the left */
    transform-origin: top right;
    /* Ensures the animation opens from the top right */
}

/* Show dropdown and expand it to a wider size */
.menu-item.active .dropdown {
    display: block;
    max-height: 500px;
    width: 250px;
    /* Expand the dropdown width on click */
    opacity: 1;
}

/* Hover effect for submenu items */
.menu-item .dropdown a:hover {
    background-color: #FF6347;
    padding-left: 30px;
    /* Slide-in effect on hover */
    color: white;
}

/* Submenu teaser - below the menu item */
.menu-item .dropdown a::after {
    content: attr(data-teaser);
    display: block;
    /* Make it appear below the menu item */
    margin-top: 5px;
    /* Space between item and teaser */
    font-size: 0.9em;
    /* Distinct font size for teaser */
    color: #555;
    /* Subtle gray color for teaser */
    font-style: italic;
    /* Distinct style for teaser */
    padding-left: 20px;
    /* Indent the teaser for clarity */
    opacity: 0;
    /* Initially hidden */
    transition: opacity 0.3s ease;
    /* Smooth transition */
}

/* Show teaser on hover */
.menu-item .dropdown a:hover::after {
    opacity: 1;
}

/* Hamburger Menu Icon for mobile view */
.menu-icon {
    display: none;
    font-size: 2em;
    cursor: pointer;
    color: white;
}

/* Mobile View: Adjustments for smaller screens */
@media screen and (max-width: 600px) {

    /* For narrow screens, adjust positioning */
    .menu-item .dropdown {
        position: relative;
        /* Use relative positioning for mobile */
        width: 100%;
        /* Expand dropdown to full width on mobile */
        max-height: 100%;
        /* No height limit on mobile */
        padding: 10px;
        margin-top: 0;
        /* Remove margin for mobile */
    }

    .menu-icon {
        display: block;
    }

    .menu-items.active {
        display: flex;
    }

    .menu-item {
        width: 100%;
    }

    /* Wider dropdown for mobile to make it accessible */
    .menu-item.active .dropdown {
        width: 100%;
    }

    .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 */
    }
}

/* Narrative Text Styles */
.narrative-container {
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    max-width: 90%;
    color: white;
    text-align: center;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.narrative-box {
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    width: 100%;
}

.narrative-box:hover {
    transform: translateY(-10px);
    background: rgba(171, 4, 4, 0.8);
}

h2 {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

h3 {
    font-size: 2em;
    color: #4CAF50;
    margin-bottom: 10px;
}

p {
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Footer Styles */
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;
}

.footer-note {
    position: absolute;
    top: -40px;
    /* Adjust this value to position above the footer */
    left: 20px;
    font-size: 0.8em;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    /* Optional: for better readability */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 2;
    text-align: left;
}

/* 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: none;
    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%;
    }

    .footer-note {
        top: -60px;
        /* Move it even higher on very small screens */
        font-size: 0.75em;
        /* Slightly reduce the font size */
    }

    .footer-content {
        padding-top: 10px;
        /* Add more space to avoid further overlap */
    }

    .narrative-box {
        margin: 0 auto;
        padding: 15px;
        width: 98%;
        box-sizing: border-box;
    }
}

/* 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 */
}