/* Cosmic Harvest Theme - Core Styles */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--star-white);
    background-color: var(--cosmic-deep);
    overflow-x: hidden;
}

/* Cosmic Color Scheme */
:root {
    --cosmic-deep: #1a0033;
    --cosmic-blue: #0f3460;
    --cosmic-purple: #4a148c;
    --gold-accent: #ffd700;
    --earth-green: #2d5016;
    --star-white: #ffffff;
    --nebula-pink: #ff6b9d;
    --blockchain-blue: #627eea;
    --quantum-cyan: #00d4ff;
    --cosmic-red: #ff006e;
}

/* Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at center, var(--cosmic-deep) 0%, #0a001a 50%, #000000 100%);
}

.nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(98, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    animation: nebula-drift 20s ease-in-out infinite;
}

@keyframes nebula-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-20px, -20px) rotate(1deg); }
    66% { transform: translate(20px, -10px) rotate(-1deg); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cosmic Header */
.cosmic-header {
    background: linear-gradient(180deg, rgba(26, 0, 51, 0.9) 0%, rgba(26, 0, 51, 0.7) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.cosmic-logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-accent);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 0;
}

.logo-subtitle {
    font-family: 'Exo 2', sans-serif;
    font-size: 0.7rem;
    color: var(--quantum-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--star-white);
    font-weight: 500;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-accent), var(--quantum-cyan));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--star-white);
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Cosmic Hero Section */
.cosmic-hero {
    background: linear-gradient(135deg, var(--cosmic-deep) 0%, var(--cosmic-blue) 50%, var(--cosmic-purple) 100%);
    color: var(--star-white);
    padding: 120px 0 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.constellation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent);
    background-size: 200px 200px;
    animation: constellation-twinkle 5s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes constellation-twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cosmic-title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--gold-accent), var(--quantum-cyan), var(--star-white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: title-glow 3s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.cosmic-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

.cosmic-cta {
    display: inline-block;
    background: linear-gradient(45deg, var(--gold-accent), var(--quantum-cyan));
    color: var(--cosmic-deep);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cosmic-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, var(--quantum-cyan), var(--gold-accent));
}

/* Floating Blockchain Nodes */
.floating-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blockchain-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--quantum-cyan);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--quantum-cyan);
    animation: float-node 6s ease-in-out infinite;
}

.node-1 { top: 20%; left: 10%; animation-delay: 0s; }
.node-2 { top: 60%; left: 80%; animation-delay: 1.5s; }
.node-3 { top: 30%; left: 70%; animation-delay: 3s; }
.node-4 { top: 80%; left: 20%; animation-delay: 4.5s; }

@keyframes float-node {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

/* Cosmic Sections */
.cosmic-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 52, 96, 0.1) 50%, transparent 100%);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--star-white);
    text-align: center;
    margin-bottom: 60px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
}

.cosmic-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.holographic-frame {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.about-image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 212, 255, 0.1) 50%, 
        transparent 70%);
    animation: holographic-scan 3s linear infinite;
    pointer-events: none;
}

@keyframes holographic-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

/* Technology Cards */
.space-station {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(74, 20, 140, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.space-station::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.space-station:hover::before {
    opacity: 1;
}

.space-station:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--quantum-cyan);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--quantum-cyan), var(--gold-accent), var(--quantum-cyan));
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: glow-rotate 3s linear infinite;
}

.space-station:hover .card-glow {
    opacity: 0.7;
}

@keyframes glow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.space-station h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.space-station p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.space-station:hover .tech-icon {
    opacity: 0.6;
    transform: scale(1.1);
}

/* Marketplace Cards */
.orbital {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: orbital-rotate 20s linear infinite;
    pointer-events: none;
}

.orbital:hover .orbital-ring {
    border-color: rgba(255, 215, 0, 0.3);
    animation-duration: 10s;
}

@keyframes orbital-rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.orbital:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--gold-accent);
}

.orbital h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.orbital p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Colorado Trials */
.trials-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.planetary-view {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 107, 157, 0.3);
}

.trials-image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.satellite-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 107, 157, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(0, 212, 255, 0.2) 0%, transparent 50%);
    animation: satellite-scan 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes satellite-scan {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Advantages Cards */
.star-system {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.star-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-accent), transparent);
    animation: star-pulse 2s ease-in-out infinite;
}

.star-system:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    border-color: var(--gold-accent);
}

.star-system h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.star-system p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

@keyframes star-pulse {
    0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(74, 20, 140, 0.8) 100%);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.contact-info h3 {
    font-family: 'Orbitron', monospace;
    color: var(--gold-accent);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details a {
    color: var(--quantum-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--gold-accent);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Cosmic Footer */
.cosmic-footer {
    background: linear-gradient(180deg, rgba(26, 0, 51, 0.9) 0%, var(--cosmic-deep) 100%);
    color: var(--star-white);
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 30px;
}

.footer-logo h3 {
    font-family: 'Orbitron', monospace;
    color: var(--gold-accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--gold-accent);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(26, 0, 51, 0.95) 0%, rgba(26, 0, 51, 0.9) 100%);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .cosmic-title {
        font-size: 2.5rem;
    }

    .cosmic-subtitle {
        font-size: 1.1rem;
    }

    .about-content,
    .trials-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .cosmic-hero {
        padding: 100px 0 60px;
    }

    .cosmic-title {
        font-size: 2rem;
    }

    .cosmic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .space-station,
    .orbital,
    .star-system {
        padding: 20px;
    }
}

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

/* Animation for sections */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}