@extends('layouts.app')
@section('title', 'Home')
@section('nav_mode', 'over-hero')

@section('content')

{{-- ===== HERO ===== --}}
<section class="hero">
    <div class="swiper">
        <div class="swiper-wrapper">
            @foreach($slides as $s)
            <div class="swiper-slide">
                <div class="slide-bg" style="background-image:url('{{ asset($s['image']) }}')"></div>
                <div class="scrim"></div>
                <div class="vign"></div>
                <div class="container slide-content">
                    <span class="kicker label">{{ $s['kicker'] }}</span>
                    <h1>{!! preg_replace('/^(\S+\s\S+)/','<em>$1</em>',$s['title']) !!}</h1>
                    <p class="lead">{{ $s['text'] }}</p>
                    <div class="cta">
                        <a href="{{ route('registration.create') }}" class="btn btn-gold">Register Now</a>
                        <a href="{{ route('services') }}" class="btn btn-outline-light">Discover More</a>
                    </div>
                </div>
            </div>
            @endforeach
        </div>
        <div class="swiper-pagination"></div>
        <div class="swiper-button-next"></div>
        <div class="swiper-button-prev"></div>
    </div>
    <div class="hero-meta d-none d-md-block">
        <div class="container">
            <div class="pills">
                <span>Beauty Pageant</span><span>Fashion Show</span><span>Award Show</span><span>Film Making</span>
            </div>
            <span class="label" style="color:#fff">Est. New Delhi</span>
        </div>
    </div>
</section>

{{-- ===== MARQUEE ===== --}}
<div class="marquee">
    <div class="track">
        <span>Elegance<span></span></span><span>Style</span><span>Confidence</span><span>Glamour</span><span>Grace</span>
        <span>Elegance</span><span>Style</span><span>Confidence</span><span>Glamour</span><span>Grace</span>
    </div>
</div>

{{-- ===== INTRO ===== --}}
<section class="section">
    <div class="container">
        <div class="row align-items-center g-5">
            <div class="col-lg-5" data-aos="fade-right">
                <div class="intro-img">
                    <img src="{{ asset('images/founder-1.jpg') }}" alt="Fashion Grace"
                         onerror="this.outerHTML='<div class=\'ph\' style=\'aspect-ratio:4/5\'>Founder Photo</div>'">
                    <span class="frame"></span>
                </div>
            </div>
            <div class="col-lg-6 offset-lg-1" data-aos="fade-left">
                <span class="label">Talent &amp; Modeling Agency</span>
                <h2 class="h-lg mt-3 mb-4">We Don't Just Find Faces. We Build <span class="italic-accent">Stars.</span></h2>
                <p class="mb-4">Fashion Grace is a full-service modeling &amp; talent agency in New Delhi, led by former <strong>Mrs. West Bengal</strong> Deepanvita. We discover and develop new faces for beauty pageants, runway, award shows and film — opening doors to national and international stages.</p>
                <div class="row g-3 mb-4">
                    <div class="col-6"><div class="d-flex align-items-center gap-2"><i class="bi bi-check2 text-gold"></i><span>Professional Grooming</span></div></div>
                    <div class="col-6"><div class="d-flex align-items-center gap-2"><i class="bi bi-check2 text-gold"></i><span>Ramp Walk Training</span></div></div>
                    <div class="col-6"><div class="d-flex align-items-center gap-2"><i class="bi bi-check2 text-gold"></i><span>Personality Development</span></div></div>
                    <div class="col-6"><div class="d-flex align-items-center gap-2"><i class="bi bi-check2 text-gold"></i><span>Real Opportunities</span></div></div>
                </div>
                <a href="{{ route('about') }}" class="link-gold">Our Story <i class="bi bi-arrow-right"></i></a>
            </div>
        </div>
    </div>
</section>

