:root {
    --bg-dark: #050a0e;
    --bg-surface: rgba(14, 25, 30, 0.7);
    --border-color: rgba(61, 255, 152, 0.2);

    --accent-glow: #3dff98;
    --accent-cyan: #00e5ff;

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    /* Full screen background image */
    background-image: url('fungi_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Darken the background image slightly so text is readable */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(5, 10, 14, 0.4) 0%, rgba(5, 10, 14, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    background: var(--accent-glow);
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.6;
    animation: float 10s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Header */
.header {
    width: 100%;
    padding: 30px 40px;
    z-index: 10;
    position: relative;
    display: flex;
    justify-content: flex-start;
}

.logo {
    font-family: 'Cinzel Decorative', cursive;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(61, 255, 152, 0.5);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    position: relative;
    padding: 20px;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-cyan) 40%, var(--accent-glow) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* Buttons */
.glow-btn {
    padding: 18px 40px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-glow) 100%);
    color: #000;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(61, 255, 152, 0.3);
}

.glow-btn span {
    position: relative;
    z-index: 2;
}

.glow-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(61, 255, 152, 0.5);
}

.glow-btn:active {
    transform: translateY(1px);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.glow-btn:hover .btn-glow {
    opacity: 0.3;
}

/* Footer */
.footer {
    width: 100%;
    padding: 30px 40px;
    z-index: 10;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.social-link {
    color: #fff;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    opacity: 1;
    color: var(--accent-glow);
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.x-icon {
    width: 28px;
    height: 28px;
}

/* Modal Form Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
}

/* Hide scrollbar for the modal container */
.modal-container::-webkit-scrollbar {
    display: none;
}

.modal-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-overlay.active .modal-container {
    transform: translateY(0) scale(1);
}

.glass-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 40px rgba(61, 255, 152, 0.1) inset;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding: 5px;
}

.close-btn:hover {
    color: var(--accent-glow);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

input,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 14px 16px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-glow);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 15px rgba(61, 255, 152, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.form-status {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--accent-glow);
    min-height: 20px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .header {
        padding: 20px;
        justify-content: center;
    }

    .footer {
        justify-content: center;
        padding: 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .glass-panel {
        padding: 30px 20px;
    }
}