/* --- Basic Setup & Variables --- */
:root {
    --primary-color: #05A656; /* New Green Theme */
    --primary-hover-color: #06C265; /* Lighter green for hover */
    --dark-bg: #121212;
    --medium-bg: #1E1E1E;
    --light-text: #EAEAEA;
    --medium-text: #999999;
    --card-bg: #2a2a2a;
    --border-color: #333;
    --error-color: #e74c3c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative; 
    z-index: 10;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Particle.js Background --- */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    z-index: 1;
}

/* --- Header & Navigation --- */
.main-header {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 40px; 
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav a {
    color: var(--medium-text);
    font-weight: 400;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--light-text);
    border-bottom-color: var(--primary-color);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 166, 86, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light-text);
    border: 1px solid var(--medium-text);
}

.btn-secondary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.login-buttons {
    display: flex;
    gap: 10px;
}

/* --- Hero Section --- */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Header offset */
    position: relative;
    z-index: 5;
    background: transparent; /* Make transparent to show particles */
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--medium-text);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* --- Content Sections --- */
main, footer {
    position: relative;
    z-index: 5;
}

.content-section {
    padding: 80px 0;
    text-align: center;
    background: transparent; /* Make transparent to show particles */
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.content-section p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    color: var(--medium-text);
}

.bg-darker {
    background: rgba(30, 30, 30, 0.5); /* Semi-transparent darker bg */
}

/* --- Feature Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 3rem;
    text-align: left;
}

.feature-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-item h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--medium-text);
    background: transparent; /* Make transparent to show particles */
}

/* --- Modals (Popups) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 15% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s ease;
}

.close-btn {
    color: var(--medium-text);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--light-text);
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Modal Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--medium-text);
    font-weight: 300;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: var(--medium-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--light-text);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-full-width {
    width: 100%;
    padding: 12px;
}

.error-message {
    height: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--error-color);
    text-align: center;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}