/* Modern Insurance Theme - Enhanced UX & Smooth Animations */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #14b8a6;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(99, 102, 241, 0.08);
    --shadow-md: 0 4px 16px rgba(99, 102, 241, 0.12);
    --shadow-lg: 0 8px 32px rgba(99, 102, 241, 0.16);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Hind', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Header Improvements */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

#header:hover {
    box-shadow: var(--shadow-md);
}

.text-logo {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

#menu-primary-menu > li > a {
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

#menu-primary-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

#menu-primary-menu > li > a:hover::after,
#menu-primary-menu > li.current-menu-item > a::after {
    width: 100%;
}

#menu-primary-menu > li > a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.page-title-home1 {
    background-image: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%), url('../images/page-title/home-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}

.page-title-home1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.page-title-home1 h1 {
    color: var(--white);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.page-title-home1 h1 span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title-home1 p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.widget-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.widget-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--accent-color);
    color: var(--white);
}

/* Service Cards */
.widget-service-item {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.widget-service-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.widget-service-item .poster img {
    transition: transform 0.6s ease;
}

.widget-service-item:hover .poster img {
    transform: scale(1.1);
}

.widget-service-item .content {
    padding: 32px;
}

.widget-service-item .icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.widget-service-item:hover .icon {
    transform: rotate(5deg) scale(1.1);
}

.widget-service-item .icon span {
    color: var(--white);
    font-size: 32px;
}

.widget-service-item .text a {
    color: var(--text-dark);
    font-size: 24px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.widget-service-item:hover .text a {
    color: var(--primary-color);
}

.widget-service-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 16px 0;
}

/* Section Titles */
.widget-title-section {
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.sub-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

.sub-title::before,
.sub-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--gradient-primary);
}

.sub-title::before {
    left: 0;
}

.sub-title::after {
    right: 0;
}

/* About Section */
.widget-about-us {
    display: flex;
    gap: 60px;
    align-items: center;
}

.widget-about-us .content {
    flex: 1;
}

.widget-about-us .poster {
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.widget-about-us .poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.widget-about-us .poster:hover::after {
    opacity: 0.1;
}

.widget-about-us ul li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.widget-about-us ul li:hover {
    padding-left: 12px;
    color: var(--primary-color);
}

.widget-about-us ul li span {
    color: var(--secondary-color);
    font-size: 24px;
}

/* Why Choose Us */
.widget-choose-us-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.widget-choose-us-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.widget-choose-us-item .image {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.widget-choose-us-item:hover .image {
    transform: scale(1.1) rotate(-5deg);
}

.widget-choose-us-item .image span {
    color: var(--white);
    font-size: 36px;
}

/* Quote Form */
.get-quote-box {
    background: var(--white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.get-quote-box input,
.get-quote-box textarea {
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.get-quote-box input:focus,
.get-quote-box textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.get-quote-box button {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    width: 100%;
    transition: all 0.3s ease;
}

.get-quote-box button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Testimonials */
.widget-testimonial-item {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.widget-testimonial-item:hover {
    box-shadow: var(--shadow-lg);
}

.widget-testimonial-item .heading img {
    border-radius: 50%;
    border: 4px solid var(--primary-color);
}

.widget-testimonial-item .icon-star-full {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
}

.footer .title {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 24px;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
    padding-left: 8px;
}

.footer-content form button {
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 16px 32px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.footer-content form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.wow {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .page-title-home1 h1 {
        font-size: 36px;
    }
    
    .main-title {
        font-size: 32px;
    }
    
    .widget-about-us {
        flex-direction: column;
    }
}

/* Loading Animation */
.preload-container {
    background: var(--gradient-primary);
}

.preloading span {
    background: var(--white);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Button Styles */
.widget-block-before.style-1 {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.widget-block-before.style-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.widget-block-before.style-1:hover::before {
    left: 100%;
}

.widget-block-before.style-1:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card Hover Effects */
.widget-post {
    transition: all 0.4s ease;
}

.widget-post:hover {
    transform: translateX(8px);
}

/* Mobile Menu */
.header-mobile {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.btn-menu span,
.btn-menu::before,
.btn-menu::after {
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Improved Spacing */
.tf-section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .tf-section {
        padding: 60px 0;
    }
}
