/* ==========================================
   Custom Styling untuk Tijara Mas Website
   ========================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #202a3b 0%, #2d343f 100%);
    --primary-color: #202a3b;
    --secondary-color: #2d343f;
    --accent-color: #d4af37;
    --accent-dark: #b08d57;
    --light-bg: #f9f7f3;
    --dark-bg: #0d0f15;
    --border-color: #e4dfd6;
    --text-dark: #1b2330;
    --text-light: #66615b;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.15);
    --body-font: 'Montserrat', Arial, Helvetica, sans-serif;
    --heading-font: 'Playfair Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

img, iframe, video {
    max-width: 100%;
}

body, p, span, li, a, label, input, button, .btn, .form-control, .navbar-brand, .nav-link, .card-text, .lead, .text-dark, .text-light, .text-muted, .text-white {
    font-family: var(--body-font);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: var(--heading-font);
}

/* ========== Navbar Styling ========== */
.navbar {
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.navbar.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Force navbar always white with dark text */
.navbar {
    background-color: #ffffff !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
    color: #1f2937 !important;
    text-shadow: none;
}

.navbar .nav-link::after {
    background-color: var(--accent-color);
}

/* Navbar interactions */
.navbar .nav-link {
    transition: color 0.18s ease, opacity 0.18s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: var(--accent-color) !important;
}

.navbar .nav-link.active,
.navbar .nav-link.active:focus {
    color: var(--accent-color) !important;
    font-weight: 600;
}

/* Ensure scrolled state has a clear shadow */
.navbar.scrolled {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

.whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1050;
    background: #25d366;
    color: #ffffff;
    border-radius: 50px;
    padding: 0.8rem 1.1rem;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
    font-weight: 700;
    text-decoration: none;
    gap: 0.75rem;
    min-height: 56px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.22);
}

.whatsapp-float i {
    font-size: 1.3rem;
}

.whatsapp-float span {
    display: inline-block;
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .whatsapp-float {
        right: 0.75rem;
        bottom: 0.75rem;
        padding: 0.85rem 1rem;
        min-height: 52px;
    }
    .whatsapp-float span {
        font-size: 0.85rem;
    }
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: #1f2937 !important;
    text-shadow: none;
}

.navbar.scrolled .nav-link::after {
    background-color: var(--accent-color);
}

.navbar-brand {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
/* ==========================================
   Navbar Optimization
   ========================================== */

.navbar {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.navbar-brand {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.nav-link {
    font-size: 0.95rem;
}

/* Tablet */
@media (max-width: 991.98px) {

    .navbar {
        padding-top: 0.45rem;
        padding-bottom: 0.45rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-brand img {
        height: 48px;
    }

}

/* Mobile */
@media (max-width: 767.98px) {

    .navbar {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 44px;
        margin-right: 0;
    }

    .nav-link {
        font-size: 0.95rem;
    }

}

/* ========== Hero Section ========== */
.hero-section {
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.hero-copy h1,
.hero-copy p {
    color: inherit;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 360px;
    height: 360px;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-card {
    background: #f8f8f8;
}

.btn-outline-dark {
    color: #202a3b;
    border-color: rgba(32, 42, 59, 0.15);
}

.btn-outline-dark:hover {
    background: rgba(32, 42, 59, 0.08);
    color: #202a3b;
}

.gallery-carousel .carousel-item {
    min-height: 85vh;
}

.gallery-slide {
    height: 100vh;
    object-fit: cover;
}

/* Mobile/tablet fallback: use a smaller viewport height to avoid excessive scrolling */
@media (max-width: 768px) {
    .gallery-carousel .carousel-item { min-height: 60vh; }
    .gallery-slide { height: 60vh; }
}

.hero-copy.text-white h1,
.hero-copy.text-white p {
    color: #ffffff !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(30px);
    }
}

.hero-section h1 {
    font-weight: 700;
    line-height: 1.2;
    animation: slideInDown 0.8s ease-out;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-image {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.hero-image img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    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);
    }
}

/* ========== Divider ========== */
.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ========== About Section ========== */
#about {
    background-color: var(--dark-bg);
    color: var(--white);
}

#about .divider {
    background: rgba(212, 175, 55, 0.95);
}

#about .card-title,
#about .card-text,
#about .lead {
    color: white;
}

#about .icon-box {
    background: var(--accent-color);
}

.card-hover {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark) !important;
}

.icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.card-hover:hover .icon-box {
    transform: scale(1.1) rotate(10deg);
}

/* ========== Services Section ========== */
#services {
    padding-top: 60px;
    padding-bottom: 60px;
}

.service-card {
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
}

.service-hover {
    transition: all 0.3s ease;
}

