/* ========================================
   RioichiStore - Custom Styles
   ======================================== */

:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --purple: #6f42c1;
    --light: #f8f9fa;
    --dark: #212529;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ========================================
   Navbar
   ======================================== */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    color: #333 !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
    padding-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.underline-svg {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    color: var(--primary);
}

.stat-box {
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Hero Image */
.hero-image {
    position: relative;
    z-index: 1;
}

.floating-card {
    animation: float 3s ease-in-out infinite;
    background: white;
    border-radius: 16px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.main-dashboard-card {
    border-radius: 20px;
    background: white;
}

.mini-card {
    border-radius: 12px;
}

.chart-placeholder {
    border-radius: 12px;
}

/* Decorative Shapes */
.decorative-shape {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: rgba(13, 110, 253, 0.1);
    top: 10%;
    right: 10%;
    animation: pulse 4s ease-in-out infinite;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: rgba(25, 135, 84, 0.1);
    bottom: 20%;
    left: 5%;
    animation: pulse 3s ease-in-out infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: rgba(255, 193, 7, 0.1);
    top: 40%;
    left: 15%;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* ========================================
   Partner Section
   ======================================== */
.partner-section {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.partner-logo {
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    font-weight: 600;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ========================================
   Cards & Badges
   ======================================== */
.badge {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.bg-primary-soft { background-color: rgba(13, 110, 253, 0.1) !important; }
.bg-success-soft { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-danger-soft { background-color: rgba(220, 53, 69, 0.1) !important; }
.bg-warning-soft { background-color: rgba(255, 193, 7, 0.1) !important; }
.bg-info-soft { background-color: rgba(13, 202, 240, 0.1) !important; }
.bg-purple-soft { background-color: rgba(111, 66, 193, 0.1) !important; }

.text-purple { color: var(--purple) !important; }

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.icon-circle {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Feature Cards */
.feature-card {
    border-radius: 20px;
    overflow: hidden;
}

/* Service Cards */
.service-card {
    border-radius: 20px;
    overflow: hidden;
}

/* Portfolio Cards */
.portfolio-card {
    border-radius: 20px;
    overflow: hidden;
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Fallback jika gambar belum ada */
.portfolio-image img[alt]:after {
    content: attr(alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 20px;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.object-fit-cover {
    object-fit: cover !important;
}


/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-success:hover {
    background: var(--success);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-warning:hover {
    background: var(--warning);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-info:hover {
    background: var(--info);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-danger:hover {
    background: var(--danger);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-purple {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-outline-purple:hover {
    background: var(--purple);
    color: white;
    transform: translateY(-2px);
}

.rounded-pill {
    border-radius: 50px !important;
}

/* ========================================
   WhatsApp Float Button
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-wa 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    background: #128c7e;
    transform: scale(1.1);
    color: white;
}

@keyframes pulse-wa {
    0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8); }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1a1d29;
}

.footer h4, .footer h6 {
    color: white;
}

.social-links .btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* ========================================
   Form Styles
   ======================================== */
.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .floating-card {
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   Utilities
   ======================================== */
.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

section {
    position: relative;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Smooth transitions for all interactive elements */
a, button, .card, .btn {
    transition: all 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}


/* ========================================
   Loading Animation
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   Additional Animations
   ======================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .navbar,
    .whatsapp-float,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid currentColor;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want dark mode support
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .navbar,
    .card {
        background-color: #2a2a2a;
        color: #f0f0f0;
    }
    */
}

/* ========================================
   Performance Optimizations
   ======================================== */
img {
    max-width: 100%;
    height: auto;
}

/* GPU acceleration for animations */
.hover-lift,
.floating-card,
.whatsapp-float {
    will-change: transform;
}

/* Lazy loading placeholder */
.lazy-load {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Additional Utility Classes
   ======================================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.overflow-hidden {
    overflow: hidden;
}

.position-relative {
    position: relative;
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

/* ========================================
   Custom Scrollbar for specific elements
   ======================================== */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f1f1f1;
}

.custom-scroll::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: #0b5ed7;
}


/* Image Placeholder (jika gambar belum diupload) */
.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.placeholder-content {
    padding: 20px;
}

.placeholder-content i {
    opacity: 0.8;
}

.placeholder-content p {
    font-weight: 600;
    margin-bottom: 5px;
}

.placeholder-content small {
    color: rgba(255,255,255,0.8);
    font-size: 0.75rem;
}
