/* Reset dan base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #3A1F0F;
    color: #fff;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    z-index: 1000;
}

.navbar.transparent {
    background-color: transparent !important;
    backdrop-filter: none;
    box-shadow: none;
}

.navbar.scrolled {
    background-color: rgba(58, 31, 15, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
    transition: color 0.3s ease;
}

.navbar.scrolled .navbar-brand {
    color: #F5C776 !important;
}

.logo img {
    width: 100px;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.scrolled .navbar-nav .nav-link {
    color: #F5C776 !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #F5C776 !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #F5C776;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(245, 199, 118, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #3A1F0F 0%, #5D2E1A 100%);
    background-image: url('/aset/hero-image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 46, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(45deg, #F5C776, #E6B85C);
    border: none;
    color: #3A1F0F;
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #E6B85C, #D4A94A);
    color: #3A1F0F;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 199, 118, 0.3);
}

.btn-outline-light {
    border: 2px solid #F5C776;
    color: #F5C776;
    background-color: transparent;
}

.btn-outline-light:hover {
    background-color: #F5C776;
    color: #3A1F0F;
    border-color: #F5C776;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Us Section */
#about {
    background-color: #3A1F0F;
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 199, 118, 0.05) 0%, rgba(58, 31, 15, 0.1) 100%);
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.sub-about {
    text-align: left;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #2A1810 0%, #3A1F0F 100%);
    border: 2px solid #F5C776;
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 500px;
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2A1810 0%, #3A1F0F 100%);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(245, 199, 118, 0.2);
}

.video-placeholder i {
    transition: all 0.3s ease;
}

.video-placeholder:hover i {
    transform: scale(1.1);
    color: #E6B85C !important;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(245, 199, 118, 0.05);
    border: 1px solid rgba(245, 199, 118, 0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(245, 199, 118, 0.1);
    border-color: rgba(245, 199, 118, 0.3);
    transform: translateY(-5px);
}

.feature-item i {
    transition: all 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.1);
}

/* Content Sections */
#programs {
    background-color: #2A1810;
}

.card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    background-color: #3A1F0F;
    border: 1px solid #F5C776;
}

.card p {
    text-align: left;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(245, 199, 118, 0.2) !important;
    border-color: #E6B85C;
}

.card-body {
    padding: 2rem;
    color: #fff;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #F5C776;
}

.text-primary {
    color: #F5C776 !important;
}

/* testimoni secton*/

#testimonials {
    background: linear-gradient(135deg, #3A1F0F 0%, #5D2E1A 100%);
}

.carousel .carousel-item {
    transition: transform 1s ease, opacity 1s ease;
}

#testimonialCarousel .carousel-inner {
    min-height: 200px;
}

.carousel-item p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
}

.carousel-item h5 {
    margin-top: 1rem;
    font-weight: 600;
    text-align: center;
}

.testimonial-card {
    background-color: #3A1F0F;
    border: 1px solid #F5C776;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(245, 199, 118, 0.1);
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(245, 199, 118, 0.2);
}

.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #F5C776;
    box-shadow: 0 8px 20px rgba(245, 199, 118, 0.2);
}


.testimonial-img:hover {
    transform: scale(1.05);
}

.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    transition: opacity 1s ease;
}

/* galeri section */

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Mitra section */

/* Mitra Perusahaan Section */
.logo-slider-section {
  padding: 2rem 1rem;
  overflow: hidden;
  margin-bottom: 45px;
}

.logo-slider-section h1, p {
  text-align: center;
}

.logo-slider-section h1 {
    font-size: 2.5rem;
}

.logo-slider-container {
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem
}

.logo-slide-track {
  display: flex;
  animation: slide 20s linear infinite;
  width: calc(250px * 10); /* 4 logo * 2 karena duplikat */
}

