/* =====================================================
   PT. Sukses Makmur Intertama - Custom CSS v3
   Gold Theme - Bingxue Style Enhanced
   ===================================================== */

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(-3deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }
}

@keyframes pulse-gold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
}

@keyframes pinDrop {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.8);
    }

    60% {
        transform: translateY(5px) scale(1.1);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes arrowMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up-delay {
    animation: slideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.animate-pin {
    animation: pinDrop 0.6s ease forwards;
    opacity: 0;
}

/* ==================== PARTNER LOGO SLIDER ==================== */
@keyframes partnerSlide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-slider {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.partner-track {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 5rem;
    animation: partnerSlide 20s linear infinite;
    white-space: nowrap;
    align-items: center;
}

.partner-track:hover {
    animation-play-state: paused;
}

.partner-logo {
    flex: 0 0 auto;
    width: 200px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s;
}

.partner-logo:hover {
    transform: scale(1.1);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: all 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==================== NAVIGATION ==================== */
.nav-link {
    position: relative;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #B8942D);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #D4AF37;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, #D4AF37 0%, #9C7A23 50%, #806019 100%) !important;
    padding: 5rem 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Section subtitle and title styles */
.section-subtitle {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37, #B8942D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,64L60,80C120,96,240,128,360,133.3C480,139,600,117,720,112C840,107,960,117,1080,122.7C1200,128,1320,128,1380,128L1440,128L1440,200L1380,200C1320,200,1200,200,1080,200C960,200,840,200,720,200C600,200,480,200,360,200C240,200,120,200,60,200L0,200Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}

/* ==================== HERO ==================== */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.85) 0%, rgba(156, 122, 35, 0.75) 50%, rgba(64, 46, 15, 0.7) 100%);
}

/* ==================== SECTION LABELS ==================== */
.section-label {
    display: inline-block;
    color: #D4AF37;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #F5CF57);
    border-radius: 2px;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-heading-center {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading-center::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #F5CF57);
    border-radius: 2px;
}

.section-description {
    color: #6b7280;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient {
    background: linear-gradient(135deg, #D4AF37, #9C7A23);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== BLOB DECORATIONS ==================== */
.blob-decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(245, 207, 87, 0.1));
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(245, 207, 87, 0.05));
    bottom: -50px;
    right: -50px;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(245, 207, 87, 0.1));
    top: 80px;
    left: 5%;
}

.blob-4 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(245, 207, 87, 0.08));
    bottom: 100px;
    right: 5%;
}

.blob-5 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(245, 207, 87, 0.05));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ==================== WAVE PATTERN ==================== */
.wave-pattern {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,64L60,80C120,96,240,128,360,133.3C480,139,600,117,720,112C840,107,960,117,1080,122.7C1200,128,1320,128,1380,128L1440,128L1440,200L1380,200C1320,200,1200,200,1080,200C960,200,840,200,720,200C600,200,480,200,360,200C240,200,120,200,60,200L0,200Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #D4AF37, #B8942D);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #B8942D, #9C7A23);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #D4AF37;
    color: white;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #D4AF37;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #25D366;
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-animated .btn-arrow {
    transition: transform 0.3s;
}

.btn-animated:hover .btn-arrow {
    animation: arrowMove 0.5s ease infinite;
}

/* ==================== CARDS ==================== */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #D4AF37, #9C7A23);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
    margin-top: 0.5rem;
}

.floating-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: linear-gradient(135deg, #D4AF37, #B8942D);
    color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    animation: float 3s ease-in-out infinite;
}

.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* ==================== PRODUCT CAROUSEL ==================== */
.product-carousel {
    position: relative;
    padding: 2rem 0;
}

.product-carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 0;
}

