/* ===== SOLUTION DETAIL PAGE ===== */

/* ========================================
   HERO SECTION - Full Viewport
   ======================================== */
.solution-hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-hero-overlay {
    position: absolute;
    inset: 0;
}

.solution-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.solution-hero-content h1 {
    font-size: 72px;
    font-weight: 800;
    color: var(--white);
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 800px;
    margin: 24px auto 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   INTRO SECTION
   ======================================== */
.solution-intro-section {
    background: var(--white);
    padding: 100px 0;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.solution-intro-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at 50% 30%,
        rgba(65, 105, 225, 0.04) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.intro-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.intro-content {
    text-align: center;
    max-width: 900px;
}

.intro-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 24px;
    line-height: 1.2;
}

.intro-content p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.8;
    margin: 0;
}

.intro-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
    height: 400px;
}

.intro-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ========================================
   SECONDARY SECTION
   ======================================== */
.solution-secondary-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.solution-secondary-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.solution-secondary-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    line-height: 1.2;
}

.solution-secondary-content p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   TECH STACK SECTION
   ======================================== */
.solution-tech-stack-section {
    background: var(--white);
    padding: 100px 0;
}

.tech-stack-item {
    margin-bottom: 80px;
}

.tech-stack-item:last-child {
    margin-bottom: 0;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-stack-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tech-stack-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.tech-stack-item:hover .tech-stack-image img {
    transform: scale(1.05);
}

.tech-stack-content {
    position: relative;
}

.tech-stack-number {
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    color: #5b7fff;
    background: rgba(91, 127, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.tech-stack-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
    line-height: 1.2;
}

.tech-stack-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #5b7fff;
    margin-bottom: 16px;
}

.tech-stack-content p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* No image - full width content */
.tech-stack-item
    .tech-stack-grid:has(.tech-stack-content):not(:has(.tech-stack-image)) {
    grid-template-columns: 1fr;
}

/* ========================================
   CTA SECTION
   ======================================== */
.solution-cta-section {
    background: #020a18;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.solution-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.solution-cta-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.solution-cta-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.solution-cta-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 35px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet - 992px and below */
@media (max-width: 992px) {
    .solution-hero-content h1 {
        font-size: 56px;
    }

    .intro-content h2 {
        font-size: 36px;
    }

    .solution-secondary-content h2 {
        font-size: 32px;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Keep image first on mobile for both layouts */
    .tech-stack-item.right-aligned .tech-stack-grid {
        display: flex;
        flex-direction: column;
    }

    .tech-stack-item.right-aligned .tech-stack-content {
        order: 2;
    }

    .tech-stack-item.right-aligned .tech-stack-image {
        order: 1;
    }

    .tech-stack-content h3 {
        font-size: 28px;
    }

    .solution-cta-content h2 {
        font-size: 36px;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .solution-hero-section {
        height: 80vh;
        min-height: 500px;
    }

    .solution-hero-content h1 {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
    }

    .solution-intro-section,
    .solution-tech-stack-section {
        padding: 80px 0;
    }

    .solution-secondary-section {
        padding: 60px 0;
    }

    .intro-content h2 {
        font-size: 32px;
    }

    .intro-content p {
        font-size: 16px;
    }

    .solution-secondary-content h2 {
        font-size: 28px;
    }

    .tech-stack-item {
        margin-bottom: 60px;
    }

    .tech-stack-content h3 {
        font-size: 24px;
    }

    .solution-cta-section {
        padding: 80px 0;
    }

    .solution-cta-content h2 {
        font-size: 32px;
    }

    .solution-cta-content p {
        font-size: 16px;
    }
}
