/* General Body and Font Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Fallback color */
}

/* This is the fixed background image container */
.background-image-container {
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* This is the key */
    
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Pushes it behind everything */
}

/* --- HEADER (Navigation Bar) --- */
.site-header {
   

    background-color: rgba(26, 36, 48, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed; /* Fixes the header to the viewport */
    top: 0; /* Aligns it to the top */
    left: 0; /* Aligns it to the left */
    width: 100%; /* Makes it span the full width */
    z-index: 1000; /* Ensures it stays on top of other content */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}



/* ... All your other header, nav, logo, dropdown styles are fine ... */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 20px;
    flex-direction: row-reverse;
}

.logo {
    font-size: 1.25em;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease;
}
.logo:hover {
    transform: scale(1.03);
}
.brand-logo-img {
    height: 34px;
    width: 34px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 204, 0.7));
    border-radius: 8px;
}
.logo span {
    background: linear-gradient(90deg, #ffffff 40%, #00FFCC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: flex-end; /* This forces the text block floors to line up perfectly */
}



        Nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    padding: 10px 15px; /* Adjust top padding as needed */
    transition: background-color 0.3s ease, color 0.3s ease;

    display: flex;
    align-items: flex-start;  /* This aligns text to the top */
    min-height: 55px;         
    text-align: center;       
}

/* Hover effect */
Nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

            nav ul li a:hover {
                color: #a7c8e8;
            }

.cta-button a {
    border: 1px solid #ffffff;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

    .cta-button a:hover {
        background-color: #ffffff;
        color: #0d2c4e;
    }

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(26, 36, 48, 0.8);
    backdrop-filter: blur(10px);
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 0 0 5px 5px;
    text-align: left;
}

/* Show dropdown on hover OR if it has been clicked open */
.dropdown:hover .dropdown-content,
.dropdown.open-dropdown .dropdown-content {
    display: block;
}

/* Style for the active link: add a background color */
.dropdown-content a.active-link {
    color: #e2e3f0; /* Make the text white for high contrast */
    font-weight: bold;
    background-color: #3498db; /* The primary blue color from your site */

}

.dropdown-content a {
    color: #ffffff;
    padding: 15px 16px;
    text-decoration: none;
    display: block;
}

    .dropdown-content a:hover {
        background-color: #2f28b4bb;
    }
/* --- Styles for the Extension Button Popover --- */
.cta-button {
    position: relative;
}

.extension-popover {
    /* ... all the popover styles ... */
    top: 90%;
    /* ... etc ... */
}

.cta-button:hover .extension-popover {
    display: block;
    opacity: 1;
    top: 120%;
}
/* ... etc ... */
/* The parent list item needs to be a positioning anchor */
.cta-button {
    position: relative;
}

    /* When you hover over the button, find the popover inside it */
    .cta-button:hover .popover-window {
        display: block;
        opacity: 10;
        /* This positions it correctly BELOW the button */
        top: 280%;
        bottom: auto; /* We must override the 'bottom' from the other popover */
    }

    /* This targets the arrow on the extension popover ONLY */
    .cta-button .popover-window::after {
        bottom: 100%; /* Position the arrow at the TOP of the popover */
        top: auto; /* Override the default */
        border-color: transparent transparent #ffffff transparent; /* Make it point UP */
    }



/* --- Wrapper for all SCROLLING content --- */
/* This is a NEW element we need in the HTML */
/* --- Wrapper for all SCROLLING content --- */
.page-wrapper {
   
    
    /*=============================             SCROLING EFFECT ALL THE WAY TO THE TOP! ====
       
       HERE===*/
   
    padding-top: 19px; /* CRUCIAL: Makes space for the fixed header */
    padding-bottom: 95vh;
}

/* --- Hero Section (The first block) --- */
.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(60vh - 190px); /* Fill the screen minus the header height */
    color: #ffffff;
    text-align: center;
    padding: 150px;
    box-sizing: border-box;
    padding-top: 100px;
    padding-bottom: 1vh;
}

.container {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 100px;
    border-radius: 15px;
    max-width: 825px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding-top: 20px;
    padding-bottom: 1vh;
}