.product-item {
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-image-wrapper {
    width: 200px;
    height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-side-left,
.product-side-right {
    transform: scale(0.7);
    opacity: 0.4;
    z-index: 1;
}

.product-side {
    transform: scale(0.85);
    opacity: 0.6;
    z-index: 2;
}

.product-center {
    transform: scale(1.1);
    opacity: 1;
    z-index: 3;
}

.product-center .product-image-wrapper {
    width: 240px;
    height: 320px;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.3);
}

.product-name {
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: 2px solid #D4AF37;
    background: transparent;
    color: #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #D4AF37;
    color: white;
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

/* ==================== KEMITRAAN / FRANCHISE MAP ==================== */
.section-kemitraan {
    background: linear-gradient(135deg, #D4AF37, #B8942D);
}

.kemitraan-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.title-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.franchise-map-wrapper {
    width: 100%;
    padding: 0 2rem 2rem;
}

.franchise-map-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.indonesia-map-image {
    width: 100%;
    height: auto;
    opacity: 0.9;
}

.map-pin {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-marker {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s;
}

.pin-marker span {
    font-size: 0.7rem;
    font-weight: 800;
    color: #D4AF37;
}

.pin-marker:hover {
    transform: scale(1.2);
}

.pin-label {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.pin-label small {
    color: #D4AF37;
    font-weight: 700;
}

.map-pin:hover .pin-label {
    opacity: 1;
    visibility: visible;
}

/* Pin Positions - Adjusted for Bingxue Indonesia Map */
/* Jakarta - Jawa Barat */
.pin-1 {
    left: 28%;
    top: 78%;
    animation-delay: 0.3s;
}

/* Bandung - Jawa Barat */
.pin-2 {
    left: 32%;
    top: 80%;
    animation-delay: 0.6s;
}

/* Surabaya - Jawa Timur */
.pin-3 {
    left: 44%;
    top: 79%;
    animation-delay: 0.9s;
}

/* Medan - Sumatra Utara */
.pin-4 {
    left: 13%;
    top: 42%;
    animation-delay: 1.2s;
}

/* Makassar - Sulawesi */
.pin-5 {
    left: 58%;
    top: 68%;
    animation-delay: 1.5s;
}

/* Bali */
.pin-6 {
    left: 50%;
    top: 82%;
    animation-delay: 1.8s;
}

/* Semarang - Jawa Tengah */
.pin-7 {
    left: 38%;
    top: 78%;
    animation-delay: 2.1s;
}

.stats-bar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
}

.stats-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== BENEFIT CARDS ==================== */
.benefit-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.benefit-card-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.benefit-icon.gold {
    background: #FEF3C7;
    color: #D4AF37;
}

.benefit-icon.green {
    background: #D1FAE5;
    color: #059669;
}

.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
}

.benefit-list-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.benefit-list-icon.gold {
    background: #FEF3C7;
    color: #D4AF37;
}

.benefit-list-icon.green {
    background: #D1FAE5;
    color: #059669;
}

.benefit-list li span {
    color: #4b5563;
    line-height: 1.6;
}

/* ==================== BRAND CARDS ==================== */
.brand-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #D4AF37;
    font-weight: 600;
    transition: gap 0.3s;
}

.brand-link:hover {
    gap: 0.75rem;
}

/* ==================== ARTICLE CARDS ==================== */
.article-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.article-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

.article-category {
    background: #FEF3C7;
    color: #D4AF37;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #D4AF37;
    font-weight: 600;
    transition: gap 0.3s;
}

.article-link:hover {
    gap: 0.75rem;
}

/* ==================== CTA CARD ==================== */
.cta-card {
    background: linear-gradient(135deg, #D4AF37, #B8942D);
    border-radius: 2rem;
    padding: 4rem 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,64L60,80C120,96,240,128,360,133.3C480,139,600,117,720,112C840,107,960,117,1080,122.7C1200,128,1320,128,1380,128L1440,128L1440,200L1380,200C1320,200,1200,200,1080,200C960,200,840,200,720,200C600,200,480,200,360,200C240,200,120,200,60,200L0,200Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* ==================== FADE IN ANIMATION ==================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== FORM INPUTS ==================== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #D4AF37, #B8942D);
    border-radius: 4px;
}

/* ==================== TEXT SELECTION ==================== */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: #1a1a1a;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {

    .section-heading,
    .section-heading-center {
        font-size: 1.875rem;
    }

    .product-carousel-track {
        gap: 0.25rem;
    }

    .product-image-wrapper {
        width: 100px;
        height: 140px;
    }

    .product-center .product-image-wrapper {
        width: 140px;
        height: 190px;
    }

    .product-side-left, .product-side-right {
        display: none;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .carousel-prev {
        left: 0.25rem;
    }

    .carousel-next {
        right: 0.25rem;
    }

    .map-pin {
        display: flex;
        transform: scale(0.6);
        transform-origin: center;
    }
    
    .map-pin:hover {
        transform: scale(0.8);
    }

    .hero-slider {
        height: 60vh !important;
        min-height: 450px !important;
    }

    .hero-slide h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .hero-slide p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .partner-logo {
        width: 120px;
        height: 80px;
    }

    .partner-track {
        gap: 2rem;
    }

    .floating-badge {
        position: relative;
        left: auto;
        bottom: auto;
        margin-top: 1.5rem;
        padding: 1rem;
    }
    
    .section-heading, .section-heading-center {
        font-size: 2rem;
    }
}