/* static/css/public.css */
:root {
    --primary-color: #48E5C2;
    --background-color: #121212;
    --surface-color: #1E1E1E;
    --border-color: #333333;
    --text-color: #EAEAEA;
    --text-muted-color: #888888;
    --primary-button-text: #121212;
}

/* --- Sticky Footer & Body Setup --- */
html, body { height: 100%; }
body {
    display: flex; flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    position: relative; /* Needed for z-index stacking context */
}
html, body {
	max-width: 100%;
	overflow-x: hidden;
}
.content-wrapper {
    flex: 1 0 auto;
    position: relative; /* --- ADDED --- */
    z-index: 2;         /* --- ADDED: Ensure content is above particles --- */
}
.footer {
    flex-shrink: 0;
    position: relative; /* --- ADDED --- */
    z-index: 2;         /* --- ADDED: Ensure footer is above particles --- */
}

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



/* --- Particle Background Canvas --- */
#particles-js {
    position: fixed; /* --- CHANGED from absolute to fixed --- */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1; /* --- CHANGED from 0 to 1 --- */
}
/* Ensure particle canvas doesn't intercept clicks */
#particles-js, #particles-js canvas {
    pointer-events: none !important;
}

/* --- Enhanced Header --- */
.navbar {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky; top: 0; z-index: 1000;
}
.navbar-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.8rem; font-weight: bold; color: var(--primary-color); text-decoration: none; }
.navbar-nav { display: flex; align-items: center; gap: 1rem; }

/* --- Enhanced Buttons --- */
.btn {
    display: inline-block; padding: 0.75rem 1.5rem; border-radius: 5px;
    text-decoration: none; font-weight: bold; cursor: pointer;
    border: 1px solid transparent; transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--primary-button-text);
    box-shadow: 0 0 15px rgba(72, 229, 194, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 25px rgba(72, 229, 194, 0.5); }
.btn-secondary {
    background: transparent; color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.btn-secondary:hover { background: var(--primary-color); color: var(--primary-button-text); box-shadow: 0 0 15px rgba(72, 229, 194, 0.3); }
.btn-large { font-size: 1.1rem; padding: 1rem 2rem; }

/* --- Enhanced Hero Section --- */
.hero {
    text-align: center;
    padding: 8rem 0;
    position: relative;
    /* --- REMOVED THE OBSCURING BACKGROUND --- */
    /* background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.95)); */
}
.hero-content { position: relative; } /* No z-index needed here */
.hero h1 { font-size: 3.5rem; margin-bottom: 1rem; color: #fff; font-weight: 600; }
.hero .subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2.5rem auto; color: var(--text-muted-color); }


/* --- Enhanced Features Section --- */
.features {
    padding: 5rem 0;
    background: var(--surface-color);
    position: relative;
}
.features .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; text-align: center; }
.feature {
    padding: 2rem; border: 1px solid var(--border-color); border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); border-color: var(--primary-color); }
.feature h3 { color: var(--primary-color); margin-top: 0; }
.feature p { color: var(--text-muted-color); }

/* --- Footer --- */
.footer {
    background: var(--surface-color); color: var(--text-muted-color);
    padding: 4rem 0 2rem 0; border-top: 1px solid var(--border-color);
    position: relative; z-index: 1;
}

.footer-container {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; margin-bottom: 2rem;
}
.footer-column h4, .footer-column h5 {
    color: #fff; margin-top: 0; margin-bottom: 1rem; font-weight: 500;
}
.footer-column p { margin: 0; line-height: 1.8; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 0.75rem; }
.footer-column a { color: var(--text-muted-color); text-decoration: none; transition: color 0.2s ease; }
.footer-column a:hover { color: #fff; }
.social-icons { margin-top: 1.5rem; }
.social-icons a { color: var(--text-muted-color); font-size: 1.2rem; margin-right: 1rem; transition: color 0.2s ease; }
.social-icons a:hover { color: var(--primary-color); }
.footer-bottom {
    text-align: center; border-top: 1px solid var(--border-color);
    padding-top: 2rem; font-size: 0.9em;
}


/* --- FINAL, CENTERED MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Slightly darker overlay for more focus */
    z-index: 2000;
    display: flex; /* Use flexbox for easy centering */
    justify-content: center;
    align-items: center;
    
    /* Animation for the overlay */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* do not intercept clicks unless active */
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface-color);
    border-radius: 8px;
    width: 100%;
    max-width: 420px; /* Slightly wider for a better feel */
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--border-color), 0 0 40px rgba(72, 229, 194, 0.2); /* Added a teal glow */
    border: none; /* Remove the plain border */
    padding: 2.5rem 3rem;

    /* Animation: scale and fade in */
    transform: scale(0.95);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* When the overlay is active, animate the modal in */
.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted-color);
    transition: color 0.2s ease;
}
.modal-close:hover {
    color: #fff;
}

.modal-content h2 {
    text-align: center; /* Center the title */
    margin-top: 0;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 500;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted-color);
    font-size: 0.9em;
}
.form-group input {
    width: 100%;
    padding: 0.85rem; /* Slightly taller inputs */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-sizing: border-box;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: 1em;
    transition: border-color 0.2s ease;
}
.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(72, 229, 194, 0.2);
}
.btn-full-width { width: 100%; padding: 0.85rem; font-size: 1.1em; }

.error-message {
    background-color: #442c30;
    color: #f8d7da;
    border: 1px solid #e74c3c;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9em;
}
