﻿/* 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.5em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

    nav ul li {
        margin-right: 25px;
    }

        nav ul li a {
            color: #ffffff;
            text-decoration: none;
            font-size: 1em;
            padding: 5px 0;
            transition: color 0.3s ease;
        }

            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 ... */