{{-- resources/views/customer/agency/sections/about.blade.php --}}
<section class="about-section" id="about">
    <div class="about-background">
        <div class="floating-shape shape-1"></div>
        <div class="floating-shape shape-2"></div>
        <div class="floating-shape shape-3"></div>
    </div>

    <div class="container">
        <div class="about-grid">
            <div class="about-content" data-aos="fade-right" data-aos-duration="800">
                @if($section->subtitle)
                    <div class="about-badge">
                        <span class="badge-dot"></span>
                        <span class="badge-text">{{ $section->subtitle }}</span>
                    </div>
                @endif

                @if($section->title)
                    <h2 class="about-title">{{ $section->title }}</h2>
                @endif

                @if($section->content)
                    <div class="about-description">
                        {!! nl2br(e($section->content)) !!}
                    </div>
                @endif

                @if($section->getConfig('features'))
                    <ul class="about-features">
                        @foreach($section->getConfig('features') as $index => $feature)
                            <li data-aos="fade-up" data-aos-delay="{{ 100 * $index }}" data-aos-duration="600">
                                <div class="feature-icon">
                                    <i class="fas fa-check"></i>
                                </div>
                                <span>{{ $feature }}</span>
                            </li>
                        @endforeach
                    </ul>
                @endif

                @if($section->getConfig('button_text'))
                    <a href="{{ $section->getConfig('button_url') ?? '#' }}" class="about-cta">
                        <span>{{ $section->getConfig('button_text') }}</span>
                        <i class="fas fa-arrow-right"></i>
                    </a>
                @endif
            </div>

            <div class="about-visual" data-aos="fade-left" data-aos-duration="800">
                @if($section->getConfig('image'))
                    <div class="image-container">
                        <div class="image-decoration decoration-1"></div>
                        <div class="image-decoration decoration-2"></div>
                        <div class="image-wrapper">
                            <img src="{{ asset('storage/' . $section->getConfig('image')) }}"
                                 alt="{{ $section->title }}"
                                 loading="lazy">
                        </div>
                        <div class="floating-badge">
                            <div class="badge-content">
                                <i class="fas fa-award"></i>
                                <div>
                                    <div class="badge-number">{{ $section->getConfig('badge_number') ?? '100%' }}</div>
                                    <div class="badge-label">{{ $section->getConfig('badge_label') ?? 'Güvenilir' }}</div>
                                </div>
                            </div>
                        </div>
                    </div>
                @endif
            </div>
        </div>
    </div>
</section>

