/* 
    Insurance Plans Solutions Hub - Custom Design System
    Theme: Modern Corporate / Premium Trust
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #3B0764;
    /* Deep Purple */
    --secondary-color: #FFFFFF;
    --accent-blue: #A855F7;
    /* Vivid Purple */
    --accent-gold: #F59E0B;
    /* Amber Gold */
    --bg-light: #FAF5FF;
    --text-main: #3B0764;
    --text-muted: #7C3AED;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-radius: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-subtle: 0 10px 40px rgba(59, 7, 100, 0.07);
    --shadow-hover: 0 25px 50px rgba(59, 7, 100, 0.15);
}

/* Glassmorphism utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Global Reset & Base */
body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.text-justify {
    text-align: justify;
}

/* Typography Customization */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    display: block;
}

/* Navbar Customization */
.navbar {
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: var(--primary-color) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color) !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section - Split Screen */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    padding-top: 0;
}

.hero-split-left {
    width: 55%;
    background: linear-gradient(135deg, #3B0764 0%, #6B21A8 100%);
    display: flex;
    align-items: center;
    padding: 140px 60px 80px 60px;
    position: relative;
    overflow: hidden;
}

.hero-split-left::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-split-left::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-split-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.hero-split-right {
    width: 45%;
    position: relative;
    background: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&w=900&q=80') center center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 60px 40px;
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(59, 7, 100, 0.85) 0%, rgba(59, 7, 100, 0.3) 60%, transparent 100%);
}

.hero-right-card {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 991px) {
    .hero-section {
        flex-direction: column;
    }
    .hero-split-left,
    .hero-split-right {
        width: 100%;
    }
    .hero-split-left {
        padding: 130px 30px 60px 30px;
    }
    .hero-split-right {
        min-height: 500px;
        padding: 40px 20px;
    }
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #A855F7 0%, #7C3AED 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 10px 20px -5px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(168, 85, 247, 0.6);
    background: linear-gradient(135deg, #C084FC 0%, #A855F7 100%);
}

/* Refined Page Header */
.page-header {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #3B0764 0%, #581C87 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.12) 0%, transparent 60%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

/* Card Glow Effect */
.card-glow {
    position: relative;
    transition: var(--transition-smooth);
}

.card-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent-green), transparent, var(--primary-color));
    z-index: -1;
    border-radius: calc(var(--card-radius) + 2px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.card-glow:hover::after {
    opacity: 0.3;
}

/* Service Page Card Overrides */
.service-page-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.service-page-card .service-icon {
    width: 80px;
    height: 80px;
    background: white;
    box-shadow: var(--shadow-subtle);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.testimonial-card:hover {
    background: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

/* FAQ */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.accordion-button {
    font-weight: 600;
    padding: 20px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.accordion-button:not(.collapsed) {
    background-color: #FAF5FF;
    color: #7C3AED;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

/* Legal Pages Typography */
.legal-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 2rem;
    border-left: 4px solid var(--accent-blue);
    padding-left: 15px;
}

/* Page Header refinement */
/* Refined Feature Box */
.advantage-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    padding: 40px 25px;
    transition: var(--transition-smooth);
}

.advantage-card:hover {
    background: linear-gradient(135deg, #3B0764, #7C3AED);
    color: white;
    transform: translateY(-8px);
}

.advantage-card:hover h4,
.advantage-card:hover .text-muted {
    color: white !important;
}

.advantage-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.advantage-card:hover .advantage-icon-wrapper {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
    transform: scale(1.1);
}

/* Premium Testimonials */
.testimonial-premium {
    position: relative;
    padding: 50px 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(59, 7, 100, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.08);
    transition: var(--transition-smooth);
}

.testimonial-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(59, 7, 100, 0.12);
}

.testimonial-premium::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: var(--accent-blue);
    opacity: 0.1;
}

.testimonial-avatar {
    width: 65px;
    height: 65px;
    padding: 4px;
    border: 3px solid var(--bg-light);
    border-radius: 50%;
}

.bento-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 35px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.08);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(59, 7, 100, 0.04);
    will-change: transform, box-shadow;
}

.bento-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 40px 80px rgba(59, 7, 100, 0.15);
    border-color: #A855F7;
    z-index: 10;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 0;
    background: var(--accent-blue);
    transition: all 0.5s ease;
}

.bento-card:hover::before {
    height: 100%;
}

.bento-icon-box {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 25px;
    transition: all 0.5s ease;
}

.bento-card:hover .bento-icon-box {
    background: var(--accent-blue);
    color: white;
    transform: rotateY(360deg);
    animation: iconPulse 1.5s infinite;
}

@keyframes iconPulse {
    0% {
        transform: rotateY(360deg) scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }

    70% {
        transform: rotateY(360deg) scale(1.1);
        box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
    }

    100% {
        transform: rotateY(360deg) scale(1);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bento-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-blue);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) rotate(45deg) translateY(100%);
    transition: var(--transition-smooth);
}

.btn-primary:hover::before {
    transform: translate(-50%, -50%) rotate(45deg) translateY(-100%);
}

.btn-outline-light:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Card Styling */
.service-card {
    background: var(--secondary-color);
    border-radius: var(--card-radius);
    padding: 40px 30px;
    border: none;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    height: 100%;
    text-align: center;
}

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

.service-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Why Choose Us Feature Boxes */
.feature-box {
    padding: 30px;
    transition: var(--transition-smooth);
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin: 0 auto 20px;
}

/* Section BG shades */
.bg-light-gray {
    background-color: var(--bg-light);
}

.bg-navy {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Stats Counter */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: block;
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #666;
}

/* Footer Styling */
footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
}

.footer-heading {
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-contact-info i {
    color: var(--accent-gold);
    margin-right: 10px;
}

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

/* Contact Form */
.contact-form .form-control {
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fdfdfd;
}

.contact-form .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(168, 85, 247, 0.15);
    border-color: #A855F7;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

.aos-animate {
    pointer-events: auto;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        text-align: center;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}