{{-- ===== FOUR PILLARS (centerpiece) ===== --}}
<section class="bg-paper">
    <div class="container">
        <div class="text-center py-5" data-aos="fade-up">
            <span class="label center">What We Do</span>
            <h2 class="h-xl mt-3">Four Worlds, <span class="italic-accent">One Stage</span></h2>
        </div>
    </div>
    @foreach($pillars as $i => $p)
    <div class="pillar-row {{ $i % 2 ? 'flip' : '' }}">
        <div class="container-fluid px-0">
            <div class="grid">
                <div class="media" data-aos="{{ $i % 2 ? 'fade-left' : 'fade-right' }}">
                    <img src="{{ asset($p['image']) }}" alt="{{ $p['title'] }}"
                         onerror="this.outerHTML='<div class=\'ph\' style=\'position:absolute;inset:0\'>{{ $p['title'] }}</div>'">
                </div>
                <div class="body" data-aos="{{ $i % 2 ? 'fade-right' : 'fade-left' }}">
                    <div class="no">{{ $p['no'] }}</div>
                    <div class="ptag">{{ $p['tag'] }}</div>
                    <h3>{{ $p['title'] }}</h3>
                    <p>{{ $p['text'] }}</p>
                    <ul class="feats">
                        @foreach($p['features'] as $f)<li>{{ $f }}</li>@endforeach
                    </ul>
                    <a href="{{ route('registration.create') }}" class="link-gold">Enquire / Register <i class="bi bi-arrow-right"></i></a>
                </div>
            </div>
        </div>
    </div>
    @endforeach
</section>

{{-- ===== STATS ===== --}}
<section class="section stats">
    <div class="container">
        <div class="row text-center g-5">
            @foreach($stats as $i => $st)
            <div class="col-6 col-lg-3 stat" data-aos="fade-up" data-aos-delay="{{ $i*100 }}">
                <div class="num" data-count="{{ $st['value'] }}" data-suffix="{{ $st['suffix'] }}">0</div>
                <div class="lbl">{{ $st['label'] }}</div>
            </div>
            @endforeach
        </div>
    </div>
</section>

{{-- ===== SHOWCASE ===== --}}
<section class="section">
    <div class="container">
        <div class="d-flex flex-wrap justify-content-between align-items-end mb-5" data-aos="fade-up">
            <div>
                <span class="label">The Portfolio</span>
                <h2 class="h-lg mt-3 mb-0">Moments of Grace</h2>
            </div>
            <a href="{{ route('registration.create') }}" class="btn btn-outline-ink d-none d-md-inline-block">Join The Roster</a>
        </div>
        <div class="row g-3 g-md-4">
            @foreach($showcase as $i => $w)
            <div class="col-6 col-lg-4" data-aos="fade-up" data-aos-delay="{{ ($i%3)*100 }}">
                <div class="shot">
                    <img src="{{ asset($w['image']) }}" alt="{{ $w['caption'] }}"
                         onerror="this.outerHTML='<div class=\'ph\' style=\'aspect-ratio:3/4\'>{{ $w['caption'] }}</div>'">
                    <div class="ov">
                        <small>{{ $w['cat'] }}</small>
                        <h5>{{ $w['caption'] }}</h5>
                    </div>
                </div>
            </div>
            @endforeach
        </div>
    </div>
</section>

{{-- ===== QUOTE ===== --}}
<section class="section quote">
    <div class="container text-center" data-aos="fade-up">
        <div class="mark">&ldquo;</div>
        <blockquote class="mx-auto mb-4" style="max-width:840px">Our purpose is simple — to take raw talent and reveal the star within, on every stage from the local ramp to the international runway.</blockquote>
        <div class="label center">Deepanvita · Founder, Fashion Grace</div>
    </div>
</section>

{{-- ===== CTA ===== --}}
<section class="pb-5 pt-2 pt-md-0">
    <div class="container">
        <div class="cta-banner" data-aos="zoom-in">
            <span class="label center" style="color:var(--gold-soft)">Your Journey Begins Here</span>
            <h2 class="h-lg mt-3 mb-3" style="color:#fff">Step Onto The Stage With Fashion Grace</h2>
            <p class="mb-4 mx-auto" style="max-width:560px;color:#d8cfbd">Register today for beauty pageants, fashion shows, award shows and film opportunities.</p>
            <a href="{{ route('registration.create') }}" class="btn btn-gold">Register Now</a>
        </div>
    </div>
</section>

@endsection
