/* ========================================
   Beranda Page Styles - MarketLab
======================================== */

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--primary-gradient);
    color: var(--white);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
    animation-duration: 20s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
    animation-duration: 15s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
    animation-duration: 25s;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: var(--space-16) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-title span {
    display: block;
}

.hero-description {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-8);
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: var(--font-extrabold);
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-actions .btn-outline-primary {
    border-width: 2px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-actions .btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 80, 145, 0.3);
}

.hero-visual {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    position: relative;
    perspective: 1000px;
}

.hero-image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-3xl);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.hero-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
}

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 200px;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 5%;
    right: -20%;
    animation-delay: 0s;
}

.card-2 {
    top: 45%;
    left: -25%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 5%;
    right: -15%;
    animation-delay: 4s;
}

.floating-card .card-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.floating-card .card-content h6 {
    margin: 0;
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

.floating-card .card-content p {
    margin: 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.hero-main-image {
    position: relative;
    z-index: 2;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-transform);
}

.hero-main-image:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeIn 1s ease-out 1.5s both;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin: 0 auto var(--space-2);
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 20px;
        opacity: 0.3;
    }
}

.scroll-indicator span {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== FEATURES SECTION ========== */
.features-section {
    background: var(--bg-primary);
}

.section-header {
    margin-bottom: var(--space-16);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--primary-lighter);
    color: var(--primary-color);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    text-align: center;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: var(--space-8);
    transition: var(--transition-all);
}

.feature-card h4 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--primary-color);
    font-weight: var(--font-medium);
    text-decoration: none;
    transition: var(--transition-colors);
}

.feature-link:hover {
    color: var(--primary-dark);
    text-decoration: none;
    gap: var(--space-3);
}

/* ========== SERVICES PREVIEW SECTION ========== */
.services-preview-section {
    background: var(--bg-secondary);
}

.services-visual {
    position: relative;
}

.services-image-container {
    position: relative;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    min-height: 400px;
}

.services-image-bg {
    position: relative;
    border-radius: var(--radius-3xl);
    overflow: hidden;
}

.services-image-bg img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition-transform);
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 80, 145, 0.9), rgba(8, 61, 102, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-all);
}

.services-image-bg:hover .services-overlay {
    opacity: 1;
}

.services-image-bg:hover img {
    transform: scale(1.05);
}

.overlay-content {
    text-align: center;
    color: var(--white);
    padding: var(--space-6);
}

.overlay-content h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
    color: var(--white);
}

.overlay-content p {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

.features-highlight {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.highlight-item svg {
    color: #4ade80;
    flex-shrink: 0;
}

.highlight-item span {
    font-weight: var(--font-medium);
    color: var(--white);
}

.services-content {
    padding-left: var(--space-8);
}

.services-list {
    margin-bottom: var(--space-8);
}

.service-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    transition: var(--transition-all);
}

.service-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(var(--space-2));
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.service-info h5 {
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.service-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

/* ========== TESTIMONIALS SECTION ========== */
.testimonials-section {
    background: var(--bg-primary);
}

.testimonials-carousel-container {
    position: relative;
    margin-top: var(--space-8);
}

.testimonials-carousel {
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-card {
    text-align: center;
    padding: var(--space-8);
    position: relative;
    transition: var(--transition-all);
}

.testimonial-rating {
    margin-bottom: var(--space-4);
    color: #fbbf24;
    font-size: var(--text-lg);
}

/* Navigation Arrows */
.testimonials-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.nav-arrow {
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-full);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-all);
    pointer-events: auto;
    box-shadow: var(--shadow-md);
}

.nav-arrow:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.nav-prev {
    transform: translateX(-25px);
}

.nav-next {
    transform: translateX(25px);
}

.nav-prev:hover {
    transform: translateX(-25px) scale(1.1);
}

.nav-next:hover {
    transform: translateX(25px) scale(1.1);
}

/* Dots Indicator */
.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: var(--transition-all);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-card blockquote {
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
    position: relative;
}

.testimonial-card blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
}

.author-info {
    text-align: left;
}

.author-info h6 {
    margin: 0;
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.author-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* ========== CTA SECTION ========== */
.cta-section {
    position: relative;
    background: var(--primary-gradient);
    color: var(--white);
    padding: var(--space-20) 0;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-6);
    color: var(--white);
}

.cta-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-modern {
    color: var(--white);
    border-color: var(--white);
}

.cta-actions .btn-modern:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 991px) {
    .hero-stats {
        gap: var(--space-6);
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero-actions .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .floating-card {
        display: none;
    }

    .hero-main-image {
        transform: none;
        margin-top: var(--space-8);
    }

    .services-content {
        padding-left: 0;
        margin-top: var(--space-8);
    }

    .service-item {
        flex-direction: column;
        text-align: center;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions .btn-modern {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 767px) {
    .hero-stats {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .stat-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-3);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .feature-card {
        padding: var(--space-6);
    }

    .testimonial-card {
        padding: var(--space-6);
    }

    .services-list {
        margin-bottom: var(--space-6);
    }
}

@media (max-width: 575px) {
    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--space-2) var(--space-3);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: var(--text-lg);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: var(--text-lg);
    }
}

/* ========== DARK MODE ========== */
[data-bs-theme="dark"] .feature-card,
[data-bs-theme="dark"] .testimonial-card {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

[data-bs-theme="dark"] .services-preview-section {
    background: var(--gray-800);
}

[data-bs-theme="dark"] .service-item:hover {
    background: var(--gray-700);
}

[data-bs-theme="dark"] .floating-card {
    background: var(--gray-800);
    color: var(--white);
}

[data-bs-theme="dark"] .floating-card .card-content h6 {
    color: var(--white);
}

[data-bs-theme="dark"] .floating-card .card-content p {
    color: var(--gray-300);
}