:root {
    --primary-color: #0a0a23;
    --secondary-color: #00ffff;
    --text-color: #e0e0e0;
    --background-color: #000000;
    --glass-bg: rgba(10, 10, 35, 0.6);
    --glow-color: rgba(0, 255, 255, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
}

#neural-net {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-shadow: 0 0 10px var(--glow-color);
}

nav ul {
    list-style: none;
    display: flex;
    transition: transform 0.3s ease-in-out;
}

nav ul li {
    margin-left: 40px;
}

nav a {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--glow-color);
}

.buttons button {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-left: 10px;
    padding: 10px 20px;
    border: 1px solid var(--secondary-color);
    background-color: transparent;
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
}

.buttons button.signup {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
}

.buttons button:hover {
    box-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--secondary-color);
    transition: 0.4s;
}

main {
    position: relative;
    z-index: 1;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 120px 20px 50px;
}

.hero-content {
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 15px var(--glow-color);
    line-height: 1.3;
}

.hero p {
    font-size: 1.3em;
    max-width: 750px;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 400;
}

.cta {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    padding: 15px 30px;
    border: none;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff;
}

.features, .how-it-works {
    padding: 120px 50px;
    text-align: center;
    background: rgba(0,0,0,0.5);
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    margin-bottom: 70px;
    color: #fff;
    text-shadow: 0 0 10px var(--glow-color);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background: var(--glass-bg);
    padding: 40px 30px;
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.feature h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    box-shadow: 0 0 5px var(--glow-color);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 30px;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--background-color);
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
    top: 35px;
    right: -10px;
    z-index: 1;
    box-shadow: 0 0 10px var(--glow-color);
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--primary-color);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

footer a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin-left: 20px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--glass-bg);
    margin: auto;
    padding: 40px;
    border: 1px solid var(--secondary-color);
    width: 80%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 20px var(--glow-color);
}

.close-button {
    color: var(--secondary-color);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 0 0 10px var(--glow-color);
}

.modal-content form input {
    width: calc(100% - 20px);
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--secondary-color);
    background-color: rgba(0,0,0,0.5);
    color: var(--text-color);
    border-radius: 5px;
    font-size: 1em;
}

.modal-content form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.modal-content form button {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    padding: 15px 30px;
    border: none;
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.modal-content form button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff;
}

.error-message {
    color: #ff6347;
    margin-top: 15px;
    font-size: 0.9em;
}