﻿/* ai-solutions.css */

/* AI Hero Section */
.ai-hero {
    padding: 120px 5% 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #151528 50%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 2rem 0 2.5rem;
}

.tech-pill {
    padding: 0.6rem 1.2rem;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 25px;
    color: var(--text-glow);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

    .tech-pill i {
        color: var(--accent-neon);
        font-size: 1rem;
    }

    .tech-pill:hover {
        background: rgba(0, 243, 255, 0.2);
        border-color: var(--accent-neon);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 243, 255, 0.2);
    }

/* Neural Network Visualization */
.ai-visualization {
    position: absolute;
    right: 5%;
    top: 80%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-neon);
    animation: pulseNode 2s infinite;
}

.node-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.node-2 {
    top: 20%;
    left: 50%;
    animation-delay: -0.4s;
}

.node-3 {
    top: 20%;
    left: 80%;
    animation-delay: -0.8s;
}

.node-4 {
    top: 50%;
    left: 35%;
    animation-delay: -1.2s;
}

.node-5 {
    top: 50%;
    left: 65%;
    animation-delay: -1.6s;
}

.node-6 {
    top: 80%;
    left: 50%;
    animation-delay: -2s;
}

@keyframes pulseNode {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-neon), transparent);
    animation: pulseConnection 3s infinite;
}

.conn-1 {
    top: 30%;
    left: 20%;
    width: 100px;
    transform: rotate(45deg);
}

.conn-2 {
    top: 30%;
    left: 50%;
    width: 100px;
    transform: rotate(-45deg);
}

.conn-3 {
    top: 40%;
    left: 35%;
    width: 120px;
    transform: rotate(30deg);
}

.conn-4 {
    top: 40%;
    left: 65%;
    width: 120px;
    transform: rotate(-30deg);
}

.conn-5 {
    top: 60%;
    left: 40%;
    width: 150px;
    transform: rotate(20deg);
}

.conn-6 {
    top: 60%;
    left: 60%;
    width: 150px;
    transform: rotate(-20deg);
}

@keyframes pulseConnection {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.data-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-neon);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 3s infinite;
}

@keyframes pulseRing {
    0% {
        width: 200px;
        height: 200px;
        opacity: 1;
    }

    100% {
        width: 400px;
        height: 400px;
        opacity: 0;
    }
}

.ai-code {
    position: absolute;
    bottom: 20%;
    right: 10%;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(0, 243, 255, 0.3);
    backdrop-filter: blur(10px);
    max-width: 300px;
}

    .ai-code pre {
        color: #fff;
        font-size: 0.8rem;
        line-height: 1.4;
        margin: 0;
    }

    .ai-code .keyword {
        color: #569cd6;
    }

    .ai-code .class {
        color: #4ec9b0;
    }

    .ai-code .string {
        color: #ce9178;
    }

/* Services Section */
.ai-services {
    padding: 6rem 5%;
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 26, 46, 0.6) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(0, 243, 255, 0.2);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

    .service-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.1), transparent);
        transition: left 0.6s;
    }

    .service-card:hover::before {
        left: 100%;
    }

    .service-card:hover {
        transform: translateY(-10px);
        border-color: var(--accent-neon);
        box-shadow: 0 20px 40px rgba(0, 243, 255, 0.2);
    }

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background: rgba(0, 243, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-neon);
    border: 2px solid rgba(0, 243, 255, 0.3);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(0, 243, 255, 0.2);
    transform: scale(1.1) rotate(360deg);
    border-color: var(--accent-neon);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-glow);
    font-family: 'Orbitron', sans-serif;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
}

    .service-features li {
        padding: 0.5rem 0;
        color: var(--text-glow);
        opacity: 0.9;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.95rem;
    }

    .service-features i {
        color: var(--accent-cyan);
        font-size: 0.9rem;
    }

/* ML.NET Section */
.mlnet-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #151528 100%);
}

.mlnet-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.code-showcase {
    background: #1e1e1e;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.code-header {
    background: #2d2d2d;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.code-body {
    padding: 1.5rem;
}

    .code-body pre {
        color: #d4d4d4;
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }

