/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Mono:wght@400;700&display=swap');

/* Define CSS Variables for Colors and Fonts */
:root {
    --bg-primary: #0A0A0F;
    --bg-secondary: #121218;
    --accent-primary: #00CAFF; /* Neon Blue */
    --accent-secondary: #BD00FF; /* Electric Purple */
    --text-primary: #F1F1F1;
    --text-secondary: #a0a0a0; /* Lighter gray for less emphasis */
    --warning-red: #FF3A5A;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Roboto Mono', monospace;

    --container-width: 1100px; /* Max width for content */
}

/* Basic Reset and Body Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for nav links */
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    background-image: url('../img/background.png'); /* Use the existing background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Keep background fixed during scroll */
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px; /* Add padding for smaller screens */
}

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    font-weight: bold;
}

.btn:hover {
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(189, 0, 255, 0.4); /* Neon glow effect */
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 5px 15px rgba(0, 202, 255, 0.4); /* Neon glow effect */
}

/* General Section Styling */
section {
    padding: 60px 0;
    background-color: rgba(18, 18, 24, 0.8); /* Slightly transparent secondary background */
    margin-bottom: 20px; /* Space between sections */
    border-bottom: 1px solid var(--accent-primary); /* Neon separator */
}

section:nth-child(odd) {
     background-color: rgba(10, 10, 15, 0.85); /* Slightly transparent primary background */
}

/* Header Styles */
#header {
    background-color: rgba(10, 10, 15, 0.9); /* Darker, slightly transparent header */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--accent-primary);
    box-shadow: 0 2px 10px rgba(0, 202, 255, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary);
    text-decoration: none;
    text-shadow: 0 0 5px var(--accent-primary);
}

.logo a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px var(--accent-secondary);
}

/* Navigation Styles */
#header nav ul {
    list-style: none;
    display: flex;
    gap: 25px; /* Space between nav items */
}

#header nav ul li a {
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: bold;
    text-transform: uppercase;
    padding-bottom: 5px;
    position: relative;
    text-decoration: none;
}

#header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-secondary);
    transition: width 0.3s ease;
}

#header nav ul li a:hover::after {
    width: 100%;
}

#header nav ul li a:hover {
    color: var(--accent-secondary);
    text-decoration: none; /* Remove default underline */
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: var(--accent-secondary);
    transform: scale(1.1);
    text-decoration: none;
}

.mobile-nav-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section Styles */
#hero {
    min-height: 80vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    padding-top: 80px; /* Add padding below sticky header */
    padding-bottom: 80px;
    background: none; /* Remove default section background */
    border-bottom: none; /* Remove default border */
    position: relative; /* For positioning character image */
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative; /* Ensure content is above pseudo-elements if any */
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 55%; /* Adjust content width */
}

.hero-content h1 {
    font-size: 3rem; /* Larger heading */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 0 10px var(--accent-primary);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contract-address {
    background-color: var(--bg-secondary);
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-flex; /* Use inline-flex for alignment */
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    word-break: break-all; /* Prevent overflow */
}

#contract-addr {
    color: var(--text-primary);
}

.btn-copy {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 1.2rem;
    position: relative; /* For tooltip */
    padding: 5px;
}

.btn-copy:hover {
    color: var(--accent-secondary);
}

.copy-tooltip {
    position: absolute;
    bottom: 125%; /* Position above the button */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.btn-copy:hover .copy-tooltip {
    opacity: 1;
    visibility: visible;
}

.btn-copy.copied .copy-tooltip {
    content: 'Copied!';
    background-color: #4CAF50; /* Green for success */
    opacity: 1;
    visibility: visible;
}


.hero-visuals {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center; /* Center video/image */
    align-items: center;
    max-width: 45%; /* Adjust visual area width */
}

.video-container {
    width: 80%; /* Adjust video size */
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px var(--accent-primary);
    border-radius: 8px;
    overflow: hidden; /* Ensure video stays within border radius */
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-character-img {
    position: absolute;
    right: -50px; /* Position overlapping the video */
    bottom: -50px; /* Adjust vertical position */
    width: 250px; /* Adjust character size */
    max-width: 40%; /* Limit size relative to container */
    height: auto;
    z-index: 3; /* Ensure character is above video */
    filter: drop-shadow(0 0 10px var(--accent-secondary)); /* Add a subtle glow */
}

/* About Section Styles */
#about h2 {
    text-align: center;
    margin-bottom: 2rem;
}

#about p {
    max-width: 800px; /* Limit text width for readability */
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
    color: var(--text-secondary);
}

#about p em {
    color: var(--accent-primary);
    font-style: normal;
}

/* Tokenomics Section Styles */
#tokenomics h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.tokenomics-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.stat-item {
    background-color: var(--bg-secondary);
    padding: 15px 25px;
    border-radius: 5px;
    border: 1px solid var(--accent-secondary);
    text-align: center;
    min-width: 250px; /* Minimum width for stat items */
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.tokenomics-note {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Ecosystem Section Styles */
#ecosystem h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.ecosystem-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-secondary);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Contain glow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(189, 0, 255, 0.3); /* Purple glow */
}