/* ... h1, tagline, mission, etc. styles are fine ... */
h1 {
    font-size: 2.2em;
    margin: 0;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    padding-top: 0px;
    padding-bottom: 0vh;
}

.tagline {
    font-size: 1.5em;
    color: #a7c8e8;
    margin-top: 5px;
    margin-bottom: 1px;
}

.mission {
    font-size: 1.1em;
    line-height: 1.1;
    color: #dddddd;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 5px;
}



/* --- FEATURES SECTION --- */
.features-section {
    background-color: #ffffff;
    padding: 10px 20px;
    color: #333;
    
}

.features-container {
    max-width: 1500px;
    margin: auto;
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.feature-item {
    flex-basis: 60%;
    text-align: center;
}

.feature-icon {
    font-size: 2em;
    color: #3498db;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #0d2c4e;
}

.feature-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
}


/* --- SECURITY SPOTLIGHT SECTION --- */
.spotlight-section {
    background-color: #0d2c4e;
    padding: 20px 18px;
    color: #ffffff;
    
}

/* ... All other spotlight styles are fine ... */
.spotlight-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.spotlight-image {
    flex: 1;
    height: 350px;
    background-color: #1a2430;
    background-image: url('images/security.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

.spotlight-text {
    flex: 1;
    text-align: left;
}

    .spotlight-text h2 {
        font-size: 2.5em;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .spotlight-text p {
        font-size: 1.1em;
        line-height: 1.7;
        color: #dddddd;
        margin-bottom: 20px;
    }

.btn-primary {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #2980b9;
    }


/* --- FOOTER SECTION --- */
.site-footer-bottom {
    background-color: #1a2430;
    color: #a7c8e8;
    text-align: center;
    padding: 10px;
}


/* --- URL Checker Section Styles --- */
.url-checker-container {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
}

    .url-checker-container h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }

.checker-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#url-to-check {
    flex-grow: 1;
    padding: 1px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

#check-url-btn {
    padding: 5px 25px;
    border: none;
    background-color: #3498db;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    #check-url-btn:hover {
        background-color: #2980b9;
    }

#checker-result {
    font-size: 1.2em;
    font-weight: bold;
    padding: 6px;
    border-radius: 10px;
    min-height: 25px;
}
/* Styles for different result states */
.result-safe {
    color: #2ecc71;
}

.result-danger {
    color: #e74c3c;
}

.result-info {
    color: #f39c12;
}
/* --- STYLES FOR NEW CONTENT PAGES --- */

