/* SourcerCode AI Agent Platform
 * Core styles based on index.css from the project
 */

:root {
    --primary: #00ffaa;
    --primary-rgb: 0, 255, 170;
    --secondary: #ff00aa;
    --secondary-rgb: 255, 0, 170;
    --tertiary: #00aaff;
    --tertiary-rgb: 0, 170, 255;
    --darkest: #0a0015;
    --deep-purple: #150035;
    --text-primary: #ffffff;
    --text-secondary: #a3a3ff;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--darkest);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.orbitron {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.jetbrains {
    font-family: 'JetBrains Mono', monospace;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -3;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Glow Effects */
.glow-circle {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: -2;
    animation: float 20s ease-in-out infinite;
}

.circle-primary {
    background: var(--primary);
    top: -300px;
    right: -300px;
}

.circle-secondary {
    background: var(--secondary);
    bottom: -300px;
    left: -300px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-50px, -50px) scale(1.1);
    }
}

/* Data Particles */
.data-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Loading Screen */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darkest);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

    .loading-container .logo img {
        width: 150px;
        height: auto;
        margin-bottom: 2rem;
    }

.loading-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.loading-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.loading-progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    transition: width 0.3s ease;
}

.loading-message {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.feature-icon {
    font-size: 1.5rem;
}

.tagline {
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.outro {
    font-size: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 0, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

    .main-nav a:hover {
        color: var(--primary);
    }

.cta-button {
    background: var(--gradient-primary);
    color: var(--darkest) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 2rem;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content h3 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.primary-button {
    background: var(--gradient-primary);
    color: var(--darkest);
}

    .primary-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 255, 170, 0.3);
    }

.secondary-button {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

    .secondary-button:hover {
        background: rgba(0, 255, 170, 0.1);
    }

/* Hexagon Animation */
.hexagon-container {
    position: relative;
    width: 500px;
    height: 500px;
}

.hexagon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 255, 170, 0.1);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    transition: all 0.3s;
}

    .hexagon:nth-child(1) {
        top: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .hexagon:nth-child(2) {
        top: 25%;
        right: 0;
    }

    .hexagon:nth-child(3) {
        bottom: 25%;
        right: 0;
    }

    .hexagon:nth-child(4) {
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .hexagon:nth-child(5) {
        bottom: 25%;
        left: 0;
    }

    .hexagon:nth-child(6) {
        top: 25%;
        left: 0;
    }

    .hexagon.center {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.2);
        background: var(--gradient-primary);
        color: var(--darkest);
    }

    .hexagon:hover {
        transform: scale(1.1);
        background: rgba(0, 255, 170, 0.2);
    }

/* Section Styles */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

.glow-text {
    text-shadow: 0 0 30px rgba(0, 255, 170, 0.5);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 10px 30px rgba(0, 255, 170, 0.2);
    }

.feature-icon-container {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--darkest);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Workflow Section */
.workflow-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

    .workflow-container::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--gradient-primary);
        z-index: -1;
    }

.workflow-step {
    background: var(--darkest);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    margin: 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

    .workflow-step.active {
        opacity: 1;
        transform: translateY(0);
    }

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--darkest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Simulation Section */
.simulation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.simulation-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

    .simulation-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
        box-shadow: 0 10px 30px rgba(0, 255, 170, 0.2);
    }

.simulation-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--darkest);
    margin: 0 auto 1.5rem;
}

.simulation-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.simulation-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.simulation-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .simulation-metrics span {
        background: rgba(0, 255, 170, 0.1);
        border: 1px solid var(--primary);
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

.view-simulation-btn {
    background: var(--gradient-primary);
    color: var(--darkest);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

    .view-simulation-btn:hover {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(0, 255, 170, 0.4);
    }

/* Benefits Section */
.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.metric-value {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

    .contact-method i {
        color: var(--primary);
        width: 20px;
    }

.tech-stack h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--text-secondary);
    }

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    transition: all 0.3s;
}

    .form-input:focus,
    .form-textarea:focus {
        outline: none;
        border-color: var(--primary);
        background: rgba(255, 255, 255, 0.08);
    }

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

    .footer-logo img {
        height: 50px;
    }

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-link-group h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-link-group a:hover {
        color: var(--primary);
    }

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

    .footer-social a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        transition: all 0.3s;
    }

        .footer-social a:hover {
            background: var(--primary);
            color: var(--darkest);
        }

.footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vision-text {
    margin-top: 0.5rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hexagon-container {
        margin: 0 auto;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .workflow-container {
        flex-direction: column;
    }

        .workflow-container::before {
            display: none;
        }

    .workflow-step {
        margin: 1rem 0;
    }
}
