/********** Template CSS **********/
:root {
    --bs-tertiary: #687693;
}

/* Menambahkan efek scroll mulus untuk seluruh halaman */
html {
    scroll-behavior: smooth;
}

.back-to-top {
    position: fixed !important;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Font ***/
.ff-open-sans {
    font-family: "Open Sans", sans-serif;
}

.ff-roboto-slab {
    font-family: "Roboto Slab", serif;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 600 !important;
}

/*** Button & Interaksi ***/
.btn.btn-primary,
.btn.btn-secondary {
    font-family: "Roboto Slab", serif;
    font-weight: 600;
    text-transform: uppercase;
}

/* Menambahkan animasi saat tombol disorot (hover) */
.btn {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Nav Bar ***/
.navbar .navbar-nav .nav-link {
    margin: 0 10px;
    padding: 0;
    outline: none;
    font-size: 16px;
    color: var(--bs-light);
    transition: color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 7 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
}

.navbar .dropdown-menu .dropdown-item {
    transition: all 0.3s ease;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item.active {
    color: var(--bs-white);
    background: var(--bs-primary);
    padding-left: 20px; /* Efek bergeser sedikit saat menu disorot */
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }
    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header & Slider ***/
.hero-header {
    position: relative;
}

.hero-header::before {
    position: absolute;
    content: "";
    width: 100%;
    top: -500%;
    left: 0;
    bottom: 0;
    background: var(--bs-secondary);
    z-index: -1;
}

.header-carousel {
    position: relative;
    padding-right: 45px;
}

/* Memperhalus gambar slider */
.header-carousel img { 
    filter: brightness(0.9); 
}

.header-carousel .owl-dots {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 5px 0;
    width: 15px;
    height: 15px;
    border: 2px solid var(--bs-primary);
    transition: .5s;
}

.header-carousel .owl-dot.active {
    height: 30px;
    background: var(--bs-primary);
    border-radius: 10px;
}

/*** Section Title ***/
.section-title {
    position: relative;
    padding-left: 25px;
    display: inline-block;
    text-transform: uppercase;
    line-height: 1rem;
    letter-spacing: 2px;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 15px;
    height: 15px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--bs-dark);
}

.section-title.text-primary::before {
    background: var(--bs-primary);
}

/*** About ***/
.about-exp {
    position: absolute;
    width: 100%;
    height: 100%;
    right: -45px;
    bottom: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* =================================================================
   TAMBAHAN CSS EFEK ANIMASI KARTU (AREA PRAKTIK, KASUS, TIM, BLOG)
   ================================================================= */
.practice-item, .case-item, .team-item, .blog-item {
    transition: all 0.4s ease-in-out;
    background-color: #ffffff;
}

.practice-item:hover, .case-item:hover, .team-item:hover, .blog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent !important;
    z-index: 2;
    border-radius: 8px;
}

/* Efek Zoom halus pada gambar saat di-hover */
.case-item .mt-auto, .blog-item, .team-img { overflow: hidden; }
.case-item img, .blog-item img, .team-img img {
    transition: transform 0.5s ease;
}
.case-item:hover img, .blog-item:hover img, .team-item:hover img {
    transform: scale(1.05);
}

/*** Practice ***/
@media (max-width: 768px) {
    .practice-item {
        border: none !important;
        box-shadow: 0 0 45px rgba(0, 0, 0, .06);
    }
}

@media (min-width: 992px) {
    .practice-item.border-lg-end {
        border-right: 1px solid #dee2e6;
    }
    .practice-item.border-lg-end-0 {
        border-right: none !important;
    }
    .practice-item.border-lg-bottom-0 {
        border-bottom: none !important;
    }
}

/*** Case ***/
.case-item h1 {
    color: var(--bs-white);
    -webkit-text-stroke: 1px var(--bs-primary);
    text-shadow:
        -1px -1px 0 var(--bs-primary),
         1px -1px 0 var(--bs-primary),
        -1px  1px 0 var(--bs-primary),
         1px  1px 0 var(--bs-primary);
    transition: all 0.3s ease;
}

.case-item:hover h1 {
    color: var(--bs-primary); /* Angka transparan akan menjadi solid saat disorot */
}

/*** Team ***/
.team-item .team-des {
    position: relative;
    height: 110px;
    text-align: center;
    overflow: hidden;
}

.team-item .team-des .team-text {
    position: relative;
    width: 100%;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*** Footer ***/
.footer {
    color: var(--bs-light);
    background: var(--bs-dark);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--bs-light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .list-group li {
    background: transparent;
    border-color: rgba(255, 255, 255, .15);
}

.footer .list-group li a {
    color: var(--bs-light);
    transition: color 0.3s ease;
}

.footer .list-group li a:hover {
    color: var(--bs-primary);
}

.footer .list-group li small {
    color: var(--bs-tertiary);
}

/*** Copyright ***/
.copyright {
    color: var(--bs-white);
    background: #121624;
}

/*** Utilitas Tambahan Khusus ***/
.tracking-wide { 
    letter-spacing: 1.5px; 
}

.hover-primary { 
    transition: color 0.3s ease; 
}

.hover-primary:hover { 
    color: var(--bs-primary) !important; 
}
