/* =========================================
   VARIABLES
========================================= */
:root {
    --bs-primary: #0ca678; /* Teal / Hijau kebiruan */
    --bs-primary-rgb: 12, 166, 120;
    
    --transition-all: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Override default primary color across Bootstrap */
.text-primary {
    color: var(--bs-primary) !important;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.bg-primary-subtle {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #099268 !important;
    border-color: #099268 !important;
    box-shadow: 0 5px 15px rgba(12, 166, 120, 0.3);
}

.btn-outline-primary {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.btn-outline-primary:hover, .btn-outline-primary:active, .btn-outline-primary.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
}

.border-primary {
    border-color: var(--bs-primary) !important;
}

/* =========================================
   GLOBAL OVERRIDES & UTILITIES
========================================= */
body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed navbar */
}

.transition-all {
    transition: var(--transition-all);
}

.transition-transform {
    transition: transform 0.5s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.hover-translate-y:hover {
    transform: translateY(-10px);
}

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

/* Memastikan elemen turunan bisa dikontrol oleh hover pada parent (.group) */
.group:hover .hover-scale {
    transform: scale(1.1);
}

.cursor-pointer {
    cursor: pointer;
}

.translate-y-20 {
    transform: translateY(20px);
}

.hover-bg-light:hover {
    background-color: var(--bs-secondary-bg);
}

/* =========================================
   NAVBAR
========================================= */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(var(--bs-body-bg-rgb), 0.85) !important;
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 10px 0;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: var(--bs-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Theme Toggle Icons */
[data-bs-theme="dark"] .sun-icon { display: block !important; }
[data-bs-theme="dark"] .moon-icon { display: none !important; }

/* =========================================
   HERO SECTION
========================================= */
.gradient-text {
    background: linear-gradient(45deg, var(--bs-body-color), var(--bs-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* =========================================
   TIMELINE (CUSTOM)
========================================= */
.custom-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.custom-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background-color: var(--bs-border-color);
}

/* Mobile adjust for timeline */
@media (max-width: 768px) {
    .custom-timeline::before {
        left: 10px;
    }
    .custom-timeline .timeline-item {
        padding-left: 30px !important;
    }
    .custom-timeline .timeline-dot {
        left: 10px !important;
    }
}

/* =========================================
   3D GALLERY OVERLAYS
========================================= */
.gallery-img-container:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-img-container:hover .gallery-overlay span {
    transform: translateY(0);
}

/* =========================================
   ANIMATIONS (FADE IN ON SCROLL)
========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-left {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible, .fade-left.visible {
    opacity: 1;
    transform: translate(0);
}

/* =========================================
   BACK TO TOP
========================================= */
#back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background-color: #099268 !important;
}

/* Custom text sizes for marketplace look */
.fs-7 { font-size: 0.85rem !important; }
.fs-8 { font-size: 0.75rem !important; }