.project-card img {
    width: 100%;
    max-width: 200px; /* Control image size */
    height: auto;
    aspect-ratio: 1 / 1; /* Ensure square aspect ratio */
    object-fit: cover; /* Cover the area */
    border-radius: 5px;
    margin: 0 auto 1.5rem auto; /* Center image */
    border: 1px solid var(--accent-primary);
}

.project-card h3 {
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 100px; /* Give cards similar height */
}

.project-card .btn {
    width: 80%; /* Make button wider */
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
}

/* Disclaimer Section Styles */
#disclaimer {
    background-color: rgba(20, 10, 15, 0.9); /* Slightly different dark bg */
    border-top: 1px solid var(--warning-red);
    border-bottom: 1px solid var(--warning-red);
}

#disclaimer h2 {
    text-align: center;
    color: var(--warning-red); /* Use warning color */
    margin-bottom: 2rem;
}

.disclaimer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    text-align: justify;
    line-height: 1.7;
}

.disclaimer-text strong {
    color: var(--warning-red);
    font-weight: bold;
}

/* Footer Styles */
#footer {
    background-color: var(--bg-primary); /* Solid dark footer */
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--accent-primary);
    margin-top: 40px; /* Space above footer */
    margin-bottom: 0; /* Remove bottom margin */
    border-bottom: none; /* Remove default border */
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.footer-links .social-icon {
    font-size: 1.8rem; /* Larger icon in footer */
}

.footer-inspiration {
    color: var(--text-secondary);
    font-size: 0.8rem;
    max-width: 600px;
    margin: 0 auto;
    font-style: italic;
    margin-bottom: 0;
}

/* Community Submit Section Styles */
#community-submit {
    padding: 40px 0; /* Slightly less padding than other sections */
    text-align: center;
    background-color: rgba(18, 18, 24, 0.9); /* Use secondary bg, slightly more opaque */
    border-top: 1px dashed var(--accent-primary); /* Dashed border for separation */
    border-bottom: 1px dashed var(--accent-primary);
    margin-top: 20px; /* Ensure spacing from grid above */
    margin-bottom: 20px; /* Add margin below as well */
}

#community-submit p { /* General style for paragraphs in this section */
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem; /* Add small space between lines */
}

#community-submit p.submit-action {
    margin-top: 0.5rem; /* Add space above the action line */
    margin-bottom: 0; /* No margin below the last line */
}


.submit-link {
    display: inline-block; /* Needed for padding */
    color: var(--accent-secondary); /* Purple accent */
    font-weight: bold;
    text-transform: uppercase;
    font-family: var(--font-heading);
    padding: 10px 15px; /* Ensure good tap target size */
    border: 1px solid transparent; /* Placeholder for hover effect */
    border-radius: 5px;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
    margin: 0 5px; /* Small spacing around the link */
}

.submit-link:hover {
    color: var(--text-primary);
    background-color: rgba(189, 0, 255, 0.2); /* Subtle purple background glow */
    border-color: var(--accent-secondary);
    text-decoration: none; /* Remove underline on hover */
    text-shadow: 0 0 8px var(--accent-secondary);
}

/* .submit-icon rule removed as the icon is no longer in HTML */

/* Glitch Effect for Headings */
.glitch {
    position: relative;
    color: var(--accent-primary);
    /* Add more complex glitch styles if needed via JS or pure CSS */
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-content, .hero-visuals {
        max-width: 100%;
    }
    .hero-visuals {
        margin-top: 40px;
    }
    .hero-character-img {
        position: relative; /* Reset absolute positioning */
        right: auto;
        bottom: auto;
        margin: 20px auto 0 auto; /* Center below video */
        max-width: 150px; /* Smaller on tablets */
    }
    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


@media (max-width: 768px) {
    h1, h2 {
        font-size: 2rem; /* Smaller headings */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }

    #header nav {
        display: none; /* Hide desktop nav */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 15, 0.95); /* Slightly more opaque */
        flex-direction: column;
        padding: 20px 0;
        border-top: 1px solid var(--accent-primary);
    }

    #header nav.active {
        display: flex; /* Show when active */
    }

    #header nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    #header nav ul li {
        width: 100%;
        text-align: center;
    }

    #header nav ul li a {
         padding: 10px 0;
    }

    .mobile-nav-toggle {
        display: block; /* Show hamburger icon */
        z-index: 1001; /* Ensure it's clickable */
    }

    .header-actions .btn {
        display: none; /* Optionally hide main buy button in mobile header */
    }

    .hero-container {
        gap: 20px;
    }

    .video-container {
        width: 100%; /* Full width video */
    }

    .project-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 20px;
    }

    .project-card p {
        min-height: auto; /* Remove fixed height */
    }

    .tokenomics-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .stat-item {
        width: 80%; /* Wider stat items */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px; /* Adjust base font size */
    }
    h1, h2 {
        font-size: 1.8rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    .contract-address {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    .logo a {
        font-size: 1.5rem;
    }
    .header-actions .social-icon {
        font-size: 1.2rem;
    }
}

/* Interactive Elements */
/* Hover effects, copy button feedback etc. */