.logo-slide {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-slide img {
  max-width: 180px;
  height: auto;
  object-fit: contain;
}

/* Animasi geser */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* style FAQ */
/* FAQ Accordion Custom */
.accordion-item {
  background-color: #2b2b2b; /* dark coffee background */
  border: 1px solid #5a3e2b; /* coffee brown border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.accordion-button {
  background-color: #3a2d25; /* darker coffee */
  color: #f5deb3; /* light coffee/golden text */
  font-weight: 600;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease-in-out;
    white-space: normal;     /* biar teks bisa turun ke baris berikutnya */
  word-wrap: break-word;   /* potong kata panjang jika perlu */
  text-align: left;        /* teks rata kiri agar rapi */
    line-height: 1.4;        /* kasih jarak antar baris */
  padding-right: 1.5rem;   /* biar gak tabrakan sama icon collapse */
}

.accordion-button:hover {
  background-color: #5a3e2b; /* hover coffee brown */
  color: #fff;
}

.accordion-button:not(.collapsed) {
  background-color: #5a3e2b;
  color: #fff;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.2);
}

.accordion-body {
  background-color: #f9f5f1; /* light cream for contrast */
  color: #2b2b2b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* contact section */

#contact .form-control {
  background-color: #2A1810;
  border: 1px solid #F5C776;
  color: #fff;
}

#contact .form-control:focus {
  border-color: #E6B85C;
  box-shadow: 0 0 10px rgba(245, 199, 118, 0.2);
  background-color: #2A1810;
  color: #fff;
}

#contact label {
  color: #F5C776;
  font-weight: 500;
}

.contact-section {
    background-image: url('/aset/contact-bg-image.jpg'); /* Ganti dengan nama file gambar kamu */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 31, 15, 0.85); /* Overlay agar teks tetap terbaca */
    z-index: -1;
    backdrop-filter: blur(2px);
}

.contact-section .social-icons a:hover {
    color: #F5C776 !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.sub-contact {
    text-align: left;
}

/* footer */

.footer {
    border-top: 1px solid rgba(245, 199, 118, 0.2);
}

.footer a:hover {
    color: #F5C776 !important;
    transition: all 0.3s ease;
}

.footer .social-icons a:hover {
    transform: scale(1.1);
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
    
    /* About Us Mobile */
    .about-content h3 {
        font-size: 1.75rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-item h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional utility classes */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(245, 199, 118, 0.2);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(58, 31, 15, 0.5);
}

/* Custom color classes */
.bg-coffee-dark {
    background-color: #3A1F0F;
}

.bg-coffee-light {
    background-color: #F5C776;
}

.text-coffee-dark {
    color: #3A1F0F;
}

.text-coffee-light {
    color: #F5C776;
}

.border-coffee-light {
    border-color: #F5C776;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.btn-whatsapp:hover {
    background: linear-gradient(45deg, #128C7E, #075E54);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.btn-whatsapp i {
    font-size: 1.1rem;
}

/* Mobile WhatsApp Button */
.btn-whatsapp-mobile {
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

.btn-whatsapp-mobile:hover {
    background: linear-gradient(45deg, #128C7E, #075E54);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.btn-whatsapp-mobile i {
    font-size: 1.2rem;
}

/* Navbar layout adjustments */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.navbar-brand {
    flex-shrink: 0;
}

.navbar-collapse {
    flex-grow: 1;
    justify-content: center;
    transition: all 0.3s ease;
}

.navbar-nav {
    margin: 0 auto;
}

/* Mobile menu styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 991.98px) {
    .btn-whatsapp {
        display: none;
    }
    
    .navbar-collapse {
        justify-content: flex-start;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(58, 31, 15, 0.98);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(245, 199, 118, 0.2);
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .navbar-nav {
        margin: 0;
        text-align: center;
        width: 100%;
    }
    
    .navbar-toggler {
        order: 3;
        position: relative;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0.5rem;
        margin-left: auto;
    }
    
    .navbar-brand {
        order: 1;
        position: relative;
        z-index: 1001;
    }
    
    .navbar-collapse {
        order: 2;
    }
    
    /* Ensure navbar container maintains its position */
    .navbar .container {
        position: relative;
        flex-wrap: nowrap;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}
