<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DelightX - Financial Dashboard</title>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <meta name="theme-color" content="#3b1e54">
     <!-- Google Fonts (Capriola, Montserrat, PT Sans, Righteous) -->
     <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=Capriola&family=Montserrat+Alternates&family=Montserrat:ital,wght@0,100..900;1,100..900&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Righteous&display=swap" rel="stylesheet">
     
    <style>
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Righteous', sans-serif; /* Updated to 'Righteous' */
    font-weight: 300; /* Reduced font weight globally */
}

:root {
    --primary-color: #3b1e54; /* Updated to #3b1e54 */
    --secondary-color: #6B2D90;
    --accent-color: #9B4ECA;
    --background-color: #F8F9FA;
    --card-background: #FFFFFF;
}

body {
    background-color: var(--background-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color); /* Updated to #3b1e54 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeOut 0.5s ease 2.5s forwards;
}

.splash-logo {
    font-size: 6rem;
    color: white;
    font-weight: 300; /* Reduced font weight */
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 2px;
    animation: fadeInUp 0.5s ease forwards,
               parallaxFloat 2s ease-in-out infinite,
               fadeOut 0.5s ease 2s forwards;
}

.watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0.2;
    pointer-events: none;
    z-index: 100;
}

.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease 3s forwards;
    perspective: 1000px;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color); /* Updated to #3b1e54 */
    transform-style: preserve-3d;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 300; /* Reduced font weight */
    transform: translateZ(50px);
}

.partnership-info {
    background: var(--primary-color); /* Updated to #3b1e54 */
    color: white;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    perspective: 1000px;
}

.stat-card {
    background: var(--card-background);
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.stat-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 300; /* Reduced font weight */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 500; /* Reduced font weight */
}

.date-info {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: var(--primary-color); /* Updated to #3b1e54 */
    color: white;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 900;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color); /* Updated to #3b1e54 */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.info-text {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

p {
    font-weight: 100 !important; /* Reduced font weight for <p> tags */
}

@keyframes parallaxFloat {
    0% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-20px) translateZ(50px); }
    100% { transform: translateY(0) translateZ(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeOut {
    from { opacity: 1; visibility: visible; }
    to { opacity: 0; visibility: hidden; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
        font-weight: 300; /* Reduced font weight */
    }

    .stat-card {
        padding: 1.5rem;
    }
    
    .splash-logo {
        font-size: 4rem;
        font-weight: 300; /* Reduced font weight */
    }
}

.partnership-share {
    background: var(--primary-color); /* Updated to #3b1e54 */
    color: white;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
}

.partnership-share h3 {
    color: white !important;
    font-size: 1.4rem;
    font-weight: 300; /* Reduced font weight */
    margin-bottom: 1rem;
}

.share-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.next-payment {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.share-amount {
    font-size: 2rem;
    font-weight: 500; /* Reduced font weight */
    color: #ffffff;
}

    </style>
</head>
<body>
    <div class="splash-screen">
        <div class="splash-logo">DelightX</div>
    </div>

    <div class="watermark">DelightX © 2025</div>

    <div class="dashboard">
        <div class="header">
            <h1>DelightX Financial Dashboard</h1>
            <p>Real-time financial insights and performance metrics</p>
        </div>

        <div class="partnership-info">
            <h2>Partnership Transparency</h2>
            <p>DelightX is proud to announce our strategic partnership with Imagvitie Company, sharing 10% of our profits in this collaborative venture. This dashboard represents our commitment to transparency and mutual growth.</p>
        </div>

        <div class="stats-container">
            <div class="stat-card">
                <h3><i class="fas fa-wallet"></i> Total Income</h3>
                <div id="totalIncome" class="stat-value">₹0</div>
                <div class="info-text">*Includes operational costs</div>
            </div>
            <div class="stat-card">
                <h3><i class="fas fa-chart-line"></i> Today's Income</h3>
                <div id="todayIncome" class="stat-value">₹0</div>
                <div id="todayDate" class="date-info"></div>
            </div>
            <div class="stat-card">
                <h3><i class="fas fa-money-bill-wave"></i> COD Payments</h3>
                <div id="codPayments" class="stat-value">₹0</div>
            </div>
            <div class="stat-card">
                <h3><i class="fas fa-credit-card"></i> Online Payments</h3>
                <div id="onlinePayments" class="stat-value">₹0</div>
            </div>
        </div>

        <div class="partnership-share">
            <h3><i class="fas fa-handshake"></i> Imagvitie Partnership Share</h3>
            <div class="share-details">
                <div>
                    <div class="share-amount" id="partnershipShare">₹0</div>
                    <div>Monthly Share (10%)</div>
                </div>
            </div>
            <div class="next-payment" id="nextPaymentDate">
                Next transfer scheduled for: Calculating...
            </div>
        </div>

        <div class="footer">
            <p>Designed and Developed by DelightX Team</p>
            <p>A collaborative project with Imagvitie Company</p>
        </div>
    </div>
