/********** Template CSS **********/
:root {
    --primary: #99BD49;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn {
    font-weight: 700;
    transition: all 0.3s var(--transition-smooth);
    transform: translateZ(0);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    perspective: 1000px;
}

.btn:hover {
    -webkit-box-shadow: 0 12px 24px -8px rgba(85, 85, 85, 0.4);
    -moz-box-shadow: 0 12px 24px -8px rgba(85, 85, 85, 0.4);
    box-shadow: 0 12px 24px -8px rgba(85, 85, 85, 0.4);
    transform: translateY(-2px) translateZ(0);
}

.btn:active {
    transform: translateY(0) scale(0.98) translateZ(0);
    transition: all 0.1s var(--transition-smooth);
}

.btn-primary {
    color: #FFFFFF;
}

.btn-orange {
    color: #fd7e14 !important;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
    transition: all 0.3s var(--transition-bounce);
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    animation: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(153, 189, 73, 0.7); }
    50% { box-shadow: 0 0 0 15px rgba(153, 189, 73, 0); }
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: all 0.3s var(--transition-smooth);
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #fd7e14;
    transform: translateY(-2px);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: #fd7e14;
        transition: all 0.4s var(--transition-elastic);
        transform: translateX(-50%);
        border-radius: 3px;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 50%;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

.hero-header {
    background: url(../img/hero-beranda.jpg) top right no-repeat;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); /* nilai 0.45 bisa diganti: 0.3–0.6 */
    z-index: 1;
}

.hero-header > .container {
    position: relative;
    z-index: 2;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: all 0.4s var(--transition-smooth);
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
    transition: all 0.4s var(--transition-elastic);
}

.service-item:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 10px 30px rgba(153, 189, 73, 0.3);
}

.service-item .service-icon i {
    transform: rotate(15deg);
    transition: all 0.4s var(--transition-smooth);
}

.service-item:hover .service-icon i {
    transform: rotate(0deg) scale(1.15);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
    transition: all 0.3s var(--transition-bounce);
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
    transform: scale(1.1);
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.price-carousel .owl-nav .owl-prev:active,
.price-carousel .owl-nav .owl-next:active {
    transform: scale(0.95);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: all 0.3s var(--transition-elastic);
    box-shadow: 0 4px 12px rgba(153, 189, 73, 0.4);
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(29, 42, 77, 0.5);
}

.team-carousel .owl-nav .owl-prev:active,
.team-carousel .owl-nav .owl-next:active {
    transform: scale(0.9);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: all 0.4s var(--transition-elastic);
    cursor: pointer;
}

.testimonial-carousel .owl-dot:hover {
    transform: scale(1.3);
    background: rgba(153, 189, 73, 0.3);
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(153, 189, 73, 0.5);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}
/* ====== Performance Optimizations ====== */

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.animate-pulse {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Slide In Up Animation for Back to Top */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== Mobile Responsive Enhancements ====== */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero-section h1 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    /* Card spacing on mobile */
    .card-modern {
        margin-bottom: 1rem;
    }
    
    /* Better touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Section spacing */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Text scaling */
    h2 {
        font-size: 1.5rem !important;
    }
    
    h3 {
        font-size: 1.25rem !important;
    }
    
    /* Footer mobile fixes */
    footer .col-lg-4,
    footer .col-md-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile fixes */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero CTA buttons stack */
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Smaller font sizes */
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    /* Card images */
    .card-modern img {
        height: 180px;
        object-fit: cover;
    }
    
    /* Social share buttons */
    .social-share-btn {
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }
}