.content-page-section {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(2px);
    padding: 120px 30px;
    color: #333;
    /* The margin-top has been removed */
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

    .content-container h1 {
        font-size: 2.8em;
        color: #000000;
        text-align: center;
        margin-bottom: 20px;
        line-height: 1.1;
        margin-top: 0;
    }

    .content-container h2 {
        font-size: 2em;
        color: #0d2c4e;
        border-bottom: 2px solid #3498db;
        padding-bottom: 10px;
        margin-top: 50px;
        margin-bottom: 20px;
    }

    .content-container p {
        font-size: 1.1em;
        line-height: 1.8;
        color: #000000;
        margin-bottom: 20px;
    }

.intro-paragraph {
    font-size: 1.2em;
    text-align: center;
    color: #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.content-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 60px 0;
}

.content-features {
    padding-top: 30px;
}

.styled-list {
    list-style-type: none;
    padding-left: 0;
}

    .styled-list li {
        font-size: 1.1em;
        line-height: 1.8;
        color: #555;
        padding-left: 30px;
        position: relative;
        margin-bottom: 15px;
    }

        .styled-list li::before {
            content: '✔'; /* Checkmark symbol */
            color: #2ecc71; /* Green checkmark */
            font-size: 1.2em;
            position: absolute;
            left: 0;
            top: 5px;
        }
.styled-list-numbered {
    list-style-type: none;
    counter-reset: step-counter; /* Create a counter */
    padding-left: 0;
}

    .styled-list-numbered li {
        font-size: 1.1em;
        line-height: 1.8;
        color: #333;
        padding-left: 45px;
        position: relative;
        margin-bottom: 20px;
        counter-increment: step-counter; /* Increment the counter */
    }

        .styled-list-numbered li::before {
            content: counter(step-counter); /* Display the counter number */
            position: absolute;
            left: 0;
            top: 5px;
            width: 30px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            border-radius: 50%;
            background-color: #3498db; /* Blue circle */
            color: #ffffff; /* White number */
            font-weight: bold;
        }

.concluding-paragraph {
    text-align: center;
}

/* Center the button at the bottom */
.content-container .btn-primary {
    display: block;
    width: fit-content;
    margin: 40px auto 0 auto;
}
/* --- Styles for Two-Column Intro with Image --- */
.intro-container {
    display: flex;
    align-items: center; /* Vertically align items in the middle */
    gap: 40px; /* Space between text and image */
    margin-top: 40px;
}

.intro-text {
    flex: 1; /* Text takes up half the space */
}

    .intro-text p {
        font-size: 1.1em;
        line-height: 1.8;
    }

.intro-image {
    flex: 1; /* Image takes up half the space */
    text-align: center;
}

    .intro-image img {
        max-width: 100%;
        height: auto;
        border: 1px solid #ddd;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .intro-image figcaption {
        margin-top: 10px;
        font-size: 0.9em;
        color: #666;
        font-style: italic;
    }
/* --- Style for Image Explanation Text --- */
.image-explanation {
    margin-top: 40px; /* Adds space after the intro columns */
    padding: 25px;
    background-color: #f8f9fa; /* A very light grey to set it apart */
    border-left: 5px solid #3498db; /* A blue left border, like a blockquote */
}

    .image-explanation p {
        font-size: 1.05em;
        font-style: italic;
        color: #444;
        margin-bottom: 0; /* Remove default bottom margin */
    }

    .image-explanation .summary-statement {
        margin-top: 15px; /* Add space between the paragraphs */
        font-style: normal; /* Override the italic style for emphasis */
        font-size: 1.1em;
    }
/* --- Style for Quote Blocks --- */
.quote-block {
    margin: 40px 0; /* Adds space above and below */
    padding: 25px;
    background-color: #f8f9fa; /* A very light grey background */
    border-left: 5px solid #3498db; /* A blue left border for emphasis */
}

    .quote-block p {
        font-size: 1.05em;
        font-style: italic;
        color: #444;
        margin: 0;
    }

    .quote-block .quote-source {
        display: block; /* Puts it on its own line */
        text-align: right; /* Aligns it to the right */
        font-style: normal;
        font-size: 1em;
        color: #555;
        margin-top: 15px;
    }
/* --- Styles for the Blockchain Demo Page --- */
#blockchain-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blockchain-block {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .blockchain-block h3 {
        margin-top: 0;
        color: #0d2c4e;
        border-bottom: 2px solid #3498db;
        padding-bottom: 10px;
    }

.block-info {
    margin-bottom: 8px;
    word-wrap: break-word; /* Make sure long hashes wrap */
}

.hash-info {
    color: #27ae60; /* Green for the valid hash */
    font-family: 'Courier New', Courier, monospace;
}

.prev-hash-info {
    color: #e67e22; /* Orange for the previous hash */
    font-family: 'Courier New', Courier, monospace;
}
/* --- Styles for the Page Title Overlay --- */
.page-title-overlay {
    padding-top: 90px;
    /* The text-align property has been removed to allow for alignment within a container */
    padding-bottom: -10px;
    /* We add a max-width and margin to control the position */
    max-width: 1250px; /* Aligns with your main nav container */
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px; /* Adds some space from the left edge */
    padding-right: 1150px;
}

    .page-title-overlay h2 {
        font-size: 3.5em; /* Make the text large */
        color: #ffffff; /* Make the text pure white */
        font-weight: bold;
        /* This creates the text shadow you wanted */
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
        margin: 0; /* Remove any default margins */
    }
/* --- FINAL DEFINITIVE STYLES FOR SUB-DROPDOWN MENUS --- */

/* This rule makes all direct children stack properly. It is correct. */
.dropdown-content > a,
.dropdown-content > .sub-dropdown {
    display: block;
}

