/* Global Overrides & Base Styles */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Typography Utilities */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-muted-custom {
    color: var(--text-muted);
}

/* Custom Buttons */
.btn-primary {
    background: var(--grad-primary);
    border: none;
    box-shadow: var(--shadow-primary);
    transition: var(--trans-base);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
}

.btn-outline-primary {
    border-width: 2px;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Glassmorphism & Cards */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--trans-base);
}

.golden-card {
    background: white;
    border: 2px solid #D4AF37;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(184, 134, 11, 0.3);
    overflow: hidden;
}

.golden-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: shimmer 4s infinite;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

.text-gold {
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gold {
    background: var(--grad-gold) !important;
}

.hover-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

/* Section Styling */
.section-padding {
    padding: 70px 0;
}

.bg-subtle {
    background-color: var(--bg-subtle);
}

/* Feature Cards & Brand Assets */
.titanium-card {
    background: linear-gradient(135deg, #242424 0%, #000000 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 22px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 1px;
    backdrop-filter: blur(5px);
}

.titanium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 45%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 55%,
            transparent 100%);
    animation: metal-sweep 6s infinite linear;
}

@keyframes metal-sweep {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card-chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #BF953F, #FCF6BA, #AA771C);
    border-radius: 8px;
    margin-bottom: 20px;
}

.card-number {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    word-spacing: 10px;
}

.card-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 2px;
}

.card-holder {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Values Section Redesign - Standard Light Theme */
.value-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    padding: 70px 45px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.value-card:hover {
    border-color: #BF953F;
    transform: translateY(-15px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.15);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(191, 149, 63, 0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.value-card:hover::before {
    opacity: 1;
}

.value-number {
    font-size: 100px;
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: 20px;
    opacity: 0.05;
    background: var(--grad-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.5s ease;
}

/* Midnight variant for dark sections */
.value-card-dark {
    background: #0D1428;
    border: 1px solid rgba(191, 149, 63, 0.2);
    box-shadow: none;
}

.value-card-dark h4 {
    color: white;
}

.value-card-dark p {
    color: rgba(255, 255, 255, 0.75);
}

.value-card:hover .value-number {
    opacity: 0.15;
}

.value-icon-wrapper {
    width: 85px;
    height: 85px;
    background: var(--grad-gold);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(184, 134, 11, 0.2);
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.value-card:hover .value-icon-wrapper {
    transform: rotate(0deg) scale(1.1);
}

.value-card h4 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: #1a1a1a;
}

.value-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444444;
}

/* Hero Section Specifics */
.hero-section {
    position: relative;
    padding: 100px 0 60px;
    background: var(--grad-hero);
    overflow: hidden;
}

.hero-visual {
    position: relative;
    z-index: 1;
}

.floating-card {
    animation: floating 6s ease-in-out infinite;
}

.floating-card-delayed {
    animation: floating 6s ease-in-out infinite 1s;
}

/* Feature Icons */
.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--primary-glow);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: var(--trans-fast);
}

.icon-box-lg {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.hover-card:hover .icon-box {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Stats Styling */
.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 5px;
}

/* Animations */
@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Navbar Customization */
.main-header .navbar {
    transition: var(--trans-base);
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--trans-base);
    transform: translateX(-50%);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 40%;
}

/* Badge Styles */
.badge-soft-primary {
    background-color: var(--primary-glow);
    color: var(--primary);
}

/* Softer Shadows */
.shadow-premium {
    box-shadow: 0 20px 40px -10px rgba(11, 18, 38, 0.1);
}

/* Hover Lift Effect */
.hover-lift {
    transition: var(--trans-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Text Glow Utility */
.text-glow {
    text-shadow: 0 0 20px rgba(45, 91, 255, 0.3);
}

/* Mesh Backgrounds */
.bg-mesh-dark {
    background: var(--bg-dark);
    background-image:
        radial-gradient(at 0% 0%, rgba(45, 91, 255, 0.15) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(112, 0, 255, 0.15) 0, transparent 50%);
}

.bg-mesh-light {
    background: var(--bg-light);
    background-image:
        radial-gradient(at 0% 0%, rgba(45, 91, 255, 0.05) 0, transparent 40%),
        radial-gradient(at 100% 100%, rgba(112, 0, 255, 0.05) 0, transparent 40%);
}

/* Advanced Buttons */
.btn-primary {
    background: var(--grad-primary);
    background-size: 200% auto;
    border: none;
    box-shadow: var(--shadow-primary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -10px rgba(45, 91, 255, 0.5);
}

.btn-white {
    background: white;
    color: var(--primary);
    border: none;
}

.btn-white:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Custom Icons */
.icon-box-world {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--primary-glow);
    color: var(--primary);
    font-size: 1.5rem;
    position: relative;
    overflow: hidden;
}

.icon-box-world::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.5;
}

/* Typography Overrides */
.display-1 {
    letter-spacing: -2px;
}

.display-4 {
    letter-spacing: -1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.x-small {
    font-size: 0.7rem;
}

/* Pulse Animation */
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Glassmorphism Refinement */
.glass-card {
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Dark Section Refinement */
.bg-dark {
    color: white;
}

/* Main Hero Image Fixes */
.main-hero-card {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.main-hero-card:hover {
    transform: perspective(1200px) rotateY(-5deg) rotateX(2deg) translateY(-10px) !important;
}

/* Utilities */
.grayscale-100 {
    filter: grayscale(100%);
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-30 {
    opacity: 0.3;
}

.z-index-0 {
    z-index: 0;
}

.z-index-1 {
    z-index: 1;
}

.blur-3xl {
    filter: blur(60px);
}

/* Loan Calculator Refinements */
.calculator-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-lg);
}

.calc-result-box {
    border-radius: 24px;
    background: #f8fafc;
}

/* Glow Pulse for Visuals */
.pulse-glow-violet {
    width: 120px;
    height: 120px;
    background: var(--secondary);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    animation: glow-pulse-anim 4s infinite;
}

@keyframes glow-pulse-anim {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

/* Loan Calculator */
.calculator-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    margin: 1.5rem 0;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: var(--shadow-md);
    transition: var(--trans-fast);
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-dark);
}

.calc-result-box {
    background: var(--bg-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--primary);
}

/* Color Accents & Utilities */
.text-cyan {
    color: #06b6d4 !important;
}

.text-indigo {
    color: #6366f1 !important;
}

.text-rose {
    color: #f43f5e !important;
}

.text-amber {
    color: #f59e0b !important;
}

.bg-blue-soft {
    background-color: rgba(37, 99, 235, 0.05) !important;
}

.bg-rose-soft {
    background-color: rgba(244, 63, 94, 0.05) !important;
}

.bg-amber-soft {
    background-color: rgba(245, 158, 11, 0.05) !important;
}

.bg-emerald-soft {
    background-color: rgba(16, 185, 129, 0.05) !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3) !important;
}

.blur-3xl {
    filter: blur(64px);
}

/* Horizontal Space Utilities */
.-space-x-3>* {
    margin-left: -0.75rem;
}

.letter-spacing-2 {
    letter-spacing: 0.1rem;
}

.letter-spacing-4 {
    letter-spacing: 0.2rem;
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 120px 0 80px;
        text-align: center;
    }

    .hero-visual {
        margin-top: 50px;
    }

    .section-padding {
        padding: 60px 0;
    }
}