<?php include("site-details.php"); ?>
<!DOCTYPE html>
<html lang="en" class="dark">
<head>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">

    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            darkMode: 'class',
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981',
                        accent: '#6366F1',
                        warning: '#F59E0B',
                        danger: '#EF4444',
                        dark: {
                            100: '#374151',
                            200: '#1F2937',
                            300: '#111827',
                            400: '#0F172A',
                            500: '#0B1120',
                        }
                    },
                    fontFamily: {
                        sans: ['Inter', 'sans-serif']
                    }
                }
            }
        }
    </script>

    <!-- Alpine.js -->
    <script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>

    <!-- FontAwesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

    <!-- Custom Styles -->
    <style>
        /* Alpine.js x-cloak directive */
        [x-cloak] {
            display: none !important;
        }

        /* Custom scrollbar for dark mode */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }
        ::-webkit-scrollbar-track {
            background: #1F2937;
        }
        ::-webkit-scrollbar-thumb {
            background: #4B5563;
            border-radius: 4px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #6B7280;
        }

        /* Form elements styling */
        .form-input {
            @apply  bg-dark-100 border-0 rounded-lg px-4 py-3 text-gray-100 font-medium focus:ring-2 focus:ring-primary focus:outline-none transition-all duration-200;
        }

        .form-select {
            @apply  bg-dark-100 border-0 rounded-lg px-4 py-3 text-gray-100 font-medium focus:ring-2 focus:ring-primary focus:outline-none transition-all duration-200;
        }

        .btn-primary {
            @apply  bg-primary hover:bg-blue-700 text-white font-bold py-3 px-6 rounded-lg transition-all duration-200;
        }

        .btn-secondary {
            @apply  bg-dark-100 hover:bg-dark-200 text-white font-bold py-3 px-6 rounded-lg transition-all duration-200;
        }

        /* Navbar and mobile menu animations */
        .navbar-dropdown {
            @apply  transition-all duration-300 ease-in-out transform origin-top;
        }

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

        .animate-fadeIn {
            animation: fadeIn 0.3s ease-out forwards;
        }

        /* Light mode overrides */
        html:not(.dark) {
            @apply  bg-gray-100 text-gray-900;
        }

        html:not(.dark) body {
            @apply  bg-gray-100 text-gray-900;
        }

        html:not(.dark) .bg-dark-400 {
            @apply  bg-white;
        }

        html:not(.dark) .bg-dark-300 {
            @apply  bg-gray-50;
        }

        html:not(.dark) .border-gray-800 {
            @apply  border-gray-200;
        }

        html:not(.dark) .text-gray-200,
        html:not(.dark) .text-gray-300,
        html:not(.dark) .text-gray-400 {
            @apply  text-gray-700;
        }

        html:not(.dark) .hover\:bg-dark-200:hover,
        html:not(.dark) .hover\:bg-gray-700:hover {
            @apply  hover:bg-gray-200;
        }

        html:not(.dark) .bg-dark-500 {
            @apply  bg-gray-100;
        }
    </style>

    <title>Logic Options | CFD Trading — Trading on Stocks, Gold, Oil, Indices</title>
    <link rel="manifest" href="./">
    <meta name="theme-color" content="#111827">    <meta property="x-session-id" content="ghJjEOrjZ3KUPun1UQksVUbvK88y21dgIhKtb8GT">
    <meta property="og:site_name" content="Logic Options">
    <meta property="og:description" content="CFD Trading with Logic Options. Trading on Stocks, Gold, Oil, Indices with ultra-fast execution &amp; spreads from 0.0 pips. News, articles and training materials for experienced and novice traders.">
    <meta name="description" content="CFD Trading with Logic Options. Trading on Stocks, Gold, Oil, Indices with ultra-fast execution &amp; spreads from 0.0 pips. News, articles and training materials for experienced and novice traders.">
    <meta name="keywords" content="forex, CFDs, CFD, Bitcoin trading, crypto trading, online trading, Forex trading, Oil trading, Gold trading, trading indexes, shares trading, commodities trading, trading platform, Cryptocurrencies day trading">
    <meta property="og:type" content="website">
    <meta property="og:title" content="CFD Trading — Trading on Stocks, Gold, Oil, Indices | Logic Options">
    <meta property="og:image" content="img/share.jpg">

    <!-- Favicon -->
    <link rel="shortcut icon" href="<?php echo $LOGO_PATH; ?>" type="image/x-icon">

    <!-- Preload key assets -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <!-- jQuery (required for some components) -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

    <!-- JavaScript utilities -->
    <script>
        // Utility function for mobile menu
        document.addEventListener('alpine:init', () => {
            Alpine.store('navigation', {
                open: false,
                toggle() {
                    this.open = !this.open;
                },
                close() {
                    this.open = false;
                }
            });

            // Theme toggler
            Alpine.store('darkMode', {
                on: true,
                toggle() {
                    this.on = !this.on;
                    if (this.on) {
                        document.documentElement.classList.add('dark');
                        document.body.classList.add('bg-gray-900');
                        document.body.classList.remove('bg-gray-100');
                    } else {
                        document.documentElement.classList.remove('dark');
                        document.body.classList.remove('bg-gray-900');
                        document.body.classList.add('bg-gray-100');
                    }
                    localStorage.setItem('darkMode', this.on ? 'dark' : 'light');
                }
            });
        });

        // Initialize theme from local storage
        document.addEventListener('DOMContentLoaded', () => {
            const theme = localStorage.getItem('darkMode');
            if (theme === 'light') {
                document.documentElement.classList.remove('dark');
                document.body.classList.remove('bg-gray-900');
                document.body.classList.add('bg-gray-100');
                if (window.Alpine) {
                    Alpine.store('darkMode').on = false;
                }
            }
        });
    </script>