/* The list item that holds the sub-menu. This is correct. */
.sub-dropdown {
    position: relative;
}

/* The actual sub-menu panel. This is correct. */
.sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -1px;
    background-color: rgba(26, 36, 48, 0.8);
    backdrop-filter: blur(10px);
    min-width: 240px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 0 5px 5px 0;
}

/* 
   ==================================================================
   CRITICAL FIX here
   ==================================================================
   This rule says: ONLY when you hover over the ".sub-dropdown" ITSELF,
   then find the ".sub-menu" inside it and show it.
*/
.sub-dropdown:hover > .sub-menu {
    display: block;
}

/* Style the trigger link itself. This is correct. */
.sub-dropdown > .drop-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

    /* Add a hover effect for the trigger link. This is correct. */
    .sub-dropdown > .drop-btn:hover {
        background-color: rgb(225, 226, 236, 0.54);
    }
.references-section h3 {
    font-size: 1.3em;
    color: #a1c8de;
    margin-bottom: 20px;
}

.references-section ol {
    padding-left: 20px;
}

.references-section li {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #09091fd5;
}
.references-callout {
    margin-top: 60px;
    padding: 25px;
    background-color: #e9ecef; /* A slightly darker grey */
    border-radius: 5px;
    border: 1px solid #dee2e6;
}
/* Style for links inside the new references section */
.references-section li a {
    text-decoration: none; /* Removes the default blue underline */
    color: inherit; /* Makes the link inherit the dark text color */
}

    .references-section li a:hover {
        text-decoration: underline; /* Adds an underline ONLY when you hover over it */
        color: #3498db; /* Changes the color to your site's blue on hover */
    }
/* --- Live Data Dashboard Styles --- */
.live-data-dashboard {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Creates a 2-column grid */
    gap: 25px; /* Sets the space between the cards */
    margin-top: 50px;
    margin-bottom: 50px;
}

.data-card {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease-in-out;
}

    .data-card:hover {
        transform: translateY(-5px); /* Adds a subtle lift effect on hover */
    }

.data-label {
    font-size: 1em;
    color: #6c757d;
    margin-bottom: 10px;
}

.data-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #0d2c4e;
}

.result-card .data-value {
    color: #3498db; /* Highlights the final result in blue */
}
/* --- Styles for Embedded Video --- */
.spotlight-video {
    flex: 1;
    aspect-ratio: 16 / 9; /* This maintains the 16:9 video shape */
    border-radius: 8px;
    overflow: hidden; /* Ensures the video corners are rounded */
}

    .spotlight-video iframe {
        width: 100%;
        height: 100%;
        border: none; /* Removes the default iframe border */
    }
/* --- Styles for Clickable Data Cards --- */
a.data-card-link {
    text-decoration: none; /* Removes the underline from the link */
    color: inherit; /* Makes the text inside the link inherit its color */
}

    /* Make the hover effect more obvious on the clickable cards */
    a.data-card-link .data-card:hover {
        transform: translateY(-5px) scale(1.02); /* Adds a slight zoom effect */
        box-shadow: 0 8px 16px rgba(0,0,0,0.1); /* Makes the shadow bigger */
    }
/* --- Styles for the Hover Popover Window --- */

/* Make the parent card a positioning anchor */
.data-card {
    position: relative;
}

.popover-window {
    display: none; /* Hide it by default */
    position: absolute;
    bottom: 110%; /* Position it just above the card */
    left: 50%;
    transform: translateX(-50%); /* Center it horizontally */
    width: 300px; /* Set a fixed width */
    background-color: #ffffff;
    color: #333;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 10; /* Make sure it appears on top */
    text-align: left;
    opacity: 0; /* Start fully transparent */
    transition: opacity 0.3s ease, bottom 0.3s ease; /* Smooth fade-in animation */
}

    /* Create the little triangle arrow at the bottom */
    .popover-window::after {
        content: "";
        position: absolute;
        top: 100%; /* Position it at the bottom of the popover */
        left: 50%;
        transform: translateX(-50%);
        border-width: 10px;
        border-style: solid;
        border-color: #ffffff transparent transparent transparent;
    }

