:root {
    --primary-color: #482583;
    --primary-dark: #30155a;
    --secondary-color: #6f42c1;
    --light-purple: #f3f0ff;
    --dark-bg: #1a0b2e;
    --text-color: #333;
    --card-bg: #fff;
    --border-color: rgba(0,0,0,0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
}

/* Accessibility: Focus styles for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Typography */
.text-purple {
    color: var(--primary-color) !important;
}

.bg-purple {
    background-color: var(--primary-color) !important;
}

.bg-purple-light {
    background-color: var(--light-purple) !important;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu Styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background: linear-gradient(135deg, rgba(48, 21, 90, 0.98) 0%, rgba(72, 37, 131, 0.98) 100%);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        padding: 2rem;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 1.1rem;
        padding: 1rem 1.25rem;
        transition: all 0.3s ease;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
        transform: translateX(5px);
    }

    .navbar .d-flex {
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar .d-flex .btn {
        padding: 0.875rem 2rem;
        border-radius: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .btn-outline-light:hover {
        background-color: #fff;
        color: var(--primary-color) !important;
        transform: translateY(-2px);
    }

    .btn-light:hover {
        background-color: var(--secondary-color);
        color: #fff !important;
        transform: translateY(-2px);
    }
}
 

.btn-join {
    background-color: white;
    color: var(--primary-color) !important;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-join:hover {
    background-color: var(--secondary-color);
    color: white !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    padding-top: 80px; /* For fixed navbar */
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png'); /* Subtle pattern */
    opacity: 0.1;
}

.hero-title {
    font-size: clamp(2.4rem, 4vw + 1rem, 3.5rem);
    line-height: 1.1;
}

.hero-subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1rem, 1.1rem + 0.4vw, 1.35rem);
}

.hero-tagline {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-cta-group {
    gap: 1.25rem !important;
}

@media (max-width: 767.98px) {
    .hero-section {
        padding-top: 96px;
        padding-bottom: 72px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }
}

/* Buttons */
.btn-purple {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.btn-purple:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-outline-purple {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-purple:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-get-started {
    border: 2px solid #000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.btn-get-started:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-check:checked + .btn-outline-purple {
    background-color: var(--primary-color);
    color: white;
}

.btn-purple-light {
    background-color: var(--light-purple);
    color: var(--primary-color);
}

.btn-purple-light:hover {
    background-color: #e2d9fc;
    color: var(--primary-dark);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(111, 66, 193, 0.15) !important;
}
 
 

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image {
    opacity: 0.9;
    filter: brightness(0.92) saturate(0.9);
}

.legal-hero {
    background: linear-gradient(135deg, rgba(48, 21, 90, 0.6) 0%, rgba(72, 37, 131, 0.6) 100%), url("../pips and profit.jpg");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    min-height: 260px;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #0f0518 !important;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Dashboard Styles */
#wrapper {
    overflow-x: hidden;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.25s ease-out;
    width: 15rem;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#sidebar-wrapper .list-group-item {
    transition: all 0.3s ease;
}

#sidebar-wrapper .list-group-item:hover {
    background-color: var(--primary-dark) !important;
    padding-left: 1.5rem !important;
}

#sidebar-wrapper .list-group-item.active {
    background-color: var(--primary-dark) !important;
    border-left: 4px solid var(--secondary-color) !important;
    font-weight: bold;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

.bg-purple-dark {
    background-color: var(--primary-dark) !important;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        text-align: center;
        padding-top: 120px;
    }
}

@media (max-width: 768px) {
    /* Mobile Sidebar Overlay */
    #sidebar-wrapper {
        margin-left: -15rem;
        position: fixed;
        z-index: 1050;
        height: 100vh;
        top: 0;
        left: 0;
        transition: margin 0.25s ease-out;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }

    /* Backdrop when sidebar is open */
    #wrapper.toggled #page-content-wrapper::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(26, 11, 46, 0.5);
        backdrop-filter: blur(2px);
        z-index: 1040;
    }

    /* Prevent body scroll when sidebar is open */
    body.sidebar-open {
        overflow: hidden;
    }

    /* Typography & Spacing */
    h2 {
        font-size: 1.5rem;
    }

    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .card-body {
        padding: 1.25rem !important;
    }

    /* Adjust Navbar */
    .navbar {
        padding: 0.5rem 0;
    }

    #sidebarToggle {
        margin-right: 0.5rem;
    }

    /* Mobile Offerings Section */
    .icon-box {
        width: 60px;
        height: 60px;
    }

    .icon-box i {
        font-size: 1.5rem;
    }

    /* Mobile Navigation Buttons */
    .navbar .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .navbar .d-flex .btn {
        width: 100%;
        text-align: center;
    }

    /* Mobile Footer */
    footer .row {
        text-align: center;
    }

    footer .d-flex {
        justify-content: center;
    }
}

 

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 1060;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
}
