/* Modern Professional Styling */

/* Font Import and Base Styles */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

/* Custom Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseSoft {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #E53935;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D32F2F;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Focus Styles */
button:focus,
a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.3);
}

/* YouTube Video Frame - clean di mobile */
.youtube-video-frame {
    background: #111827;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
@media (min-width: 640px) {
    .youtube-video-frame {
        border-radius: 1.5rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    }
}
.youtube-video-frame__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to right, #dc2626, #ef4444);
    padding: 0.75rem 1rem;
}
@media (min-width: 640px) {
    .youtube-video-frame__header {
        padding: 1rem 1.5rem;
    }
}
.youtube-video-frame__dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: rgba(254, 202, 202, 0.9);
}
.youtube-video-frame__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.youtube-video-frame__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
/* Tutup tombol "Watch on YouTube" di mobile: overlay bawah menangkap tap sehingga tidak redirect ke YouTube */
.youtube-embed-block-mobile-link {
    display: none;
}
@media (max-width: 767px) {
    .youtube-embed-block-mobile-link {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        z-index: 2;
        pointer-events: auto;
        background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    }
}

/* WhatsApp Button Animation */
.whatsapp-btn {
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(229, 57, 53, 0.2);
}

.btn-pulse {
    animation: pulseSoft 1.8s infinite;
}

/* Custom List Styles */
.custom-list {
    list-style: none;
    padding-left: 1.5rem;
}

.custom-list li {
    position: relative;
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.custom-list li::before {
    content: "•";
    color: #E53935;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

/* Image Hover Effects */
.product-image {
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* Custom Section Spacing */
.section-spacing {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 4rem 0;
    }
}

/* Custom Card Styles */
.custom-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonial Card Styles */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 4rem;
    color: #E53935;
    opacity: 0.1;
    font-family: serif;
}

/* Custom Badge Styles */
.custom-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: rgba(229, 57, 53, 0.1);
    color: #E53935;
}

/* Price Tag Styles */
.price-tag {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #E53935;
    color: white;
    border-radius: 0.5rem;
}

.price-tag::after {
    content: "";
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border-left: 0.5rem solid #E53935;
    border-top: 0.5rem solid transparent;
    border-bottom: 0.5rem solid transparent;
}

/* Professional Navigation Styles */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link.active {
    color: #E53935;
}

.nav-link.active::after {
    width: 100%;
}

/* Backdrop Blur Support */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Professional Button Styles */
.btn-primary {
    font-weight: 600;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Glass Morphism Effects */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-dark {
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Professional Card Hover Effects */
.professional-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5rem;
    border: 1px solid rgba(229, 57, 53, 0.1);
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
}

.professional-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(229, 57, 53, 0.2);
}

/* Gradient Text Effects */
.gradient-text {
    background: linear-gradient(135deg, #E53935 0%, #D32F2F 50%, #B71C1C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Section Backgrounds */
.section-bg-pattern {
    background-image: 
        radial-gradient(circle at 25px 25px, rgba(229, 57, 53, 0.1) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(229, 57, 53, 0.05) 2px, transparent 0);
    background-size: 100px 100px;
}

/* Professional Shadows */
.shadow-professional {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-professional-lg {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Responsive Typography */
@media (max-width: 640px) {
    .responsive-text-hero {
        font-size: 1.875rem; /* ~ text-3xl */
        line-height: 1.3;
    }
}

@media (min-width: 641px) and (max-width: 1023px) {
    .responsive-text-hero {
        font-size: 2.5rem; /* between text-3xl and text-4xl */
        line-height: 1.2;
    }
}

@media (min-width: 1024px) {
    .responsive-text-hero {
        font-size: 3rem; /* ~ text-5xl */
        line-height: 1.1;
    }
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Brand Color Override: Ganti semua merah utama ke rgb(91, 80, 133) */
:root {
    --brand-main-rgb: 91, 80, 133;
}

/* Tailwind utility overrides */
.text-red-600,
.text-red-500 {
    color: rgb(var(--brand-main-rgb)) !important;
}

.bg-red-50,
.bg-red-100,
.bg-red-500,
.bg-red-600,
.bg-red-700 {
    background-color: rgb(var(--brand-main-rgb)) !important;
}

.border-red-200,
.border-red-500,
.border-red-600 {
    border-color: rgb(var(--brand-main-rgb)) !important;
}

.hover\:bg-red-600:hover,
.hover\:bg-red-700:hover {
    background-color: rgb(var(--brand-main-rgb)) !important;
}

/* Gradient helpers that sebelumnya pakai merah */
.bg-gradient-to-r.from-red-600.to-red-500 {
    background-image: linear-gradient(to right, rgb(var(--brand-main-rgb)), rgb(var(--brand-main-rgb))) !important;
}

.bg-gradient-to-br.from-red-200.to-pink-200,
.bg-gradient-to-br.from-red-100.to-pink-100 {
    background-image: linear-gradient(to bottom right, rgb(var(--brand-main-rgb)), rgba(var(--brand-main-rgb), 0.85)) !important;
}

/* Custom components di CSS ini yang pakai merah langsung */
::-webkit-scrollbar-thumb {
    background: rgb(var(--brand-main-rgb));
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--brand-main-rgb));
}

button:focus,
a:focus {
    box-shadow: 0 0 0 3px rgba(var(--brand-main-rgb), 0.3);
}

.youtube-video-frame__header {
    background: linear-gradient(to right, rgb(var(--brand-main-rgb)), rgb(var(--brand-main-rgb)));
}

.custom-list li::before {
    color: rgb(var(--brand-main-rgb));
}

.testimonial-card::before {
    color: rgba(var(--brand-main-rgb), 0.4);
}

.custom-badge {
    background-color: rgba(var(--brand-main-rgb), 0.1);
    color: rgb(var(--brand-main-rgb));
}

.price-tag {
    background: rgb(var(--brand-main-rgb));
}

.price-tag::after {
    border-left-color: rgb(var(--brand-main-rgb));
}

.nav-link.active {
    color: rgb(var(--brand-main-rgb));
}

.professional-card {
    border: 1px solid rgba(var(--brand-main-rgb), 0.1);
}

.professional-card:hover {
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(var(--brand-main-rgb), 0.2);
}

.gradient-text {
    background: linear-gradient(135deg,
        rgb(var(--brand-main-rgb)) 0%,
        rgb(var(--brand-main-rgb)) 50%,
        rgb(var(--brand-main-rgb)) 100%);
}

.section-bg-pattern {
    background-image:
        radial-gradient(circle at 25px 25px, rgba(var(--brand-main-rgb), 0.1) 2px, transparent 0),
        radial-gradient(circle at 75px 75px, rgba(var(--brand-main-rgb), 0.05) 2px, transparent 0);
}