.service-hover:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-dark) !important;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.service-hover:hover .service-icon {
    color: var(--accent-color);
    transform: scale(1.2) rotate(-10deg);
}

/* ========== Statistics Section ========== */
.stat-box {
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stat-box:hover {
    transform: scale(1.1);
}

/* ========== Team Section ========== */
#team {
    background-color: #fff;
}

.team-card {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.team-hover {
    transition: all 0.3s ease;
}

.team-hover:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-dark) !important;
}

.team-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-hover:hover img {
    transform: scale(1.1);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-gradient);
    color: white !important;
    transform: scale(1.2);
}

/* ========== Contact Section ========== */
#contact {
    padding-top: 60px;
    padding-bottom: 60px;
    background: var(--white);
}

.contact-card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark) !important;
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(10deg);
}

/* ========== Form Styling ========== */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-control::placeholder {
    color: var(--text-light);
}

.btn {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 24px;
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

.btn-accent {
    background: var(--accent-color);
    border: 1px solid var(--accent-dark);
    color: #fff;
}

.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.45);
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-2px);
}

/* ========== Footer ========== */
footer {
    background: var(--primary-gradient);
}

footer a {
    transition: all 0.3s ease;
}

/* ========== Responsive Improvements ========== */

@media (max-width: 991.98px) {

    .hero-section {
        background-attachment: scroll;
        min-height: auto;
    }

    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-section .btn {
        width: 100%;
    }

}

@media (max-width: 767.98px) {

    .hero-section {
        background-position: center top;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    iframe {
        height: 280px !important;
    }

}

/* ========== Animations ========== */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .hero-section::before {
        width: 300px;
        height: 300px;
        top: -20%;
        right: -5%;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    #contact .d-flex {
        flex-direction: column;
    }

    #contact .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-section::before {
        display: none;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .row.mb-4 {
        margin-bottom: 2rem !important;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* ========== Scroll Animations ========== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-in {
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

/* ========== Utility Classes ========== */
.gh-5 {
    gap: 3rem;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== Loading & Transition States ========== */
a, button {
    transition: all 0.3s ease;
}

/* ========== Custom Scrollbar ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-dark);
}

/* ==========================================
   Perubahan Baru - Tijara Mas Website
   ========================================== */

/* Hero Buttons Stack (Vertical alignment like the image) */
.hero-buttons-stack {
    max-width: 280px;
}

@media (max-width: 991.98px) {
    .hero-buttons-stack {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Hero Installment Card */
.hero-installment-card {
    background: rgba(13, 15, 21, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 380px;
    margin: 0 auto;
    box-shadow: var(--shadow-dark);
}

.badge-limited {
    display: inline-block;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.cicilan-title {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #dfdfdf;
    font-weight: 600;
}

.cicilan-large {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.9;
    font-family: var(--heading-font);
    color: #ffffff;
}

.cicilan-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.cicilan-number {
    font-size: 6rem;
    font-weight: 800;
    line-height: 0.9;
    font-family: var(--heading-font);
    color: #ffffff;
}

.cicilan-text-stack {
    font-size: 1.1rem;
    line-height: 1.1;
    color: #ffffff;
}

.cicilan-bullet {
    font-size: 0.85rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
}

.btn-gold-card {
    background-color: var(--accent-color) !important;
    color: #0d0f15 !important;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.btn-gold-card:hover {
    background-color: #ffffff !important;
    color: #0d0f15 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Video Portrait Section & Wrapper in About Us */
.video-portrait-wrapper {
    position: relative;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 3px var(--accent-color);
    aspect-ratio: 9/16;
}

.video-portrait-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-control-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.video-play-btn {
    background: rgba(13, 15, 21, 0.75);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: #0d0f15;
    border-color: var(--accent-color);
}

/* Video Reels Style Sidebar Overlay */
.video-sidebar-overlay {
    position: absolute;
    right: 15px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
    align-items: center;
}

.sidebar-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease;
}

.sidebar-icon:hover {
    transform: scale(1.1);
}

.sidebar-icon span {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

/* Floating Installment Badge */
.floating-installment-badge {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 1050;
    background: rgba(13, 15, 21, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
}

.floating-installment-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
    color: var(--accent-color);
}

.floating-installment-badge i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.floating-installment-badge .badge-divider {
    width: 1px;
    height: 15px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .floating-installment-badge {
        bottom: 5.5rem; /* Pindah ke atas agar tidak tumpang tindih dengan tombol WA pada mobile */
        left: 50%;
        transform: translateX(-50%);
        width: max-content;
    }
    .floating-installment-badge:hover {
        transform: translateX(-50%) translateY(-3px);
    }
}

