/* ====================== CONSOLIDATED STYLES ====================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary: #0b0b0b;
}

/* Tailwind content font override */
.tailwind-content * {
    font-family: 'Inter', system_ui, sans-serif;
}

/* ====================== GLOBAL RESET & BASE ====================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: #f7f4f400;
}

html {
    scroll-behavior: none;
}

body {
    font-family: Arial, sans-serif;
}

/* ====================== NAVBAR (Slow Motion) ====================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.8s ease;
    z-index: 999;
    background-clip: padding-box;
    -webkit-background-clip: padding-box;
}

.navbar.transparent {
    background: rgba(0, 0, 0, 0);
}

.navbar.scrolled {
    background: rgba(49, 237, 124, 0.247);
    backdrop-filter: blur(60px);
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar a {
    color: rgb(254, 254, 254);
    text-decoration: none;
    margin: 12px;
    font-weight: 500;
}

.brand-gold {
    background: linear-gradient(90deg, #D4AF37, #FFD700, #C5A028);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 500;
}

/* Hover */
.nav-link:hover {
    color: #15f381;
    transform: translateY(-1px);
}

/* ====================== SECTION TITLE ====================== */
.section-title {
    font-family: 'Playfair Display', sans-serif;
}

/* ====================== HERO SLIDER (Cinematic Slow Motion) ====================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.slide.active {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(1.1) contrast(1.2) saturate(1) sepia(0.1) hue-rotate(-8deg);
    transform: scale(1.05);
    transition: transform 15s ease;
}

.slide.active img {
    transform: scale(1.12);
}

.overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 179, 80, 0), rgba(0, 0, 0, 0));
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 10%;
    color: #fff;
    max-width: 600px;
    opacity: 1;
    transform: translateY(30px);
    transition: all 2s ease;
}

.slide.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.slide-content p {
    font-size: 1.8rem;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0);
    border: none;
    color: rgb(255, 255, 255);
    font-size: 28px;
    padding: 1px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 75%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    backdrop-filter: blur(0px);
}

.hero-slider:hover .nav-btn {
    opacity: 1;
    visibility: visible;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.112);
}

.prev { left: 25px; }
.next { right: 25px; }

/* Dots */
.dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.6s;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background: rgba(255, 255, 255, 0);
}

.text-shadow-strong {
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.8),
                 0 3px 10px rgba(0, 0, 0, 0.6),
                 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ====================== SCROLL ANIMATIONS (Slow Motion) ====================== */
.hidden,
.show,
.hidden-left,
.show-left,
.hidden-right,
.show-right,
.hidden-top,
.show-top {
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* STATE AWAL (HIDDEN) */
.hidden {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
}

.hidden-left {
    opacity: 0;
    transform: translateX(-80px);
}

.hidden-right {
    opacity: 0;
    transform: translateX(80px);
}

.hidden-top {
    opacity: 0;
    transform: translateY(-80px);
}

/* STATE AKHIR (SHOW) */
.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.show-left {
    opacity: 1;
    transform: translateX(0);
}

.show-right {
    opacity: 1;
    transform: translateX(0);
}

.show-top {
    opacity: 1;
    transform: translateY(0);
}

/* ====================== PRODUCT HOVER DARK MODE ====================== */

/* Reset text supaya tidak transparan */
.product-card h3,
.product-card p,
.product-card span {
    color: #111827;
}

/* Overlay default (biar normal dulu) */
.product-card::before {
    background: rgba(255,255,255,0.05);
}

/* 🔥 HOVER: BACKGROUND HITAM */
.product-card:hover::before {
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(6px);
}

/* 🔥 TEXT JADI PUTIH */
.product-card:hover h3,
.product-card:hover p,
.product-card:hover span {
    color: #ffffff;
}

/* Optional: icon lebih terang */
.product-card:hover .text-4xl {
    color: #ffffff;
    opacity: 1;
}

/* Smooth transition */
.product-card h3,
.product-card p,
.product-card span {
    transition: color 0.6s ease;
}

.product-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.product-card:hover {
    transform: translateY(-6px) scale(1.02);
}

/* ====================== GENERAL TRANSITIONS ====================== */
.nav-link,
.section-title,
.card-hover {
    transition: all 0.6s ease;
}

/* ====================== FULLSCREEN LOADER ====================== */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 300px;
    height: auto;
    margin-bottom: 20px;
    animation: pulse 2.5s infinite ease-in-out;
}

@keyframes pulse {
    0%   { opacity: 0.6; transform: scale(0.95); }
    50%  { opacity: 1;   transform: scale(1); }
    100% { opacity: 0.6; transform: scale(0.95); }
}

/* ====================== SCROLL HIGHLIGHT EFFECT ====================== */
.highlight-scroll {
    position: relative;
    z-index: 10;
    animation: sectionHighlight 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sectionHighlight {
    0%   { box-shadow: 0 0 0 0 rgba(21, 243, 129, 0.85); transform: scale(1); }
    25%  { box-shadow: 0 0 0 25px rgba(21, 243, 129, 0.4); transform: scale(1.015); }
    60%  { box-shadow: 0 0 0 45px rgba(21, 243, 129, 0); transform: scale(1); }
    100% { box-shadow: none; transform: scale(1); }
}

/* ====================== PREMIUM CARD HOVER (Glassmorphism) ====================== */
.card-hover {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    transition: 
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        backdrop-filter 0.8s ease;
    backdrop-filter: blur(0px);
}

/* Glass overlay */
.card-hover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(0px);
    transition: all 0.8s ease;
    z-index: 0;
}

/* Content above overlay */
.card-hover > * {
    position: relative;
    z-index: 1;
}

/* Text hidden by default */
.card-hover h3,
.card-hover p,
.card-hover span {
    color: transparent;
    transition: all 0.6s ease;
}

/* Icon remains visible */
.card-hover .text-4xl {
    opacity: 0.8;
}

/* Hover state */
.card-hover:hover::before {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

.card-hover:hover h3 { color: #111827; }
.card-hover:hover p   { color: #4b5563; }
.card-hover:hover span { 
    color: #dce3e1b7; 
    background: #d1fae5; 
}
.card-hover:hover .text-4xl {
    opacity: 1;
}

/* Border glow effect */
.card-hover::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.card-hover:hover::after {
    opacity: 1;
}

.group:hover .submenu {
    transition-delay: 100ms;
}