/* Gold Theme Homepage Styles */

/* PERFORMANCE: skip layout/paint for off-screen sections */
.stats-section,
.about-section,
.services-section,
.key-features-section,
.how-it-works-section,
.testimonials-section {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* Main Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    padding-top: 120px;
    padding-bottom: 80px;
}

.floating-shapes {
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    /* will-change removed: no continuous animation on shapes */
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 20%;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 10%;
}

.shape-5 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
}

.shape-6 {
    width: 160px;
    height: 160px;
    bottom: 10%;
    right: 5%;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Trust Section - Partners Slider */
.partners-slider-container {
    height: 80px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.partners-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    width: max-content;
}

.trust-logo-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    min-width: 160px;
    flex: 0 0 160px;
    padding: 0 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.trust-logo-slide:hover {
    transform: scale(1.1);
}

.trust-logo-slide[data-url] {
    cursor: pointer;
}

.trust-logo-slide .partner-logo {
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(1);
    max-height: 40px;
    max-width: 80px;
    object-fit: contain;
}

.trust-logo-slide:hover .partner-logo {
    opacity: 1;
    filter: grayscale(0);
}

.trust-logo-slide i {
    opacity: 0.6;
    transition: opacity 0.3s ease, filter 0.3s ease, color 0.3s ease;
    filter: grayscale(1);
}

.trust-logo-slide:hover i {
    opacity: 1;
    filter: grayscale(0);
    color: var(--accent-gold) !important;
}

.slider-gradient-left,
.slider-gradient-right {
    width: 60px;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.slider-gradient-right {
    background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

@media (min-width: 768px) {
    .partners-slider-container {
        width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .partners-slider-container {
        width: 300px;
        margin: 0 auto;
    }

    .trust-logo-slide {
        min-width: 150px;
        flex: 0 0 150px;
        padding: 0 15px;
    }

    .slider-gradient-left,
    .slider-gradient-right {
        width: 40px;
    }
}

/* About Section & Flip Card */
.floating-card {
    bottom: 2rem;
    right: 2rem;
    perspective: 1000px;
    width: 320px;
    height: 120px;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 1.2rem 1.8rem;
    /* Changed from transition: all to specific properties for performance */
    transition: box-shadow 0.3s ease;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.flip-card-back {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--light-gold) 100%);
    transform: rotateY(180deg);
    border: 1px solid rgba(11, 20, 38, 0.2);
}

/* Services Section */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    /* will-change removed: hover-only animation */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.icon-circle-lg {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

/* Footer */
.bg-navy {
    background: var(--primary-navy);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 0.25rem 0;
}

.footer-link:hover {
    color: var(--accent-gold);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* Hero Images */
.hero-image-composition {
    width: 100%;
    height: 550px;
    position: relative;
}

.main-hero-image,
.secondary-hero-image {
    width: 320px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.main-hero-image {
    top: 20px;
    left: 20px;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.secondary-hero-image {
    bottom: 40px;
    right: 40px;
    z-index: 1;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.main-hero-image img,
.secondary-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-hero-image:hover,
.secondary-hero-image:hover {
    transform: translateY(-5px);
}

.main-hero-image:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.secondary-hero-image:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.image-overlay {
    background: linear-gradient(135deg, rgba(11, 20, 38, 0.15) 0%, rgba(212, 175, 55, 0.1) 50%, rgba(11, 20, 38, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-hero-image:hover .image-overlay,
.secondary-hero-image:hover .image-overlay {
    opacity: 1;
}

/* Stats Cards */
.floating-stat-card {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.stat-card-modern {
    padding: 1.8rem 2.2rem;
    min-width: 180px;
    border-radius: 20px;
    background: rgba(11, 20, 38, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    /* will-change removed: hover-only animation */
}

.stat-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.15), 0 0 0 1px rgba(212, 175, 55, 0.2) inset;
}

.stat-background-glow {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card-modern:hover .stat-background-glow {
    opacity: 1;
}

/* Decorative Elements */
.hero-decoration {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.15) 100%);
}

.deco-circle-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    right: 10%;
}

.deco-circle-2 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 10%;
}

.deco-line {
    position: absolute;
    top: 30%;
    right: 15%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent 0%, rgba(212, 175, 55, 0.3) 50%, transparent 100%);
}

.floating-stats {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.stat-card {
    padding: 1rem 1.2rem;
    min-width: 140px;
    border-radius: 12px;
    background: rgba(11, 20, 38, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* will-change removed: hover-only animation */
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.stat-card-1 {
    top: 50px;
    left: 50px;
}

.stat-card-2 {
    top: 20px;
    right: 20px;
}

.stat-card-3 {
    bottom: 100px;
    left: 30px;
}

.stat-card-4 {
    bottom: 50px;
    right: 50px;
}

.stat-glow {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.stat-card:hover .stat-glow {
    opacity: 1;
}

.glass-card {
    background: rgba(11, 20, 38, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* will-change removed: hover-only animation */
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dashboard-mockup {
    padding: 2rem;
}

.stats-grid .glass-card {
    padding: 1.5rem;
    text-align: center;
}

/* Feature & Testimonial Cards */
.feature-card-modern {
    background: rgba(248, 249, 250, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card-modern:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.feature-icon-modern {
    width: 48px;
    height: 48px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Testimonials Section - Redesigned for Single Item prominent view */
.testimonials-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-wrapper {
    overflow: hidden;
    padding: 10px 0;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 15px;
}

.testimonial-card {
    border: none;
    position: relative;
    padding: 3.5rem 2.5rem;
    min-height: 320px;
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.testimonial-content .quote-icon {
    margin-bottom: 2rem;
}

.testimonial-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--primary-navy);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.testimonial-author {
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-author img {
    border: 2px solid var(--accent-gold);
    padding: 2px;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: #FFFFFF;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: var(--primary-navy);
}

.carousel-nav-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #FFFFFF;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

@media (max-width: 991px) {
    .prev-btn {
        left: -20px;
    }

    .next-btn {
        right: -20px;
    }

    .testimonial-card {
        padding: 2.5rem 1.5rem;
    }

    .testimonial-content p {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .carousel-nav-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: -10px;
    }

    .next-btn {
        right: -10px;
    }
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    gap: 0.8rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-gold);
    transform: scale(1.3);
    width: 30px;
    border-radius: 6px;
}

/* How It Works - Image Grid Restoration */
.how-it-works-section .image-grid {
    height: 550px;
    width: 100%;
    position: relative;
}

.top-left-image,
.top-right-image,
.bottom-left-image,
.bottom-right-image {
    width: 45%;
    height: 45%;
    position: absolute;
    transition: transform 0.3s ease;
}

.top-left-image {
    top: 0;
    left: 0;
    z-index: 1;
}

.top-right-image {
    top: 50px;
    right: 0;
    z-index: 2;
}

.bottom-left-image {
    bottom: 50px;
    left: 50px;
    z-index: 3;
}

.bottom-right-image {
    bottom: 0;
    right: 20px;
    z-index: 4;
}

.image-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.decorative-elements {
    display: none;
    /* Hide for performance if causing issues, or restyle */
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .partners-slider-container {
        width: 100% !important;
    }

    .trust-logo-slide {
        min-width: 120px;
        flex: 0 0 120px;
        padding: 0 10px;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .display-5 {
        font-size: 2rem !important;
    }

    .display-6 {
        font-size: 1.75rem !important;
    }

    .hero-image-composition {
        height: 400px;
        margin-top: 2rem;
    }

    .main-hero-image {
        width: 250px;
        height: 320px;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-hero-image:hover {
        transform: translateX(-50%) translateY(-5px);
    }

    .secondary-hero-image {
        display: none;
    }

    .floating-stat-card {
        bottom: 0;
        top: auto;
        transform: translateX(-50%);
        width: 90%;
        max-width: 320px;
    }
}

/* Accessibility: respect user motion preferences */
@media (prefers-reduced-motion: reduce) {

    .service-card,
    .feature-card-modern,
    .testimonial-card,
    .stat-card-modern,
    .stat-card,
    .glass-card,
    .social-link,
    .flip-card-inner,
    .trust-logo-slide {
        transition: none !important;
    }
}