:root {
    --sunda-primary: #1F4E3D; /* Deep Forest Green */
    --sunda-secondary: #2C6B50; /* Lighter Green */
    --sunda-brown: #8B5A2B; /* Earthy Brown */
    --sunda-gold: #D4AF37; /* Sunda Gold */
    --sunda-dark: #1a1a1a;
    --sunda-light: #f4f6f5;
}

body {
    background-color: var(--sunda-light);
    color: #333;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Colors Utilities */
.text-sunda-primary { color: var(--sunda-primary) !important; }
.text-sunda-gold { color: var(--sunda-gold) !important; }
.text-sunda-brown { color: var(--sunda-brown) !important; }
.bg-sunda-primary { background-color: var(--sunda-primary) !important; }
.bg-sunda-dark { background-color: var(--sunda-dark) !important; }
.bg-sunda-gold { background-color: var(--sunda-gold) !important; }

/* Buttons */
.btn-sunda-primary {
    background-color: var(--sunda-primary);
    color: white;
    transition: all 0.3s ease;
    border: none;
}

.btn-sunda-primary:hover {
    background-color: var(--sunda-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 78, 61, 0.3);
}

.btn-outline-sunda {
    border: 2px solid var(--sunda-primary);
    color: var(--sunda-primary);
    transition: all 0.3s ease;
}

.btn-outline-sunda:hover {
    background-color: var(--sunda-primary);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.glass-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.navbar-nav .nav-link {
    color: #555;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--sunda-primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--sunda-gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after, 
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Running Text Modern */
.running-text-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-modern {
    display: inline-block;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100vw); }
    100% { transform: translateX(-100%); }
}

/* Cards */
.sunda-card {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.sunda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Footer Social Icons */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--sunda-gold);
    color: white;
    transform: translateY(-3px);
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover { color: var(--sunda-gold); }

/* Custom Utilities & Container Adjustments */
@media (min-width: 768px) {
    .container { max-width: 90%; }
}

@media (min-width: 992px) {
    .container { max-width: 950px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1140px; }
}

@media (min-width: 1400px) {
    .container { max-width: 1440px; }
}

.text-sm { font-size: 0.875rem; }

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Hero Slider */
.hero-slider {
    height: 65vh;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.hero-slider .carousel-item {
    height: 65vh;
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

/* Cinematic Ken Burns Slow Zoom */
.hero-bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1);
    transition: transform 20s linear;
}

.carousel-item.active .hero-bg-img {
    transform: scale(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: -1;
}

.carousel-caption {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    left: 10%;
    right: 10%;
    z-index: 10;
}

/* Staggered Content Slide-up Stagger Animations */
.carousel-caption .badge {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-caption h1 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

.carousel-caption p {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.carousel-item.active .carousel-caption .badge,
.carousel-item.active .carousel-caption h1,
.carousel-item.active .carousel-caption p {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Capsule Indicators */
.carousel-indicators button {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    border: none !important;
    margin: 0 6px !important;
    opacity: 0.7 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.carousel-indicators button.active {
    width: 26px !important;
    border-radius: 4px !important;
    background-color: var(--sunda-gold) !important;
    opacity: 1 !important;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-slider, .hero-slider .carousel-item {
        height: 320px;
        min-height: 320px;
    }
}

@media (max-width: 575.98px) {
    .hero-slider, .hero-slider .carousel-item {
        height: 250px !important;
        min-height: 250px !important;
    }
    .carousel-indicators {
        bottom: 8px !important;
    }
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Animated Gradient Background & Objects */
.bg-gradient-animated {
    position: relative;
    overflow: hidden;
    background: linear-gradient(-45deg, #4A2E15, var(--sunda-brown), var(--sunda-gold), #2F1A0C);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
}

/* Elevate content above floating objects */
.bg-gradient-animated > * {
    position: relative;
    z-index: 1;
}

/* Floating Object Base */
.bg-gradient-animated::before,
.bg-gradient-animated::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: floatObject 15s infinite ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Object 1 */
.bg-gradient-animated::before {
    width: 250px;
    height: 250px;
    top: -80px;
    left: 5%;
    background: rgba(212, 175, 55, 0.15); /* Sunda Gold */
}

/* Object 2 */
.bg-gradient-animated::after {
    width: 180px;
    height: 180px;
    bottom: -50px;
    right: 10%;
    background: rgba(255, 255, 255, 0.1);
    animation-delay: -5s;
    animation-duration: 18s;
    animation-direction: reverse;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatObject {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(40px, -50px) rotate(15deg) scale(1.1); }
    66% { transform: translate(-30px, 40px) rotate(-10deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* Custom Redesign Utilities */
.hover-gold {
    transition: color 0.25s ease-in-out;
}
.hover-gold:hover {
    color: var(--sunda-gold) !important;
}

.sunda-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.sunda-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Premium Floating Popup Modal */
.promo-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.promo-popup-wrapper.show {
    opacity: 1;
    visibility: visible;
}

.promo-popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55); /* Subtle dark overlay without any blur */
    cursor: pointer;
}

.promo-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    z-index: 10000;
    transform: scale(0.7) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: visible;
}

.promo-popup-wrapper.show .promo-popup-container {
    transform: scale(1) translateY(0);
}

.promo-popup-link {
    display: block;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.promo-popup-link:hover {
    transform: scale(1.02); /* Sleek micro-animation scale */
}

.promo-popup-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    /* Custom alpha drop shadow that follows the PNG illustration outline, not a box */
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
    transition: filter 0.3s ease;
}

.promo-popup-link:hover .promo-popup-img {
    /* Glowing Sunda Gold shadow on hover following the shape of the PNG */
    filter: drop-shadow(0 18px 36px rgba(212, 175, 55, 0.55));
}

/* Modern Close Button */
.promo-popup-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--sunda-primary);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10001;
}

.promo-popup-close:hover {
    background: var(--sunda-gold);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Body Scroll Lock */
body.popup-open {
    overflow: hidden !important;
}

/* Adjustments for smaller screens */
@media (max-width: 576px) {
    .promo-popup-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        background: var(--sunda-primary);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}
