<?php
require 'includes/db.php';

if (!isset($_COOKIE['currency_selected'])) {
    header("Location: choose_currency.php");
    exit;
}

$user_currency = $_COOKIE['currency_selected'];

$symbols = [
    "USD"=>"$","ZAR"=>"R","NGN"=>"₦","EUR"=>"€",
    "GBP"=>"£","CHF"=>"₣","CAD"=>"$","AUD"=>"$","INR"=>"₹"
];

$symbol = $symbols[$user_currency] ?? "";
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Key Features - Geneva & Exeter Coin</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
            min-height: 100vh;
            position: relative;
            overflow-x: hidden;
        }

        /* Animated crypto background */
        .crypto-bg {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 0;
        }

        .crypto-icon {
            position: absolute;
            opacity: 0.05;
            color: white;
            font-size: 48px;
            font-weight: bold;
            animation: float 8s ease-in-out infinite;
        }

        .crypto-icon:nth-child(1) { top: 10%; left: 5%; transform: rotate(-15deg); font-size: 64px; animation-delay: 0s; }
        .crypto-icon:nth-child(2) { top: 70%; left: 15%; transform: rotate(10deg); font-size: 56px; animation-delay: 2s; }
        .crypto-icon:nth-child(3) { top: 30%; right: 10%; transform: rotate(-5deg); font-size: 72px; animation-delay: 4s; }
        .crypto-icon:nth-child(4) { bottom: 20%; right: 25%; transform: rotate(20deg); font-size: 48px; animation-delay: 1s; }
        .crypto-icon:nth-child(5) { top: 50%; left: 40%; transform: rotate(-10deg); font-size: 60px; animation-delay: 3s; }
        .crypto-icon:nth-child(6) { top: 20%; left: 25%; transform: rotate(5deg); font-size: 52px; animation-delay: 5s; }
        .crypto-icon:nth-child(7) { top: 60%; right: 5%; transform: rotate(-10deg); font-size: 60px; animation-delay: 6s; }
        .crypto-icon:nth-child(8) { bottom: 30%; left: 8%; transform: rotate(15deg); font-size: 44px; animation-delay: 7s; }

        @keyframes float {
            0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
            50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
        }

        /* Navigation */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 48px;
            background: rgba(79, 70, 229, 0.95);
            backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .nav-left {
            display: flex;
            align-items: center;
            gap: 48px;
        }

       /* Logo container */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo image */