/* When the user hovers over the card, show the popover */
.data-card:hover .popover-window {
    display: block; /* Make it visible */
    opacity: 1; /* Fade it in */
    bottom: 120%; /* Move it up slightly for a nice effect */
}

/* Styles for the text inside the popover */
.popover-window h4 {
    margin-top: 0;
    color: #0d2c4e;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.popover-window p {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 0;
}

    .popover-window p:last-child {
        margin-top: 10px;
    }
/* --- Style for Main Nota Bene (N.B.) Text --- */
.nota-bene-main {
    text-align: center;
    max-width: 700px; /* Keep it from getting too wide */
    margin: 20px auto 0 auto; /* Center it and add space */
    padding: 15px;
    background-color: rgba(233, 236, 239, 0.5); /* Faint, semi-transparent grey */
    border-radius: 8px;
    font-size: 0.9em;
    line-height: 1.6;
    color: #333; /* Darker text for readability */
    font-style: italic;
}

    .nota-bene-main strong {
        font-style: normal;
    }
/* --- Style for the API Refresh Note --- */
.api-refresh-note {
    text-align: center;
    max-width: 850px;
    margin: 30px auto 0 auto;
    font-size: 0.85em;
    line-height: 5;
    color: rgba(0, 0, 0, 0.7); /* Make the base text a bit darker */
    font-style: normal; /* Change to normal for better readability */
}

/* Style for the highlighted words */
.highlight-error {
    color: #e74c3c; /* A strong, clear red color */
    font-weight: bold;
    font-style: normal;
    background-color: rgb(232, 75, 59, 0.20); /* A very faint red background */
    padding: 2px 5px;
    border-radius: 4px;
}

/* === REVISED INTERACTIVE MAP STYLES (for Hero Section) === */
.interactive-map-section {
    padding: 10px 1px; /* Reduced padding for a tighter fit */
    display: flex;
    justify-content: center;
}

.map-top-block {
    position: relative;
    text-align: center;
}

.map-node {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding: 10px 50px; /* Slightly smaller nodes */
    background-color: rgb(52, 152, 219, 0.89); /* Blue hover effect */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.5em; /* Adjusted font size */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .map-node:hover {
        
        background-color: rgb(11, 53, 92, 0.78);
        transform: translateY(-11px);
    }

    .map-node i {
        color: #ffffff; /* White icon for better contrast */
    }

/* The hidden generation blocks */
.map-generations {
    display: none;
    opacity: 0;
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 200px; /* Reduced gap */
    transition: opacity 0.9s ease;
    padding-top: 50px;
}

/* The hover effect that reveals the generations */
.map-top-block:hover .map-generations {
    display: flex;
    opacity: 5;
}
.map-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* NEW: Adds space between the "Blockchain 1.0" block and the BTC block */
    position: relative;
}

.map-children {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* INCREASED: Adds more space between the individual technology blocks (ETH, Chainlink, etc.) */
    padding-top: 40px;
    position: relative;
}

/* ... The rest of the map styles (columns, children, lines) can remain the same ... */

/* ==================================================================
   RESPONSIVE / MOBILE SECTION  (v2 — swipeable nav bar)
   Desktop layout untouched. On mobile the menu stays visible as a
   horizontal bar you swipe with a finger; tapping a menu opens a
   full-width panel below the header.
   ================================================================== */

/* --- Fundamentals & safety nets --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%; /* Stops iOS inflating text randomly */
}

body {
    overflow-x: hidden; /* Nothing can cause sideways page scroll */
}

img, iframe, video {
    max-width: 100%; /* Media never overflows its container */
}

/* --- FLUID TYPOGRAPHY (dynamic auto-fit) ---
   clamp(min, preferred, max): text scales smoothly with the
   viewport between a floor and a ceiling. No sudden jumps. */
h1 {
    font-size: clamp(1.6rem, 2.6vw + 0.9rem, 2.2rem);
}

.content-container h1 {
    font-size: clamp(1.8rem, 3.2vw + 1rem, 2.8rem);
}

.content-container h2 {
    font-size: clamp(1.35rem, 1.8vw + 0.8rem, 2rem);
}

