/* ==========================================================================
   INFINITUM SOLUTIONS (FZE) - FINANEX THEME DESIGN SYSTEM
   Inspired by Finanex (https://finanex.webflow.io/)
   Featuring Geometric Hanken Grotesk typography, Deep Navy (#001353) backgrounds,
   and the signature Coral-Violet-Blue tri-color gradient.
   ========================================================================== */

:root {
    /* Finanex Typography */
    --font-finanex: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-outfit: 'Outfit', 'Hanken Grotesk', sans-serif;
    --font-inter: 'Hanken Grotesk', 'Inter', sans-serif;

    /* Finanex Color Tokens */
    --color-neutral-04: #001353; /* Deep Finanex Midnight Navy */
    --color-neutral-03: #6e717b; /* Neutral Body Grey */
    --color-neutral-02: #f6f6f6; /* Neutral Light */
    --color-neutral-01: #ffffff; /* Crisp White */
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-10: rgba(255, 255, 255, 0.1);

    /* Finanex Signature Vibrant Gradient */
    --color-coral: #ff8262;
    --color-purple: #cf55fe;
    --color-blue: #43aeff;
    --color-gradient: linear-gradient(90deg, #ff8262, #cf55fe 52%, #43aeff);
    --color-gradient-hover: linear-gradient(90deg, #ff9377, #d96eff 52%, #5bbaff);

    /* Infinitum Dark Theme Integrations */
    --bg-primary: #050b1e;
    --bg-secondary: #001353;
    --bg-card: rgba(255, 255, 255, 0.035);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --accent-color: #43aeff;
    --accent-gradient-start: #ff8262;
    --accent-gradient-end: #cf55fe;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #6e717b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-glow: 0 0 25px rgba(207, 85, 254, 0.25);
}

/* Base Document */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-finanex);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: #ffffff;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
    font-family: var(--font-finanex);
    color: var(--color-neutral-01);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: 3.25rem; line-height: 1.15; }
h2 { font-size: 2.4rem; line-height: 1.25; }
h3 { font-size: 1.85rem; line-height: 1.3; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 0.95rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    h3 { font-size: 1.45rem; }
}

/* ==========================================================================
   Finanex Gradients & Tag Badges
   ========================================================================== */