.logo-img {
    width: clamp(120px, 20vw, 180px);
    height: auto;
    display: block;
}
        /* Desktop Navigation */
        .nav-links {
            display: flex;
            gap: 32px;
            list-style: none;
        }

        .nav-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .nav-links a:hover {
            color: white;
        }

        .nav-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        /* Auth Buttons */
        .auth-buttons {
            display: flex;
            gap: 12px;
        }

        .btn-signin {
            padding: 10px 20px;
            background: #22c55e;
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
            border: none;
            cursor: pointer;
        }

        .btn-signin:hover {
            background: #16a34a;
            transform: translateY(-1px);
        }

        .btn-signup {
            padding: 10px 20px;
            background: transparent;
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.5);
            transition: all 0.2s;
            cursor: pointer;
        }

        .btn-signup:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: white;
        }

        .currency-badge {
            display: flex;
            align-items: center;
            gap: 8px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.15);
            padding: 8px 16px;
            border-radius: 20px;
        }

        .currency-badge a {
            color: rgba(255, 255, 255, 0.9);
            text-decoration: none;
            font-size: 13px;
            margin-left: 4px;
            transition: color 0.2s;
        }

        .currency-badge a:hover {
            color: white;
            text-decoration: underline;
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 8px;
            background: none;
            border: none;
        }

        .mobile-menu-toggle span {
            width: 24px;
            height: 2px;
            background: white;
            transition: all 0.3s;
            border-radius: 2px;
        }

        /* Mobile Navigation Overlay */
        .mobile-nav {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.98);
            z-index: 999;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 32px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

        .mobile-nav.active {
            opacity: 1;
            visibility: visible;
        }

        .mobile-nav-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 32px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .mobile-nav-links {
            display: flex;
            flex-direction: column;
            gap: 24px;
            list-style: none;
            text-align: center;
        }

        .mobile-nav-links a {
            color: white;
            text-decoration: none;
            font-size: 24px;
            font-weight: 600;
            transition: color 0.2s;
        }

        .mobile-nav-links a:hover {
            color: #4f46e5;
        }

        .mobile-auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 16px;
            width: 200px;
        }

        .mobile-auth-buttons .btn-signin,
        .mobile-auth-buttons .btn-signup {
            width: 100%;
            text-align: center;
            padding: 14px 24px;
            font-size: 16px;
        }

        /* Features Section */
        .features-section {
            position: relative;
            z-index: 10;
            padding: 140px 48px 80px;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
        }

        .features-container {
            width: 100%;
        }

        .features-header {
            text-align: center;
            margin-bottom: 64px;
        }

        .features-subtitle {
            display: inline-block;
            background: rgba(255, 255, 255, 0.15);
            color: white;
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 20px;
            backdrop-filter: blur(10px);
        }

        .features-title {
            font-size: 48px;
            font-weight: 800;
            color: white;
            line-height: 1.2;
            margin-bottom: 16px;
        }

        .features-title-underline {
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #22c55e, #16a34a);
            margin: 0 auto 20px;
            border-radius: 2px;
        }

        .features-description {
            font-size: 18px;
            color: rgba(255, 255, 255, 0.85);
            max-width: 500px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Features Grid */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
        }

        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 32px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .feature-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
        }

        .feature-icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            color: white;
        }

        .feature-icon svg {
            width: 28px;
            height: 28px;
        }

        .feature-title {
            font-size: 20px;
            font-weight: 700;
            color: #1e1b4b;
            margin-bottom: 12px;
        }

        .feature-description {
            font-size: 15px;
            color: #6b7280;
            line-height: 1.6;
        }

        .feature-description strong {
            color: #4f46e5;
            font-weight: 600;
        }

        /* Simple Footer */
        .footer {
            position: relative;
            z-index: 10;
            background: rgba(15, 23, 42, 0.95);
            padding: 24px 48px;
            text-align: center;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .footer p {
            color: rgba(255, 255, 255, 0.6);
            font-size: 14px;
            font-weight: 400;
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .navbar {
                padding: 16px 24px;
            }

            .nav-links {
                display: none;
            }

            .auth-buttons {
                display: none;
            }

            .mobile-menu-toggle {
                display: flex;
            }

            .mobile-nav {
                display: flex;
            }

            .features-section {
                padding: 100px 24px 60px;
            }

            .features-title {
                font-size: 36px;
            }

            .features-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 640px) {
            .navbar {
                padding: 12px 20px;
            }

            .logo {
                font-size: 20px;
            }

            .logo-icon {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .currency-badge {
                padding: 6px 12px;
                font-size: 13px;
            }

            .features-section {
                padding: 90px 20px 40px;
            }

            .features-title {
                font-size: 28px;
            }

            .features-subtitle {
                font-size: 12px;
                padding: 6px 16px;
            }

            .features-description {
                font-size: 16px;
            }

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

            .feature-card {
                padding: 24px;
            }

            .feature-icon {
                width: 48px;
                height: 48px;
            }

            .feature-icon svg {
                width: 24px;
                height: 24px;
            }

            .feature-title {
                font-size: 18px;
            }

            .footer {
                padding: 20px 24px;
            }
        }

        @media (max-width: 380px) {
            .features-title {
                font-size: 24px;
            }

            .feature-card {
                padding: 20px;
            }
        }
    </style>
<base target="_blank">
</head>
<body>
    <!-- Crypto Background -->
    <div class="crypto-bg">
        <div class="crypto-icon">₿</div>
        <div class="crypto-icon">₿</div>
        <div class="crypto-icon">₿</div>
        <div class="crypto-icon">₿</div>
        <div class="crypto-icon">◊</div>
        <div class="crypto-icon">◊</div>
        <div class="crypto-icon">◎</div>
        <div class="crypto-icon">◎</div>
    </div>

    <!-- Navigation -->
    <nav class="navbar">
        <div class="nav-left">
            <a href="index.php" target="_self" class="logo">
    <img src="img/logo_white.png" class="logo-img" alt="Logo">
</a>
            <ul class="nav-links">
                <li><a href="index.php" target="_self">Home</a></li>
                <li><a href="benefit.php" target="_self">Benefit</a></li>
                <li><a href="testimonies.php" target="_self">Testimonies</a></li>
                <li><a href="contact.php" target="_self">Contact</a></li>
            </ul>
        </div>
        <div class="nav-right">
            <div class="currency-badge">
                🌍 <?php echo $user_currency; ?>
              <a href="change_currency.php">Change</a>
            </div>
            <div class="auth-buttons">
                <a href="login.php" class="btn-signin">Sign In</a>
                <a href="register.php" class="btn-signup">Sign Up</a>
            </div>
            <button class="mobile-menu-toggle" onclick="toggleMobileMenu()" aria-label="Toggle menu">
                <span></span>
                <span></span>
                <span></span>
            </button>
        </div>
    </nav>

    <!-- Mobile Navigation Overlay -->
    <div class="mobile-nav" id="mobileNav">
        <button class="mobile-nav-close" onclick="toggleMobileMenu()">×</button>
        <ul class="mobile-nav-links">
            <li><a href="index.php" target="_self">Home</a></li>
            <li><a href="benefit.php" target="_self">Benefit</a></li>
            <li><a href="testimonies.php" target="_self">Testimonies</a></li>
            <li><a href="contact.php" target="_self">Contact</a></li>
        </ul>
        <div class="mobile-auth-buttons">
            <a href="login.php" class="btn-signin">Sign In</a>
            <a href="register.php" class="btn-signup">Sign Up</a>
        </div>
    </div>


    <!-- Features Section -->
    <section id="benefits" class="features-section">
        <div class="features-container">
            <div class="features-header">
                <p class="features-subtitle">Key Features</p>
                <h2 class="features-title">The most trusted cryptocurrency platform</h2>
                <div class="features-title-underline"></div>
                <p class="features-description">Here are a few reasons why you should invest with us</p>
            </div>

            <div class="features-grid">
                <!-- Feature 1 -->
                <div class="feature-card">
                    <div class="feature-icon">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <polyline points="23 6 13.5 15.5 8.5 10.5 1 18"></polyline>
                            <polyline points="17 6 23 6 23 12"></polyline>
                        </svg>
                    </div>
                    <h3 class="feature-title">Guaranteed profit</h3>
                    <p class="feature-description">
                        Regardless of current or future price fluctuations, your agreed interest rate is applied with <strong>ZERO risk</strong> at tenure end.
                    </p>
                </div>

                <!-- Feature 2 -->
                <div class="feature-card">
                    <div class="feature-icon">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <circle cx="12" cy="12" r="10"></circle>
                            <polyline points="12 6 12 12 16 14"></polyline>
                        </svg>
                    </div>
                    <h3 class="feature-title">Instant withdrawals</h3>
                    <p class="feature-description">
                        Your withdrawals are processed instantly to your external bitcoin wallets.
                    </p>
                </div>

                <!-- Feature 3 -->
                <div class="feature-card">
                    <div class="feature-icon">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
                        </svg>
                    </div>
                    <h3 class="feature-title">100% Privacy</h3>
                    <p class="feature-description">
                        All of your data and communication with us is 100% secured with the latest encryption technology. Even our support staff cannot view your trading/investment profile.
                    </p>
                </div>

                <!-- Feature 4 -->
                <div class="feature-card">
                    <div class="feature-icon">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <rect x="3" y="11" width="18" height="11" rx="2" ry="2"></rect>
                            <path d="M7 11V7a5 5 0 0 1 10 0v4"></path>
                        </svg>
                    </div>
                    <h3 class="feature-title">Secure storage</h3>
                    <p class="feature-description">
                        We store the vast majority of the digital assets in secure offline storage.
                    </p>
                </div>

                <!-- Feature 5 -->
                <div class="feature-card">
                    <div class="feature-icon">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <circle cx="12" cy="12" r="10"></circle>
                            <line x1="2" y1="12" x2="22" y2="12"></line>
                            <path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
                        </svg>
                    </div>
                    <h3 class="feature-title">Coin-in/Coin-out</h3>
                    <p class="feature-description">
                        Deposits/withdrawals can be processed from the same cryptocurrency.
                    </p>
                </div>

                <!-- Feature 6 -->
                <div class="feature-card">
                    <div class="feature-icon">
                        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
                        </svg>
                    </div>
                    <h3 class="feature-title">Protected by insurance</h3>
                    <p class="feature-description">
                        Cryptocurrency stored on our servers is covered by our insurance policy.
                    </p>
                </div>
            </div>
        </div>
    </section>

    <!-- Simple Footer -->
    <!-- Simple Footer -->
    <footer class="footer">
        <p>&copy; <?php echo date("Y"); ?>  Geneva & Exeter Coin. All rights reserved.</p>
    </footer>

    <script>
        // Mobile Menu Toggle
        function toggleMobileMenu() {
            const mobileNav = document.getElementById('mobileNav');
            mobileNav.classList.toggle('active');
            document.body.style.overflow = mobileNav.classList.contains('active') ? 'hidden' : '';
        }

        // Close mobile menu when clicking on a link
        document.querySelectorAll('.mobile-nav-links a').forEach(link => {
            link.addEventListener('click', () => {
                toggleMobileMenu();
            });
        });
    </script>
</body>
</html>