<!-- MemCached Loaded-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Domain TechMadly.com Is For Sale</title>
    <link rel="icon" type="image/x-icon" href="/favicon.ico">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap" rel="stylesheet">
    <style>
		
		p{
			margin: 5px;
		}
        /* Universal box-sizing for consistent layout */
        html, body, * {
            box-sizing: border-box;
        }
		a,a:visited {
		  color: floralwhite;
		  text-decoration: none;
		}
        body {
            font-family: 'Poppins', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f0f2f5;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #E1AEEE;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2000 1500'%3E%3Cdefs%3E%3CradialGradient id='a' gradientUnits='objectBoundingBox'%3E%3Cstop offset='0' stop-color='%23FFFFCF'/%3E%3Cstop offset='1' stop-color='%23E1AEEE'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='0' y1='750' x2='1550' y2='750'%3E%3Cstop offset='0' stop-color='%23f0d7df'/%3E%3Cstop offset='1' stop-color='%23E1AEEE'/%3E%3C/linearGradient%3E%3Cpath id='s' fill='url(%23b)' d='M1549.2 51.6c-5.4 99.1-20.2 197.6-44.2 293.6c-24.1 96-57.4 189.4-99.3 278.6c-41.9 89.2-92.4 174.1-150.3 253.3c-58 79.2-123.4 152.6-195.1 219c-71.7 66.4-149.6 125.8-232.2 177.2c-82.7 51.4-170.1 94.7-260.7 129.1c-90.6 34.4-184.4 60-279.5 76.3C192.6 1495 96.1 1502 0 1500c96.1-2.1 191.8-13.3 285.4-33.6c93.6-20.2 185-49.5 272.5-87.2c87.6-37.7 171.3-83.8 249.6-137.3c78.4-53.5 151.5-114.5 217.9-181.7c66.5-67.2 126.4-140.7 178.6-218.9c52.3-78.3 96.9-161.4 133-247.9c36.1-86.5 63.8-176.2 82.6-267.6c18.8-91.4 28.6-184.4 29.6-277.4c0.3-27.6 23.2-48.7 50.8-48.4s49.5 21.8 49.2 49.5c0 0.7 0 1.3-0.1 2L1549.2 51.6z'/%3E%3Cg id='g'%3E%3Cuse href='%23s' transform='scale(0.12) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.2) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.25) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(0.3) rotate(-20)'/%3E%3Cuse href='%23s' transform='scale(0.4) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(0.5) rotate(20)'/%3E%3Cuse href='%23s' transform='scale(0.6) rotate(60)'/%3E%3Cuse href='%23s' transform='scale(0.7) rotate(10)'/%3E%3Cuse href='%23s' transform='scale(0.835) rotate(-40)'/%3E%3Cuse href='%23s' transform='scale(0.9) rotate(40)'/%3E%3Cuse href='%23s' transform='scale(1.05) rotate(25)'/%3E%3Cuse href='%23s' transform='scale(1.2) rotate(8)'/%3E%3Cuse href='%23s' transform='scale(1.333) rotate(-60)'/%3E%3Cuse href='%23s' transform='scale(1.45) rotate(-30)'/%3E%3Cuse href='%23s' transform='scale(1.6) rotate(10)'/%3E%3C/g%3E%3C/defs%3E%3Cg %3E%3Cg transform=''%3E%3Ccircle fill='url(%23a)' r='3000'/%3E%3Cg opacity='0.5'%3E%3Ccircle fill='url(%23a)' r='2000'/%3E%3Ccircle fill='url(%23a)' r='1800'/%3E%3Ccircle fill='url(%23a)' r='1700'/%3E%3Ccircle fill='url(%23a)' r='1651'/%3E%3Ccircle fill='url(%23a)' r='1450'/%3E%3Ccircle fill='url(%23a)' r='1250'/%3E%3Ccircle fill='url(%23a)' r='1175'/%3E%3Ccircle fill='url(%23a)' r='900'/%3E%3Ccircle fill='url(%23a)' r='750'/%3E%3Ccircle fill='url(%23a)' r='500'/%3E%3Ccircle fill='url(%23a)' r='380'/%3E%3Ccircle fill='url(%23a)' r='250'/%3E%3C/g%3E%3Cg transform=''%3E%3Cuse href='%23g' transform='rotate(10)'/%3E%3Cuse href='%23g' transform='rotate(120)'/%3E%3Cuse href='%23g' transform='rotate(240)'/%3E%3C/g%3E%3Ccircle fill-opacity='0.1' fill='url(%23a)' r='3000'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            background-attachment: fixed;
            background-size: cover;
            position: relative;
        }

        .container {
            display: flex;
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            overflow: hidden;
            max-width: 1400px;
            width: 92%;
            margin: 20px;
        }

        .left-section {
            flex: 2;
            padding: 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            color: #333;
            background: linear-gradient(to right, #ffffff, #f7f7f7);
			max-width: 950px;
			word-wrap: break-word;
        }

        .left-section h1 {
            font-size: 3em;
            margin-bottom: 10px;
            color: #333;
            line-height: 1.2;
        }

        .left-section .domain-name {
            font-size: 3.5em;
            color: #ff4500; /* Orange-red color for the domain */
            font-weight: 700;
            margin-bottom: 0px;
        }

        .left-section p {
            font-size: 1.1em;
            line-height: 1.6;
            color: #666;
        }

        .offer-details {
            display: flex;
            gap: 40px;
            margin-top: 30px;
        }

        .offer-item {
            background-color: #f8f9fa;
            padding: 20px 30px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .offer-item .label {
            font-size: 0.9em;
            color: #888;
            margin-bottom: 5px;
        }

        .offer-item .value {
            font-size: 1.8em;
            font-weight: 600;
            color: #333;
        }

        .offer-item.auction .value {
            color: #1a73e8; /* A blue color for the auction timer */
        }

        /* Styles for domain metrics section */
        .domain-metrics {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px; /* Reduced gap between metric cards */
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #eee;
        }

        .metric-card {
            background-color: #fff;
            padding: 15px; /* Reduced padding */
            border-radius: 10px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            text-align: center;
            width: 170px; /* Reduced fixed width */
            display: block;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        /* Styles for the new circular chart */
        .circular-chart {
            display: block;
            margin: 10px auto;
            max-width: 80%;
        }

        .circle-bg {
            fill: none;
            stroke: #eee;
            stroke-width: 3.8; /* Adjusted stroke width */
        }

        .circle {
            fill: none;
            stroke-width: 2.8; /* Adjusted stroke width */
            stroke-linecap: round;
            animation: progress 1s ease-out forwards;
        }

        @keyframes progress {
            0% {
                stroke-dasharray: 0 100;
            }
        }

        .circular-chart.orange .circle {
            stroke: #ff9f00;
        }

        .circular-chart.green .circle {
            stroke: #4CC790;
        }

        .circular-chart.blue .circle {
            stroke: #3c9ee5;
        }

        .circular-chart.yellow .circle { /* Added yellow for Trust Flow */
            stroke: #FFD700;
        }

        .percentage {
            fill: #666;
            font-family: 'Poppins', sans-serif; /* Use Poppins for consistency */
            font-size: 0.5em; /* Will be scaled by SVG's font-size */
            text-anchor: middle; 
        }

        .right-section {
            flex: 1;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            padding: 50px;
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-top-right-radius: 15px;
            border-bottom-right-radius: 15px;
            position: relative;
        }

        .right-section::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 100px;
            height: 100px;
            background: rgba(255, 255, 255, 0.1);
            border-bottom-left-radius: 100%;
            transform: translate(50%, -50%) rotate(45deg);
        }

        .right-section h2 {
            font-size: 1.8em;
            margin-bottom: 20px;
            text-align: center;
            font-weight: 600;
        }

        .right-section p {
            font-size: 0.9em;
            text-align: center;
            margin-bottom: 30px;
            color: #e0e0e0;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-size: 0.9em;
            color: #e0e0e0;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            background-color: rgba(255, 255, 255, 0.15);
            color: #fff;
            font-size: 1em;
            outline: none;
            transition: background-color 0.3s ease;
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

        .form-group input:focus,
        .form-group textarea:focus {
            background-color: rgba(255, 255, 255, 0.25);
        }

        .submit-button {
            width: 100%;
            padding: 15px;
            background: linear-gradient(to right, #ff7e5f, #feb47b);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 1.1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .submit-button:hover {
            background: linear-gradient(to right, #feb47b, #ff7e5f);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        .payment-logos {
            display: flex;
            flex-direction: column; /* Changed to column for better stacking */
            align-items: center; /* Center items in column */
            gap: 1px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .payment-logos img {
            height: 80px; /* Adjust as needed */
            filter: none; /* Removed grayscale and brightness for the new image */
        }

        .note-text {
            font-size: 0.9em;
            text-align: center;
            color: #e0e0e0;
            margin-top: 10px; /* Added margin for spacing */
        }

        /* Popup Styles (for form submission) */
        .popup {
            display: none;
            position: fixed;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .popup-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            max-width: 500px;
            width: 90%;
            transform: translateY(-50px);
            opacity: 0;
            animation: fadeInTop 0.4s forwards ease-out;
        }

        @keyframes fadeInTop {
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .popup-content h3 {
            color: #4CAF50;
            margin-bottom: 15px;
            font-size: 1.8em;
        }

        .popup-content p {
            font-size: 1.1em;
            color: #555;
            line-height: 1.5;
            margin-bottom: 25px;
        }

        .popup-content button {
            background-color: #4CAF50;
            color: white;
            padding: 12px 25px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.3s ease;
        }

        .popup-content button:hover {
            background-color: #45a049;
        }

        .popup.error .popup-content h3 {
            color: #f44336;
        }

        .popup.error .popup-content button {
            background-color: #f44336;
        }

        .popup.error .popup-content button:hover {
            background-color: #da190b;
        }

        /* FAQ Lightbox Styles */
        .faq-lightbox {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
            z-index: 1001; /* Above other popups */
            justify-content: center;
            align-items: center;
            overflow-y: auto; /* Allow scrolling for long FAQ content */
            padding: 20px;
        }
		.faq-lightbox svg{width:15px}
        .faq-lightbox-content {
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            max-width: 800px; /* Max width for the FAQ content */
            width: 95%;
            position: relative; /* For close button positioning */
            padding: 30px;
            animation: fadeInScale 0.3s ease-out forwards;
        }

        @keyframes fadeInScale {
            0% {
                opacity: 0;
                transform: scale(0.9);
            }
            100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .faq-close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 2em;
            color: #666;
            cursor: pointer;
            line-height: 1;
            padding: 5px 10px;
            border-radius: 25%;
            transition: background-color 0.2s ease;
			background-color: rgb(240 248 255 / 57%);
        }

        .faq-close-button:hover {
            background-color: #f0f0f0;
        }

        .faq-header-bg {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Purple gradient */
            padding: 30px;
            text-align: center;
            color: #fff;
            border-radius: 10px; /* Rounded corners for the header */
            margin-bottom: 20px;
        }

        .faq-header-bg h2 {
            font-size: 2.5em;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .faq-header-bg p {
            font-size: 1.1em;
            opacity: 0.9;
        }

        .faq-item {
            border-bottom: 1px solid #e5e7eb; /* Light gray border */
            padding-bottom: 10px;
            margin-bottom: 10px;
        }
        .faq-item:last-child {
            border-bottom: none;
        }
        .accordion-header {
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 0;
        }
        .accordion-header h3 {
            font-size: 1.2em;
            font-weight: 600;
            color: #333;
            margin: 0; /* Reset default margin */
        }
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out, padding-bottom 0.3s ease-out;
            padding-bottom: 0;
            color: #555;
            line-height: 1.6;
        }
        .accordion-content.active {
            max-height: 500px; /* Adjust as needed for content, a large enough value */
            padding-bottom: 1rem;
        }
        .rotate-icon {
            transition: transform 0.3s ease-out;
            color: #6a11cb; /* Purple color for icon */
        }
        .rotate-icon.active {
            transform: rotate(180deg);
        }

        @media (max-width: 992px) {
            .container {
                flex-direction: column;
            }

            .left-section, .right-section {
                padding: 40px;
            }

            .right-section {
                border-top-right-radius: 0;
                border-bottom-left-radius: 15px;
            }

            .left-section h1 {
                font-size: 2.5em;
            }

            .left-section .domain-name {
                font-size: 3em;
            }
            .faq-lightbox-content {
                padding: 20px;
            }
            .faq-header-bg h2 {
                font-size: 2em;
            }
        }

        @media (max-width: 768px) {
            body { overflow: auto; } /* Changed to auto to allow scrolling */
            .left-section {
                padding: 30px;
                text-align: center;
            }
            .left-section h1 {
                font-size: 2em;
            }
            .left-section .domain-name {
                font-size: 2.5em;
            }
            .offer-details {
                flex-direction: column;
                gap: 20px;
            }
            .offer-item {
                max-width: 100%;
            }
            .domain-metrics {
                justify-content: center; /* Ensure metrics are centered on smaller screens */
            }
            .metric-card {
                width: calc(50% - 20px); /* Two cards per row on tablets */
                padding: 12px; /* Adjusted padding */
            }
            .circular-chart {
                max-width: 70%; /* Adjusted for tablet view */
            }
            .percentage {
                font-size: 0.6em; /* Adjusted font size for tablet */
            }
            .faq-lightbox-content {
                margin: 10px; /* Add some margin on very small screens */
            }
        }
        @media (max-width: 576px) {
            body { overflow: auto; } /* Changed to auto to allow scrolling */
            .left-section, .right-section {
                padding: 20px;
            }
            .left-section {
                text-align: center;
            }
            .left-section h1 {
                font-size: 1.8em;
            }
            .left-section .domain-name {
                font-size: 2em;
            }
            .right-section h2 {
                font-size: 1.5em;
            }
            .form-group input, .form-group textarea {
                max-width: 100%;
            }
            .metric-card {
                width: calc(50% - 7.5px); /* Adjusted to correctly account for 15px gap for two columns */
            }
            .circular-chart {
                max-width: 80%; /* Adjusted for mobile view */
            }
            .percentage {
                font-size: 0.5em; /* Adjusted font size for mobile */
            }
            .faq-header-bg h2 {
                font-size: 1.8em;
            }
            .faq-header-bg p {
                font-size: 1em;
            }
            .accordion-header h3 {
                font-size: 1.1em;
            }
        }
        /* New media query for smaller domain name on very small screens */
        @media (max-width: 480px) {
            .left-section .domain-name {
                font-size: 1.8em; /* Smaller font size for very long domain names on small screens */
            }
        }
    </style>
</head>
<body>

    <div class="container">
        <div class="left-section">
            <h1>Congratulations!</h1>
            <div class="domain-name">TechMadly.com</div>
            <h1>is for sale</h1>
            <p>Domains, Websites, Email, Hosting, Security & More. Everything You Need To Succeed Online.</p>
			<p>Domain Keywords: <a style="display:inline-block;border: 1px solid #4448e6;border-radius: 5px;padding: 0 5px;background-color: #8cb7dc;">Tech, Madly</a></p>
            <div class="offer-details">
                <div class="offer-item">
                    <div class="label">Current offer:</div>
                    <div class="value">$550</div>
                </div>
                <div class="offer-item auction">
                    <div class="label">Auction will be end in:</div>
                    <div class="value" id="auction-countdown">32:49:38</div>
                </div>
            </div>

            <div class="domain-metrics">
                <div class="metric-card">
                    <svg viewBox="0 0 36 36" class="circular-chart orange">
                        <path class="circle-bg"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <path class="circle" id="dr-circle"
                            stroke-dasharray="63, 100"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <text x="18" y="20.35" class="percentage" id="dr-percentage">63</text>
                    </svg>
                    <div class="metric-label">Domain Rating</div>
                </div>
                <div class="metric-card">
                    <svg viewBox="0 0 36 36" class="circular-chart green">
                        <path class="circle-bg"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <path class="circle" id="da-circle"
                            stroke-dasharray="59, 100"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <text x="18" y="20.35" class="percentage" id="da-percentage">59</text>
                    </svg>
                    <div class="metric-label">Domain Authority</div>
                </div>
                <div class="metric-card">
                    <svg viewBox="0 0 36 36" class="circular-chart blue">
                        <path class="circle-bg"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <path class="circle" id="pa-circle"
                            stroke-dasharray="44, 100"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <text x="18" y="20.35" class="percentage" id="pa-percentage">44</text>
                    </svg>
                    <div class="metric-label">Page Authority</div>
                </div>
                <div class="metric-card">
                    <svg viewBox="0 0 36 36" class="circular-chart yellow">
                        <path class="circle-bg"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <path class="circle" id="tf-circle"
                            stroke-dasharray="80, 100"
                            d="M18 2.0845
                            a 15.9155 15.9155 0 0 1 0 31.831
                            a 15.9155 15.9155 0 0 1 0 -31.831"
                        />
                        <text x="18" y="20.35" class="percentage" id="tf-percentage">80</text>
                    </svg>
                    <div class="metric-label">Trust Flow</div>
                </div>
            </div>
        </div>

        <div class="right-section">
            <h2>Interested in domain?</h2>
            <p>Please fill out the form below so that the seller receive your offer.</p>

            <form id="offerForm">
                <div class="form-group">
                    <label for="name">Name</label>
                    <input type="text" id="name" name="name" placeholder="Enter your name" required>
                </div>
                <div class="form-group">
                    <label for="email">Email</label>
                    <input type="email" id="email" name="email" placeholder="Enter your email" required>
                </div>
                <div class="form-group">
                    <label for="proposal">Proposal</label>
                    <textarea id="proposal" name="proposal" placeholder="Enter your offer" rows="4" required></textarea>
                </div>
                <input type="hidden" name="domain" value="TechMadly.com">
                <button type="submit" class="submit-button">Send My Offer</button>
            </form>

            <div class="payment-logos">
                <img src="/images/domain-transfer.png" alt="Domain Transfer" style="filter:none;height:80px"><br/>
                <p style="gap:0px;margin-bottom:0px;font-size:11.9px" class="note-text">The domain transfer will be processed and protected through <a href="https://www.godaddy.com/en/help/buying-domains-through-godaddy-auctions-890" target="_blank" rel="noopener noreferrer"><strong>GoDaddy&nbsp;Auctions</strong></a> after the transfer offer has been agreed upon. <br><a id="readFaq" href="#" class="faq-link" style="color:floralwhite;font-weight:bold">[Frequently Askes Questions]</a></p>              
            </div>
        </div>
    </div>

    <!-- Popup for form submission -->
    <div id="popup" class="popup">
        <div class="popup-content">
            <h3 id="popup-title"></h3>
            <p id="popup-message"></p>
            <button id="popup-close">Close</button>
        </div>
    </div>

    <!-- FAQ Lightbox -->
    <div id="faq-lightbox" class="faq-lightbox">
        <div class="faq-lightbox-content">
            <button class="faq-close-button" id="faq-close-button">&times;</button>
            <div class="faq-header-bg">
                <h2>Frequently Asked Questions</h2>
                <p>Everything you need to know about expired domains and our services.</p>
            </div>

            <div class="p-8">
                <div class="space-y-6">
                    <!-- FAQ Item 1 -->
                    <div class="faq-item">
                        <div class="accordion-header" onclick="toggleAccordion('faq1')">
                            <h3>What are expired domains?</h3>
                            <svg class="w-6 h-6 rotate-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
                        </div>
                        <div id="faq1" class="accordion-content">
                            <p>Expired domains are domain names that were previously registered but were not renewed by their owners. Once a domain expires, it goes through a grace period and then becomes available for re-registration by the public. We acquire these domains and make them available for sale.</p>
                        </div>
                    </div>

                    <!-- FAQ Item 2 -->
                    <div class="faq-item">
                        <div class="accordion-header" onclick="toggleAccordion('faq2')">
                            <h3>Why should I buy an expired domain?</h3>
                            <svg class="w-6 h-6 rotate-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
                        </div>
                        <div id="faq2" class="accordion-content">
                            <p>Expired domains often come with pre-existing advantages, such as established age (domain authority) and a history of backlinks. These factors can significantly boost your website's SEO, helping it rank higher and faster on search engines compared to a brand new domain. They can also carry existing traffic.</p>
                        </div>
                    </div>

                    <!-- FAQ Item 3 -->
                    <div class="faq-item">
                        <div class="accordion-header" onclick="toggleAccordion('faq3')">
                            <h3>How do you ensure the quality of expired domains?</h3>
                            <svg class="w-6 h-6 rotate-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
                        </div>
                        <div id="faq3" class="accordion-content">
                            <p>We meticulously analyze each expired domain for its backlink profile, domain authority, and historical usage to ensure it has a clean and valuable past. We prioritize domains with strong, relevant backlinks and a good age to provide the best possible assets to our clients.</p>
                        </div>
                    </div>

                    <!-- FAQ Item 4 -->
                    <div class="faq-item">
                        <div class="accordion-header" onclick="toggleAccordion('faq4')">
                            <h3>Can I see the metrics (DA, DR, backlinks) for a domain before buying?</h3>
                            <svg class="w-6 h-6 rotate-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
                        </div>
                        <div id="faq4" class="accordion-content">
                            <p>Absolutely! For each domain listed, we provide key metrics such as Domain Rating (DR), Domain Authority (DA), Page Authority (PA), and a summary of its backlink profile. This information is crucial for you to make an informed decision and understand the potential SEO benefits.</p>
                        </div>
                    </div>

                    <!-- FAQ Item 5 -->
                    <div class="faq-item">
                        <div class="accordion-header" onclick="toggleAccordion('faq5')">
                            <h3>What is the process for purchasing a domain?</h3>
                            <svg class="w-6 h-6 rotate-icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
                        </div>
                        <div id="faq5" class="accordion-content">
                            <p>Once an agreement is reached, the domain will be listed and transferred securely through GoDaddy Auctions. This platform ensures a safe and reliable transaction process, providing you with peace of mind regarding both security and payment. Please note that we <strong>do not</strong> accept direct payments for domain transfers outside of GoDaddy Auctions to ensure the highest level of security and transparency for all transactions.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script>
        $(document).ready(function() {
            // --- Countdown Timer Logic ---
            const auctionCountdownElement = document.getElementById('auction-countdown');
            const initialTimeStr = auctionCountdownElement.textContent; // Get the initial time from PHP

            // Function to parse HH:MM:SS into total seconds
            function parseTimeToSeconds(timeStr) {
                const parts = timeStr.split(':').map(Number);
                if (parts.length === 3) {
                    return parts[0] * 3600 + parts[1] * 60 + parts[2];
                }
                return 0; // Default to 0 if format is incorrect
            }

            // Function to format total seconds back to HH:MM:SS
            function formatSecondsToTime(totalSeconds) {
                const hours = Math.floor(totalSeconds / 3600);
                const minutes = Math.floor((totalSeconds % 3600) / 60);
                const seconds = totalSeconds % 60;

                // Pad with leading zeros if necessary
                const pad = (num) => num < 10 ? '0' + num : num;

                return `${pad(hours)}:${pad(minutes)}:${pad(seconds)}`;
            }

            let totalSecondsRemaining = parseTimeToSeconds(initialTimeStr);

            function updateCountdown() {
                if (totalSecondsRemaining <= 0) {
                    auctionCountdownElement.textContent = 'Auction Ended!';
                    clearInterval(countdownInterval); // Stop the timer
                    return;
                }

                auctionCountdownElement.textContent = formatSecondsToTime(totalSecondsRemaining);
                totalSecondsRemaining--;
            }

            // Initial call to display the time immediately
            updateCountdown();

            // Update the countdown every second
            const countdownInterval = setInterval(updateCountdown, 1000);

            // --- Domain Metrics Number Animation Logic ---
            const percentageTexts = document.querySelectorAll('.circular-chart .percentage');

            percentageTexts.forEach(textElement => {
                // Get the target value from the stroke-dasharray of the sibling circle path
                const circlePath = textElement.previousElementSibling; // This gets the <path class="circle">
                const strokeDasharray = circlePath.getAttribute('stroke-dasharray');
                const targetValue = parseInt(strokeDasharray.split(',')[0]); // Get the first number before the comma

                let currentValue = 0;
                const duration = 500; // 0.5 seconds
                const startTime = performance.now();

                function animateNumber(currentTime) {
                    const elapsedTime = currentTime - startTime;
                    // Calculate progress (0 to 1), capping at 1
                    const progress = Math.min(elapsedTime / duration, 1); 
                    // Calculate the animated value, rounding down to integer
                    const animatedValue = Math.floor(progress * targetValue);
                    textElement.textContent = animatedValue;

                    // Continue animation if not yet complete
                    if (progress < 1) {
                        requestAnimationFrame(animateNumber);
                    } else {
                        // Ensure the final value is exactly the target value
                        textElement.textContent = targetValue; 
                    }
                }
                // Start the number animation
                requestAnimationFrame(animateNumber);
            });

            // --- Form Submission Popup Logic ---
            $('#offerForm').on('submit', function(e) {
                e.preventDefault(); // Prevent default form submission

                const $submitButton = $(this).find('button[type="submit"]');
                $submitButton.prop('disabled', true).text('Sending...');

                $.ajax({
                    url: '/sendMail.php', // AJAX POST target
                    type: 'POST',
                    data: $(this).serialize(), // Serialize form data
                    dataType: 'json',
                    success: function(response) {
                        $submitButton.prop('disabled', false).text('Send My Offer');
                        const $popup = $('#popup');
                        const $popupTitle = $('#popup-title');
                        const $popupMessage = $('#popup-message');

                        if (response.success) {
                            $popup.removeClass('error').addClass('success');
                            $popupTitle.text('Thank You!');
                            $popupMessage.text('Thank you for your interest in this domain. We will contact you as soon as possible.');
                            $('#offerForm')[0].reset(); // Clear the form
                        } else {
                            $popup.removeClass('success').addClass('error');
                            $popupTitle.text('Error!');
                            $popupMessage.text(response.message || 'An unexpected error occurred. Please try again.');
                        }
                        $popup.css('display', 'flex'); // Show the popup
                    },
                    error: function(xhr, status, error) {
                        $submitButton.prop('disabled', false).text('Send My Offer');
                        const $popup = $('#popup');
                        const $popupTitle = $('#popup-title');
                        const $popupMessage = $('#popup-message');

                        $popup.removeClass('success').addClass('error');
                        $popupTitle.text('Error!');
                        $popupMessage.text('An error occurred while sending your offer. Please try again later.');
                        console.error("AJAX Error:", status, error, xhr.responseText);
                        $popup.css('display', 'flex'); // Show the popup
                    }
                });
            });

            // Close form submission popup
            $('#popup-close').on('click', function() {
                $('#popup').css('display', 'none');
            });

            // Close form submission popup when clicking outside the content
            $('#popup').on('click', function(e) {
                if ($(e.target).is('#popup')) {
                    $(this).css('display', 'none');
                }
            });

            // --- FAQ Lightbox Logic ---
            const faqLightbox = $('#faq-lightbox');
            const readFaqLink = $('#readFaq');
            const faqCloseButton = $('#faq-close-button');

            // Show FAQ lightbox
            readFaqLink.on('click', function(e) {
                e.preventDefault(); // Prevent default link behavior
                faqLightbox.css('display', 'flex');
            });

            // Hide FAQ lightbox when close button is clicked
            faqCloseButton.on('click', function() {
                faqLightbox.css('display', 'none');
            });

            // Hide FAQ lightbox when clicking outside the content
            faqLightbox.on('click', function(e) {
                if ($(e.target).is(faqLightbox)) {
                    faqLightbox.css('display', 'none');
                }
            });

            // --- Accordion Logic for FAQ ---
            window.toggleAccordion = function(id) { // Make it global for onclick attribute
                const content = document.getElementById(id);
                const header = content.previousElementSibling;
                const icon = header.querySelector('.rotate-icon');

                if (content.classList.contains('active')) {
                    content.classList.remove('active');
                    icon.classList.remove('active');
                } else {
                    // Close all other open accordions
                    document.querySelectorAll('.accordion-content.active').forEach(item => {
                        item.classList.remove('active');
                        item.previousElementSibling.querySelector('.rotate-icon').classList.remove('active');
                    });

                    content.classList.add('active');
                    icon.classList.add('active');
                }
            };
        });
    </script>
</body>
</html>
