/* CSS Variables for reusability */
:root {
    --neon-cyan: #00ffea;
    --neon-pink: #ff00ff;
    --neon-green: #00ff00;
    --neon-red: #ff0000;
    --dark-bg: #0a0a0a;
    --text-light: #f0f0f0;
    --shadow-cyan: rgba(0, 255, 255, 0.5);
    --shadow-pink: rgba(255, 0, 255, 0.5);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Orbitron', sans-serif;
}

body {
    background: url('https://www.transparenttextures.com/patterns/dark-mosaic.png'), var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--neon-cyan);
    color: var(--dark-bg);
    padding: 8px;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 0 15px var(--shadow-cyan);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink);
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    font-size: 24px;
    color: var(--neon-cyan);
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Sections */
section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center; /* Reverted to center for headers */
    position: relative;
    overflow: hidden;
}

/* Home Section */
#home {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(100, 50, 0, 0.3) 70%, rgba(20, 20, 20, 1) 100%), url('https://www.transparenttextures.com/patterns/rusty-metal.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 147, 41, 0.2) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 1;
}

#home::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, rgba(255, 69, 0, 0.8) 0%, rgba(255, 165, 0, 0.5) 50%, transparent 100%);
    opacity: 0.7;
    animation: flame-flicker 3s infinite;
    z-index: 0;
}

#home > * {
    position: relative;
    z-index: 2;
}

@keyframes flame-flicker {
    0% { opacity: 0.7; transform: translateY(0) scaleY(1); }
    50% { opacity: 0.9; transform: translateY(-10px) scaleY(1.05); }
    100% { opacity: 0.7; transform: translateY(0) scaleY(1); }
}

/* Lore Section */
#lore {
    background: linear-gradient(to bottom, #141414 0%, #2a2a2a 100%);
}

/* Roadmap Section */
#roadmap {
    background: linear-gradient(to bottom, #1c2526 0%, var(--dark-bg) 100%);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-pink));
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--shadow-cyan);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--neon-cyan);
    border: 3px solid var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--shadow-cyan);
}

.timeline-item:not(.done):not(.current)::before {
    border: 3px solid var(--neon-red);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.timeline-item:nth-child(odd)::before {
    right: -12px;
}

.timeline-item:nth-child(even)::before {
    left: -12px;
}

.timeline-content {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--shadow-cyan);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-content:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-cyan);
}

.timeline-item.current .timeline-content:hover {
    box-shadow: 0 0 30px rgba(0, 0, 255, 0.8);
}

.timeline-item:not(.done):not(.current) .timeline-content:hover {
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8);
}

.timeline-content h3 {
    font-size: 20px;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.5;
}

.timeline-item.done .timeline-content p {
    color: var(--neon-green);
}

.timeline-item.current .timeline-content p {
    color: var(--neon-cyan);
}

.timeline-item:not(.done):not(.current) .timeline-content p {
    color: var(--neon-red);
}

/* Team Section */
#team {
    background: linear-gradient(to bottom, #1c2526 0%, var(--dark-bg) 100%);
}

.team-container {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin: 0 auto;
}

.team-member {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--shadow-cyan);
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 400px;
    width: 100%;
}

.team-member:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-cyan);
}

.team-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--neon-cyan);
    margin-right: 20px;
}

.team-bio {
    text-align: left;
}

.team-bio h3 {
    font-size: 20px;
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
    margin-bottom: 5px;
}

.team-role {
    font-size: 16px;
    color: var(--neon-cyan);
    margin-bottom: 10px;
}

.team-bio p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-light);
}

/* Team Social Logos */
.team-socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--neon-cyan);
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.social-logo:hover,
.social-logo:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--shadow-pink);
    transform: scale(1.1);
}

/* Other Sections */
#whitepaper {
    background: linear-gradient(to bottom, #141414 0%, #2a2a2a 100%);
}

#tokenomics {
    background: linear-gradient(to bottom, #1c2526 0%, var(--dark-bg) 100%);
}