<style>
    .about-section {
        position: relative;
        padding: 8rem 0;
        overflow: hidden;
        background: linear-gradient(180deg, #FFFFFF 0%, #F9FAFB 50%, #FFFFFF 100%);
    }

    .about-background {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .floating-shape {
        position: absolute;
        border-radius: 50%;
        opacity: 0.08;
        animation: floatShape 20s ease-in-out infinite;
    }

    .shape-1 {
        width: 400px;
        height: 400px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        top: -100px;
        right: -100px;
        animation-delay: 0s;
    }

    .shape-2 {
        width: 300px;
        height: 300px;
        background: linear-gradient(135deg, var(--accent), var(--primary));
        bottom: -50px;
        left: -50px;
        animation-delay: 3s;
    }

    .shape-3 {
        width: 200px;
        height: 200px;
        background: linear-gradient(135deg, var(--secondary), var(--accent));
        top: 50%;
        left: 50%;
        animation-delay: 6s;
    }

    @keyframes floatShape {
        0%, 100% {
            transform: translate(0, 0) rotate(0deg) scale(1);
        }
        33% {
            transform: translate(30px, -30px) rotate(120deg) scale(1.1);
        }
        66% {
            transform: translate(-30px, 30px) rotate(240deg) scale(0.9);
        }
    }

    .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
        align-items: center;
        position: relative;
        z-index: 1;
    }

    .about-content {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .about-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.625rem;
        padding: 0.625rem 1.25rem;
        background: linear-gradient(135deg,
            color-mix(in srgb, var(--primary) 15%, transparent),
            color-mix(in srgb, var(--secondary) 15%, transparent)
        );
        border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
        border-radius: 50px;
        width: fit-content;
        backdrop-filter: blur(10px);
    }

    .badge-dot {
        width: 8px;
        height: 8px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 50%;
        animation: pulse 2s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); opacity: 1; }
        50% { transform: scale(1.2); opacity: 0.8; }
    }

    .badge-text {
        font-size: 0.875rem;
        font-weight: 600;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .about-title {
        font-size: 3rem;
        font-weight: 800;
        line-height: 1.2;
        color: #111827;
        margin: 0;
    }

    .about-description {
        font-size: 1.125rem;
        line-height: 1.8;
        color: #6B7280;
    }

    .about-features {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .about-features li {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: #FFFFFF;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.3s ease;
    }

    .about-features li:hover {
        transform: translateX(8px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .feature-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        border-radius: 10px;
        color: white;
        font-size: 1rem;
        flex-shrink: 0;
        box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
    }

    .about-features li span {
        font-size: 1rem;
        color: #374151;
        font-weight: 500;
    }

    .about-cta {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        text-decoration: none;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 35%, transparent);
        transition: all 0.3s ease;
        width: fit-content;
        position: relative;
        overflow: hidden;
    }

    .about-cta::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .about-cta:hover::before {
        opacity: 1;
    }

    .about-cta span,
    .about-cta i {
        position: relative;
        z-index: 1;
    }

    .about-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 45%, transparent);
    }

    .about-cta i {
        transition: transform 0.3s ease;
    }

    .about-cta:hover i {
        transform: translateX(4px);
    }

    .about-visual {
        position: relative;
    }

    .image-container {
        position: relative;
    }

    .image-decoration {
        position: absolute;
        border-radius: 24px;
        z-index: 0;
    }

    .decoration-1 {
        inset: -20px -20px auto auto;
        width: 200px;
        height: 200px;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        opacity: 0.15;
        animation: floatDecoration 6s ease-in-out infinite;
    }

    .decoration-2 {
        inset: auto auto -20px -20px;
        width: 150px;
        height: 150px;
        background: linear-gradient(135deg, var(--accent), var(--primary));
        opacity: 0.15;
        animation: floatDecoration 8s ease-in-out infinite reverse;
    }

    @keyframes floatDecoration {
        0%, 100% { transform: translate(0, 0); }
        50% { transform: translate(10px, 10px); }
    }

    .image-wrapper {
        position: relative;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
        z-index: 1;
    }

    .image-wrapper img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.6s ease;
    }

    .image-wrapper:hover img {
        transform: scale(1.05);
    }

    .floating-badge {
        position: absolute;
        bottom: 30px;
        left: 30px;
        z-index: 2;
        animation: floatBadge 3s ease-in-out infinite;
    }

    @keyframes floatBadge {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-10px); }
    }

    .badge-content {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .badge-content i {
        font-size: 2rem;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .badge-number {
        font-size: 1.5rem;
        font-weight: 800;
        color: #111827;
        line-height: 1;
    }

    .badge-label {
        font-size: 0.875rem;
        color: #6B7280;
        font-weight: 500;
    }

    @media (max-width: 1024px) {
        .about-section {
            padding: 6rem 0;
        }

        .about-grid {
            gap: 4rem;
        }

        .about-title {
            font-size: 2.5rem;
        }
    }

    @media (max-width: 768px) {
        .about-section {
            padding: 4rem 0;
        }

        .about-grid {
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        .about-title {
            font-size: 2rem;
        }

        .about-description {
            font-size: 1rem;
        }

        .floating-badge {
            bottom: 20px;
            left: 20px;
        }

        .badge-content {
            padding: 1rem;
            gap: 0.75rem;
        }

        .badge-content i {
            font-size: 1.5rem;
        }

        .badge-number {
            font-size: 1.25rem;
        }

        .decoration-1,
        .decoration-2 {
            display: none;
        }
    }
</style>

<link rel="stylesheet" href="https://unpkg.com/aos@next/dist/aos.css" />
<script src="https://unpkg.com/aos@next/dist/aos.js"></script>
<script>
    if (typeof AOS !== 'undefined') {
        AOS.init({
            once: true,
            duration: 800,
            easing: 'ease-out-cubic'
        });
    }
</script>
