/* Carousel Styles */
.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-item {
    height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.carousel-overlay h1 {
    color: var(--white);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    width: 80%;
    text-align: left;
}

.carousel-overlay h2 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    width: 80%;
    text-align: left;
}

.carousel-overlay h3 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    width: 80%;
    text-align: left;
}

.carousel-control-prev, .carousel-control-next {
    z-index: 1000;
}

/* We Believe Section */
.we-believe-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.belief-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.belief-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(71, 159, 248, 0.2);
    border-color: var(--primary-color);
}

.belief-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    transition: transform 0.3s ease;
}

.belief-card:hover .belief-icon {
    transform: scale(1.1) rotate(5deg);
}

.belief-card h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.belief-card p {
    color: var(--secondary-color);
    line-height: 1.7;
    font-size: 1rem;
}

.belief-card strong {
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 400px;
    perspective: 1000px;
}

.testimonial-card {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: rotateY(-90deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.testimonial-card.active {
    position: relative;
    opacity: 1;
    transform: rotateY(0) scale(1);
    pointer-events: auto;
}

.testimonial-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-left: 5px solid var(--primary-color);
}

.stars {
    color: #ffc107;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    color: #2c3e50;
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

/*
.testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    left: -20px;
    top: -20px;
}
*/

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.testimonial-author h5 {
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot:hover {
    opacity: 0.6;
}

.testimonial-dot.active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.3);
}

/* Services Section */
.services-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(71, 159, 248, 0.25);
}

.service-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(71, 159, 248, 0.7) 0%, rgba(53, 122, 189, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.service-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--secondary-color);
    line-height: 1.7;
    flex-grow: 1;
}

/* Highlight Card (Call to Action) */
.highlight-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

.highlight-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.service-content-special {
    text-align: center;
    color: var(--white);
}

.special-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    backdrop-filter: blur(10px);
}

.service-content-special h3 {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-content-special p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Insurance Section */
.insurance-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.insurance-info-box {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 2px solid var(--primary-color);
}

.insurance-info-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.insurance-info-box h4 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.insurance-info-box p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.insurance-contact-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.insurance-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 159, 248, 0.3);
}

.insurance-btn:hover {
    background: #357abd;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(71, 159, 248, 0.4);
}

.insurance-btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.insurance-btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Insurance Logos with 3D Flip Animation */
.insurance-logos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.insurance-logo-wrapper {
    perspective: 1000px;
    height: 150px;
}

.insurance-logo-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    animation: flipCard 8s infinite;
}

@keyframes flipCard {
    0%, 45% {
    transform: rotateY(0deg);
    }
    50%, 95% {
    transform: rotateY(180deg);
    }
    100% {
    transform: rotateY(360deg);
    }
}

.insurance-logo-wrapper:nth-child(2) .insurance-logo-flipper {
    animation-delay: 1.5s;
}

.insurance-logo-wrapper:nth-child(3) .insurance-logo-flipper {
    animation-delay: 3s;
}

.insurance-logo-wrapper:nth-child(4) .insurance-logo-flipper {
    animation-delay: 4.5s;
}

.insurance-logo-wrapper:nth-child(5) .insurance-logo-flipper {
    animation-delay: 6s;
}

.insurance-logo-wrapper:nth-child(6) .insurance-logo-flipper {
    animation-delay: 7.5s;
}

.insurance-logo-front,
.insurance-logo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.insurance-logo-back {
    transform: rotateY(180deg);
}

.insurance-logo-card {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.insurance-logo-wrapper:hover .insurance-logo-card {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(71, 159, 248, 0.2);
}

.insurance-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.4;
}

.insurance-disclaimer {
    color: var(--secondary-color);
    font-size: 1rem;
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
}

/* Locations Section */
.locations-section {
    background: var(--white);
}

.location-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    height: 100%;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(71, 159, 248, 0.2);
}