.text-accent, .linear-text {
    background-image: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.bg-gradient-accent {
    background-image: var(--color-gradient);
}

.hero-tag {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 6px 18px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.tag-text {
    background-image: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-finanex);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.line-accent-vertical {
    width: 3px;
    background: var(--color-gradient);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ==========================================================================
   Finanex Signature Buttons
   ========================================================================== */
.primary-button, .btn-accent, .btn-finanex {
    background-image: var(--color-gradient);
    color: #ffffff !important;
    font-family: var(--font-finanex);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 32px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 22px rgba(207, 85, 254, 0.32);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.primary-button:hover, .btn-accent:hover, .btn-finanex:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(207, 85, 254, 0.48);
    opacity: 0.96;
    color: #ffffff !important;
}

.btn-outline-accent, .btn-outline-finanex {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    font-family: var(--font-finanex);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 32px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-outline-accent:hover, .btn-outline-finanex:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* ==========================================================================
   Navigation Bar (Finanex Header)
   ========================================================================== */
.custom-navbar {
    background: rgba(0, 19, 83, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-family: var(--font-finanex);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

.navbar-brand img, .footer-brand img, .admin-header .navbar-brand img {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 2px 8px rgba(207, 85, 254, 0.3));
}

.navbar-brand:hover img, .footer-brand:hover img {
    transform: scale(1.08);
}

.logo-icon i {
    background-image: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
    font-family: var(--font-finanex);
    color: var(--color-white-80);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    transition: color 0.25s ease;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-nav .nav-link.active {
    font-weight: 600;
    position: relative;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--color-gradient);
    border-radius: 2px;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.25s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(207, 85, 254, 0.3) !important;
    outline: none;
}

@media (max-width: 991.98px) {
    .custom-navbar .navbar-collapse {
        background: #001353;
        background: rgba(0, 19, 83, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .custom-navbar .navbar-nav {
        align-items: stretch !important;
        gap: 6px;
    }
    
    .custom-navbar .navbar-nav .nav-link {
        padding: 12px 18px !important;
        border-radius: 12px;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.05rem;
        display: block;
    }
    
    .custom-navbar .navbar-nav .nav-link:hover,
    .custom-navbar .navbar-nav .nav-link.active {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff !important;
    }
    
    .custom-navbar .navbar-nav .nav-link.active::after {
        display: none;
    }
    
    .custom-navbar .navbar-nav .nav-item.ms-lg-3 {
        margin-left: 0 !important;
        margin-top: 15px;
        width: 100%;
    }
    
    .custom-navbar .navbar-nav .primary-button {
        width: 100%;
        display: flex;
        justify-content: center;
        text-align: center;
        padding: 14px 24px;
        border-radius: 30px;
    }
}

/* ==========================================================================
   Finanex Hero Section & Inner Hero
   ========================================================================== */
.hero-section {
    position: relative;
    background-color: var(--color-neutral-04);
    padding: 120px 0 100px 0;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 85, 254, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(67, 174, 255, 0.15) 0%, transparent 65%);
    pointer-events: none;
}

.hero-title {
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.35rem;
    }
}

.inner-hero {
    background-color: var(--color-neutral-04);
    padding: 100px 0 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inner-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(207, 85, 254, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

/* Finanex Trust / Review Badge */
.review-box {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 8px 20px;
    backdrop-filter: blur(10px);
}

.review-author-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.9rem;
}

/* ==========================================================================
   Finanex Feature Cards & Glassmorphism
   ========================================================================== */
.feature-card, .glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover, .glass-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: rgba(207, 85, 254, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.feature-card-linear-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-image: var(--color-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-card-linear-bar {
    opacity: 1;
}

.feature-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: var(--color-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background-image: var(--color-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: scale(1.05);
}

/* ==========================================================================
   Finanex 3-Step Process Timeline
   ========================================================================== */
.process-section {
    background: #001353;
    position: relative;
    overflow: hidden;
}

.process-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.2rem;
}

.process-step-item:last-child {
    padding-bottom: 0;
}

.step-number-badge {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background-image: var(--color-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-finanex);
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(207, 85, 254, 0.4);
    z-index: 2;
}

.process-line {
    position: absolute;
    left: 22px;
    top: 46px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #cf55fe, #43aeff);
    z-index: 1;
}

.process-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    flex-grow: 1;
    transition: all 0.3s ease;
}

.process-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(207, 85, 254, 0.3);
}

/* ==========================================================================
   Finanex Pricing Cards
   ========================================================================== */
.pricing-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.pricing-card:hover, .pricing-card.featured {
    border-color: rgba(207, 85, 254, 0.4);
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(207, 85, 254, 0.08), rgba(0, 19, 83, 0.7));
}

.pricing-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-image: var(--color-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    text-transform: uppercase;
}

.pricing-price-text {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.pricing-feature-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(67, 174, 255, 0.15);
    color: var(--color-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 0.65rem;
}

/* ==========================================================================
   Gallery Portfolio Items
   ========================================================================== */
.gallery-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
    border-radius: 50px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.gallery-filter-btn.active, .gallery-filter-btn:hover {
    background-image: var(--color-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(207, 85, 254, 0.3);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.gallery-image-wrapper img {
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image-wrapper img {
    transform: scale(1.06);
}

.gallery-card {
    cursor: pointer;
}

/* ==========================================================================
   Finanex Themed Modals (Details & Privacy)
   ========================================================================== */
.modal-content.custom-modal {
    background: #001353;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    color: #ffffff;
    overflow: hidden;
}

.modal-header.custom-modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 26px;
}

.modal-footer.custom-modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 26px;
}

/* ==========================================================================
   Clients Grid
   ========================================================================== */
.client-logo-wrapper {
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.65;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
}

.client-logo-wrapper:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: rgba(67, 174, 255, 0.4);
    box-shadow: 0 8px 25px rgba(67, 174, 255, 0.18);
    transform: translateY(-3px);
}

.client-logo-wrapper img {
    max-height: 52px;
    max-width: 85%;
    object-fit: contain;
}

/* ==========================================================================
   Finanex Footer
   ========================================================================== */
.custom-footer {
    background-color: var(--color-neutral-04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-white-70);
    padding: 80px 0 35px 0;
}

.footer-manu-linear-line {
    background-image: var(--color-gradient);
    border-radius: 3px;
    width: 48px;
    height: 4px;
    margin-bottom: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-white-70);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 6px;
}

.footer-social-link {
    backdrop-filter: blur(6px);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.footer-social-link:hover {
    background-image: var(--color-gradient);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(207, 85, 254, 0.35);
}

.footer-bottom-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding-top: 25px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    transition: all 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 18px;
    font-family: var(--font-finanex);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--color-purple);
    box-shadow: 0 0 0 3px rgba(207, 85, 254, 0.2);
    color: #ffffff;
}

/* ==========================================================================
   Admin Panel Preserved Styles
   ========================================================================== */
.admin-sidebar {
    background: #090e1f;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    min-height: calc(100vh - 73px);
}

.admin-nav-link {
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    font-size: 0.92rem;
}

.admin-nav-link:hover, .admin-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--color-blue);
}

.admin-nav-link i {
    width: 24px;
    font-size: 1.05rem;
}

.admin-header {
    background: #090e1f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card {
    padding: 24px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--color-blue);
    opacity: 0.8;
}

.table-custom {
    color: #94a3b8;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table-custom tbody tr {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.table-custom tbody tr:hover {
    background: rgba(255, 255, 255, 0.06);
}

.table-custom th, .table-custom td {
    border: none;
    padding: 15px 20px;
    vertical-align: middle;
}

.table-custom td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table-custom td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.text-success-custom { color: #10b981; }
.text-danger-custom { color: #ef4444; }
