<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Selamat Datang - PT Alvindo</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
        }

        /* Video Background */
        .video-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: -1;
        }

        #bg-video {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translate(-50%, -50%);
            object-fit: cover;
        }

        /* Overlay gelap untuk readability */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 0;
        }

        /* Content Container */
        .content {
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            text-align: center;
            color: white;
            padding: 20px;
        }

        /* Logo */
        .logo {
            margin-bottom: 30px;
            animation: fadeInDown 1s ease-out;
        }

        .logo img {
            width: 150px;
            height: auto;
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
        }

        /* Welcome Text */
        .welcome-text {
            max-width: 800px;
            animation: fadeInUp 1s ease-out 0.3s both;
        }

        .welcome-text h1 {
            font-size: 3.5em;
            font-weight: 700;
            margin-bottom: 20px;
            text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
            letter-spacing: 2px;
        }

        .welcome-text h2 {
            font-size: 1.8em;
            font-weight: 400;
            margin-bottom: 30px;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
            color: #f0f0f0;
        }

        .welcome-text p {
            font-size: 1.2em;
            line-height: 1.8;
            margin-bottom: 40px;
            text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
            color: #e0e0e0;
        }

        /* Login Button */
        .btn-login {
            display: inline-block;
            padding: 18px 60px;
            background: linear-gradient(135deg, #1e3c72, #2a5298);
            color: white;
            text-decoration: none;
            font-size: 1.3em;
            font-weight: 600;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
            animation: fadeInUp 1s ease-out 0.6s both;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .btn-login:hover {
            background: linear-gradient(135deg, #2a5298, #1e3c72);
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(30, 60, 114, 0.6);
        }

        .btn-login:active {
            transform: translateY(-1px);
        }

        /* Company Info */
        .company-info {
            margin-top: 60px;
            animation: fadeInUp 1s ease-out 0.9s both;
        }

        .info-boxes {
            display: flex;
            gap: 30px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 30px;
        }

        .info-box {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            padding: 20px 30px;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            min-width: 200px;
        }

        .info-box h3 {
            font-size: 2em;
            margin-bottom: 5px;
            color: #4a9eff;
        }

        .info-box p {
            font-size: 0.9em;
            margin: 0;
            color: #d0d0d0;
        }

        /* Animations */
        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .welcome-text h1 {
                font-size: 2.5em;
            }

            .welcome-text h2 {
                font-size: 1.4em;
            }

            .welcome-text p {
                font-size: 1em;
            }

            .btn-login {
                padding: 15px 40px;
                font-size: 1.1em;
            }

            .info-boxes {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            animation: bounce 2s infinite;
        }

        .scroll-indicator span {
            display: block;
            width: 30px;
            height: 30px;
            border-left: 2px solid white;
            border-bottom: 2px solid white;
            transform: rotate(-45deg);
            opacity: 0.7;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% {
                transform: translateX(-50%) translateY(0);
            }
            40% {
                transform: translateX(-50%) translateY(-10px);
            }
            60% {
                transform: translateX(-50%) translateY(-5px);
            }
        }
    </style>
</head>
<body>
    <!-- Video Background -->
    <div class="video-container">
        <!-- Ganti dengan URL video perusahaan Alvindo -->
        <video id="bg-video" autoplay loop muted playsinline>
            <source src="assets/video/alvindo-company.mp4" type="video/mp4">
            <!-- Fallback jika video tidak tersedia -->
            Your browser does not support the video tag.
        </video>
    </div>

    <!-- Dark Overlay -->
    <div class="overlay"></div>

    <!-- Main Content -->
    <div class="content">
        <!-- Logo (opsional) -->
        <div class="logo">
            <!-- <img src="assets/img/logo-alvindo.png" alt="Logo Alvindo"> -->
            <h1 style="font-size: 2em; margin: 0;">ALVINDO</h1>
        </div>

        <!-- Welcome Text -->
        <div class="welcome-text">
            <h1>Selamat Datang di PT Alvindo</h1>
            <h2>Sistem Informasi Kompro</h2>
            <p>
                PT Alvindo adalah perusahaan yang berkomitmen memberikan solusi terbaik 
                dalam bidang teknologi dan inovasi. Dengan pengalaman bertahun-tahun, 
                kami terus berkembang untuk melayani kebutuhan industri modern dengan 
                standar kualitas tertinggi.
            </p>
            
            <!-- Login Button -->
            <a href="middleware/login.php" class="btn-login">
                Masuk Sistem
            </a>
        </div>

        <!-- Company Info -->
        <div class="company-info">
            <div class="info-boxes">
                <div class="info-box">
                    <h3>15+</h3>
                    <p>Tahun Pengalaman</p>
                </div>
                <div class="info-box">
                    <h3>500+</h3>
                    <p>Proyek Selesai</p>
                </div>
                <div class="info-box">
                    <h3>100+</h3>
                    <p>Klien Puas</p>
                </div>
            </div>
        </div>

        <!-- Scroll Indicator -->
        <div class="scroll-indicator">
            <span></span>
        </div>
    </div>

    <script>
        // Pause video jika tab tidak aktif untuk menghemat resource
        document.addEventListener('visibilitychange', function() {
            const video = document.getElementById('bg-video');
            if (document.hidden) {
                video.pause();
            } else {
                video.play();
            }
        });

        // Smooth scroll jika ada konten tambahan
        document.querySelector('.scroll-indicator')?.addEventListener('click', function() {
            window.scrollTo({
                top: window.innerHeight,
                behavior: 'smooth'
            });
        });
    </script>
</body>
</html>