{% extends 'expat_life/base.html' %}
{% load static %}
{% block title %}About Sri Lanka{% endblock %}

{% block content %}
<style>
    /* =========================
       ABOUT SRI LANKA - LIVE IN SRI LANKA PREMIUM THEME
       Cinematic Navy + Premium Blue + Tropical Teal + Warm Gold
       ========================= */

    .about-sl-page {
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.09), transparent 28%),
            radial-gradient(circle at 85% 25%, rgba(13, 110, 253, 0.08), transparent 30%),
            linear-gradient(180deg, #f5f9ff 0%, #ffffff 42%, #f8fbff 100%);
        overflow: hidden;
    }

    .about-sl-hero {
        position: relative;
        padding: 6rem 0;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.16), transparent 32%),
            radial-gradient(circle at bottom right, rgba(32, 201, 151, 0.18), transparent 34%),
            linear-gradient(135deg, #07131c 0%, #0b3d91 55%, #0f766e 100%);
        color: #fff;
        overflow: hidden;
    }

    .about-sl-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 36%),
            radial-gradient(circle at 75% 12%, rgba(255, 193, 7, 0.10), transparent 26%);
        pointer-events: none;
    }

    .about-sl-hero::after {
        content: "";
        position: absolute;
        right: -170px;
        bottom: -190px;
        width: 520px;
        height: 520px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.08);
        pointer-events: none;
    }

    .about-sl-hero .container {
        position: relative;
        z-index: 2;
    }

    .about-sl-hero h1 {
        color: #fff;
        font-size: clamp(2.4rem, 4.5vw, 4.4rem);
        font-weight: 900;
        line-height: 1.05;
        letter-spacing: -0.045em;
    }

    .about-sl-hero .lead {
        color: rgba(255, 255, 255, 0.88) !important;
        line-height: 1.85;
        font-size: 1.12rem;
    }

    .about-sl-hero .section-mini-title,
    .about-sl-page .section-mini-title {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        background: rgba(15, 118, 110, 0.10);
        color: #0f766e;
        border: 1px solid rgba(15, 118, 110, 0.16);
        font-weight: 900;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.075em;
        padding: 7px 15px;
        border-radius: 999px;
        margin-bottom: 16px;
    }

    .about-sl-hero .section-mini-title {
        background: rgba(255, 193, 7, 0.16);
        color: #ffd36b;
        border-color: rgba(255, 193, 7, 0.32);
        backdrop-filter: blur(10px);
    }

    .about-sl-hero .section-mini-title::before,
    .about-sl-page .section-mini-title::before {
        content: "";
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ffc107;
        box-shadow: 0 0 0 5px rgba(255, 193, 7, 0.14);
    }

    .about-highlight-list {
        display: grid;
        gap: 0.9rem;
        margin-top: 1.5rem;
    }

    .about-highlight-item {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        padding: 0.85rem 1rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(255, 255, 255, 0.20);
        color: rgba(255, 255, 255, 0.94);
        font-weight: 600;
        backdrop-filter: blur(8px);
    }

    .about-highlight-item i {
        color: #ffd36b;
        font-size: 1.15rem;
        flex: 0 0 auto;
    }

    .about-note-box,
    .info-note-box {
        display: flex;
        gap: 0.85rem;
        padding: 1rem 1.1rem;
        border-radius: 20px;
        background: rgba(255, 251, 235, 0.13);
        border-left: 4px solid #ffc107;
        color: rgba(255, 255, 255, 0.92);
        line-height: 1.65;
        backdrop-filter: blur(8px);
    }

    .about-note-box i,
    .info-note-box i {
        color: #ffc107;
        font-size: 1.25rem;
        margin-top: 0.15rem;
        flex: 0 0 auto;
    }

    .about-hero-image-wrap {
        position: relative;
    }

    .about-hero-image-wrap::before {
        content: "";
        position: absolute;
        inset: -18px;
        border-radius: 34px;
        background:
            linear-gradient(135deg, rgba(255, 193, 7, 0.30), rgba(13, 110, 253, 0.22), rgba(32, 201, 151, 0.20));
        transform: rotate(-2deg);
        z-index: -1;
    }

    .about-hero-image-card {
        height: 460px;
        border-radius: 32px;
        overflow: hidden;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
        border: 1px solid rgba(255, 255, 255, 0.34);
        background: rgba(255, 255, 255, 0.18);
    }

    .about-hero-image-card img {
        border-radius: 32px !important;
        transition: transform 0.4s ease;
    }

    .about-hero-image-card:hover img {
        transform: scale(1.035);
    }

    .about-sl-hero .btn-warning {
        border: none;
        box-shadow: 0 18px 36px rgba(255, 193, 7, 0.25);
    }

    .sri-lanka-pattern-section {
        position: relative;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.08), transparent 28%),
            radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.07), transparent 32%),
            #ffffff;
    }

    .sri-lanka-soft-section {
        position: relative;
        background:
            linear-gradient(135deg, #f5f9ff 0%, #f8fbff 100%);
    }

    .section-heading h2 {
        color: #102033;
        letter-spacing: -0.035em;
    }

    .section-heading p {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.75;
        color: #64748b;
    }

    .feature-card,
    .location-style-card,
    .detail-card,
    .step-card {
        border-radius: 28px;
        border: 1px solid rgba(13, 110, 253, 0.10);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
        padding: 1.5rem;
        transition: all 0.25s ease;
    }

    .feature-card:hover,
    .location-style-card:hover,
    .detail-card:hover,
    .step-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 70px rgba(15, 23, 42, 0.13);
        border-color: rgba(13, 110, 253, 0.24);
    }

    .feature-card .icon-wrap,
    .location-style-icon {
        width: 58px;
        height: 58px;
        border-radius: 20px;
        background:
            linear-gradient(135deg, rgba(15, 118, 110, 0.13), rgba(13, 110, 253, 0.11), rgba(255, 193, 7, 0.15));
        color: #0f766e;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.65rem;
        margin-bottom: 1rem;
    }

    .feature-card h5,
    .location-style-card h5 {
        color: #102033;
        font-weight: 800;
        margin-bottom: 0.6rem;
    }

    .feature-card p,
    .location-style-card p,
    .detail-card p {
        color: #64748b;
        line-height: 1.7;
    }

    .about-fit-list {
        display: grid;
        gap: 1rem;
    }

    .about-fit-item {
        display: flex;
        gap: 1rem;
        padding: 1rem;
        border-radius: 20px;
        background: #f8fbff;
        border: 1px solid rgba(13, 110, 253, 0.10);
    }

    .about-fit-item i {
        width: 44px;
        height: 44px;
        border-radius: 16px;
        background: linear-gradient(135deg, #ecfdf5, #e9f2ff);
        color: #0f766e;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.25rem;
        flex: 0 0 auto;
    }

    .about-fit-item h6 {
        color: #102033;
    }

    .about-value-card {
        background:
            radial-gradient(circle at top right, rgba(255, 193, 7, 0.12), transparent 32%),
            #ffffff;
    }

    .about-value-box {
        overflow: hidden;
        border-radius: 22px;
        border: 1px solid rgba(13, 110, 253, 0.10);
        background: #fff;
    }

    .about-value-row {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.1rem;
        border-bottom: 1px solid rgba(13, 110, 253, 0.09);
        color: #475569;
    }

    .about-value-row:last-child {
        border-bottom: none;
    }

    .about-value-row strong {
        color: #0d6efd;
        white-space: nowrap;
    }

    .detail-card .info-note-box {
        background: #f8fbff;
        color: #334155;
        border-left-color: #0f766e;
    }

    .detail-card .info-note-box i {
        color: #0f766e;
    }

    .gradient-section {
        position: relative;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.16), transparent 28%),
            radial-gradient(circle at bottom right, rgba(32, 201, 151, 0.18), transparent 32%),
            linear-gradient(135deg, #07131c 0%, #0b3d91 55%, #0f766e 100%);
        overflow: hidden;
    }

    .gradient-section::after {
        content: "";
        position: absolute;
        right: -140px;
        top: -160px;
        width: 420px;
        height: 420px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.08);
    }

    .gradient-section .container {
        position: relative;
        z-index: 2;
    }

    .section-mini-title-light {
        background: rgba(255, 193, 7, 0.16) !important;
        color: #ffd36b !important;
        border-color: rgba(255, 193, 7, 0.32) !important;
    }

    .step-card {
        background: rgba(255, 255, 255, 0.96);
    }

    .step-number {
        width: 64px;
        height: 64px;
        border-radius: 22px;
        background: linear-gradient(135deg, #0f766e, #0d6efd);
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 900;
        font-size: 1.1rem;
        margin-bottom: 1rem;
        box-shadow: 0 18px 35px rgba(13, 110, 253, 0.20);
    }

    .final-cta-section {
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.10), transparent 30%),
            radial-gradient(circle at bottom right, rgba(13, 110, 253, 0.10), transparent 34%),
            #f5f9ff;
    }

    .final-cta-box {
        position: relative;
        overflow: hidden;
        border-radius: 34px;
        padding: 3rem 2rem;
        background:
            radial-gradient(circle at top right, rgba(255, 193, 7, 0.16), transparent 32%),
            linear-gradient(135deg, rgba(7, 19, 28, 0.97), rgba(11, 61, 145, 0.94), rgba(15, 118, 110, 0.90));
        box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
    }

    .final-cta-box::after {
        content: "";
        position: absolute;
        right: -90px;
        bottom: -120px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.13);
    }

    .final-cta-box > * {
        position: relative;
        z-index: 2;
    }

    .final-cta-box .btn {
        border-radius: 999px;
        font-weight: 800;
    }

    .hero-visa-btn {
        border: none;
        background: linear-gradient(135deg, #20c997, #0f766e);
    }

    .hero-visa-btn:hover {
        background: linear-gradient(135deg, #0d6efd, #0f766e);
    }

    @media (max-width: 991.98px) {
        .about-sl-hero {
            padding: 4.5rem 0;
        }

        .about-hero-image-card {
            height: 360px;
        }
    }

    @media (max-width: 575.98px) {
        .about-sl-hero {
            padding: 3.5rem 0;
        }

        .about-hero-image-card {
            height: 300px;
            border-radius: 24px;
        }

        .about-hero-image-card img {
            border-radius: 24px !important;
        }

        .feature-card,
        .location-style-card,
        .detail-card,
        .step-card {
            border-radius: 22px;
        }

        .final-cta-box {
            border-radius: 26px;
            padding: 2rem 1.25rem;
        }
    }
</style>
<!-- HERO -->
<!-- Top link button to About Ensolanka -->

<section class="about-sl-hero py-5">
    <div class="container">
        <div class="row align-items-center g-5">
            <div class="col-lg-6">
                <span class="section-mini-title">Why Sri Lanka</span>
                <h1 class="fw-bold mb-3">Discover the Beauty of Living in Sri Lanka</h1>
                <p class="lead text-muted mb-4">
                    Sri Lanka offers tropical beaches, green mountains, friendly people, rich culture,
                    and a lifestyle that can be more affordable and relaxed than many Western countries.
                </p>

                <div class="about-highlight-list">
                    <div class="about-highlight-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Affordable lifestyle options for different income levels</span>
                    </div>
                    <div class="about-highlight-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Beautiful beaches, hill country, cities, and peaceful towns</span>
                    </div>
                    <div class="about-highlight-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Warm hospitality and welcoming local culture</span>
                    </div>
                    <div class="about-highlight-item">
                        <i class="bi bi-check-circle-fill"></i>
                        <span>Suitable for slow travelers, retirees, and remote workers</span>
                    </div>
                </div>

                <div class="about-note-box mt-4">
                    <i class="bi bi-info-circle-fill"></i>
                    <div>
                        Sri Lanka is not only a travel destination. For many people, it can also be a peaceful,
                        affordable, and enjoyable place to stay for months or longer.
                    </div>
                </div>
            </div>

            <div class="col-lg-6">
                <div class="about-hero-image-wrap">
                    <div class="about-hero-image-card">

                        <img 
                            src="{% static 'expat_life/images/live_in_sri_lanka.webp' %}" 
                            alt="Live in Sri Lanka - Tropical Lifestyle"
                            class="img-fluid rounded"
                            loading="lazy"
                            style="width: 100%; height: 100%; object-fit: cover;"
                        >

                    </div>
                </div>
                <!-- Elegant button placed directly below the image -->
                <div class="mt-4 text-center text-lg-start">
                    <a href="{% url 'expat_life:about_us' %}" class="btn btn-warning fw-semibold rounded-pill px-4 py-2">
                        <i class="bi bi-info-circle"></i> About Ensolanka
                    </a>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- MAIN REASONS -->
<section class="py-5 bg-white">
    <div class="container">
        <div class="section-heading text-center mb-5">
            <span class="section-mini-title">Main Reasons</span>
            <h2 class="fw-bold">Why International Guests May Love Sri Lanka</h2>
            <p class="text-muted">
                Sri Lanka combines nature, affordability, lifestyle flexibility, and cultural warmth in one island.
            </p>
        </div>

        <div class="row g-4">
            <div class="col-md-6 col-lg-3">
                <div class="feature-card h-100">
                    <div class="icon-wrap"><i class="bi bi-cash-coin"></i></div>
                    <h5>Lower Living Costs</h5>
                    <p>Housing, food, local transport, and support services can often cost less than in many developed countries.</p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="feature-card h-100">
                    <div class="icon-wrap"><i class="bi bi-water"></i></div>
                    <h5>Beach & Tropical Life</h5>
                    <p>Enjoy ocean air, warm weather, palm trees, and beautiful coastal areas around the island.</p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="feature-card h-100">
                    <div class="icon-wrap"><i class="bi bi-tree-fill"></i></div>
                    <h5>Nature & Scenery</h5>
                    <p>From tea hills and waterfalls to forests and lakes, Sri Lanka offers diverse natural beauty.</p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="feature-card h-100">
                    <div class="icon-wrap"><i class="bi bi-heart-fill"></i></div>
                    <h5>Friendly Culture</h5>
                    <p>Hospitality and warmth are a major part of Sri Lankan life, making many guests feel welcome.</p>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- LIFESTYLE AREAS -->
<section class="py-5 light-section">
    <div class="container">
        <div class="section-heading text-center mb-5">
            <span class="section-mini-title">Lifestyle Options</span>
            <h2 class="fw-bold">Different Ways to Enjoy Sri Lanka</h2>
            <p class="text-muted">
                Different parts of Sri Lanka can suit different lifestyles and budgets.
            </p>
        </div>

        <div class="row g-4">
            <div class="col-md-6 col-lg-3">
                <div class="location-style-card h-100">
                    <div class="location-style-icon"><i class="bi bi-sun-fill"></i></div>
                    <h5 class="fw-bold">Beach Living</h5>
                    <p>Ideal for relaxed coastal life, ocean views, warm evenings, and tropical energy.</p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="location-style-card h-100">
                    <div class="location-style-icon"><i class="bi bi-building"></i></div>
                    <h5 class="fw-bold">City Convenience</h5>
                    <p>Better for people who want more services, access, business activity, and urban comfort.</p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="location-style-card h-100">
                    <div class="location-style-icon"><i class="bi bi-cloud-fog2-fill"></i></div>
                    <h5 class="fw-bold">Hill Country Calm</h5>
                    <p>Cooler weather, mountain views, and a slower atmosphere for peaceful living.</p>
                </div>
            </div>

            <div class="col-md-6 col-lg-3">
                <div class="location-style-card h-100">
                    <div class="location-style-icon"><i class="bi bi-house-heart-fill"></i></div>
                    <h5 class="fw-bold">Simple Town Life</h5>
                    <p>Practical and affordable living for guests who value simplicity over luxury.</p>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- WHY IT FITS DIFFERENT PEOPLE -->
<section class="py-5 bg-white">
    <div class="container">
        <div class="row align-items-center g-5">
            <div class="col-lg-6">
                <div class="detail-card h-100">
                    <span class="section-mini-title">Who It May Suit</span>
                    <h2 class="fw-bold mb-3">A Lifestyle That Can Fit Many Types of People</h2>
                    <p class="text-muted mb-4">
                        Sri Lanka may be attractive to different types of international guests depending on budget,
                        purpose of stay, and lifestyle goals.
                    </p>

                    <div class="about-fit-list">
                        <div class="about-fit-item">
                            <i class="bi bi-laptop-fill"></i>
                            <div>
                                <h6 class="fw-bold mb-1">Remote Workers</h6>
                                <p class="mb-0">Those seeking a lower-cost tropical base for online work.</p>
                            </div>
                        </div>

                        <div class="about-fit-item">
                            <i class="bi bi-person-hearts"></i>
                            <div>
                                <h6 class="fw-bold mb-1">Retirees</h6>
                                <p class="mb-0">Those looking for a peaceful lifestyle and better value for money.</p>
                            </div>
                        </div>

                        <div class="about-fit-item">
                            <i class="bi bi-airplane-fill"></i>
                            <div>
                                <h6 class="fw-bold mb-1">Long-Stay Visitors</h6>
                                <p class="mb-0">Those wanting to stay for several months and enjoy slower living.</p>
                            </div>
                        </div>

                        <div class="about-fit-item">
                            <i class="bi bi-briefcase-fill"></i>
                            <div>
                                <h6 class="fw-bold mb-1">Online Business Owners</h6>
                                <p class="mb-0">Those who want a flexible lifestyle while continuing digital work.</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="col-lg-6">
                <div class="detail-card h-100 about-value-card">
                    <span class="section-mini-title">Value Perspective</span>
                    <h2 class="fw-bold mb-3">Better Lifestyle Value for the Right Person</h2>
                    <p class="text-muted mb-4">
                        For someone with a steady foreign income, Sri Lanka may offer a better lifestyle-to-cost balance
                        than many expensive cities around the world.
                    </p>

                    <div class="about-value-box">
                        <div class="about-value-row">
                            <span>Affordable housing possibilities</span>
                            <strong>Yes</strong>
                        </div>
                        <div class="about-value-row">
                            <span>Tropical environment</span>
                            <strong>Yes</strong>
                        </div>
                        <div class="about-value-row">
                            <span>Flexible comfort levels</span>
                            <strong>Yes</strong>
                        </div>
                        <div class="about-value-row">
                            <span>Different budget options</span>
                            <strong>4 Packages</strong>
                        </div>
                    </div>

                    <div class="info-note-box mt-4">
                        <i class="bi bi-info-circle-fill"></i>
                        <div>
                            The right experience depends on choosing the right area, housing level, and support setup for your needs.
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- SIMPLE PROCESS -->
<section class="py-5 gradient-section text-white">
    <div class="container">
        <div class="section-heading text-center mb-5">
            <span class="section-mini-title section-mini-title-light">How to Start</span>
            <h2 class="fw-bold">Simple Way to Explore Living in Sri Lanka</h2>
        </div>

        <div class="row g-4">
            <div class="col-md-4">
                <div class="step-card text-center h-100">
                    <div class="step-number">01</div>
                    <h5 class="fw-bold text-dark">View Packages</h5>
                    <p class="text-dark mb-0">Explore the package that matches your budget and preferred comfort level.</p>
                </div>
            </div>

            <div class="col-md-4">
                <div class="step-card text-center h-100">
                    <div class="step-number">02</div>
                    <h5 class="fw-bold text-dark">Free Signup</h5>
                    <p class="text-dark mb-0">Tell us about your budget, timeline, and living plans in Sri Lanka.</p>
                </div>
            </div>

            <div class="col-md-4">
                <div class="step-card text-center h-100">
                    <div class="step-number">03</div>
                    <h5 class="fw-bold text-dark">Consultation</h5>
                    <p class="text-dark mb-0">Discuss your preferred location, package level, and next practical steps.</p>
                </div>
            </div>
        </div>
    </div>
</section>

<!-- CTA -->
<section class="final-cta-section py-5">
    <div class="container">
        <div class="final-cta-box text-center text-white">
            <h2 class="fw-bold mb-3">Ready to Explore Sri Lanka Living?</h2>
            <p class="lead mb-4">
                Review the packages, sign up for free, and take the first step toward a better tropical lifestyle.
            </p>

            <div class="d-flex flex-wrap justify-content-center gap-3">

                <a href="{% url 'expat_life:package_list' %}" 
                   class="btn btn-warning btn-lg px-4">
                    View Packages
                </a>

                {% if is_foreigner_user %}
                    <a href="{% url 'expat_life:foreigner_dashboard' %}" 
                    class="btn btn-light btn-lg px-4">
                        My Dashboard
                    </a>
                {% else %}
                    <a href="{% url 'expat_life:foreigner_signup' %}" 
                    class="btn btn-light btn-lg px-4">
                        Free Signup
                    </a>
                {% endif %}

                <a href="{% url 'expat_life:sri_lanka_digital_nomad_visa' %}" 
                   class="btn btn-success btn-lg px-4 fw-semibold shadow hero-visa-btn">
                    🌴 Digital Nomad Visa Guide
                </a>

            </div>
        </div>
    </div>
</section>

{% endblock %}