@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #8e44ad;
    --primary-light: #fdfaff;
    /* Very soft purple tint */
    --primary-dark: #6c3483;
    --secondary-color: #e67e22;
    --bg-light: #ffffff;
    /* Pure white background */
    --text-main: #333333;
    /* Apple-style deep gray */
    --text-muted: #999999;
    /* Apple-style muted gray */
    --border-color: rgba(0, 0, 0, 0.03);
    /* ultra-light border */
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    --card-shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.05);
    --digaf-gradient: linear-gradient(135deg, #9d50bb 0%, #6e48aa 100%);
    --foggy-bg: #FFFFFFCC;
    /* 80% White requested */
    --foggy-blur: blur(20px);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-main);
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* Hero Slider - Modern Card Container */
.hero-slider {
    margin: 40px auto;
    width: 94%;
    max-width: 1400px;
    border-radius: 40px !important;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    border: 1px solid #f1f1f1;
    background-color: transparent !important;
}

.hero-slide {
    min-height: 550px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex !important;
    align-items: center;
    padding: 60px 80px;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Temporarily disabled overlay to debug image visibility */
    background: transparent;
    backdrop-filter: none;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero__content-title {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main) !important;
    max-width: 800px;
}

.hero__content p {
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 550px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: var(--text-muted);
}

/* Indicators like in screenshot */
.hero-indicators {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Slick Indicators Positioning */
.hero-slider .hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 80px;
    display: flex !important;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    z-index: 10;
}

.hero-slider .hero-indicators li {
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider .hero-indicators li.slick-active {
    background: var(--primary-color);
    width: 60px;
}

.hero-slider .hero-indicators li button {
    display: none;
}

/* Bottom Right Button Style */
.hero-btn-wrapper {
    position: absolute;
    right: 0;
    bottom: 0;
}

.btn--learn-more {
    background: #ffffff !important;
    color: var(--text-main) !important;
    border-radius: 12px !important;
    /* Squarer rounding for modern feel */
    padding: 16px 40px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    border-radius: 0.75rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
}

.btn--base {
    background: var(--digaf-gradient) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(157, 80, 187, 0.3);
}

.btn--base:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(157, 80, 187, 0.5);
    filter: brightness(1.1);
}

.btn--outline {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    color: #fff !important;
    /* White for hero */
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
}

.btn--outline:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

.btn--xl {
    padding: 1rem 2.5rem !important;
    font-size: 1.125rem !important;
    border-radius: 1rem !important;
}

/* Custom card for foggy effect */
.custom--card,
.dashboard-table-card,
.why-digaf-card {
    background: var(--foggy-bg) !important;
    backdrop-filter: var(--foggy-blur);
    -webkit-backdrop-filter: var(--foggy-blur);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: var(--card-shadow);
}

.custom--card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-control {
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background-color: #fff;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header__title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.section-header__desc {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

.img-fluid.radious-5 {
    border-radius: 2rem !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

.section-header__desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 80px 0 40px;
}

.footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-light);
}

/* Utils */
.t-text-white {
    color: #fff !important;
}

.bg--base {
    background-color: var(--primary-color) !important;
}

/* Dashboard Sidebar Enhancements */
.dashboard-sidebar {
    background: #fff !important;
    border-right: 1px solid var(--border-color) !important;
}

.sidebar-menu li a {
    border-radius: 0.75rem !important;
    padding: 0.875rem 1.25rem !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    transition: all 0.2s ease !important;
}

.sidebar-menu li a:hover {
    background-color: #f1f5f9 !important;
    color: var(--primary-color) !important;
}

.sidebar-menu li a.active {
    background: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}

/* Mobile Sidebar Toggle styling */
.sidebar-open-btn {
    background: var(--primary-color);
    color: #fff;
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
}

/* Specific Overrides for Template Components */
.top-header {
    background: #ffffff !important;
    /* Solid White Top Header */
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1 !important;
    position: relative !important;
    /* Ensure it stays at the top without overlapping */
    z-index: 1001;
}

.vf-info-list__text,
.vf-info-list__item,
.label.text-uppercase.t-text-white {
    color: #444 !important;
    /* Dark text for top header */
    font-weight: 500;
}

/* Header & Navigation Improvements */
.header {
    background: #ffffff !important;
    /* Solid White */
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1 !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo__is {
    max-height: 50px !important;
    width: auto;
    filter: none !important;
    /* Keep original logo colors */
    opacity: 1 !important;
    transition: transform 0.3s ease;
}

.logo:hover .logo__is {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500 !important;
    color: var(--text-main) !important;
    font-size: 15px;
    letter-spacing: -0.01em;
    padding: 0 20px !important;
}

.nav-link {
    font-weight: 500 !important;
    color: #475569 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background-color: rgba(99, 102, 241, 0.05);
}

.cta {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 40px;
    margin-bottom: -60px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.footer {
    padding-top: 120px !important;
}

.newsletter {
    position: relative;
    display: flex;
    gap: 10px;
}

.newsletter__input {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.newsletter__btn {
    background-color: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 0.75rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.newsletter__btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.social-icon--alt {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    transition: all 0.2s;
}

.social-icon--alt:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content {
    animation: fadeInUp 0.8s ease-out;
}

/* Auth Pages Clean Design */
.auth-form__content {
    background: #fff;
    border-radius: 2rem;
    padding: 3rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.auth-form__input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form__input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem !important;
    border: 1px solid var(--border-color);
    border-radius: 1rem !important;
    background-color: #f8fafc !important;
    transition: all 0.3s;
}

.auth-form__input:focus {
    background-color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
    outline: none;
}

.auth-form__input-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.auth-form__toggle-pass {
    left: auto;
    right: 1.25rem;
    cursor: pointer;
}

.auth-form__divider {
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
    position: relative;
}

.auth-form__divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.icon--circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.icon--circle:hover {
    transform: scale(1.1);
}

/* Modern Top Progress Bar Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff !important;
    z-index: 999999 !important;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
}

.preloader-progress-bar {
    height: 4px;
    width: 0;
    background: #8e44ad;
    /* Use the primary purple */
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.5);
    animation: loading-bar 1.5s cubic-bezier(0.65, 0.05, 0.36, 1) infinite;
    position: absolute;
    top: 0;
    left: 0;
}

@keyframes loading-bar {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 70%;
        left: 0;
    }

    100% {
        width: 100%;
        left: 0;
    }
}