/* ========================================
   MYCELIA PRIME HOMEPAGE STYLES
   ======================================== */

.homepage {
    background: var(--bg-deepest);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-deepest) 0%, var(--bg-deep) 100%);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(0, 217, 255, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(181, 166, 224, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(78, 205, 196, 0.3), transparent);
    background-size: 200px 200px, 300px 300px, 250px 250px;
    animation: float 15s ease-in-out infinite;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 900;
    color: var(--glow-cyan);
    text-transform: uppercase;
    letter-spacing: 10px;
    margin-bottom: 15px;
    text-shadow: 0 0 40px rgba(0, 217, 255, 1);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(0, 217, 255, 0.8); }
    50% { text-shadow: 0 0 60px rgba(0, 217, 255, 1); }
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
}

.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--glow-cyan) 0%, var(--glow-teal) 100%);
    color: var(--bg-deepest);
    border: none;
    box-shadow: 0 4px 20px rgba(0, 217, 255, 0.5);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--glow-blue) 0%, var(--glow-cyan) 100%);
    box-shadow: 0 6px 30px rgba(0, 217, 255, 0.7);
    transform: translateY(-3px);
}

.cta-button.secondary {
    background: transparent;
    color: var(--glow-cyan);
    border: 2px solid var(--glow-cyan);
}

.cta-button.secondary:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--glow-blue);
    color: var(--glow-blue);
    transform: translateY(-3px);
}

/* ========================================
   FACTIONS OVERVIEW SECTION
   ======================================== */

.factions-overview {
    padding: 100px 20px;
    background: var(--bg-deep);
}

.faction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.faction-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-mid) 100%);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faction-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 217, 255, 0.5);
}

.faction-card.crimson {
    border-color: rgba(211, 47, 47, 0.5);
}

.faction-card.crimson:hover {
    border-color: var(--crimson-red);
    box-shadow: 0 12px 40px rgba(211, 47, 47, 0.5);
}

.faction-card.liberation {
    border-color: rgba(100, 149, 237, 0.5);
}

.faction-card.liberation:hover {
    border-color: var(--resistance-blue);
    box-shadow: 0 12px 40px rgba(100, 149, 237, 0.5);
}

.faction-card.fungal {
    border-color: rgba(123, 104, 238, 0.5);
}

.faction-card.fungal:hover {
    border-color: var(--fungal-purple);
    box-shadow: 0 12px 40px rgba(123, 104, 238, 0.5);
}

.faction-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.faction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.faction-card:hover .faction-image img {
    transform: scale(1.1);
}

.faction-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--glow-cyan);
    text-align: center;
    margin: 25px 0 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.faction-tagline {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.faction-card p {
    padding: 0 30px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.faction-link {
    display: block;
    text-align: center;
    padding: 15px 30px;
    margin: 0 30px 30px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid var(--glow-cyan);
    border-radius: 8px;
    color: var(--glow-cyan);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.faction-link:hover {
    background: var(--glow-cyan);
    color: var(--bg-deepest);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.4);
}

/* ========================================
   QUICK LINKS SECTION
   ======================================== */

.quick-links {
    padding: 100px 20px;
    background: var(--bg-deepest);
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.quick-link-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-mid) 100%);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-link-card:hover {
    border-color: var(--glow-cyan);
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.4);
    transform: translateY(-5px);
}

.quick-link-card:hover::before {
    opacity: 1;
}

.quick-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.quick-link-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--glow-cyan);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-link-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

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

    .quick-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 70vh;
        padding: 80px 20px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .quick-link-grid {
        grid-template-columns: 1fr;
    }
}