/* Custom Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navbar Customization */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand img {
    margin-right: 10px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0;
    text-align: center;
    margin-top: 0;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Client Section Styles */
.client-slider {
    padding: 20px 0;
}

/* Client Logo Slider Styles */
.client-logo-section {
    background-color: #f8f9fa;
    overflow: hidden;
}

.client-logo-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.client-logo {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.swiper-pagination {
    position: relative;
    margin-top: 20px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
}

.owl-carousel .item {
    padding: 20px;
}

/* Custom Buttons */
.btn-primary {
    padding: 10px 25px;
    border-radius: 25px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Footer Customization */
footer {
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }
    
    /* Mobile Hero Section Fixes */
    .carousel {
        margin-top: 0;
    }
    
    .carousel-inner {
        height: 60vh;
        min-height: 400px;
    }
    
    .carousel-item img {
        height: 100%;
        min-height: 400px;
    }
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel-inner {
        height: 50vh;
        min-height: 350px;
    }
    
    .carousel-item img {
        min-height: 350px;
    }
    
    .carousel-indicators {
        margin-bottom: 0.5rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .carousel-inner {
        height: 45vh;
        min-height: 300px;
    }
    
    .carousel-item img {
        min-height: 300px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 15%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 0.5rem;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
        margin: 0 2px;
    }
}

@media (max-width: 360px) {
    .carousel-inner {
        height: 40vh;
        min-height: 250px;
    }
    
    .carousel-item img {
        min-height: 250px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 20%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        padding: 0.25rem;
    }
    
    .carousel-indicators button {
        width: 6px;
        height: 6px;
        margin: 0 1px;
    }
}

.navbar-nav .nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 15px;
    text-transform: uppercase;
}

.navbar-nav .nav-link.active {
    color: #FF0000;
}

.dropdown-menu {
    border-radius: 0;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 20px;
    text-transform: uppercase;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #FF0000;
}

.services-section {
    background-color: #f8f9fa;
}

.services-section .card {
    transition: transform 0.3s ease;
}

.services-section .card:hover {
    transform: translateY(-5px);
}

.services-section .card-body {
    padding: 2rem;
}

.services-section .fa-3x {
    color: #0d6efd;
}

.services-section .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.services-section .input-group {
    margin-top: 1rem;
}

/* Welcome Section */
.welcome-section {
    overflow: hidden;
    background-color: #fff;
}

.welcome-content {
    padding: 3rem 0;
}

.welcome-content h5 {
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.welcome-content .lead {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.welcome-image img {
    transition: transform 0.3s ease;
}

.welcome-image img:hover {
    transform: scale(1.05);
}

/* Advantages Section Styles */
.advantages-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.advantages-section .divider {
    width: 80px;
    height: 3px;
    background-color: var(--bs-primary);
    margin: 20px auto;
}

.advantage-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.advantage-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon i {
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon i {
    transform: scale(1.1);
}

.advantage-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-dark);
}

.advantage-card p {
    font-size: 1rem;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Smooth transition for all elements */
* {
    transition: all 0.3s ease-in-out;
}

/* Focus styles */
.advantage-card:focus-within {
    transform: translateY(-15px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.welcome-content:focus-within h2 {
    color: var(--bs-primary);
}

/* Slider Styles */
.carousel {
    margin-top: 0; /* Hilangkan space abu-abu */
}

.carousel-inner {
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
}

.carousel-item {
    height: 100%;
}

.hero-section {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-indicators {
    margin-bottom: 2rem;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4); /* sedikit lebih jelas */
    border-radius: 50%;
    padding: 1rem; /* perkecil dari 2rem jadi 1rem */
    background-size: 50% 50%; /* perkecil ikon panah di dalam lingkaran */
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.6); /* efek hover lebih elegan */
    transform: scale(1.1); /* sedikit membesar saat dihover */
}

/* Picture element responsive fixes */
.carousel-item picture {
    width: 100%;
    height: 100%;
    display: block;
}

.carousel-item picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Additional responsive improvements */
.carousel-item .d-block {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Ensure carousel controls are touch-friendly on mobile */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        min-width: 44px;
        min-height: 44px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Navbar Styles */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    transition: background-color 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
    color: #000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #FF0000;
}

.navbar .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.5);
}

.navbar .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(0, 0, 0, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: #ff0000 !important;
}

.navbar-nav .nav-item.active .nav-link {
    color: #ff0000 !important;
    font-weight: 600;
}

.navbar-nav .dropdown-menu {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-nav .dropdown-item {
    color: #333;
    padding: 0.7rem 1.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: #ffffff;
    color: #ff0000;
}

/* Custom 5-column layout */
.col-lg-1-5 {
    flex: 0 0 20%;
    max-width: 20%;
}

/* Responsive layout for advantages section */
@media (max-width: 767px) {
    .advantages-section .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .advantages-section .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .advantages-section .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Override col-lg-1-5 on mobile */
@media (max-width: 1199px) {
    .col-lg-1-5 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 1200px) {
    .col-lg-1-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Salin semua CSS dari index old.html */
/* Cari bagian <style> di index old.html dan pindahkan ke sini */

/* --- RESPONSIVE SLIDER FIX --- */
@media (max-width: 768px) {
  .hero-section,
  .carousel,
  .carousel-inner,
  .carousel-item,
  .carousel-item picture,
  .carousel-item img,
  .carousel-item .d-block {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .carousel-inner {
    /* Gunakan rasio 16:9, tinggi otomatis mengikuti lebar layar */
    aspect-ratio: 16/9;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
  }
  .carousel-item,
  .carousel-item picture {
    aspect-ratio: 16/9;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
  }
  .carousel-item img,
  .carousel-item .d-block {
    aspect-ratio: 16/9;
    width: 100vw !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    object-fit: contain !important; /* Gambar tidak terpotong, tetap proporsional */
    object-position: center !important;
    background: #fff;
  }
  .carousel-indicators {
    margin-bottom: 0.5rem;
  }
}

/* Responsive Text Classes for Advantages Section */
.advantage-card h6 {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .advantage-card h6 {
        font-size: 1.1rem;
    }
}

/* Medium screens (768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .advantage-card h6 {
        font-size: 0.95rem;
    }
}

/* Small screens (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .advantage-card h6 {
        font-size: 0.9rem;
    }
}

/* Extra small screens (up to 575px) */
@media (max-width: 575px) {
    .advantage-card h6 {
        font-size: 0.85rem;
    }
}

/* Very small screens (up to 480px) */
@media (max-width: 480px) {
    .advantage-card h6 {
        font-size: 0.8rem;
    }
}

/* Extra small screens (up to 360px) */
@media (max-width: 360px) {
    .advantage-card h6 {
        font-size: 0.75rem;
    }
}

/* Advantage Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.modal-body {
    padding: 2rem;
}

.modal-icon-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-icon-wrapper i {
    color: #0d6efd;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.modal-footer {
    padding: 1.5rem 2rem;
}

.modal-footer .btn {
    border-radius: 25px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Animation */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Advantage Card Hover Effects */
.advantage-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.advantage-card:active {
    transform: translateY(-2px);
}

/* Modal Backdrop */
.modal-backdrop.show {
    opacity: 0.7;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .modal-icon-wrapper i {
        font-size: 3rem !important;
    }
}

@media (max-width: 576px) {
    .modal-body {
        padding: 1rem;
    }
    
    .modal-icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .modal-icon-wrapper i {
        font-size: 2.5rem !important;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 0;
    text-align: center;
    margin-top: 0;
}

/* Carousel Styles */
.carousel {
    margin-top: 0;
    padding-top: 0; /* Sesuaikan dengan tinggi navbar */
}

.carousel-inner {
    margin-top: 0;
    padding-top: 0;
}

.carousel-item {
    margin-top: 0;
    padding-top: 0;
}

/* Ensure no gap between navbar and hero */
.navbar + .hero-section {
    margin-top: 0;
    padding-top: 0;
}

/* Remove any default body margin that might cause gap */
body {
    margin-top: 0;
    padding-top: 0;
}

/* Hero Section with proper spacing */
.hero-section {
    margin-top: 0;
    padding-top: 0;
}

/* Carousel positioning to avoid navbar overlap */
#heroCarousel {
    margin-top: 0;
    padding-top: 0; /* Height of navbar */
}

#heroCarousel .carousel-inner {
    margin-top: 0;
    padding-top: 0;
}

#heroCarousel .carousel-item {
    margin-top: 0;
    padding-top: 0;
}

/* Ensure carousel images are properly sized */
#heroCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Responsive carousel spacing */
@media (max-width: 768px) {
    #heroCarousel {
        padding-top: 0; /* Mobile navbar height */
    }
}

@media (max-width: 576px) {
    #heroCarousel {
        padding-top: 0; /* Small screen navbar height */
    }
}

@media (max-width: 480px) {
    #heroCarousel {
        padding-top: 0; /* Extra small screen navbar height */
    }
}

/* === FIX NAVBAR OVERLAP === */
body {
  margin-top: 0 !important;
  padding-top: 76px !important; /* Sesuaikan dengan tinggi navbar */
}

.hero-section,
#heroCarousel {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
