.timeline-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section divider styles */
.section-divider {
    height: 80px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 1) 100%);
    position: relative;
    margin: 60px 0;
}

.section-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 3px;
    background: #04b2f7;
    border-radius: 3px;
}

.section-divider.dark {
    background: linear-gradient(to bottom,
            rgba(240, 245, 255, 1) 0%,
            rgba(240, 245, 255, 0) 50%,
            rgba(240, 245, 255, 1) 100%);
}

/* Mobile Menu Styles */
/* Mobile Menu Styles */
#mobile-menu {
    position: fixed;
    top: 60px; /* Sesuaikan dengan tinggi navbar */
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.open {
    max-height: 500px; /* Sesuaikan dengan kebutuhan */
    overflow-y: auto;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

#mobile-menu.translate-y-0 {
    transform: translateY(0);
}

/* Pastikan navbar memiliki z-index yang lebih tinggi */
nav {
    z-index: 1001 !important;
}

  @media (max-width: 640px) {
        .hero-buttons {
            flex-direction: column;
            width: 100%;
        }

        .hero-buttons button {
            width: 100%;
        }

        /* Testimonial carousel mobile fixes */
        #testimonialCarousel {
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
            overflow-x: auto;
            padding-bottom: 1rem;
        }
        
        #slides {
            scroll-snap-align: start;
            min-width: 100vw;
        }
        
        .testimonial-slide {
            min-width: 85vw;
            scroll-snap-align: start;
            margin-right: 1rem;
        }

        .dot-mobile {
            width: 12px;
            height: 12px;
        }
    }

/* Pastikan body tidak scroll saat menu terbuka */
body.overflow-hidden {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

#mobile-menu a {
  display: block;
  padding: 12px 16px;
  color: #343C3C;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.2s;
}

#mobile-menu a:hover {
  background: #f9fafb;
}

/* Pastikan tech-item memiliki stacking context yang benar */
/* Pastikan elemen reveal memiliki style awal yang benar */
[class*="scroll-reveal-"] {
    visibility: hidden; /* Gunakan visibility bukan opacity untuk menghindari layout shift */
    will-change: transform, opacity; /* Optimasi performa */
}

/* Style khusus untuk tech items */
.tech-item {
    opacity: 1 !important; /* Pastikan tidak di-override */
    backface-visibility: hidden; /* Cegah flickering */
    transform-style: preserve-3d;
}

/* Style untuk gambar di dalam tech item */
.tech-item img {
    opacity: 1 !important;
    visibility: visible !important;
    transition: transform 0.3s ease-out !important;
    transform: translateZ(0); /* Aktifkan hardware acceleration */
}

/* Modal styles */
.modal-open {
    overflow: hidden;
}

#paymentModal {
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#paymentModal.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Class revealed */
.revealed {
    opacity: 1 !important;
    visibility: visible !important;
}
/* Style setelah di-reveal */



#mobile-menu button {
  width: calc(100% - 32px);
  margin: 8px 16px;
  padding: 12px;
  background: #f3f4f6;
  border: none;
  border-radius: 4px;
  color: #343C3C;
}
@layer utilities {
.slide-up {
  transform: translateY(-100%);
  opacity: 0;
  display: none;
}

.slide-down {
  transform: translateY(0);
  opacity: 1;
  display: block;
}

#mobile-menu {
  transition: all 0.3s ease-in-out;
}

    .transition-slide {
        transition: max-height 0.3s ease-in-out, padding-top 0.3s ease-in-out;
    }
}

body {
    font-family: 'Poppins', sans-serif;
}
/* MODAL TRANSITIONS */
#contactModal {
    transition: opacity 0.2s ease;
}

#contactModal.hidden {
    opacity: 0;
    pointer-events: none;
}

#contactModal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#contactModal:not(.hidden) .modal-panel {
    transform: translateX(0);
}

#modalOverlay {
    transition: opacity 0.3s ease-out, pointer-events 0s linear 0.3s;
}

#contactModal:not(.hidden) #modalOverlay {
    transition: opacity 0.3s ease-out;
}

/* FLOATING LABELS */
.relative input:not(:placeholder-shown) + label,
.relative textarea:not(:placeholder-shown) + label,
.relative input:focus + label,
.relative textarea:focus + label {
    transform: scale(0.9) translateY(-2.5rem);
    color: #04b2f7;
}

/* FORM SCROLLBAR */
form::-webkit-scrollbar {
    width: 6px;
}

form::-webkit-scrollbar-thumb {
    background-color: rgba(4, 178, 247, 0.3);
    border-radius: 3px;
}

/* MODAL CONTENT STYLING */
#formAlert {
    transition: all 0.3s ease;
}

#contactModal form {
    display: flex;
    flex-direction: column;
    height: calc(100% - 73px); /* Subtract header height */
}

#contactModal .border-b-2 {
    transition: border-color 0.3s ease;
}

/* Loading spinner animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}
    @keyframes float {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-8px);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(15px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-float-1 {
            animation: float 6s ease-in-out infinite;
        }

        .animate-float-2 {
            animation: float 8s ease-in-out infinite 2s;
        }

        .animate-float-3 {
            animation: float 7s ease-in-out infinite 1s;
        }

        .animate-fade-in-up {
            animation: fadeInUp 0.6s ease-out forwards;
        }

        .delay-100 {
            animation-delay: 0.1s;
        }

        .delay-200 {
            animation-delay: 0.2s;
        }

        /* Count animation */
        @keyframes countUp {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .animate-count {
            animation: countUp 0.8s ease-out forwards;
        }


        /* Smooth transition for project cards */
        .project-card {
            transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
        }

        .bg-\[\#04b2f7\] {
            background-color: #04b2f7;
        }

        .hover\:bg-\[\#0399d9\]:hover {
            background-color: #0399d9;
        }

        .focus\:ring-\[\#04b2f7\]:focus {
            --tw-ring-color: #04b2f7;
        }

        /* Active filter button style */
        .category-filter.active {
            background-color: #04b2f7 !important;
            color: white !important;
            border-color: #04b2f7 !important;
        }

        /* Button sizing for mobile */
        @media (max-width: 640px) {

            .category-filter,
            .buy-now-btn,
            [class*="px-4"].py-3 {
                padding-left: 1rem;
                padding-right: 1rem;
                padding-top: 0.75rem;
                padding-bottom: 0.75rem;
                font-size: 0.875rem;
            }
        }

        /* For mobile menu */
        .filter-tabs {
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .filter-tabs::-webkit-scrollbar {
            display: none;
        }

/* Disabled button state */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Tambahkan di bagian style Anda */
/* Hide scrollbar but keep functionality */
#carousel::-webkit-scrollbar {
    display: none;
}

/* Better cursor feedback */
.cursor-grab {
    cursor: grab;
    cursor: -webkit-grab;
}

.active.cursor-grab,
.cursor-grab:active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

#mobile-menu {
    background-color: white; /* Pastikan background solid */
    z-index: 1000; /* Lebih tinggi dari elemen lain */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-top: 1px solid #f3f4f6; /* Garis pembatas */
}
