<?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>Testimonials - 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 {
                font-size: 20px;
            }

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

        /* 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;
        }

        /* Main Content */
        .main-content {
            position: relative;
            z-index: 10;
            padding: 140px 48px 80px;
            max-width: 1400px;
            margin: 0 auto;
        }

        /* Header Section */
        .header-section {
            text-align: center;
            margin-bottom: 64px;
        }

        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            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);
        }

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

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

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

        /* Testimonials Grid */
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            margin-bottom: 80px;
        }

        .testimonial-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);
        }

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

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

        .quote-icon svg {
            width: 24px;
            height: 24px;
            color: white;
        }

        .quote-text {
            font-size: 16px;
            color: #4b5563;
            line-height: 1.7;
            margin-bottom: 24px;
            font-style: italic;
        }

        .card-footer {
            display: flex;
            align-items: center;
            gap: 16px;
            padding-top: 20px;
            border-top: 1px solid #e5e7eb;
        }

        .avatar {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid #e5e7eb;
            transition: all 0.3s;
        }

        .testimonial-card:hover .avatar {
            border-color: #4f46e5;
        }

        .card-meta {
            flex: 1;
        }

        .company-logo {
            font-size: 14px;
            font-weight: 700;
            margin-bottom: 4px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .company-logo.gcp { color: #22c55e; }
        .company-logo.downing { color: #4f46e5; }
        .company-logo.maven { 
            color: #1e1b4b;
            letter-spacing: 2px;
        }

        .author-name {
            font-size: 16px;
            font-weight: 700;
            color: #1e1b4b;
        }

        .author-role {
            font-size: 13px;
            color: #6b7280;
        }

        /* Stats Section */
        .stats-section {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;
            margin-bottom: 80px;
        }

        .stat-card {
            background: white;
            border-radius: 16px;
            padding: 32px 24px;
            text-align: center;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transition: all 0.3s;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
        }

        .stat-number {
            font-size: 36px;
            font-weight: 800;
            color: #4f46e5;
            margin-bottom: 8px;
        }

        .stat-label {
            font-size: 14px;
            color: #6b7280;
            font-weight: 500;
        }

        /* Contact Section */
        .contact-section {
            background: white;
            border-radius: 20px;
            padding: 48px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        }

        .contact-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .contact-subtitle {
            display: inline-block;
            background: rgba(79, 70, 229, 0.1);
            color: #4f46e5;
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 16px;
        }

        .contact-title {
            font-size: 36px;
            font-weight: 800;
            color: #1e1b4b;
            margin-bottom: 12px;
        }

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

        .contact-description {
            font-size: 16px;
            color: #6b7280;
            max-width: 500px;
            margin: 0 auto;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 32px;
            max-width: 800px;
            margin: 0 auto;
        }

        .contact-block {
            padding: 28px;
            background: #f9fafb;
            border-radius: 16px;
            border: 1px solid #e5e7eb;
        }

        .contact-block h3 {
            font-size: 18px;
            font-weight: 700;
            color: #1e1b4b;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .contact-block h3 svg {
            width: 24px;
            height: 24px;
            color: #4f46e5;
        }

        .address-text {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            color: #4b5563;
            font-size: 15px;
            line-height: 1.6;
        }

        .address-text svg {
            width: 20px;
            height: 20px;
            color: #22c55e;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .contact-block p {
            font-size: 15px;
            color: #4b5563;
            line-height: 1.6;
        }

        /* 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);
            margin-top: 80px;
        }

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

        /* 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;
            }

            .main-content {
                padding: 100px 24px 60px;
            }

            .section-title {
                font-size: 40px;
            }

            .testimonials-grid {
                grid-template-columns: 1fr;
                max-width: 600px;
                margin-left: auto;
                margin-right: auto;
            }

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

            .contact-grid {
                grid-template-columns: 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;
            }

            .main-content {
                padding: 90px 20px 40px;
            }

            .section-title {
                font-size: 32px;
            }

            .section-badge {
                font-size: 12px;
                padding: 6px 16px;
            }

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

            .testimonial-card {
                padding: 24px;
            }

            .quote-icon {
                width: 40px;
                height: 40px;
            }

            .quote-icon svg {
                width: 20px;
                height: 20px;
            }

            .quote-text {
                font-size: 15px;
            }

            .avatar {
                width: 48px;
                height: 48px;
            }

            .stats-section {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .stat-card {
                padding: 24px;
            }

            .stat-number {
                font-size: 28px;
            }

            .contact-section {
                padding: 32px 24px;
            }

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

            .contact-block {
                padding: 20px;
            }

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

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

            .contact-title {
                font-size: 24px;
            }
        }
    </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">Home</a></li>
            <li><a href="benefit.php">Benefit</a></li>
            <li><a href="testimonies.php">Testimonies</a></li>
            <li><a href="contact.php">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>


    <!-- Main Content -->
    <main class="main-content">
        <!-- Header -->
        <section class="header-section">
            <p class="section-badge">Testimonials</p>
            <h1 class="section-title">Trusted by Industry Leaders</h1>
            <div class="title-underline"></div>
            <p class="section-description">Here's what our key partners and investors have to say about their experience with Geneva & Exeter Coin</p>
        </section>

        <!-- Testimonials Grid -->
        <section class="testimonials-grid">
            <!-- Testimonial 1 - Heidi Farley -->
            <article class="testimonial-card">
                <div class="quote-icon">
                    <svg viewBox="0 0 24 24" fill="currentColor">
                        <path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/>
                    </svg>
                </div>
                <p class="quote-text">Integrating Geneva & Exeter Coin services into our investment portfolios has been a great success for all parties, especially our investors.</p>
                <div class="card-footer">
                    <img src="https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=200&h=200&fit=crop" alt="Heidi Farley" class="avatar">
                    <div class="card-meta">
                        <div class="company-logo gcp">Growth Capital</div>
                        <div class="author-name">Heidi Farley</div>
                        <div class="author-role">Investment Executive</div>
                    </div>
                </div>
            </article>

            <!-- Testimonial 2 - Martin Robertson -->
            <article class="testimonial-card">
                <div class="quote-icon">
                    <svg viewBox="0 0 24 24" fill="currentColor">
                        <path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/>
                    </svg>
                </div>
                <p class="quote-text">Downing is excited to bring Geneva & Exeter Coin's extensive range of crypto assets, competitive rates and seamless functionalities.</p>
                <div class="card-footer">
                    <img src="https://images.unsplash.com/photo-1560250097-0b93528c311a?w=200&h=200&fit=crop" alt="Martin Robertson" class="avatar">
                    <div class="card-meta">
                        <div class="company-logo downing">Downing</div>
                        <div class="author-name">Martin Robertson</div>
                        <div class="author-role">Portfolio Reporting</div>
                    </div>
                </div>
            </article>

            <!-- Testimonial 3 - Ryan Bevington -->
            <article class="testimonial-card">
                <div class="quote-icon">
                    <svg viewBox="0 0 24 24" fill="currentColor">
                        <path d="M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z"/>
                    </svg>
                </div>
                <p class="quote-text">Cryptocurrency is the future and there's no better way to secure the future than with trusted and experienced trade experts at Geneva & Exeter Coin.</p>
                <div class="card-footer">
                    <img src="https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=200&h=200&fit=crop" alt="Ryan Bevington" class="avatar">
                    <div class="card-meta">
                        <div class="company-logo maven">MAVEN</div>
                        <div class="author-name">Ryan Bevington</div>
                        <div class="author-role">Investment Director</div>
                    </div>
                </div>
            </article>
        </section>


        
    </main>

    <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>