.location-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: var(--white);
    padding: 1.5rem;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-title i {
    font-size: 2rem;
}

.map-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.map-container iframe {
    border: none;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}

.location-card:hover .map-container iframe {
    filter: grayscale(0%) brightness(1.05);
}

.location-info {
    padding: 2rem;
}

.location-address {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.location-address i {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 0.2rem;
}

.location-phone {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-phone i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.location-phone a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.location-phone a:hover {
    color: #357abd;
}

.location-directions {
    text-align: center;
}

.directions-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 159, 248, 0.3);
}

.directions-btn:hover {
    background: #357abd;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 159, 248, 0.4);
}

.directions-btn i {
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .service-image {
    height: 240px;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
    height: 400px;
    }
    
    .carousel-item {
    height: 400px;
    }
    
    .carousel-overlay h1 {
    font-size: 1.5rem;
    }
    
    .carousel-overlay h2 {
    font-size: 1.5rem;
    }

    .carousel-overlay h3 {
    font-size: 1rem;
    }

    .testimonial-content {
    padding: 2rem 1.5rem;
    }
    
    .testimonial-text {
    font-size: 1rem;
    }
    
    .belief-card {
    padding: 2rem 1.5rem;
    margin-bottom: 1rem;
    }
    
    .section-title {
    font-size: 2rem;
    }

    .service-image {
    height: 220px;
    }
    
    .service-content {
    padding: 1.5rem;
    }
    
    .highlight-card {
    padding: 2.5rem 1.5rem;
    }
    
    .service-content-special h3 {
    font-size: 1.5rem;
    }

    .insurance-info-box {
    padding: 2rem 1.5rem;
    }
    
    .insurance-info-box h4 {
    font-size: 1.5rem;
    }
    
    .insurance-contact-btns {
    flex-direction: column;
    }
    
    .insurance-btn {
    width: 100%;
    justify-content: center;
    }
    
    .insurance-logos-container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    }
    
    .insurance-logo-wrapper {
    height: 120px;
    }
    
    .insurance-name {
    font-size: 1rem;
    }

    .location-title {
    font-size: 1.5rem;
    padding: 1.2rem;
    }
    
    .location-info {
    padding: 1.5rem;
    }
    
    .map-container {
    height: 250px;
    }
}

/* Insurance Modal Styles */
.insurance-list-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 159, 248, 0.3);
}

.insurance-list-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(71, 159, 248, 0.4);
}

.insurance-list-btn i {
    font-size: 1.3rem;
}

.insurance-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.insurance-modal.show {
    opacity: 1;
}

.insurance-modal.show .insurance-modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.insurance-modal-content {
    background: var(--white);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.insurance-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    color: var(--white);
    padding: 2rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.insurance-modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.insurance-modal-header i {
    font-size: 2rem;
}

.insurance-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.insurance-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.insurance-modal-body {
    padding: 2.5rem 2rem;
}

.modal-intro {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.insurance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.insurance-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.insurance-item:hover {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(71, 159, 248, 0.15);
    transform: translateX(5px);
}

.insurance-item i {
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.insurance-item span {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
}

.modal-footer-note {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.modal-footer-note p {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.modal-footer-note p:last-of-type {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.modal-call-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(71, 159, 248, 0.3);
    font-size: 1.05rem;
}

.modal-call-btn:hover {
    background: #357abd;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 159, 248, 0.4);
}

.modal-call-btn i {
    font-size: 1.2rem;
}

/* Modal Responsive Adjustments */
@media (max-width: 768px) {
    .insurance-modal-header {
        padding: 1.5rem;
    }
    
    .insurance-modal-header h3 {
        font-size: 1.4rem;
    }
    
    .insurance-modal-body {
        padding: 1.5rem 1.2rem;
    }
    
    .insurance-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .insurance-item {
        padding: 0.9rem 1rem;
    }
    
    .modal-footer-note {
        padding: 1.5rem;
    }
    
    .insurance-list-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }
}