/* ============================================
   Solution Section - Zencia.AI
   Matching Hero Section Theme
   ============================================ */

/* ===== SOLUTION SECTION CONTAINER ===== */
.solution-section {
    position: relative;
    min-height: 100vh;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 120px 0;
}

/* ===== WAVE DIVIDER ===== */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 5;
}

.wave-top {
    top: 0;
    transform: rotate(180deg);
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
    color: #1a1a1a;
}

.wave-divider .path {
    fill: currentColor;
}

/* Animated gradient overlay - matching hero */
.solution-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(0, 217, 213, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(0, 139, 139, 0.12) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Floating particles effect - matching hero */
.solution-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 217, 213, 0.5) 50%, 
        transparent 100%);
    z-index: 1;
}

.solution-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 217, 213, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.2);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.section-badge:hover {
    background: rgba(0, 217, 213, 0.1);
    border-color: rgba(0, 217, 213, 0.3);
    transform: translateY(-2px);
}

.section-badge i {
    font-size: 1.1rem;
    color: var(--primary-teal);
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -2px;
}

.highlight-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 217, 213, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.section-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ===== SOLUTION FEATURES GRID ===== */
.solution-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    position: relative;
    background: rgba(0, 217, 213, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 217, 213, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all var(--transition-base);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.feature-card:nth-child(1) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 213, 0.1), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(0, 217, 213, 0.08);
    border-color: rgba(0, 217, 213, 0.3);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 217, 213, 0.2);
}

/* ===== FEATURE ICON ===== */
.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 217, 213, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.15);
    transition: all var(--transition-base);
    position: relative;
    z-index: 2;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 217, 213, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.feature-card:hover .feature-icon::before {
    width: 120px;
    height: 120px;
}

.feature-icon i {
    font-size: 2.2rem;
    color: var(--primary-teal);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(0, 217, 213, 0.4);
    box-shadow: 0 15px 40px rgba(0, 217, 213, 0.3);
}

/* ===== FEATURE CONTENT ===== */
.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.feature-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* ===== FEATURE STATS ===== */
.feature-stats {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 217, 213, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.15);
    border-radius: 12px;
    transition: all var(--transition-base);
    flex: 1;
}

.stat:hover {
    background: rgba(0, 217, 213, 0.1);
    border-color: rgba(0, 217, 213, 0.3);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* ===== FLOATING PARTICLES ===== */
.solution-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.solution-particles .particle {
    position: absolute;
    background: var(--primary-teal);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 25s infinite ease-in-out;
}

.solution-particles .particle:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 15%;
    left: 15%;
    animation-delay: 0s;
}

.solution-particles .particle:nth-child(2) {
    width: 8px;
    height: 8px;
    top: 70%;
    left: 85%;
    animation-delay: 3s;
}

.solution-particles .particle:nth-child(3) {
    width: 4px;
    height: 4px;
    top: 85%;
    left: 25%;
    animation-delay: 6s;
}

.solution-particles .particle:nth-child(4) {
    width: 7px;
    height: 7px;
    top: 30%;
    left: 75%;
    animation-delay: 9s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-60px) translateX(30px);
        opacity: 0.5;
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal[data-delay="0"] {
    transition-delay: 0s;
}

.scroll-reveal[data-delay="200"] {
    transition-delay: 0.2s;
}

.scroll-reveal[data-delay="400"] {
    transition-delay: 0.4s;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .solution-features {
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .solution-section {
        padding: 80px 0;
    }

    .section-title {
        letter-spacing: -1px;
    }

    .solution-features {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .feature-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .solution-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .solution-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }

    .feature-card {
        padding: 1.8rem;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.5rem;
    }

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

    .feature-title {
        font-size: 1.3rem;
    }

    .feature-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .stat {
        padding: 0.8rem 1.2rem;
        min-width: 120px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .wave-divider svg {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .solution-section .container {
        padding: 0 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .section-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }

    .feature-stats {
        flex-direction: column;
        gap: 0.8rem;
    }

    .stat {
        padding: 0.7rem 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }

    .feature-icon i {
        font-size: 1.8rem;
    }

    .wave-divider svg {
        height: 30px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.feature-card:focus-within {
    outline: 2px solid var(--primary-teal);
    outline-offset: 4px;
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.feature-card {
    cursor: default;
}

.feature-card:hover .feature-title {
    color: var(--accent-turquoise);
    transition: color var(--transition-base);
}

.feature-card:hover .feature-description {
    color: rgba(255, 255, 255, 0.95);
    transition: color var(--transition-base);
}

/* ===== GRADIENT OVERLAY FOR DEPTH ===== */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 217, 213, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
    border-radius: 20px;
}

.feature-card:hover::after {
    opacity: 1;
}