/* Base Styles and Variables */
:root {
    --primary: #c41e3a;
    --secondary: #0a3161;
    --accent: #FFD700;
    --cyber-blue: #0ff;
    --cyber-pink: #ff0066;
    --dark: #0a0a0a;
    --cyber-glow: 0 0 10px rgba(255, 215, 0, 0.5);
    --cyber-glow-strong: 0 0 20px rgba(255, 215, 0, 0.8);
    --matrix-color: #0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background: var(--dark);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
#particles-js,
#matrixRain,
#three-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#particles-js {
    opacity: 0.6;
}

#matrixRain {
    opacity: 0.2;
    z-index: 0;
}

.content {
    position: relative;
    z-index: 2;
}

/* Navigation Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent);
    box-shadow: var(--cyber-glow);
}

.logo-container {
    position: relative;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: var(--cyber-glow);
}

.logo-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    animation: logo-shine 3s linear infinite;
}

/* Cyber Button Styles */
.cyber-button {
    position: relative;
    padding: 0.8em 1.5em;
    background: linear-gradient(45deg, var(--dark), var(--secondary));
    border: 2px solid var(--accent);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
}

.cyber-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.2),
        transparent
    );
    animation: button-shine 3s linear infinite;
}

.cyber-button:hover {
    box-shadow: var(--cyber-glow-strong);
    transform: translateY(-2px);
    background: linear-gradient(45deg, var(--secondary), var(--primary));
}

.cyber-button:active {
    transform: translateY(1px);
}

/* Hero Section Styles */
.hero {
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.banner-container {
    width: 100%;
    padding-bottom: 33.33%;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: var(--cyber-glow);
}

.banner-glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1200/400') center/cover;
    opacity: 0.8;
    mix-blend-mode: screen;
    animation: glitch-anim 2s infinite;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(196, 30, 58, 0.3),
        rgba(10, 49, 97, 0.3)
    );
}

.hero-content {
    padding: 2rem;
    text-align: center;
    position: relative;
}

.title-container {
    position: relative;
    margin-bottom: 2rem;
}

.mega-title {
    font-size: 4.5rem;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    color: var(--accent);
    text-shadow: var(--cyber-glow);
    position: relative;
    margin: 2rem 0;
    letter-spacing: 4px;
}

/* Glitch Effect */
.cyber-glitch {
    position: relative;
}

.cyber-glitch::before,
.cyber-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    clip: rect(0, 0, 0, 0);
}

.cyber-glitch::before {
    left: -2px;
    text-shadow: 2px 0 var(--cyber-pink);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.cyber-glitch::after {
    left: 2px;
    text-shadow: -2px 0 var(--cyber-blue);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

/* Digital Artifacts */
.digital-artifacts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.artifact-1,
.artifact-2 {
    position: absolute;
    background: var(--accent);
    opacity: 0.5;
    filter: blur(4px);
    animation: artifact-float 10s infinite;
}

.artifact-1 {
    width: 50px;
    height: 50px;
    top: 20%;
    left: 30%;
}

.artifact-2 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 25%;
    animation-delay: -5s;
}

/* Token Info Styles */
.token-info {
    margin: 2rem auto;
    max-width: 500px;
}

.token-address {
    background: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    animation: scan-line 2s linear infinite;
}

/* Stats Section Styles */
.stats {
    background: rgba(10, 49, 97, 0.3);
    position: relative;
    overflow: hidden;
}

.stat-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cyber-panel {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--accent);
    padding: 2rem;
    position: relative;
    min-width: 200px;
    text-align: center;
    transition: transform 0.3s;
}

.cyber-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--cyber-glow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    text-shadow: var(--cyber-glow);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

/* Features Grid Styles */
.features {
    padding: 4rem 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.image-container {
    position: relative;
    padding-bottom: 50%;
    border: 2px solid var(--accent);
    overflow: hidden;
    transition: transform 0.3s;
}

.image-container:hover {
    transform: scale(1.02);
    box-shadow: var(--cyber-glow);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--accent);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.image-container:hover .image-overlay {
    transform: translateY(0);
}

/* Animations */
@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 51px, 0); }
    25% { clip: rect(42px, 9999px, 73px, 0); }
    50% { clip: rect(12px, 9999px, 43px, 0); }
    75% { clip: rect(67px, 9999px, 92px, 0); }
    100% { clip: rect(32px, 9999px, 64px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(12px, 9999px, 31px, 0); }
    25% { clip: rect(52px, 9999px, 83px, 0); }
    50% { clip: rect(22px, 9999px, 53px, 0); }
    75% { clip: rect(77px, 9999px, 102px, 0); }
    100% { clip: rect(42px, 9999px, 74px, 0); }
}

@keyframes scan-line {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes button-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes logo-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes artifact-float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(-5px, 5px) rotate(-5deg); }
    75% { transform: translate(8px, -8px) rotate(3deg); }
}

/* Media Queries */
@media (max-width: 768px) {
    .mega-title {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .stat-grid {
        flex-direction: column;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--accent);
    margin: 5px 0;
    transition: all 0.3s;
}

/* Roadmap Styles */
.roadmap {
    padding: 4rem 2rem;
    background: rgba(10, 49, 97, 0.2);
    position: relative;
    overflow: hidden;
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--accent);
    box-shadow: var(--cyber-glow);
}

.timeline-item {
    margin: 4rem 0;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline-item .date {
    position: absolute;
    left: 0;
    width: 45%;
    padding: 1rem;
    text-align: right;
    font-family: 'Orbitron', sans-serif;
    color: var(--accent);
    font-size: 1.5rem;
    text-shadow: var(--cyber-glow);
}

.timeline-item .content {
    position: absolute;
    right: 0;
    width: 45%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--accent);
    box-shadow: var(--cyber-glow);
}

.timeline-item .content h3 {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-item .content p {
    color: #fff;
    font-size: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: var(--cyber-glow);
}

.timeline-item:hover::before {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Footer Styles */
.cyber-footer {
    background: rgba(0, 0, 0, 0.9);
    padding: 3rem 2rem;
    border-top: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--accent);
    text-decoration: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 215, 0, 0.2),
        transparent
    );
    transition: transform 0.5s ease;
}

.social-links a:hover {
    box-shadow: var(--cyber-glow);
    transform: translateY(-3px);
}

.social-links a:hover::before {
    transform: translateX(200%);
}

.footer-text {
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    text-shadow: var(--cyber-glow);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin: 6rem 0;
    }

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

    .timeline-item .date {
        position: relative;
        width: 100%;
        text-align: left;
        padding-left: 70px;
        margin-bottom: 1rem;
    }

    .timeline-item .content {
        position: relative;
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-links a {
        width: 200px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* Base image handling */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Banner Container */
.banner-container {
    width: 100%;
    height: 0;
    padding-bottom: 33.33%; /* Maintains 3:1 aspect ratio */
    position: relative;
    overflow: hidden;
}

.banner-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Feature Image Grid */
.image-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50%; /* Maintains 2:1 aspect ratio */
    overflow: hidden;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Keep hover effects while preserving image aspect ratio */
.image-container:hover img {
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .banner-container {
        padding-bottom: 40%; /* Slightly taller on mobile */
    }

    .image-container {
        padding-bottom: 60%; /* Adjusted ratio for mobile */
    }
}