</head>

<body class="antialiased text-gray-200 bg-gray-900 font-sans min-h-screen flex flex-col">
    <!-- Accessibility Skip Link -->
    <a href="#main-content" class="sr-only focus:not-sr-only focus:bg-blue-700 focus:text-white focus:fixed focus:px-4 focus:py-2 focus:top-2 focus:left-2 focus:z-50">
        Skip to main content
    </a>


<?php include("header.php"); ?>

    <!--  sub menu -->

<!-- Market Ticker Widget -->
<div class="bg-dark-300 border-b border-gray-800">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div class="py-1">
            <div class="crypto-ticker-wrapper">
                <iframe src="https://widget.coinlib.io/widget?type=horizontal_v2&theme=dark&pref_coin_id=1505&invert_hover=no"
                        width="100%"
                        height="36px"
                        scrolling="auto"
                        marginwidth="0"
                        marginheight="0"
                        frameborder="0"
                        border="0"
                        class="w-full">
                </iframe>
            </div>
        </div>
    </div>
</div>

<!-- Main Content Area -->
<main id="main-content" class="flex-grow">
    <!-- Hero Section -->
<section class="relative overflow-hidden bg-gradient-to-br from-gray-900 to-gray-800">

<div class="container mx-auto px-4 py-12">
    <!-- Page Header -->
    <div class="text-center mb-12">
        <h1 class="text-4xl font-bold text-white mb-4">Contact Us</h1>
        <div class="h-1 w-24 bg-blue-500 mx-auto mb-6"></div>
        <p class="text-gray-300 text-lg max-w-3xl mx-auto">
            Get in touch with our team for any inquiries or support
        </p>
    </div>

    <!-- Contact Information -->
    <div class="grid grid-cols-1 md:grid-cols-2 gap-8 mb-12">
        <!-- Contact Details -->
        <div class="bg-gray-800 rounded-xl p-8 border border-gray-700">
            <h2 class="text-2xl font-bold text-white mb-6">Contact Information</h2>
            
            <div class="space-y-6">
                <!-- Email -->
                <div class="flex items-start">
                    <div class="flex-shrink-0">
                        <div class="w-12 h-12 bg-blue-600 bg-opacity-20 rounded-lg flex items-center justify-center">
                            <i class="fas fa-envelope text-blue-400 text-xl"></i>
                        </div>
                    </div>
                    <div class="ml-4">
                        <h3 class="text-lg font-semibold text-white mb-1">Email Support</h3>
                        <p class="text-gray-300"><?php echo $SITE_EMAIL; ?></p>
                        <p class="text-gray-400 text-sm mt-1">24/7 email support for all inquiries</p>
                    </div>
                </div>

                <!-- Phone -->
                <div class="flex items-start">
                    <div class="flex-shrink-0">
                        <div class="w-12 h-12 bg-green-600 bg-opacity-20 rounded-lg flex items-center justify-center">
                            <i class="fas fa-phone text-green-400 text-xl"></i>
                        </div>
                    </div>
                    <div class="ml-4">
                        <h3 class="text-lg font-semibold text-white mb-1">Phone Support</h3>
                        <p class="text-gray-300"><?php echo $SITE_PHONE; ?></p>
                        <p class="text-gray-400 text-sm mt-1">Mon-Fri: 9AM-6PM EST</p>
                    </div>
                </div>

                <!-- Live Chat -->
                <div class="flex items-start">
                    <div class="flex-shrink-0">
                        <div class="w-12 h-12 bg-purple-600 bg-opacity-20 rounded-lg flex items-center justify-center">
                            <i class="fas fa-comments text-purple-400 text-xl"></i>
                        </div>
                    </div>
                    <div class="ml-4">
                        <h3 class="text-lg font-semibold text-white mb-1">Live Chat</h3>
                        <p class="text-gray-300">Available on website</p>
                        <p class="text-gray-400 text-sm mt-1">24/5 live chat support</p>
                    </div>
                </div>
            </div>
        </div>

        <!-- Office Locations -->
        <div class="bg-gray-800 rounded-xl p-8 border border-gray-700">
            <h2 class="text-2xl font-bold text-white mb-6">Office Locations</h2>
            
            <div class="space-y-6">
                <!-- Headquarters -->
                <div class="border-l-4 border-blue-500 pl-4 py-2">
                    <h3 class="text-lg font-semibold text-white mb-2">Headquarters</h3>
                    <p class="text-gray-300">
                       <?php echo $SITE_ADDRESS; ?>
                    </p>
                </div>

               
            </div>
        </div>
    </div>

    <!-- Support Departments -->
    <div class="bg-gray-800 rounded-xl p-8 mb-12 border border-gray-700">
        <h2 class="text-2xl font-bold text-white mb-6">Support Departments</h2>
        
        <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
            <!-- Technical Support -->
            <div class="bg-gray-900 rounded-lg p-6">
                <div class="w-12 h-12 bg-blue-600 rounded-full flex items-center justify-center mb-4">
                    <i class="fas fa-tools text-white text-xl"></i>
                </div>
                <h3 class="text-xl font-bold text-white mb-2">Technical Support</h3>
                <p class="text-gray-300 mb-4">Platform issues, technical assistance</p>
                <p class="text-blue-400"><?php echo $SITE_EMAIL; ?></p>
            </div>

            <!-- Account Support -->
            <div class="bg-gray-900 rounded-lg p-6">
                <div class="w-12 h-12 bg-green-600 rounded-full flex items-center justify-center mb-4">
                    <i class="fas fa-user-circle text-white text-xl"></i>
                </div>
                <h3 class="text-xl font-bold text-white mb-2">Account Support</h3>
                <p class="text-gray-300 mb-4">Account management, verification</p>
                <p class="text-green-400"><?php echo $SITE_EMAIL; ?></p>
            </div>

         
        </div>
    </div>

    <!-- FAQ Section -->
    <div class="bg-gray-800 rounded-xl p-8 mb-12 border border-gray-700">
        <h2 class="text-2xl font-bold text-white mb-6">Frequently Asked Questions</h2>
        
        <div class="space-y-4">
            <!-- FAQ 1 -->
            <div class="bg-gray-900 rounded-lg p-4">
                <h3 class="text-lg font-semibold text-white mb-2">What are your support hours?</h3>
                <p class="text-gray-300">Our support team is available 24/5 via email and live chat. Phone support is available Monday to Friday, 9AM-6PM EST.</p>
            </div>

            <!-- FAQ 2 -->
            <div class="bg-gray-900 rounded-lg p-4">
                <h3 class="text-lg font-semibold text-white mb-2">How do I verify my account?</h3>
                <p class="text-gray-300">Account verification is required for security. Please email your documents to <?php echo $SITE_EMAIL; ?> for prompt verification.</p>
            </div>

            <!-- FAQ 3 -->
            <div class="bg-gray-900 rounded-lg p-4">
                <h3 class="text-lg font-semibold text-white mb-2">Where can I find trading guides?</h3>
                <p class="text-gray-300">Visit our Education Center for comprehensive trading guides, tutorials, and market analysis resources.</p>
            </div>
        </div>
    </div>

    <!-- Emergency Contact -->
    <div class="text-center bg-gradient-to-r from-blue-600 to-blue-800 rounded-xl p-8 border border-blue-500">
        <h3 class="text-2xl font-bold text-white mb-4">Need Immediate Assistance?</h3>
        <p class="text-blue-100 mb-6 max-w-2xl mx-auto">
            For urgent matters requiring immediate attention, please use our live chat feature available on the website
        </p>
        <div class="flex flex-col sm:flex-row gap-4 justify-center">
            <button onclick="window.open('https://tawk.to/chat', '_blank')" 
                    class="bg-white text-blue-600 hover:bg-gray-100 font-bold py-3 px-8 rounded-lg transition duration-300">
                Open Live Chat
            </button>
            <a href="mailto:<?php echo $SITE_EMAIL; ?>" 
               class="bg-transparent border-2 border-white text-white hover:bg-white hover:text-blue-600 font-bold py-3 px-8 rounded-lg transition duration-300">
                Send Emergency Email
            </a>
        </div>
    </div>
