:root {
    --deep-dark: #030303;
    --fungus-glow: #43a047;
    --spore-white: #a5d6a7;
    --mycelium-accent: #81c784;
    --card-bg: rgba(67, 160, 71, 0.05);
    --glass-effect: rgba(165, 214, 167, 0.1);
}

/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: var(--deep-dark);
    color: var(--spore-white);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.9) 0%, transparent 100%);
    backdrop-filter: blur(10px);
    z-index: 100;
}

nav {
    background-color: #000000;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--spore-white);
}

.mystic-symbol {
    font-size: 3.5rem;
    color: var(--fungus-glow);
    text-shadow: 0 0 15px var(--fungus-glow);
}

nav a {
    color: var(--spore-white);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--mycelium-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 80%;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(3, 3, 3, 0.7) 0%,
        rgba(3, 3, 3, 0.5) 50%,
        transparent 100%
    );
    z-index: -1;
}

#hero h1,
#hero .tagline,
#hero .hero-content {
    position: relative;
    text-shadow: 0 0 10px rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(3px);
    padding: 1rem;
    border-radius: 10px;
    background: rgba(3, 3, 3, 0.3);
    display: inline-block;
    margin: 1rem;
}

#hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

#hero .tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--fungus-glow);
}

#hero .hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

#hero .hero-content {
    background: rgba(3, 3, 3, 0.7);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(67, 160, 71, 0.2);
    margin-top: 2rem;
}

.sacred-geometry {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(30deg, transparent 49.5%, var(--glass-effect) 49.5%, transparent 50.5%),
        linear-gradient(-30deg, transparent 49.5%, var(--glass-effect) 49.5%, transparent 50.5%);
    background-size: 50px 50px;
    opacity: 0.1;
    animation: rotate 60s linear infinite;
}

/* Cards and Grids */
.belief-cards, .level-grid, .research-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card, .level, .research-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-effect);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover, .level:hover, .research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(165, 214, 167, 0.1);
}

/* Practice Wheel */
.practice-wheel {
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    margin: 4rem auto;
    position: relative;
    border: 1px solid var(--glass-effect);
    border-radius: 50%;
    animation: rotateWheel 60s linear infinite;
}

/* Animations */
@keyframes rotate {
    to { transform: rotate(360deg); }
}

@keyframes rotateWheel {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .belief-cards, .level-grid, .research-areas {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
}

/* Section Styles */
section {
    padding: 6rem 2rem;
}

h2 {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    color: var(--spore-white);
}

/* Footer */
footer {
    background: linear-gradient(to top, var(--deep-dark) 0%, transparent 100%);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.card-symbol {
    font-size: 4rem;
    color: var(--fungus-glow);
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    text-shadow: 0 0 15px var(--fungus-glow);
}

/* Add hover effect to symbols */
.card:hover .card-symbol {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.practice-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-effect);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.practice-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, var(--glass-effect), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.practice-item:hover::before {
    transform: translateX(100%);
}

.practice-symbol {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--fungus-glow);
}

.practice-text {
    font-size: 1.2rem;
    color: var(--spore-white);
}

.cult-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--fungus-glow);
    color: var(--spore-white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-effect);
}

.cult-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--fungus-glow);
}

/* Practices Roadmap */
.practices-roadmap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* Central line */
.practices-roadmap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--fungus-glow),
        var(--mycelium-accent),
        transparent
    );
    transform: translateX(-50%);
}

.practice-node {
    position: relative;
    margin: 4rem 0;
    width: 100%;
}

/* Glowing dots at each node */
.practice-node::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--fungus-glow);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--fungus-glow);
    z-index: 1;
}

.node-content {
    width: 45%;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-effect);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Position content alternately left and right */
.node-content.left {
    margin-right: auto;
}

.node-content.right {
    margin-left: auto;
}

/* Connecting lines from central line to content */
.node-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    background: var(--fungus-glow);
}

.node-content.left::before {
    right: -50px;
}

.node-content.right::before {
    left: -50px;
}

.practice-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: pulseGlow 2s infinite;
}

.node-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(165, 214, 167, 0.2);
}

html {
    scroll-behavior: smooth;
}

/* Add these styles for the animated icons */
.card-symbol {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
}

.card-symbol svg {
    width: 100%;
    height: 100%;
}

.card-symbol svg path {
    stroke: var(--fungus-glow);
    stroke-width: 2;
    fill: none;
}

.practice-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
}

.practice-icon canvas {
    width: 100%;
    height: 100%;
}

h1, h2, h3, p {
    color: var(--spore-white);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.research-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-effect);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.research-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    background: rgba(67, 160, 71, 0.1);
    border: 2px solid var(--fungus-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.research-icon i {
    font-size: 2rem;
    color: var(--fungus-glow);
    transition: all 0.3s ease;
}

.research-card:hover .research-icon {
    box-shadow: 0 0 20px var(--fungus-glow);
    transform: scale(1.1);
}

.research-card:hover .research-icon i {
    transform: scale(1.2);
}

#join {
    text-align: center;
    padding: 4rem 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    margin-top: 2rem;
    background: var(--fungus-glow);
    color: var(--spore-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-effect);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    box-shadow: 0 0 20px var(--fungus-glow);
    transform: translateY(-2px);
}

/* Add these at the top of your CSS file */
.text-center {
    text-align: center;
}

/* Make text white and more visible */
body, h1, h2, h3, p, .nav-links a {
    color: #ffffff;
}

/* Center grid items */
.info-grid, .research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Research icons styling */
.research-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    border: 2px solid var(--fungus-glow);
    border-radius: 50%;
}

/* Add hover effects */
.research-card:hover .research-icon {
    box-shadow: 0 0 20px var(--fungus-glow);
}

/* Increase contrast for better readability */
.info-card, .research-card {
    background: rgba(67, 160, 71, 0.1);
    border: 1px solid rgba(165, 214, 167, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-card:hover, .research-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(165, 214, 167, 0.2);
}

.network-icon, .interaction-icon, .climate-icon {
    background: rgba(67, 160, 71, 0.3); /* Temporary background to see the containers */
}

.mycelium-icon {
    width: 3rem;
    height: 3rem;
    margin-right: 0.5rem;
}

.mycelial-network {
    stroke: var(--fungus-glow);
    fill: none;
    stroke-width: 2;
}

.node {
    fill: var(--fungus-glow);
    filter: drop-shadow(0 0 3px var(--fungus-glow));
}

.hypha {
    stroke-linecap: round;
    animation: grow 3s ease-out infinite;
}

@keyframes grow {
    0% {
        stroke-dasharray: 0 1000;
        opacity: 0.3;
    }
    60% {
        stroke-dasharray: 1000 0;
        opacity: 1;
    }
    100% {
        stroke-dasharray: 1000 0;
        opacity: 0.3;
    }
}

/* Add different animation delays for each hypha */
.hypha:nth-child(2) { animation-delay: 0.5s; }
.hypha:nth-child(3) { animation-delay: 1s; }
.hypha:nth-child(4) { animation-delay: 1.5s; }

/* Add glow effect */
.mycelium-icon:hover .mycelial-network {
    filter: drop-shadow(0 0 5px var(--fungus-glow));
}

/* Make sure the nav links are visible against black background */
.nav-links a {
    color: var(--spore-white);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--fungus-glow);
}

/* Add some padding to the main content to account for fixed nav */
main {
    padding-top: 5rem;
}