/* Modern Home Page Styles with Dark Mode Support */

:root {
    /* Color Palette - Light Mode (Default) */
    --primary-rgb: 105, 108, 255;
    --body-bg: #f9faff;
    --card-bg: #ffffff;
    --text-color: #566a7f;
    --heading-color: #384551;
    --text-muted: #a1acb8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);

    /* Shadows */
    --card-shadow: 0 10px 40px -10px rgba(0, 64, 128, 0.1);
    --hover-shadow: 0 20px 50px -10px rgba(0, 64, 128, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #696cff 0%, #8592ff 100%);
    --gradient-hero: linear-gradient(120deg, #f0f4ff 0%, #eef2ff 100%);

    /* Decorative Elements */
    --hero-blob-color: rgba(105, 108, 255, 0.1);
    --icon-bg: rgba(105, 108, 255, 0.1);
}

[data-bs-theme="dark"] {
    /* Color Palette - Dark Mode */
    --body-bg: #0b0c15; /* Deep Space */
    --card-bg: #151725; /* Dark Gray Cards */
    --text-color: #a3a4cc; /* Cool Gray Text */
    --heading-color: #e1e3e6; /* Off-white Headings */
    --text-muted: #6c6d7f;
    --glass-bg: rgba(21, 23, 37, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);

    /* Shadows - Glows for Dark Mode */
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --hover-shadow: 0 20px 50px -10px rgba(105, 108, 255, 0.15); /* Purple Glow */

    /* Gradients */
    --gradient-hero: linear-gradient(120deg, #0f111a 0%, #151725 100%);

    /* Decorative Elements */
    --hero-blob-color: rgba(105, 108, 255, 0.05);
}

body {
    background-color: var(--body-bg);
    color: var(--text-color);
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6,
.text-heading {
    color: var(--heading-color) !important;
}

.text-body {
    color: var(--text-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Hero Section */
.landing-hero {
    position: relative;
    background: var(--gradient-hero);
    padding: 100px 0 80px;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    margin-bottom: 3rem;
    transition: background 0.3s ease;
}

.landing-hero::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: var(--hero-blob-color);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: pulse-glow 5s infinite alternate;
}

.hero-title {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

.hero-img-container img {
    filter: drop-shadow(0 20px 40px rgba(105, 108, 255, 0.25));
    animation: float 6s ease-in-out infinite;
}

/* Cards */
.utility-card,
.how-card,
.feature-box,
.use-case-btn {
    background: var(--card-bg);
    border: 0;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2.5rem 1.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.utility-card:hover,
.how-card:hover,
.feature-box:hover,
.use-case-btn:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

/* Specific Card Styles */
.utility-card .icon-wrapper {
    background: var(--icon-bg);
    color: #696cff;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Stats Bar */
.stats-bar {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 1rem;
    box-shadow: var(--card-shadow);
    margin: 3rem auto;
    position: relative;
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease;
}

.stat-number {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Section Header */
.section-header h3 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    color: var(--heading-color);
}

.section-header h3::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #696cff;
    margin: 10px auto 30px;
    border-radius: 2px;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: 0;
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(105, 108, 255, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(105, 108, 255, 0.5);
    background: var(--gradient-primary);
}

/* Utils */
.feature-box {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.feature-box i {
    font-size: 1.5rem;
    color: #696cff;
    background: var(--icon-bg);
    padding: 15px;
    border-radius: 12px;
    margin-right: 1rem;
}

/* Background Utility Overrides for Dark Mode */
[data-bs-theme="dark"] .bg-body {
    background-color: var(--body-bg) !important;
}

[data-bs-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #1a1c2e !important; /* Slightly lighter than card bg */
}

[data-bs-theme="dark"] .text-dark {
    color: var(--heading-color) !important;
}

/* Accordion Dark Mode */
[data-bs-theme="dark"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--heading-color);
}

[data-bs-theme="dark"] .accordion-item {
    background-color: var(--card-bg);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(105, 108, 255, 0.1);
    color: #696cff;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .landing-hero {
        padding: 60px 0;
        text-align: center;
    }
    .section-header h3::after {
        margin: 10px auto;
    }
    .col-lg-6.text-center.mb-5.mb-lg-0 {
        margin-bottom: 2rem !important;
    }
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top i {
    color: #fff;
    font-size: 1.25rem;
}