.spotlight-text h2 {
    font-size: clamp(1.5rem, 2.4vw + 0.8rem, 2.5rem);
}

.page-title-overlay h2 {
    font-size: clamp(1.8rem, 4.5vw + 0.8rem, 3.5rem);
}

.data-value {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

/* --- Bug fix (affects desktop too): this had padding-right: 1150px,
   which forced horizontal overflow on anything narrower than a
   large monitor. --- */
.page-title-overlay {
    padding-right: 30px;
}

/* --- Mobile brand (injected by script.js, hidden on desktop) --- */
.mobile-brand {
    display: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.05rem;
    text-decoration: none;
    text-align: center;
}

.mobile-brand-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.35);
    border-radius: 24px;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.15);
    transition: all 0.25s ease;
}

.mobile-brand:hover .mobile-brand-inner {
    background: rgba(0, 255, 204, 0.16);
    border-color: #00FFCC;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.35);
}

.mobile-brand-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobile-brand-domain {
    color: #00FFCC;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

/* ==================================================================
   BREAKPOINT 1: <= 950px — SWIPEABLE MENU BAR
   ================================================================== */
@media (max-width: 950px) {

    .nav-container {
        display: block;            /* brand row on top, menu bar below */
        max-width: none;
        padding: 8px 12px 0;
    }

    .mobile-brand {
        display: flex;
        justify-content: center;
        padding-bottom: 8px;
    }

    .site-header nav {
        position: relative;        /* anchor for the swipe-hint fade */
    }

    /* The swipeable strip itself */
    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;                      /* finger-scrollable */
        -webkit-overflow-scrolling: touch;     /* momentum scrolling on iOS */
        scrollbar-width: none;                 /* hide scrollbar (Firefox) */
        padding: 0 0 10px;
    }

    nav ul::-webkit-scrollbar {
        display: none;                         /* hide scrollbar (Chrome/Safari) */
    }

    nav ul li {
        flex: 0 0 auto;            /* items keep natural width, never shrink */
        margin-right: 8px;
    }

    /* Menu triggers become tappable "chips" */
    .drop-btn {
        white-space: nowrap;
        padding: 8px 14px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 999px;
        font-size: 0.95em;
        display: inline-block;
    }

    .dropdown.open-dropdown > .drop-btn {
        background-color: #3498db;
        border-color: #3498db;
    }

    /* The logo li at the end of the strip is redundant —
       the brand row above replaces it */
    nav ul li:last-child {
        display: none;
    }

    /* Fade on the right edge: visual hint that the bar scrolls */
    .site-header nav::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 36px;
        height: 100%;
        background: linear-gradient(to right, rgba(26, 36, 48, 0), rgba(26, 36, 48, 0.85));
        pointer-events: none;      /* never blocks taps */
    }

    /* --- DROPDOWN PANELS ---
       Two iOS Safari traps live here:
       1. An ancestor with backdrop-filter (.site-header) becomes the
          containing block for position:fixed children, so a "fixed"
          panel gets positioned against the header, not the screen.
       2. A backdrop-filter element nested inside another
          backdrop-filter element can fail to PAINT at all on iOS —
          present and tappable, but invisible.
       Fix: anchor the panel with position:absolute to the nav (which
       is position:relative and NOT the scroll container, so the
       swipe strip can't clip it), and use a near-solid background
       instead of a second blur layer. */
    .dropdown {
        position: static;   /* the li stops being the anchor...      */
    }

    .dropdown-content {
        position: absolute; /* ...the nav becomes the anchor instead */
        top: 100%;          /* = directly below the chip strip       */
        left: 0;
        right: 0;
        min-width: 0;
        max-height: calc(100vh - var(--header-height, 110px) - 16px);
        overflow-y: auto;
        background-color: rgba(26, 36, 48, 0.98);
        backdrop-filter: none;          /* kill the nested blur bug  */
        -webkit-backdrop-filter: none;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    }

    .dropdown-content a {
        padding: 15px 22px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    /* Touch screens have no reliable hover ("sticky hover") —
       panels open on tap only. The .open-dropdown rule sits after
       the :hover override on purpose, so it wins. */
    .dropdown:hover .dropdown-content {
        display: none;
    }

    .dropdown.open-dropdown .dropdown-content {
        display: block;
    }

    /* Nested sub-menus render inline inside the panel */
    .sub-menu {
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: rgba(0, 0, 0, 0.25);
        backdrop-filter: none;          /* same nested-blur bug */
        -webkit-backdrop-filter: none;
    }

    .sub-dropdown:hover > .sub-menu {
        display: none;
    }

    .sub-dropdown.open-dropdown > .sub-menu {
        display: block;
    }

    /* iOS Safari renders background-attachment: fixed incorrectly */
    .background-image-container {
        background-attachment: scroll;
    }

    /* 95vh of empty space below the footer is excessive on a phone */
    .page-wrapper {
        padding-bottom: 25vh;
    }
}

