<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Keeler Family - WnashTime</title>
    <link rel="icon" type="image/png" href="files/logo.png">
    <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary-red: #c50d25;
            --primary-gray: #191314;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Cairo', sans-serif;
            cursor: url('files/cursor.png'), auto;
        }

        body {
            background-color: var(--primary-gray);
            color: white;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        header {
            background-color: var(--primary-red);
            padding: 1rem;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            position: relative;
            flex-wrap: wrap;
        }

        .mobile-menu-btn {
            display: none;
            width: 40px;
            height: 40px;
            border: none;
            background: transparent;
            cursor: pointer;
            margin-left: 1rem;
        }

        .mobile-menu-btn img {
            width: 100%;
            height: 100%;
            transition: all 0.3s ease;
        }

        .settings-btn, .discord-btn {
            position: absolute;
            width: 40px;
            height: 40px;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: all 0.3s ease;
            border-radius: 50%;
        }

        .settings-btn {
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
        }

        .discord-btn {
            --icon-size: 30px;
            width: var(--icon-size);
            height: var(--icon-size);
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
        }

        .settings-btn img, .discord-btn img {
            width: 100%;
            height: 100%;
            transition: all 0.3s ease;
        }

        .settings-btn:hover, .discord-btn:hover {
            filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
            transform: translateY(-50%) scale(1.1);
        }

        .discord-btn.active img {
            filter: hue-rotate(210deg) brightness(150%);
        }

        .settings-menu {
            display: none;
            position: absolute;
            right: 20px;
            top: 100%;
            background: var(--primary-gray);
            border: 1px solid var(--primary-red);
            border-radius: 15px;
            padding: 1rem;
            z-index: 1000;
        }

        .settings-menu.active {
            display: block;
        }

        .logo {
            width: 50px;
            height: 50px;
            margin-right: 1rem;
            border-radius: 50%;
            transition: transform 0.3s ease;
        }

        .logo:hover {
            transform: scale(1.2);
        }

        nav {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            justify-content: center;
            width: 100%;
        }

        nav h2 {
            font-family: 'Cairo', sans-serif;
            margin: 0.5rem;
        }

        .nav-links {
            display: flex;
            gap: 1rem;
            list-style: none;
            flex-wrap: wrap;
            justify-content: center;
        }

        .nav-links a {
            font-family: 'Cairo', sans-serif;
            color: white;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.3s ease;
            padding: 0.6rem 1rem;
            border-radius: 25px;
            background: linear-gradient(145deg, var(--primary-gray), #2a2021);
            box-shadow: 3px 3px 10px rgba(0,0,0,0.2);
            display: block;
            margin: 0.2rem;
        }

        .nav-links a:hover {
            background: linear-gradient(145deg, #2a2021, var(--primary-gray));
            transform: scale(1.1);
            box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
        }

        .hero {
            height: 40vh;
            min-height: 200px;
            background-image: linear-gradient(rgba(25, 19, 20, 0.7), rgba(229, 19, 46, 0.3)), url('files/banner.png');
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
        }

        .hero h1 {
            font-size: clamp(2rem, 5vw, 4rem);
            color: #ff3333;
            text-transform: uppercase;
            letter-spacing: 3px;
            text-align: center;
            white-space: nowrap;
            overflow: hidden;
            animation: typing 6s steps(20) infinite;
            width: 0;
            text-shadow: 0 0 10px rgba(255, 51, 51, 0.5);
            transition: all 0.5s ease;
        }

        @keyframes typing {
            0% { width: 0 }
            30% { width: 100% }
            80% { width: 100% }
            100% { width: 0 }
        }

        .counter-container {
            text-align: center;
            padding: 1rem;
            margin-top: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .counter-wrapper {
            display: flex;
            align-items: center;
            font-family: 'Cairo', sans-serif;
        }

        .counter, .plus {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            font-weight: bold;
            color: #ffffff;
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
        }

        .counter-label {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            color: var(--primary-red);
            margin: 0 0.5rem;
        }

        .member-text {
            font-size: clamp(1.2rem, 3vw, 1.5rem);
            color: var(--primary-red);
            margin: 0 0.5rem;
        }

        .content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem 1rem;
            flex: 1;
        }

        .section {
            margin-bottom: 2rem;
        }

        .section h2 {
            color: var(--primary-red);
            margin-bottom: 1.5rem;
            animation: slideIn 1s ease-out;
            font-size: clamp(1.5rem, 4vw, 2rem);
        }

        .section p {
            font-size: clamp(1rem, 2vw, 1.2rem);
            line-height: 1.6;
        }

        .photo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1rem;
            padding: 0.5rem;
        }

        .photo-grid .photo-item {
            position: relative;
            cursor: pointer;
            overflow: hidden;
            border-radius: 10px;
            aspect-ratio: 16/9;
        }

        .photo-grid img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 10px;
            transition: transform 0.3s ease;
        }

        .fullscreen-view {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .fullscreen-view.active {
            display: flex;
        }

        .fullscreen-image {
            max-width: 90%;
            max-height: 90vh;
            object-fit: contain;
        }

        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(197, 13, 37, 0.7);
            color: white;
            padding: 0.5rem;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: clamp(1rem, 3vw, 1.5rem);
        }

        .prev-btn {
            left: 1rem;
        }

        .next-btn {
            right: 1rem;
        }

        .close-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(197, 13, 37, 0.7);
            color: white;
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
        }

        footer {
            background-color: var(--primary-red);
            text-align: center;
            padding: 1.5rem;
            margin-top: auto;
            box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
        }

        footer p {
            font-size: clamp(0.8rem, 2vw, 1rem);
        }

        @media (max-width: 768px) {
            header {
                padding: 0.5rem;
            }

            .mobile-menu-btn {
                display: block;
            }

            nav {
                flex-direction: column;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                align-items: center;
                width: 100%;
                transition: all 0.3s ease;
            }

            .nav-links.active {
                display: flex;
                animation: slideDown 0.3s ease-out;
            }

            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translateY(-20px);
                }
                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .nav-links a {
                width: 90%;
                text-align: center;
            }

            .settings-btn, .discord-btn {
                position: relative;
                transform: none;
                margin: 0.5rem;
                right: auto;
                top: auto;
            }

            .hero {
                height: 30vh;
            }

            .counter-container {
                flex-direction: column;
            }

            .photo-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 1.8rem;
            }

            .nav-btn {
                padding: 0.3rem;
            }

            .close-btn {
                width: 30px;
                height: 30px;
                font-size: 1rem;
            }
        }
    </style>
