/* Vox Legends - Main Stylesheet */

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

:root {
    --void-black: #000000;
    --deep-space: #0a0a12;
    --neon-cyan: #00e5ff;
    --neon-magenta: #ff00e5;
    --electric-blue: #0099ff;
    --hot-pink: #ff0080;
    --cosmic-white: #e8f0f8;
    --dim-cyan: #4dd4e8;
    --dim-magenta: #d84de8;
    --text-gray: #a0b0c0;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--void-black);
    color: var(--cosmic-white);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Starfield background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, white, transparent),
        radial-gradient(1px 1px at 90% 80%, white, transparent),
        radial-gradient(1px 1px at 30% 50%, white, transparent),
        radial-gradient(2px 2px at 70% 10%, white, transparent),
        radial-gradient(1px 1px at 50% 70%, white, transparent),
        radial-gradient(1px 1px at 80% 40%, white, transparent),
        radial-gradient(2px 2px at 20% 90%, white, transparent),
        radial-gradient(1px 1px at 40% 30%, white, transparent);
    background-size: 200% 200%;
    animation: twinkleStars 200s linear infinite;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

@keyframes twinkleStars {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Nebula glow effects */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.nebula-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.nebula-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--neon-cyan), transparent 70%);
    top: -200px;
    right: -200px;
    animation: floatNebula 30s ease-in-out infinite;
}

.nebula-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--neon-magenta), transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: floatNebula 35s ease-in-out infinite reverse;
}

@keyframes floatNebula {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -50px) scale(1.1); }
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 80px 0 60px;
    text-align: center;
    animation: fadeInDown 1.2s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-space {
    margin-bottom: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.6)) 
            drop-shadow(0 0 60px rgba(255, 0, 229, 0.4));
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 30px rgba(0, 229, 255, 0.6)) 
                drop-shadow(0 0 60px rgba(255, 0, 229, 0.4));
    }
    50% { 
        filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.8)) 
                drop-shadow(0 0 80px rgba(255, 0, 229, 0.6));
    }
}

.subtitle {
    font-size: 1rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 30px;
    font-weight: 600;
}

/* Hero intro */
.hero-intro {
    text-align: center;
    padding: 40px 0 80px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-out 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-intro h1 {
    font-size: 2.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-intro p {
    font-size: 1.15rem;
    color: var(--cosmic-white);
    line-height: 1.8;
}

/* Categories section */
.categories-section {
    padding: 60px 0;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-family: 'Michroma', sans-serif;
    font-size: 1.8rem;
    text-align: center;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 60px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.category-link {
    display: block;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.9), rgba(0, 0, 0, 0.95));
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 8px;
    padding: 36px 28px;
    text-decoration: none;
    color: var(--cosmic-white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-link:hover {
    transform: translateY(-6px);
    border-image: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta)) 1;
    box-shadow: 
        0 12px 48px rgba(0, 229, 255, 0.3),
        0 12px 48px rgba(255, 0, 229, 0.2),
        inset 0 0 40px rgba(0, 229, 255, 0.08);
}

.category-link:hover::before {
    opacity: 0.1;
}

.category-content {
    position: relative;
    z-index: 1;
}

.category-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.category-icon img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4)) 
            drop-shadow(0 0 20px rgba(255, 0, 229, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.category-link:hover .category-icon img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6)) 
            drop-shadow(0 0 30px rgba(255, 0, 229, 0.5));
}

.category-link h3 {
    font-family: 'Michroma', sans-serif;
    font-size: 1.3rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.category-link p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Feature section (Substack promo) */
.feature-section {
    margin: 100px 0;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.95), rgba(0, 0, 0, 0.98));
    border: 1px solid var(--neon-magenta);
    border-radius: 12px;
    padding: 70px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1.5s ease-out 0.8s both;
}

.feature-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 229, 0.12), transparent 70%);
    pointer-events: none;
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-section h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 2rem;
    background: linear-gradient(90deg, var(--neon-magenta), var(--hot-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.feature-section p {
    font-size: 1.15rem;
    color: var(--cosmic-white);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.8;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-magenta), var(--hot-pink));
    color: var(--void-black);
    padding: 16px 48px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(255, 0, 229, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 36px rgba(255, 0, 229, 0.6);
    background: linear-gradient(135deg, var(--hot-pink), var(--neon-magenta));
}

/* Newsletter section */
.newsletter-section {
    margin: 100px 0;
    background: linear-gradient(135deg, rgba(10, 10, 18, 0.95), rgba(0, 0, 0, 0.98));
    border: 1px solid rgba(0, 229, 255, 0.4);
    border-radius: 12px;
    padding: 70px 50px;
    text-align: center;
    animation: fadeIn 1.5s ease-out 1s both;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

.newsletter-section h2 {
    font-family: 'Michroma', sans-serif;
    font-size: 2rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--electric-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 3px;
}

.newsletter-section > p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.hubspot-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-placeholder {
    color: var(--text-gray);
    font-size: 0.9rem;
    font-style: italic;
    padding: 20px;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(74, 123, 167, 0.2);
    text-align: center;
    margin-top: 100px;
    animation: fadeIn 2s ease-out 1.2s both;
}

.footer-brand {
    font-family: 'Michroma', sans-serif;
    font-size: 1.2rem;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-text a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--neon-magenta);
}

/* Responsive design */
@media (max-width: 768px) {
    .logo-image {
        max-width: 250px;
    }

    .category-icon {
        height: 70px;
    }

    .category-icon img {
        max-width: 70px;
        max-height: 70px;
    }

    .hero-intro h1 {
        font-size: 2rem;
    }

    .hero-intro p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

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

    .feature-section,
    .newsletter-section {
        padding: 50px 30px;
    }

    .feature-section h2,
    .newsletter-section h2 {
        font-size: 1.5rem;
    }

    header {
        padding: 60px 0 40px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        max-width: 200px;
    }

    .category-icon {
        height: 60px;
    }

    .category-icon img {
        max-width: 60px;
        max-height: 60px;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .category-link {
        padding: 28px 20px;
    }

    .cta-button {
        padding: 14px 36px;
        font-size: 0.9rem;
    }
}
