:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --text-light: #64748b;
    --border: #e2e8f0;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
        /* New font variables */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-heading);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--background);
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.soon-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #22c55e;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    margin-left: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-links .soon-badge {
    font-size: 0.65em;
    vertical-align: super;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-weight: 700;
}

.logo-icon {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    background: var(--text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.btn-primary {
    background: var(--gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgb(0 0 0 / 3%);
    color: var(--text);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(1rem, 6vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.subtitle {
    display: block;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
}

.feature-card.model-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.model-features-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.model-features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.model-features-list i {
    color: #6366f1;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background: var(--surface);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.solution-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-icon i {
    font-size: 2.5rem;
    color: white;
}

.solution-content {
    text-align: center;
}

.solution-content h3 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.solution-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.learn-more:hover {
    gap: 0.75rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--surface);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.contact-info {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary);
}

.contact-form {
    background: var(--background);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-heading);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--gradient);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.btn-primary.loading .button-text {
    visibility: hidden;
}

.btn-primary.loading .button-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status messages */
.status-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    text-align: center;
}

.status-success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 1rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero section fixes */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-secondary {
    background: white;
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-image {
    margin-top: 4rem;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.footer .logo-text {
    font-size: 1.5rem;
    color: white;
    -webkit-text-fill-color: white;
}

.footer .logo-icon {
    filter: brightness(0) invert(1);
}

.pre-title {
    font-size: 4.5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.model-description {
    font-size: 1.1rem;
    color: var(--text);
    margin: 1.5rem auto;
    max-width: 800px;
    background: rgba(99, 102, 241, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        left: 0;
        top: 0;
    }

    .nav-links {
        position: fixed;
        top: 70px; /* Înălțimea navbar-ului */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px); /* Înălțime viewport minus navbar */
        background: var(--background);
        padding: 2rem;
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        z-index: 99;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex !important; /* Forțăm display:flex */
    }

    /* Stiluri pentru elementele din meniu */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    /* Asigurăm că butonul de meniu rămâne deasupra */
    #mobile-menu {
        z-index: 100;
        position: relative;
    }

    .menu-toggle {
        display: block;
        z-index: 99;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .navbar {
        position: relative;
        z-index: 100;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
        padding: 0 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pre-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.model-card {
        grid-column: span 1;
    }
    
    .model-features-list {
        grid-template-columns: 1fr;
    }
}

/* Additional responsive fixes */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    padding: 16px 20px;
    margin-bottom: 1rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.3s ease forwards;
}

.toast i {
    font-size: 1.25rem;
}

.toast-success {
    background: #10b981;
}

.toast-error {
    background: #ef4444;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Asigură-te că toast-ul este deasupra tuturor elementelor */
body {
    position: relative;
}

/* Resetează orice z-index care ar putea interfera */
.navbar,
.hero,
.features,
.solutions,
.contact {
    position: relative;
}

/* Adaugă în CSS */
.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.g-recaptcha > div {
    margin: 0 auto;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.file-input {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--background, #f8f9fa);
    border: 2px dashed var(--border, #dee2e6);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    border-color: var(--primary, #6366f1);
    color: var(--primary, #6366f1);
}

.file-label i {
    margin-right: 0.5rem;
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light, #6c757d);
    display: none;
}

.career-fields {
    transition: all 0.3s ease;
}

/* Stiluri pentru animația AI Model */
.ai-model-visualization {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 20px;
    overflow: hidden;
}

.model-core {
    position: relative;
    z-index: 2;
}

.core-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
    animation: pulse 2s infinite;
}

.model-name {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.model-params {
    font-size: 14px;
    opacity: 0.9;
}

.data-streams {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.stream {
    position: absolute;
    width: 2px;
    height: 100px;
    background: rgba(99, 102, 241, 0.5);
    animation: streamFlow 3s infinite;
}

.stream-1 { transform: rotate(45deg) translateY(-150%); }
.stream-2 { transform: rotate(135deg) translateY(-150%); }
.stream-3 { transform: rotate(225deg) translateY(-150%); }
.stream-4 { transform: rotate(315deg) translateY(-150%); }

.model-features {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.feature {
    position: absolute;
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: featureFloat 4s infinite;
}

.feature i {
    margin-right: 10px;
    color: #6366f1;
}

.feature-1 { top: 20%; left: 10%; animation-delay: 0s; }
.feature-2 { top: 20%; right: 10%; animation-delay: 1s; }
.feature-3 { bottom: 20%; left: 10%; animation-delay: 2s; }
.feature-4 { bottom: 20%; right: 10%; animation-delay: 3s; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes streamFlow {
    0% { 
        height: 0;
        opacity: 0;
    }
    50% { 
        height: 100px;
        opacity: 1;
    }
    100% { 
        height: 0;
        opacity: 0;
    }
}

@keyframes featureFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Adaugă media queries pentru responsivitate */
@media (max-width: 768px) {
    .ai-model-visualization {
        height: 300px;
    }

    .core-circle {
        width: 150px;
        height: 150px;
    }

    .model-name {
        font-size: 20px;
    }

    .model-params {
        font-size: 12px;
    }

    .feature {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .feature span {
        display: none;
    }

    .feature {
        padding: 10px;
    }

    .feature i {
        margin: 0;
    }
}

.workflow-animation {
    background: linear-gradient(145deg, #f8f9ff 0%, #f1f3ff 100%);
    border-radius: 20px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Input Section */
.input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.data-source {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: float 3s infinite ease-in-out;
}

.data-source i {
    font-size: 2rem;
    color: #6366f1;
}

.data-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.data-type {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.5s ease-out forwards;
    opacity: 0;
}

.data-type:nth-child(1) { animation-delay: 0.2s; }
.data-type:nth-child(2) { animation-delay: 0.4s; }
.data-type:nth-child(3) { animation-delay: 0.6s; }

/* Processing Section */
.model-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.model-header {
    text-align: center;
    font-weight: 600;
    color: #6366f1;
    margin-bottom: 1rem;
}

.neural-network {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    position: relative;
}

.layer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.node {
    width: 20px;
    height: 20px;
    background: #6366f1;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hidden-layer .node {
    background: #818cf8;
}

/* Output Section */
.output-types {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.output-type {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: slideInRight 0.5s ease-out forwards;
    opacity: 0;
}

.output-type:nth-child(1) { animation-delay: 0.8s; }
.output-type:nth-child(2) { animation-delay: 1s; }
.output-type:nth-child(3) { animation-delay: 1.2s; }

.benefits {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    background: #6366f1;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}

.benefit:nth-child(1) { animation-delay: 1.4s; }
.benefit:nth-child(2) { animation-delay: 1.6s; }
.benefit:nth-child(3) { animation-delay: 1.8s; }

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Connecting Lines Animation */
.neural-network::before,
.neural-network::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #6366f1, transparent);
    animation: flowLine 2s infinite;
}

.neural-network::before {
    left: 33%;
}

.neural-network::after {
    right: 33%;
}

@keyframes flowLine {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 200%; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .workflow-animation {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .input-section, .output-section {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .workflow-animation {
        padding: 1rem;
    }
    
    .data-type, .output-type, .benefit {
        font-size: 0.9rem;
    }
}

/* Tudor Workflow Styles */
.tudor-workflow {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.workflow-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workflow-header {
    text-align: center;
}

.icon-container {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.icon-container.primary {
    background: var(--primary);
    color: white;
}

.time-range {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.social-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-source {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    transition: transform 0.2s ease;
}

.input-source:hover {
    transform: translateY(-2px);
}

.input-source i {
    font-size: 1.5rem;
    color: var(--primary);
}

.source-data {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hashtag, .location {
    font-weight: 600;
    color: var(--text);
}

.metric {
    font-size: 0.875rem;
    color: var(--text-light);
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    border-left: 4px solid var(--primary);
    transform: translateX(4px);
    position: relative;
    overflow: hidden;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.step-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.step-name {
    font-weight: 600;
    color: var(--text);
}

.step-metric {
    font-size: 0.875rem;
    color: var(--success);
}

.insights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-card {
    background: var(--surface);
    padding: 1.25rem;
    border-radius: 12px;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.insight-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.insight-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.insight-card ul {
    list-style: none;
    padding: 0;
}

.insight-card li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.trend-up {
    color: var(--success);
    font-weight: 600;
}

.opportunity-score {
    text-align: center;
    padding: 1rem 0;
}

.score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    animation: metricPulse 2s infinite;
}

.label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tudor-workflow {
        flex-direction: column;
        padding: 1.5rem;
    }

    .workflow-column {
        width: 100%;
    }
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.step.active .step-icon {
    animation: pulse 2s infinite;
}

/* Animații avansate pentru workflow */
.tudor-workflow {
    position: relative;
    overflow: hidden;
}

/* Efect de particule pentru flow-ul de date */
.data-flow {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: particleFlow 3s infinite;
}

/* Animație pentru procesare */
.step.active {
    position: relative;
    overflow: hidden;
}

.step.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(var(--primary-rgb), 0.1),
        transparent
    );
    animation: processingWave 2s infinite;
}

/* Animație pentru insights */
.insight-card {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.insight-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Pulsație pentru metrici importante */
.metric-value {
    animation: metricPulse 2s infinite;
}

/* Animații keyframes */
@keyframes particleFlow {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(300px) translateY(-100px);
        opacity: 0;
    }
}

@keyframes processingWave {
    0% {
        transform: translateX(0) skewX(-45deg);
    }
    100% {
        transform: translateX(100%) skewX(-45deg);
    }
}

@keyframes metricPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: var(--primary);
    }
    100% {
        transform: scale(1);
    }
}

/* Animație pentru loading bars */
.processing-bar {
    height: 4px;
    background: var(--surface);
    border-radius: 2px;
    overflow: hidden;
}

.processing-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--primary);
    animation: processData 2s infinite;
}

@keyframes processData {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

/* AI Neural Demo Styles */
.ai-neural-demo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem;
    background: rgba(103, 98, 240, 0.02);
    border-radius: 24px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Background cu puncte animate */
.ai-neural-demo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
    animation: aiBackgroundFlow 20s linear infinite;
}

.ai-node {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(103, 98, 240, 0.1);
    position: relative;
    z-index: 2;
    width: 30%;
    transition: transform 0.3s ease;
}

.ai-node:hover {
    transform: translateY(-5px);
}

.ai-node-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.5rem;
    position: relative;
}

.ai-node-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: inherit;
    opacity: 0.2;
    animation: aiPulse 2s infinite;
}

.ai-time {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.875rem;
}

.ai-data-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.ai-data-item:hover {
    background: var(--primary-light);
    transform: translateX(5px);
}

.ai-process-item {
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.ai-process-item.ai-active {
    background: var(--primary-light);
}

.ai-trend-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.ai-market {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.ai-score {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin: 1rem 0;
}

.ai-positive {
    color: var(--success);
}

/* Linii de conexiune animate */
.ai-neural-demo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent,
        var(--primary) 20%,
        var(--primary) 80%,
        transparent
    );
    opacity: 0.3;
    z-index: 1;
}

/* Animații */
@keyframes aiPulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0.2; }
}

@keyframes aiBackgroundFlow {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Responsive */
@media (max-width: 1024px) {
    .ai-neural-demo {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .ai-node {
        width: 100%;
    }
}

.ai-discovery-flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    background: var(--surface-light);
    border-radius: 24px;
    margin: 2rem 0;
}

/* Step styling */
.ai-step {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(103, 98, 240, 0.1);
    transition: transform 0.3s ease;
}

.ai-step:hover {
    transform: translateY(-5px);
}

/* Step headers */
.ai-step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.ai-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    position: relative;
}

/* Pulsing animation for icons */
.ai-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.ai-step-title h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

.ai-period, .ai-processing, .ai-highlight {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Signal items styling */
.ai-signals {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-signal-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ai-signal-item:hover {
    background: var(--primary-light);
    transform: translateX(10px);
}

.ai-signal-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.ai-signal-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ai-growth {
    color: #22c55e;
    font-weight: 600;
}

/* Metrics styling */
.ai-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ai-metric-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.ai-metric-card:hover {
    transform: translateY(-5px);
}

/* Score bar animation */
.ai-score-bar {
    height: 8px;
    background: rgba(103, 98, 240, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
    position: relative;
}

.ai-score-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    animation: fillBar 1.5s ease-out;
}

/* Trend graph animation */
.ai-trend-graph {
    height: 60px;
    position: relative;
    margin: 1rem 0;
}

.ai-graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform-origin: left;
    animation: drawLine 2s ease-out;
}

/* Opportunities section */
.ai-opportunities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.ai-trend-card, .ai-potential-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
}

.ai-potential-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    line-height: 1;
    margin: 1.5rem 0;
    animation: scaleIn 0.5s ease-out;
}

.ai-recommendation {
    text-align: center;
    color: #22c55e;
    font-weight: 600;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0.2; }
}

@keyframes fillBar {
    from { width: 0; }
    to { width: 92%; }
}

@keyframes drawLine {
    from { 
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    to {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes scaleIn {
    from { 
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .ai-discovery-flow {
        padding: 1rem;
    }
    
    .ai-step {
        padding: 1.5rem;
    }
    
    .ai-metrics, .ai-opportunities {
        grid-template-columns: 1fr;
    }
}

.social-analysis-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1200px;
}

.analysis-box {
    flex: 1;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(103, 98, 240, 0.05);
    width: 100%;
    max-width: 350px;
    background: linear-gradient(145deg, #f8f9ff 0%, #f1f3ff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.analysis-icon {
    width: 48px;
    height: 48px;
    background: #F0F0FF;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #6366F1;
    margin-bottom: 1rem;
}

.analysis-title {
    font-size: 1.25rem;
    color: #1F2937;
    margin-bottom: 1.5rem;
}

.analysis-arrow {
    display: flex;
    align-items: center;
    color: #6366F1;
    font-size: 1.5rem;
    padding: 1rem;
}

/* Input Section */
.input-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-message {
    background: #F9FAFB;
    padding: 1rem;
    border-radius: 12px;
}

.message-text {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.message-text.highlight {
    color: #6366F1;
}

.message-platform {
    font-size: 0.75rem;
    color: #6B7280;
}

.data-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.data-status i {
    animation: spin 2s linear infinite;
}

/* Processing Section */
.tudor-nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 coloane pentru 3 straturi */
    gap: 0.75rem;
    margin: 1.5rem auto;
    width: fit-content;
    position: relative;
}

.ai-node {
    width: 24px;  /* noduri puțin mai mici */
    height: 24px;
    background: #6366F1;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
}

/* Primul strat (input) */
.ai-node:nth-child(-n+3) {
    transform: translateX(-10px);
}

/* Al doilea strat (hidden) */
.ai-node:nth-child(n+4):nth-child(-n+6) {
    transform: translateX(0);
}

/* Al treilea strat (output) */
.ai-node:nth-child(n+7) {
    transform: translateX(10px);
}

.ai-node.ai-active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.analysis-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.metric-name {
    color: #1F2937;
}

.metric-value {
    color: #6366F1;
    font-weight: 600;
}

/* Results Section */
.result-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #F9FAFB;
    border-radius: 12px;
}

.detected-brand {
    color: #6366F1;
    font-weight: 500;
}

.detected-category {
    font-size: 0.875rem;
    color: #4B5563;
}

.sentiment-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
    border-radius: 12px;
    font-size: 1.375rem;
    width: fit-content;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .social-analysis-flow {
        flex-direction: column;
    }
    
    .analysis-arrow {
        transform: rotate(90deg);
        padding: 0.5rem;
    }
}