</head>
<body>
    <header>
        <nav>
            <div style="display: flex; align-items: center;">
                <button class="mobile-menu-btn" onclick="toggleMenu()">
                    <img src="files/more1.png" alt="Menu" id="menuIcon">
                </button>
                <img src="files/logo.png" alt="Keeler Family Logo" class="logo">
                <h2>Keeler Family</h2>
            </div>
            <ul class="nav-links" id="navLinks">
                <li><a href="apps.html">التقديمات</a></li>
                <li><a href="store.html">المتجر</a></li>
                <li><a href="tune.html">التعديلات</a></li>
                <li><a href="subs.html">المشتركين</a></li>
                <li><a href="gallery.html">المعرض</a></li>
                <li><a href="about.html">لمحة</a></li>
            </ul>
        </nav>
        <button class="discord-btn" onclick="window.location.href='https://discord.gg/FN6TpbHrYT'">
            <img src="files/dis.png" alt="Discord">
        </button>
        <button class="settings-btn" onclick="window.location.href='https://discord.gg/wnashtime'">
            <img src="files/wnash.png" alt="WnashTime">
        </button>
        <div class="settings-menu" id="settingsMenu">
            <h3>Settings</h3>
            <!-- Add settings options here -->
        </div>
    </header>

    <div class="hero">
        <h1>The Keeler Family..</h1>
    </div>

    <div class="counter-container">
        <div class="counter-wrapper">
            <span class="member-text">عضو +</span>
            <span class="counter" id="counter">100</span>
        </div>
        <span class="counter-label">عدد أعضاء العائلة</span>
    </div>

    <main class="content">
        <section class="section">
            <h2>Welcome to Our Family Page</h2>
            <p>Keeler Family, The Best Family in WnashTimeRP - "Pride, Glory, Wealth"</p>
        </section>

        <section class="section">
            <h2>Our Property</h2>
            <div class="photo-grid">
                <div class="photo-item" onclick="openFullscreen(0)">
                    <img src="files/p1.jpg" alt="">
                    <img src="files/eye.png" alt="View" class="eye-icon">
                </div>
                <div class="photo-item" onclick="openFullscreen(1)">
                    <img src="files/p2.jpg" alt="">
                    <img src="files/eye.png" alt="View" class="eye-icon">
                </div>
                <div class="photo-item" onclick="openFullscreen(2)">
                    <img src="files/p3.jpg" alt="">
                    <img src="files/eye.png" alt="View" class="eye-icon">
                </div>
            </div>
        </section>
    </main>

    <div class="fullscreen-view" id="fullscreenView">
        <img src="" alt="Fullscreen Image" class="fullscreen-image" id="fullscreenImage">
        <button class="nav-btn prev-btn" onclick="navigate(-1)">&#10094;</button>
        <button class="nav-btn next-btn" onclick="navigate(1)">&#10095;</button>
        <button class="close-btn" onclick="closeFullscreen()">X</button>
    </div>

    <footer>
        <p>&copy; 2024 Keeler Family - Copyright Saved - Devloped By _kahrba | xeyad_</p>
    </footer>

    <script>
        let menuOpen = false;

        function toggleMenu() {
            const navLinks = document.getElementById('navLinks');
            const menuIcon = document.getElementById('menuIcon');
            menuOpen = !menuOpen;
            
            if (menuOpen) {
                menuIcon.src = 'files/more2.png';
                navLinks.classList.add('active');
            } else {
                menuIcon.src = 'files/more1.png';
                navLinks.classList.remove('active');
            }
        }

        function toggleSettings() {
            const menu = document.getElementById('settingsMenu');
            menu.classList.toggle('active');
        }

        function toggleDiscord() {
            const btn = document.querySelector('.discord-btn');
            btn.classList.toggle('active');
        }

        // Counter animation
        const counter = document.getElementById('counter');
        let count = 100;
        const target = 1487;
        const speed = 50;
        const increment = Math.ceil((target - count) / (2000 / speed));

        const updateCounter = () => {
            if(count < target) {
                count += increment;
                if(count > target) count = target;
                counter.textContent = count;
                setTimeout(updateCounter, speed);
            }
        };

        updateCounter();

        // Fullscreen image viewer
        const images = ['files/p1.jpg', 'files/p2.jpg', 'files/p3.jpg'];
        let currentImageIndex = 0;

        function openFullscreen(index) {
            currentImageIndex = index;
            const fullscreenView = document.getElementById('fullscreenView');
            const fullscreenImage = document.getElementById('fullscreenImage');
            fullscreenImage.src = images[index];
            fullscreenView.classList.add('active');
        }

        function closeFullscreen() {
            const fullscreenView = document.getElementById('fullscreenView');
            fullscreenView.classList.remove('active');
        }

        function navigate(direction) {
            currentImageIndex = (currentImageIndex + direction + images.length) % images.length;
            const fullscreenImage = document.getElementById('fullscreenImage');
            fullscreenImage.src = images[currentImageIndex];
        }
    </script>
</body>
</html>