#socials {
    background: linear-gradient(to bottom, #1c2526 0%, var(--dark-bg) 100%);
}

#beta-testing {
    background: linear-gradient(to bottom, var(--dark-bg) 0%, #1c2526 100%);
}

#contact {
    background: linear-gradient(to bottom, var(--dark-bg) 0%, #1c2526 100%);
}

/* Typography */
h1 {
    font-size: 64px;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* Content Containers */
.lore-content {
    max-width: 900px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px var(--shadow-cyan);
}

.x-feed {
    max-width: 900px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px var(--shadow-cyan);
}

.lore-heading {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    margin-bottom: 15px;
    margin-top: 20px;
    text-align: center; /* Keep centered */
    text-transform: uppercase;
}

.lore-paragraph {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 900px;
    width: 100%;
}

/* Left-align lore-paragraph only in whitepaper and tokenomics */
#whitepaper .lore-paragraph,
#tokenomics .lore-paragraph {
    text-align: left;
}

.lore-list {
    margin-bottom: 40px;
    text-align: left;
}

.lore-list ol {
    margin-left: 20px;
    color: var(--text-light);
}

.lore-list ol li {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.quote {
    font-style: italic;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    margin: 30px 0;
    text-align: center;
    font-size: 20px;
}

/* Images */
.section-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 30px auto;
    border-radius: 15px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 20px var(--shadow-cyan);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    z-index: 2;
}

.section-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--shadow-cyan);
}

/* Home Paragraph */
#home p {
    font-size: 20px;
    max-width: 900px;
    line-height: 1.8;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--shadow-cyan);
    position: relative;
    z-index: 2;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    justify-content: center;
}

.social-links a {
    color: var(--neon-cyan);
    font-size: 26px;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid var(--neon-cyan);
    border-radius: 25px;
    transition: all 0.3s;
}

.social-links a:hover,
.social-links a:focus {
    background: var(--neon-pink);
    color: #ffffff;
    border-color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

.x-feed p {
    text-align: center;
}

.social-button {
    font-size: 20px;
    padding: 10px 30px;
}

.team-link {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.team-link:hover,
.team-link:focus {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 20px var(--shadow-cyan);
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.contact-form button {
    padding: 15px;
    background: var(--neon-cyan);
    border: none;
    border-radius: 10px;
    color: var(--dark-bg);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

.contact-form button:hover {
    background: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
}

#contact p {
    text-align: center;
}

.success-message {
    font-size: 20px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--shadow-cyan);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Slideshow */
.slideshow-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    min-height: auto;
    padding-bottom: 60px;
    outline: none;
}

.slideshow-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Reverted to center for images */
    justify-content: center;
    gap: 20px;
    padding: 10px; /* Reduced to minimize gaps */
    box-sizing: border-box;
    min-height: 400px;
    will-change: opacity, visibility;
}

.slideshow-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.slideshow-image {
    width: 100%;
    max-width: min(90vw, 900px);
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--shadow-cyan);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-left: auto; /* Ensure centering */
    margin-right: auto;
}

.slideshow-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--shadow-pink);
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

.slideshow-prev:hover,
.slideshow-prev:focus,
.slideshow-next:hover,
.slideshow-next:focus {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: #ffffff;
    box-shadow: 0 0 10px var(--shadow-pink);
}

.slideshow-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 0;
    z-index: 5;
}

.dot {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--neon-cyan);
    border-radius: 50%;
    margin: 0 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--shadow-pink);
}

.dot:hover,
.dot:focus {
    background: var(--neon-pink);
}

/* Video Player */
.video-container {
    margin-top: 40px;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.video-player {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 15px var(--shadow-cyan);
    background: rgba(0, 0, 0, 0.8);
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.video-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 18px;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.video-btn:hover,
.video-btn:focus {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: #ffffff;
    box-shadow: 0 0 10px var(--shadow-pink);
}

/* X Feed Static Posts */
.x-posts {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.x-post {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--shadow-cyan);
    transition: transform 0.3s, box-shadow 0.3s;
}

.x-post:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px var(--shadow-pink);
}

.x-post p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}

