<?php
// index.php
?>
<!DOCTYPE html>
<html lang="ms">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sistem e-SPEKTRA</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        body {
            font-family: 'Rubik', sans-serif;
            background-color: #f5f6fa;
        }
        .hero {
            background: linear-gradient(135deg, #3b0a77, #ff6f00);
            color: white;
            padding: 100px 20px;
            text-align: center;
        }
        .hero h1 {
            font-size: 3rem;
            font-weight: 700;
        }
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
        }
        .feature-card {
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }
        footer {
            background-color: #3b0a77;
            color: white;
            padding: 20px 0;
            text-align: center;
        }
    </style>
</head>
<body>

<!-- Hero Section -->
<section class="hero">
    <h1>Sistem e-SPEKTRA</h1>
    <p>Sistem Pengurusan Kegiatan dan Rekod Aktiviti Pelajar</p>
    <a href="login_admin.php" class="btn btn-warning btn-lg me-3"><i class="bi bi-person-badge"></i> Login Admin</a>
    <a href="login_pelajar.php" class="btn btn-light btn-lg text-primary"><i class="bi bi-person"></i> Login Pelajar</a>
</section>

<!-- Features Section -->
<section class="container my-5">
    <div class="text-center mb-5">
        <h2>Ciri Utama Sistem</h2>
        <p class="text-muted">Mudah, cepat dan teratur untuk pengurusan kegiatan pelajar</p>
    </div>
    <div class="row g-4">
        <div class="col-md-4">
            <div class="card feature-card shadow-sm p-4 text-center border-0 h-100">
                <i class="bi bi-journal-check display-4 text-primary mb-3"></i>
                <h5>Senarai Aktiviti</h5>
                <p>Papar semua aktiviti yang tersedia untuk pelajar dengan mudah.</p>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card feature-card shadow-sm p-4 text-center border-0 h-100">
                <i class="bi bi-pencil-square display-4 text-success mb-3"></i>
                <h5>Pendaftaran Aktiviti</h5>
                <p>Pelajar boleh mendaftar dan membatalkan aktiviti dengan cepat.</p>
            </div>
        </div>
        <div class="col-md-4">
            <div class="card feature-card shadow-sm p-4 text-center border-0 h-100">
                <i class="bi bi-bar-chart-fill display-4 text-warning mb-3"></i>
                <h5>Status Aktiviti</h5>
                <p>Monitor kehadiran dan status aktiviti dengan laporan terperinci.</p>
            </div>
        </div>
    </div>
</section>

<!-- Footer -->
<footer>
    <p>&copy; <?= date('Y') ?> Sistem e-SPEKTRA | Kolej Komuniti Seberang Jaya</p>
</footer>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
