/* Override main-content padding for index page to remove gap */
/* Note: We also handled this in header.php with $is_landing_page flag, but keeping this as backup */
.main-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    font-size: 0 !important; /* Eliminate whitespace gap */
    line-height: 0 !important;
}

/* Restore font properties for alerts/flash messages */
.main-content .alert {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

/* Reset font/line-height for all content sections to fix visibility issues */
.hero-wrapper, 
.stats-strip, 
.feature-section-3d, 
.payouts-section, 
.faq-section, 
.cta-3d {
    font-size: 1rem;
    line-height: 1.6;
}

:root {
    --primary-color: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-main: #1e293b;
    --text-light: #64748b;
    --gradient-main: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --gradient-3d: linear-gradient(145deg, #ffffff, #e6e6e6);
    --shadow-3d: 20px 20px 60px #d1d5db, -20px -20px 60px #ffffff;
    --surface-color: #ffffff;
}

body {
    background-color: #f8fafc;
    overflow-x: hidden;
    font-family: 'Hind Siliguri', sans-serif;
}

/* 3D Container & Perspective */
.perspective-container {
    perspective: 1000px;
}

/* Full Display Hero Section */
.hero-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--dark-bg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0; /* Removed padding to fix gap */
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 70, 229, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.4) 0%, transparent 50%);
    filter: blur(60px);
    z-index: 1;
    animation: bgPulse 10s infinite alternate;
}

@keyframes bgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content-3d {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 5%; /* Fluid padding */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

/* 3D Text Effect */
.title-3d {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(79, 70, 229, 0.5));
    margin-bottom: 30px;
    transform: translateZ(50px);
}

.subtitle-3d {
    font-size: 1.8rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 700px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 3D Floating Card */
.hero-card-3d {
    width: 100%;
    max-width: 600px;
    height: 650px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 
        -20px 20px 50px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
    margin-top: 50px;
}

.hero-card-3d:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.card-content-layer {
    transform: translateZ(60px);
    padding: 40px;
    color: white;
    text-align: center;
}

.floating-coin {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, #ffd700, #b8860b);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: floatCoin 4s ease-in-out infinite;
    z-index: 20;
}

.coin-1 { top: -50px; right: -50px; animation-delay: 0s; }
.coin-2 { bottom: 50px; left: -50px; width: 70px; height: 70px; animation-delay: 2s; }

@keyframes floatCoin {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

@keyframes floatAppBtn {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Full Width Stats Section */
.stats-strip {
    background: var(--surface-color);
    padding: 80px 0;
    position: relative;
    z-index: 5;
    margin-top: -80px;
    border-radius: 60px 60px 0 0;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.1);
}

.stat-box-3d {
    background: #ffffff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 
        10px 10px 30px #d1d5db,
        -10px -10px 30px #ffffff;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
    height: 100%;
}

.stat-box-3d:hover {
    transform: translateY(-10px);
    box-shadow: 
        15px 15px 40px #d1d5db,
        -15px -15px 40px #ffffff;
}

.stat-icon-3d {
    font-size: 3.5rem;
    color: var(--primary-color); /* Solid color for guaranteed visibility */
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 5px rgba(79, 70, 229, 0.3));
    display: inline-block;
    line-height: 1;
    transition: all 0.3s ease;
}

.stat-box-3d:hover .stat-icon-3d {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

/* Feature 3D Cards */
.feature-section-3d {
    padding: 120px 0;
    background: #f1f5f9;
}

.card-3d-wrap {
    perspective: 1500px;
    height: 400px;
    margin-bottom: 30px;
}

.card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-radius: 30px;
}

.card-3d-wrap:hover .card-3d-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.card-front {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
}

.card-back {
    background: var(--gradient-main);
    color: white;
    transform: rotateY(180deg);
}

.card-back-primary { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); }
.card-back-success { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.card-back-warning { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
.card-back-info { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); }

/* Recent Payouts Table Section */
.payouts-section {
    padding: 100px 0;
    background: white;
}

.glass-table-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    padding: 20px;
    overflow: hidden;
    border: 1px solid #eee;
}

.custom-table thead th {
    background: #f8fafc;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px;
    border-bottom: 2px solid #eee;
}

.custom-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: #f8fafc;
}

.accordion-3d .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 15px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s;
}

.accordion-3d .accordion-item:hover {
    transform: translateX(5px);
}

.accordion-3d .accordion-button {
    background: white;
    font-weight: 600;
    padding: 20px;
    color: var(--text-main);
}

.accordion-3d .accordion-button:not(.collapsed) {
    background: var(--gradient-main);
    color: white;
    box-shadow: none;
}

.accordion-3d .accordion-button::after {
    transition: all 0.3s;
}

.accordion-3d .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

/* Call to Action 3D */
.cta-3d {
    background: var(--dark-bg);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.cta-btn-3d {
    background: var(--gradient-main);
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ec4899 0%, #4f46e5 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cta-btn-3d:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.6);
    color: white;
}

.cta-btn-3d:hover::before {
    opacity: 1;
}

@media (max-width: 991px) {
    .hero-wrapper {
        padding-top: 100px;
        height: auto;
        padding-bottom: 50px;
    }
    .hero-content-3d {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }
    .title-3d {
        font-size: 3rem;
    }
    .hero-card-3d {
        margin-top: 50px;
        transform: rotateY(0) rotateX(0);
        height: auto;
        min-height: 450px;
    }
    .stats-strip {
        margin-top: 0;
        border-radius: 0;
    }
}
