:root {
    --primary-light: #00f0ff;
    --accent-color: #ff6b6b;
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --bg-secondary: #0f172a;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15), transparent 50%),
                radial-gradient(circle at 80% 30%, rgba(20, 184, 166, 0.15), transparent 50%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeIn 1s ease-out;
    padding-right: 20px;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
}

/* Neural Network Animation */
.neural-network {
    position: relative;
    width: 300px;
    height: 300px;
    animation: pulse 4s infinite alternate ease-in-out;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-light), 0 0 20px var(--primary-light);
    z-index: 1;
    animation-timing-function: ease-in-out;
}

.edge {
    position: absolute;
    background: linear-gradient(to right, var(--primary-light), var(--accent-color));
    height: 2px;
    transform-origin: left center;
    z-index: 1;
    animation-timing-function: ease-in-out;
}

.edge::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background: inherit;
    filter: blur(4px);
    opacity: 0.7;
    z-index: -1;
}

/* Nodes */
.n1 { top: 50px; left: 30px; animation: glow 3s infinite alternate; }
.n2 { top: 150px; left: 30px; animation: glow 2.5s infinite alternate; }
.n3 { top: 250px; left: 30px; animation: glow 4s infinite alternate; }
.n4 { top: 80px; left: 150px; animation: glow 3.5s infinite alternate; }
.n5 { top: 220px; left: 150px; animation: glow 2.8s infinite alternate; }
.n6 { top: 120px; left: 270px; animation: glow 3.2s infinite alternate; }
.n7 { top: 200px; left: 270px; animation: glow 4.2s infinite alternate; }

/* Edges */
.e1 { top: 59px; left: 48px; width: 110px; transform: rotate(18deg); animation: pulse 3s infinite alternate; }
.e2 { top: 159px; left: 48px; width: 110px; transform: rotate(-10deg); animation: pulse 2.7s infinite alternate; }
.e3 { top: 260px; left: 48px; width: 110px; transform: rotate(-35deg); animation: pulse 3.3s infinite alternate; }
.e4 { top: 90px; left: 168px; width: 110px; transform: rotate(12deg); animation: pulse 2.9s infinite alternate; }
.e5 { top: 220px; left: 168px; width: 110px; transform: rotate(-8deg); animation: pulse 3.1s infinite alternate; }
.e6 { top: 168px; left: 150px; width: 120px; transform: rotate(-10deg); animation: extend 2.5s infinite alternate; }

/* Animations */
@keyframes glow {
    from {
        box-shadow: 0 0 5px var(--primary-light), 0 0 10px var(--primary-light);
    }
    to {
        box-shadow: 0 0 15px var(--primary-light), 0 0 30px var(--primary-light);
    }
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

@keyframes extend {
    from { transform: scaleX(0); opacity: 0.6; }
    to { transform: scaleX(1); opacity: 1; }
}

/* Features Section */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 4rem 5%;
    background-color: var(--bg-secondary);
}

.feature-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.feature-card .icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
}

/* About Section */
.about {
    padding: 5rem 5%;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.about p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--bg-secondary);
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.6);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 2rem;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 3rem;
        padding-right: 0;
        text-align: center;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        max-width: 100%;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .title {
        font-size: 2rem;
    }

    .hero-image {
        min-height: 300px;
    }

    .neural-network {
        transform: scale(0.8);
        max-height: 250px;
    }
}
