/* ============================================
   HOME PAGE SPECIFIC STYLES
   ============================================ */


/* Hero Section - Background Image + Overlay */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: url('../images/services_documentation_scene_1770280828577.png') center/cover no-repeat;
    padding-top: 140px;
    padding-bottom: 0;
}

/* Subtle overlay between background image and content */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 40, 180, 0.75) 0%, rgba(0, 80, 255, 0.7) 100%);
    z-index: 1;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    text-align: left;
    color: var(--color-white);
    max-width: 800px;
    /* Extended width */
    padding-bottom: var(--spacing-3xl);
    /* Space for balance */
}

.hero-title {
    font-size: 3.8rem;
    /* Increased size for impact */
    font-weight: 780;
    color: var(--color-white);
    margin-bottom: 0.5rem;
    /* Aggressively reduced spacing */
    line-height: 0.9;
    /* Aggressively reduced line height */
    letter-spacing: -0.02em;
    /* Tight tracking */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.highlight-text {
    display: inline-block;
    position: relative;
    color: transparent;
    background-image: linear-gradient(to right, #ffffff, #89f7fe, #66a6ff);
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
    font-weight: 800;
}



@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    /* Slightly larger */
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    /* Slightly bolder */
    line-height: 1.4;
    max-width: 100%;
    /* Ensure full width */
    text-align: left;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
}

.hero-image {
    flex: 1.2;
    /* Give image more space */
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    height: 100%;
}

.hero-image img {
    max-width: 160%;
    /* Increase size significantly */
    height: auto;
    object-fit: contain;
    margin-right: -80px;
    /* Pull slightly to right */
    margin-bottom: -80px;
    /* Overlap bottom more */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.hero-buttons .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    border: 2px solid var(--color-white);
}

.btn-white:hover {
    background: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary-outline {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary-outline:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* About Preview Section */
.about-preview {
    padding: var(--spacing-3xl) 0;
    background: var(--color-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.about-text h2 {
    margin-bottom: var(--spacing-md);
}

.about-text p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--color-gray-200);
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.about-card-inner {
    background: var(--color-white);
    padding: var(--spacing-2xl);
}

.about-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.about-features {
    list-style: none;
    margin-top: var(--spacing-lg);
}

.about-features li {
    padding: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-gray-600);
}

.about-features li::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

/* Services Preview Grid */
.services-preview {
    padding: var(--spacing-3xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    /* Glassmorphism effect */
    background: rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.service-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
}

/* Process Preview Timeline */
.process-preview {
    padding: var(--spacing-3xl) 0;
    background: var(--color-light);
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: var(--spacing-2xl) 0;
    padding: 0 var(--spacing-lg);
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-gray-200);
    z-index: 0;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 0;
    height: 4px;
    background: var(--color-primary);
    width: 0;
    transition: width 1.5s ease-out;
    z-index: 1;
}

.process-timeline.active .process-line {
    width: 100%;
}

.process-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.process-timeline.active .process-step {
    opacity: 1;
    transform: translateY(0);
}

.process-timeline.active .process-step:nth-child(1) {
    transition-delay: 200ms;
}

.process-timeline.active .process-step:nth-child(2) {
    transition-delay: 400ms;
}

.process-timeline.active .process-step:nth-child(3) {
    transition-delay: 600ms;
}

.process-timeline.active .process-step:nth-child(4) {
    transition-delay: 800ms;
}

.process-timeline.active .process-step:nth-child(5) {
    transition-delay: 1000ms;
}

.process-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    /* Glassmorphism effect */
    background: rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
    transition: all var(--transition-base);
}

.process-step:hover .process-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.35);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.process-step h4 {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
}

/* Clients Section */
.clients-preview {
    padding: var(--spacing-3xl) 0;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    margin: var(--spacing-2xl) 0;
    padding: 0 48px;
    /* Space for arrows */
}

.testimonials-track {
    display: flex;
    gap: var(--spacing-lg);
    transition: transform var(--transition-slow);
}

.testimonial-card {
    min-width: calc(33.333% - var(--spacing-lg));
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl) var(--spacing-2xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.testimonial-text {
    font-style: italic;
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
    line-height: 1.75;
    max-width: 90%;
}

/* Home Slider Navigation Arrows */
.home-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.9);
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    padding: 0;
    backdrop-filter: blur(4px);
}

.home-slider-arrow:hover {
    background: white;
    border-color: rgba(0, 0, 0, 0.25);
    color: #222;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.home-slider-arrow svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.home-slider-arrow-left {
    left: 4px;
}

.home-slider-arrow-right {
    right: 4px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: var(--font-weight-bold);
}

.testimonial-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.testimonial-info h5 {
    margin: 0;
    font-size: var(--font-size-base);
}

.testimonial-info p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-gray-400);
}

/* CTA Section */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: var(--color-primary);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: var(--font-size-4xl);
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.cta-button {
    animation: pulse 2s ease-in-out infinite;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero {
        padding-top: 130px;
        min-height: auto;
        padding-bottom: var(--spacing-lg);
    }

    /* Unwrap hero-content so children become direct flex items of hero-wrapper */
    .hero-content {
        display: contents;
    }

    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-md);
    }

    /* Order: heading(1) → subtitle(2) → buttons(3) → image(4) → stats(5) */
    .hero-title {
        order: 1;
        display: block;
        font-size: var(--font-size-4xl);
        line-height: 1.1;
        padding: 0 var(--spacing-sm);
        text-align: center !important;
        width: 100%;
        margin: 0 auto 0.5rem auto;
    }

    .hero-subtitle {
        order: 2;
        font-size: var(--font-size-lg);
        text-align: center !important;
        padding: 0 var(--spacing-sm);
        margin: 0 auto var(--spacing-sm) auto;
        width: 100%;
        max-width: 500px;
    }

    .hero-buttons {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .hero-buttons .btn {
        min-width: 140px;
        padding: 0.75rem 1.5rem;
    }

    .hero-image {
        order: 4;
        justify-content: center;
        align-items: center;
        flex: none;
        width: 100%;
        height: auto;
    }

    .hero-image img {
        max-width: 75%;
        height: auto;
        margin: 0 auto;
        margin-right: 0;
        margin-bottom: 0;
        display: block;
        mask-image: none;
        -webkit-mask-image: none;
    }

    /* Stats: Compact horizontal row BELOW image */
    .hero-stats {
        order: 5;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        width: 100%;
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stat-item {
        flex: 1;
        align-items: center;
        text-align: center;
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Other sections unchanged */
    .about-content {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .process-timeline::before,
    .process-line {
        display: none;
    }

    .testimonial-card {
        min-width: 100%;
    }

    .testimonials-slider {
        padding: 0 40px;
    }

    .home-slider-arrow-left {
        left: 2px;
    }

    .home-slider-arrow-right {
        right: 2px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .hero-image img {
        max-width: 80%;
    }
}