/* Global Styles */
body {
    background: #0a0a0a;
    color: #d1fae5;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}

header {
    background: url('bg.jpg') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a9ff9f;
    text-align: center;
}

.header-overlay {
    background: rgba(0, 0, 0, 0.85);
    padding: 3em;
}

h1.glitch {
    font-size: 4em;
    text-shadow: 0px 0px 8px rgba(0, 255, 128, 0.7);
    animation: glitch 1.5s infinite;
    position: relative;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(3px, -3px); }
    60% { transform: translate(-3px, 3px); }
    80% { transform: translate(3px, -3px); }
}

.subtitle {
    color: #58ccff;
    font-size: 1.2em;
    margin-top: 0.5em;
    animation: flicker 3s infinite alternate;
}

@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Navigation */
/* General Nav Styles */
nav {
    position: relative;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0.5em 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
}

nav ul li {
    margin: 0 1em;
}

nav a {
    color: #00ccff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffdd99;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

nav a:hover {
    color: #ffdd99;
    transform: translateY(-3px);
}

nav a:hover::after {
    width: 100%;
}

/* Mobile Nav Styles */
.menu-icon {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
    color: #00ccff;
}

#menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.9);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        margin: 1em 0;
        text-align: center;
    }

    #menu-toggle:checked + .menu-icon + ul {
        display: flex;
    }

    .menu-icon {
        display: block;
    }
}


/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #ffb3b3;
    margin: 2em 0 1em 0;
    position: relative;
}

.section-title::before, .section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #ffb3b3;
    margin: 0.5em auto;
}

.section-title::before {
    transform: translateY(-10px);
}

.section-title::after {
    transform: translateY(10px);
}

/* Utilities Section */
.utilities-grid {
    display: flex;
    justify-content: center;
    gap: 2em;
    padding: 2em;
    flex-wrap: wrap;
}

.utility {
    background: rgba(20, 20, 20, 0.9);
    padding: 1.5em;
    border-radius: 10px;
    text-align: center;
    color: #ffdd99;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.utility::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
    background-size: 50px 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.utility:hover::before {
    opacity: 1;
    animation: moveBackground 3s linear infinite;
}

@keyframes moveBackground {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.utility:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 20px #ffdd99;
}

.utility-icon {
    width: 60px;
    margin-bottom: 1em;
    filter: drop-shadow(0 0 5px #ffdd99);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1em;
    max-width: 90%;
    margin: 0 auto;
    padding: 2em 0;
}

.spooky-img {
    width: 100%;
    height: auto;
    border: 2px solid #ffdd99;
    border-radius: 8px;
    transition: transform 0.3s, filter 0.3s;
    filter: grayscale(100%);
}

.spooky-img:hover {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
}

/* Timeline Container */
.timeline-container {
    background: rgba(10, 10, 10, 0.85);
    padding: 2em 1em;
}

/* Timeline Styling */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 2em 0;
}

/* Center Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #ffdd99;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

/* Timeline Item Styling */
.timeline-item {
    padding: 1em 2em;
    position: relative;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 8px;
    width: 80%;
    color: #d1fae5;
    box-shadow: 0 0 10px rgba(255, 221, 153, 0.5);
    margin: 1em auto;
    text-align: left;
    transition: transform 0.3s, background 0.3s;
}

.timeline-item:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.95);
}

/* Connector Circles */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #ffdd99;
    border: 4px solid #0a0a0a;
    top: 15px;
    left: -10px;
    border-radius: 50%;
    z-index: 1;
}

/* Remove Alternate Positioning */
.timeline-item {
    left: 50%;
    transform: translateX(-50%);
}

/* Timeline Icon Styling */
.timeline-item .timeline-icon img {
    width: 40px;
    margin-bottom: 0.5em;
    filter: drop-shadow(0 0 5px #ffdd99);
}

/* Heading and Paragraph Styling */
.timeline-item .timeline-content h3 {
    margin-top: 0;
    color: #ffdd99;
}

.timeline-item .timeline-content p {
    margin: 0.5em 0 0 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .timeline {
        padding: 1em;
    }

    .timeline-item {
        width: 90%;
        padding: 1em;
    }

    .timeline-item::after {
        left: 10px;
    }
}


/* Hidden Knowledge */
.secrets-grid {
    display: flex;
    justify-content: center;
    gap: 2em;
    padding: 2em;
    flex-wrap: wrap;
}

.secret {
    background: rgba(20, 20, 20, 0.9);
    padding: 1.5em;
    border-radius: 10px;
    text-align: center;
    color: #ffdd99;
    width: 100%;
    max-width: 250px;
    box-shadow: 0 0 15px rgba(255, 221, 153, 0.5);
    transition: transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.secret:hover {
    transform: translateY(-10px);
    background: rgba(30, 30, 30, 0.95);
}

.secret-icon img {
    width: 50px;
    margin-bottom: 1em;
    filter: drop-shadow(0 0 5px #ffdd99);
}

.secret h3 {
    margin-bottom: 0.5em;
    color: #ffdd99;
}

.secret p {
    margin: 0;
    color: #d1fae5;
}

/* Links Section */
.links {
    display: flex;
    justify-content: center;
    gap: 2em;
    flex-wrap: wrap;
    padding: 1em 0;
}

.links a {
    color: #00ccff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.links a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ffdd99;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.links a:hover {
    color: #ffdd99;
    transform: translateY(-3px);
}

.links a:hover::after {
    width: 100%;
}

/* Contact Section */
.contract-address {
    text-align: center;
    font-size: 1.2em;
    color: #f09433;
    margin-top: 1em;
}

button {
    display: block;
    margin: 1em auto;
    padding: 0.5em 1em;
    background: #ffdd99;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    font-weight: bold;
}

button:hover {
    background: #f0c040;
    transform: scale(1.05);
}

/* Footer */
footer {
    text-align: center;
    padding: 1em;
    font-size: 0.9em;
    color: #555;
}

/* Footer Section */

.footer-banner img {
    width: 100%; /* Banner fills the entire width of the footer */
    height: auto;
    max-height: 1500px; /* Adjust the height as needed */
    object-fit: cover; /* Ensures the image covers the space without distortion */
    margin-bottom: 20px; /* Space between banner and footer content */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-banner {
        height: auto; /* Adjust height for medium screens */
    }
}

@media (max-width: 480px) {
    .footer-banner {
        height: auto; /* Adjust height for smaller screens */
    }
}

.footer-content {
    padding: 10px 0;
}


/* Chart Section */
#chart-section {
    background-color: #111;
    padding: 40px 20px;
    text-align: center;
    color: #f09433;
}

.section-title {
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0px 0px 6px rgba(255, 165, 0, 0.7);
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 0 8px rgba(0, 255, 128, 0.5);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.label {
    font-weight: bold;
    color: #58ccff;
}

.value {
    color: #a9ff9f;
}

/* Chart Container */
.chart-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 128, 0.6);
}

.chart-container iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-bar {
        flex-direction: column;
        gap: 10px;
    }
    .chart-container iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .chart-container iframe {
        height: 300px;
    }
}



/* Responsive Adjustments */
@media (max-width: 768px) {
    h1.glitch {
        font-size: 3em;
    }

    .subtitle {
        font-size: 1em;
    }

    .utilities-grid, .secrets-grid {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        width: 100%;
        padding: 1em;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline::after {
        left: 20px;
    }
}