</div>


</section>


</main>


<?php include("footer.php"); ?>

<!-- Sticky Market Ticker Widget -->
<div class="fixed bottom-0 left-0 right-0 z-30 bg-dark-400 border-t border-gray-800">
    <div class="tradingview-widget-container">
        <div class="tradingview-widget-container__widget"></div>
        <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-ticker-tape.js" async>
        {
        "symbols": [
        {
            "title": "EUR/USD"
        },
        {
            "title": "BTC/USD"
        },
        {
            "title": "ETH/USD"
        }
        ],
        "colorTheme": "dark",
        "isTransparent": false,
        "displayMode": "adaptive",
        "locale": "en"
        }
        </script>
    </div>
</div>

<!-- Live Chat Button -->












     <style>
       .last-widget{
          position: sticky;
          z-index: 10;
          bottom: 0;
        }
   </style>


        <div class = "last-widget">
        <!-- TradingView Widget BEGIN -->
<div class="tradingview-widget-container" >
  <div class="tradingview-widget-container__widget"></div>

  <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-ticker-tape.js" async>
  {
  "symbols": [
  {
      "proName": "FX_IDC:EURUSD",
      "title": "EUR/USD"
  },
  {
      "proName": "BITSTAMP:BTCUSD",
      "title": "BTC/USD"
  },
  {
      "proName": "BITSTAMP:ETHUSD",
      "title": "ETH/USD"
  }
  ],
  "colorTheme": "dark",
  "isTransparent": false,
  "displayMode": "adaptive",
  "locale": "en"
}
  </script>