/* ==================================================================
   BREAKPOINT 2: <= 768px — stack all side-by-side layouts
   ================================================================== */
@media (max-width: 768px) {

    .content-wrapper {
        padding: 110px 16px 28px;
        min-height: auto;
    }

    .container {
        padding: 26px 18px;
    }

    .features-container {
        flex-direction: column;
        gap: 28px;
        padding: 16px 0;
    }

    .feature-item {
        flex-basis: auto;
    }

    .spotlight-container {
        flex-direction: column;
        gap: 24px;
    }

    .spotlight-video {
        width: 100%;
    }

    .intro-container {
        flex-direction: column;
        gap: 20px;
    }

    .content-page-section {
        padding: 110px 16px 45px;
    }

    .page-title-overlay {
        padding: 95px 16px 0;
    }

    .checker-form {
        flex-direction: column;
    }

    #check-url-btn {
        padding: 12px 25px;
    }

    .popover-window {
        width: min(300px, 86vw);
    }

    .map-generations {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 26px;
        padding-top: 26px;
        opacity: 1;
    }

    .map-node {
        font-size: 1.15em;
        padding: 10px 24px;
    }
}

/* ==================================================================
   BREAKPOINT 3: <= 600px — small phones
   ================================================================== */
@media (max-width: 600px) {

    .live-data-dashboard {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .content-container p {
        font-size: 1.02em;
        line-height: 1.7;
    }

    .url-checker-container {
        margin: 40px 12px;
    }
 /* Mobile-Specific Navigation Overrides - Horizontal Swipe */
@media screen and (max-width: 768px) {
    
    /* 1. Make the header the anchor point for the dropdowns */
    .site-header {
        position: relative;
    }

    /* 2. Create the horizontal scrolling area for the nav */
    nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth swiping on iPhones */
        scrollbar-width: none; /* Hides scrollbar in Firefox */
    }

    /* Hides scrollbar in Chrome/Safari/Edge for a cleaner look */
    nav::-webkit-scrollbar {
        display: none; 
    }

    /* 3. Align the buttons in a single horizontal row */
    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap; /* Forces them to stay on one line */
        margin: 0;
        padding: 10px 15px;
        gap: 10px; /* Space between the pill buttons */
    }

    /* 4. Keep the list items inline and prevent dropdown clipping */
    nav ul li {
        list-style: none;
        white-space: nowrap; /* Stops button text from breaking into two lines */
        position: static; /* CRITICAL: Allows dropdowns to escape the scrolling container */
    }

    /* 5. Style the dropdown content to span the full screen width below the nav */
    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%; /* Pushes it exactly below the header */
        left: 0;
        width: 100%;
        background-color: #1a2b4c; /* Dark background to fix your unreadable text issue! */
        box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
        z-index: 9999;
        max-height: 60vh; /* Prevents it from being taller than the screen */
        overflow-y: auto; /* Allows vertical scrolling inside the menu if it's long */
    }

    /* The class activated by our JavaScript */
    .dropdown-content.show {
        display: flex;
        flex-direction: column;
    }

    /* 6. Make the dropdown links readable and tap-friendly */
    .dropdown-content a {
        color: #ffffff; /* White text on the dark background */
        padding: 15px 20px;
        display: block;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider lines */
    }
}