.mlnet-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .feature-item:hover {
        border-color: var(--accent-neon);
        transform: translateY(-5px);
    }

    .feature-item i {
        font-size: 2rem;
        color: var(--accent-neon);
        margin-bottom: 1rem;
    }

    .feature-item h4 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-glow);
        margin-bottom: 0.5rem;
    }

    .feature-item p {
        color: var(--text-glow);
        opacity: 0.7;
        font-size: 0.9rem;
        line-height: 1.5;
    }

/* Cognitive Services */
.cognitive-section {
    padding: 6rem 5%;
    background: var(--secondary-color);
}

.cognitive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cognitive-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .cognitive-card:hover {
        border-color: var(--accent-neon);
        transform: translateY(-5px);
    }

    .cognitive-card i {
        font-size: 2.5rem;
        color: var(--accent-neon);
        margin-bottom: 1rem;
    }

    .cognitive-card h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: var(--text-glow);
        margin-bottom: 1rem;
        font-family: 'Orbitron', sans-serif;
    }

    .cognitive-card ul {
        list-style: none;
    }

    .cognitive-card li {
        padding: 0.3rem 0;
        color: var(--text-glow);
        opacity: 0.8;
        font-size: 0.95rem;
    }

/* Use Cases */
.usecases-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #151528 100%);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.usecase-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .usecase-card:hover {
        border-color: var(--accent-neon);
        transform: translateY(-5px);
    }

    .usecase-card i {
        font-size: 2rem;
        color: var(--accent-neon);
        margin-bottom: 1rem;
    }

    .usecase-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text-glow);
        margin-bottom: 0.8rem;
    }

    .usecase-card p {
        color: var(--text-glow);
        opacity: 0.8;
        margin-bottom: 1rem;
        line-height: 1.5;
    }

.usecase-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

    .usecase-stats span {
        background: rgba(0, 243, 255, 0.1);
        border: 1px solid rgba(0, 243, 255, 0.2);
        border-radius: 12px;
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
        color: var(--accent-cyan);
    }

/* Portfolio Section */
.portfolio-section {
    padding: 6rem 5%;
    background: var(--secondary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.portfolio-card {
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.2);
    position: relative;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a3a 0%, #1a1a2a 100%);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-glow);
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.portfolio-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}

    .portfolio-tech span {
        background: rgba(0, 243, 255, 0.1);
        border: 1px solid rgba(0, 243, 255, 0.2);
        border-radius: 12px;
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        color: var(--accent-cyan);
    }

.portfolio-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

    .portfolio-stats span {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.2rem 0.8rem;
        border-radius: 10px;
        font-size: 0.8rem;
        color: var(--text-glow);
    }

/* Tools Section */
.tools-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #151528 100%);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tool-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
}

    .tool-item:hover {
        border-color: var(--accent-neon);
        transform: translateY(-3px);
    }

    .tool-item i {
        font-size: 2rem;
        color: var(--accent-neon);
    }

    .tool-item span {
        font-weight: 600;
        color: var(--text-glow);
        text-align: center;
        font-size: 0.9rem;
    }

/* FAQ Section */
.ai-faq {
    padding: 6rem 5%;
    background: var(--secondary-color);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

    .faq-item:hover {
        border-color: var(--accent-neon);
    }

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.3s ease;
}

    .faq-question:hover {
        background: rgba(0, 243, 255, 0.05);
    }

    .faq-question h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--text-glow);
        margin: 0;
        pointer-events: none;
    }

    .faq-question i {
        color: var(--accent-neon);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    opacity: 0.8;
    line-height: 1.6;
    margin: 0;
    color: var(--text-glow);
}

/* CTA Section */
.ai-cta {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #151528 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-glow);
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .ai-visualization {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }

    .mlnet-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    ai-visualization

    .hero-tech-stack {
        justify-content: center;
    }

    .services-grid,
    .cognitive-grid,
    .usecases-grid,
    .portfolio-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .mlnet-features {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}