.x-post a {
    color: var(--neon-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.x-post a:hover,
.x-post a:focus {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.x-post-date {
    font-size: 14px;
    color: var(--neon-cyan);
    text-align: right;
    display: block;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--neon-cyan);
    box-shadow: 0 -2px 10px var(--shadow-cyan);
    position: relative;
    z-index: 2;
}

footer p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-link {
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* Media Queries */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle-label {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        gap: 15px;
        padding: 20px 0;
    }

    .nav-toggle:checked ~ ul {
        display: flex;
    }

    nav ul li a {
        font-size: 16px;
    }

    /* Typography */
    h1 {
        font-size: 48px;
    }
    #home h1,
    #whitepaper h1,
    #tokenomics h1,
    #lore h1 {
        font-size: 24px;
        overflow-wrap: break-word;
        letter-spacing: 1px;
    }

    .lore-heading {
        font-size: 24px;
    }

    .lore-paragraph,
    .lore-list ol li {
        font-size: 16px;
        padding: 0 10px; /* Add padding for mobile readability */
    }

    #home p {
        font-size: 18px;
    }

    /* Images */
    .section-image {
        max-width: 100%;
    }

    /* Social Links */
    .social-links a {
        font-size: 20px;
        padding: 8px 15px;
    }

    .social-button {
        font-size: 18px;
        padding: 8px 20px;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 60px;
        margin-bottom: 20px;
    }

    .timeline-item::before {
        left: 8px !important;
        right: auto !important;
    }

    /* Team */
    .team-member {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .team-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    /* Team Social Logos */
    .team-socials {
        gap: 10px;
    }

    .social-logo {
        width: 20px;
        height: 20px;
    }

    /* Success Message */
    .success-message {
        font-size: 16px;
        padding: 15px;
    }

    /* Slideshow */
    .lore-content {
        padding: 30px;
    }

    .slideshow-container {
        min-height: 450px;
    }

    .slideshow-slide {
        padding: 10px;
    }

    .slideshow-prev,
    .slideshow-next {
        width: 36px;
        height: 36px;
        font-size: 20px;
        padding: 8px;
    }

    .slideshow-image {
        max-width: 100%;
    }

    .slideshow-dots {
        padding-bottom: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* Video Player */
    .video-player {
        max-width: 100%;
    }

    .video-controls {
        gap: 10px;
    }

    .video-btn {
        font-size: 16px;
        padding: 6px 10px;
    }

    /* X Feed */
    .x-posts {
        max-width: 100%;
    }

    .x-post p {
        font-size: 14px;
    }

    .x-post-date {
        font-size: 12px;
    }

    /* Footer */
    footer {
        padding: 15px;
    }

    footer p,
    .footer-link {
        font-size: 12px;
    }

    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    nav ul {
        gap: 10px;
    }

    .social-links {
        flex-direction: column;
        gap: 15px;
    }

    section {
        padding: 60px 15px;
    }

    #home h1,
    #whitepaper h1,
    #tokenomics h1,
    #lore h1 {
        font-size: 20px;
        overflow-wrap: break-word;
        letter-spacing: 0.5px;
    }
}

/* Desktop-Specific Media Queries */
@media (min-width: 1024px) {
    .slideshow-container {
        padding-bottom: 80px;
    }

    .slideshow-slide {
        padding: 15px; /* Slightly increased for desktop */
    }

    .slideshow-image {
        max-width: min(80vw, 1000px);
        max-height: 500px;
    }

    .slideshow-prev,
    .slideshow-next {
        width: 48px;
        height: 48px;
        font-size: 28px;
        padding: 12px;
    }

    .dot {
        width: 16px;
        height: 16px;
        margin: 0 10px;
    }

    .video-container {
        max-width: 1000px;
        margin-top: 50px;
    }

    .video-player {
        max-height: 500px;
    }
}