@extends('layouts.pustaka')

@section('content')
<div class="container py-5">

    <div class="section-box text-center mt-4 mx-3 mx-md-5" data-aos="fade-up">
        <h2 class="section-title-custom">Selamat Datang di Fasilitas &amp; Peralatan</h2>
        <p class="text-muted">
            Temukan berbagai fasilitas dan peralatan yang mendukung kenyamanan dan produktivitas di 
            <strong>Pustaka Nawasena Bakorwil III Malang</strong>.
        </p>
        <p class="hero-subtext">
            Welcome to Our Facilities & Equipment! Discover the amenities and tools that make your learning 
            and research experience more comfortable and productive.
        </p>
    </div>

    <div class="section-box" data-aos="fade-up">
        <h2 class="section-title-custom text-center mb-5">Fasilitas Pustaka Nawasena</h2>
        <div class="row justify-content-center g-4">
            <div class="col-md-5">
                <div class="card h-100 shadow-sm border-0">
                    <img src="{{ asset('images/pojokbaca.jpeg') }}" alt="Pojok Baca" class="card-img-top">
                    <div class="card-body text-center">
                        <h5 class="fw-bold">Pojok Baca</h5>
                        <p class="text-muted">
                            Pojok baca yang dirancang nyaman dengan cahaya lembut dan suasana tenang untuk menemani kegiatan membaca Anda.
                        </p>
                    </div>
                </div>
            </div>

            <div class="col-md-5">
                <div class="card h-100 shadow-sm border-0">
                    <img src="{{ asset('images/RUANGDISKUSI.jpeg') }}" alt="Ruang Diskusi" class="card-img-top">
                    <div class="card-body text-center">
                        <h5 class="fw-bold">Ruang Diskusi</h5>
                        <p class="text-muted">
                            Area rapat dengan fasilitas yang mendukung kolaborasi, cocok untuk berdiskusi, merancang proyek, dan berbagi gagasan.
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="section-box" data-aos="fade-up" data-aos-delay="200">
        <h2 class="section-title-custom">Peralatan / Equipment</h2>
        <div class="row text-center mt-4 g-4">
            <div class="col-md-3 collection-item">
                <div class="subtitle-english">Printer & Scanner</div>
                <img src="{{ asset('images/printer.jpg') }}" alt="Printer" class="content-image mb-3">
                <h6 class="fw-bold">Printer & Scanner</h6>
                <p class="text-muted small">Untuk mencetak dokumen referensi, laporan, dan bahan digital.</p>
            </div>
            <div class="col-md-3 collection-item">
                <div class="subtitle-english">Projector</div>
                <img src="{{ asset('images/proyektor.jpg') }}" alt="Proyektor" class="content-image mb-3">
                <h6 class="fw-bold">Proyektor</h6>
                <p class="text-muted small">Untuk presentasi, seminar, dan workshop.</p>
            </div>
            <div class="col-md-3 collection-item">
                <div class="subtitle-english">Wi-Fi Access</div>
                <img src="{{ asset('images/wifi.jpg') }}" alt="Wi-Fi" class="content-image mb-3">
                <h6 class="fw-bold">Wi-Fi Gratis</h6>
                <p class="text-muted small">Akses internet cepat gratis di seluruh area perpustakaan.</p>
            </div>
            <div class="col-md-3 collection-item">
                <div class="subtitle-english">Security System</div>
                <img src="{{ asset('images/cctv.jpg') }}" alt="Keamanan" class="content-image mb-3">
                <h6 class="fw-bold">Sistem Keamanan</h6>
                <p class="text-muted small">CCTV dan pengawasan 24 jam untuk kenyamanan pengguna.</p>
            </div>
        </div>
    </div>
</div>

<style>
body {
    background: linear-gradient(135deg, #fff8f1, #ffffff, #fff8f1) !important;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.section-box {
    background-color: #ffffff;
    padding: 40px 30px;
    margin-bottom: 40px;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-left: 6px solid #ff9800;
    transition: all 0.4s ease;
}
.section-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(255,152,0,0.15);
}

.section-title-custom {
    font-size: 2rem;
    color: #ff9800;
    font-weight: 700;
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}
.section-title-custom::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ff9800;
    border-radius: 5px;
    margin: 10px auto 0;
}
.hero-subtext {
    color: #1565c0;
    font-family: 'Georgia', serif;
    font-size: 1.05rem;
    font-weight: 500;
}

.collection-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 15px;
    background-color: #fcfcfc;
}
.collection-item:hover {
    transform: translateY(-6px);
    background-color: #fff;
    box-shadow: 0 10px 25px rgba(255,152,0,0.15);
}
.content-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #ff9800;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.subtitle-english {
    font-size: 1rem;
    font-weight: 600;
    color: #ff6f00;
    margin-bottom: 10px;
}

.card-img-top {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    transition: transform 0.3s ease;
}
.card:hover .card-img-top {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .section-title-custom { font-size: 1.8rem; }
    .content-image { height: 180px; }
}
@media (max-width: 576px) {
    .section-title-custom { font-size: 1.5rem; }
    .section-box { padding: 25px; }
}
</style>

<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<script>
AOS.init({
    duration: 1000,
    once: false,
    mirror: true,
    offset: 50
});
</script>
@endsection