</div>


        <!-- GetButton.io widget -->
<!--<script type="text/javascript">-->
<!--    (function () {-->
<!--        var options = {-->
            <!--whatsapp: "1234567890", // WhatsApp number-->
            <!--call_to_action: "Message us", // Call to action-->
            <!--button_color: "#FF6550", // Color of button-->
            <!--position: "right", // Position may be 'right' or 'left'-->
<!--        };-->
<!--        var proto = 'https:', host = "getbutton.io", url = proto + '//static.' + host;-->
<!--        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';-->
<!--        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };-->
<!--        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);-->
<!--    })();-->
<!--</script>-->
<!-- Additional Scripts -->
<script>
    // Live Chat Function
    function openLiveChat(e) {
        e.preventDefault();
        console.log('Opening live chat...');
        // Implement your live chat functionality here
    }

    // Theme toggle functionality
    document.addEventListener('DOMContentLoaded', function() {
        // Initialize any custom components
        console.log('DOM loaded, initializing components...');
    });

    // Analytics (preserved from original)
    function bindGAEvents(eventCategory, callback, iter) {
        if (typeof iter === "undefined") { iter = 1; }
        if(window.dataLayer) {
            if (typeof callback === "function") {
                callback();
            }
        } else if(iter > 2 && typeof callback === "function") {
            callback();
        } else {
            setTimeout(function(){
                bindGAEvents(eventCategory, callback, iter + 1);
            }, 500);
        }
    }

    $(document).ready(function() {
        if('' == '1') {
            bindGAEvents('ex_new_user');
        }

        $(document).on('click', '.start-trading, .open-live-account, .open-demo-account', function (event) {
            var redirectLink = $(this).attr('href');
            bindGAEvents('ex_button', function(){
                window.location.href = redirectLink;
            });
            event.preventDefault();
        });
    });
</script>


</body>
</html>
