/* Modern Theme Revamp - Premium Tech Style */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* Variables */
:root {
    --primary-color: #621ea6; /* Existing purple */
    --primary-dark: #4a1580;
    --accent-color: #ff0055;
    --text-dark: #333333; /* Updated per request */
    --text-muted: #475569;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 60px -12px rgba(98, 30, 166, 0.15);
    --shadow-button: 0 6px 20px rgba(98, 30, 166, 0.25);
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-base: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif !important;
    background-color: var(--bg-light);
    color: var(--text-dark); /* Updated */
    -webkit-font-smoothing: antialiased;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .h1-large {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: var(--text-dark) !important;
    letter-spacing: -0.03em;
    font-weight: 700;
}

h1, .h1-large {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-dark) !important;
}

/* Navbar Modernization */
.navbar {
    background-color: var(--glass-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0 !important;
    transition: var(--transition-base);
}

.navbar-brand img {
    height: 40px; /* Adjust logo size */
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 20px;
}

/* Button Upgrades */
.btn-solid-lg, .btn-solid-reg {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 50px !important; /* Pill shape */
    padding: 1rem 2.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-button); /* Updated */
    transition: var(--transition-base) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-solid-lg:hover, .btn-solid-reg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(98, 30, 166, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color)) !important;
}

/* Section Styling */
header.header {
    background: radial-gradient(circle at 100% 0%, rgba(98, 30, 166, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 0% 100%, rgba(255, 0, 85, 0.03) 0%, transparent 40%);
    padding-top: 10rem !important; /* More space for fixed nav */
    padding-bottom: 6rem !important;
}

.basic-1, .basic-2 {
    padding: 6rem 0 !important;
    background: transparent !important; /* Remove old bg images */
    position: relative;
}

/* Add subtle modern dividers or backgrounds using pseudo-elements */
.basic-2 {
    background-color: var(--white) !important;
}

/* Revert inline colors if any */
h1[style], h3[style] {
    color: var(--primary-color) !important;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Images */
.image-container img {
    margin-top: 5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

/* Feature Cards (New) */
.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.03);
    text-align: center;
    transition: var(--transition-base);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    background: rgba(98, 30, 166, 0.1);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.feature-card h4 {
   font-size: 1.25rem;
   margin-bottom: 1rem;
   font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted) !important;
    margin-bottom: 0;
}

/* Transaction Table Card */
.card {
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
    overflow: hidden;
    background: var(--white);
}

.card-header {
    background: var(--white) !important;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.5rem !important;
}

.card-header h5 {
    color: var(--text-dark) !important;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.card-header i {
    color: #10b981; /* Success green */
    font-size: 1.2rem;
}

.table th {
    border-top: none !important;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem !important;
}

.table td {
    padding: 1.25rem 1.5rem !important;
    vertical-align: middle !important;
    font-size: 0.95rem;
    border-top: 1px solid #f8fafc !important;
}

.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Responsive Adjustments */
@media (max-width: 991px) {
    h1.h1-large { font-size: 2.5rem; }
    header.header { padding-top: 8rem !important; padding-bottom: 4rem !important; text-align: center; }
    .text-container { text-align: center; margin-bottom: 3rem; }
    .image-container { margin-bottom: 0; }
    .row { flex-direction: column-reverse; } 
    .basic-1 .row, .basic-2 .row { flex-direction: column; }
    .basic-1 .col-lg-6:last-child { margin-top: 2rem; }
    .basic-2 .col-lg-6:last-child { margin-top: 2rem; }
}

/* Mobile Table Cards */
@media screen and (max-width: 767px) {
  .table-responsive thead {
    display: none;
  }
 
  .table-responsive tr {
    display: block;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    padding: 1rem;
  }
 
  .table-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: none !important;
    border-bottom: 1px solid #f8fafc;
    padding: 0.75rem 0 !important;
    text-align: right;
  }
 
  .table-responsive td:last-child {
    border-bottom: none;
  }
 
  .table-responsive td::before {
    content: attr(data-label);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 1rem;
    text-align: left;
  }
}