/* ============================================
   SHARED STYLES — Harmonic Consultant
   Digunakan oleh semua halaman website
   ============================================ */

/* === Custom Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f3ff;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}

/* === Glassmorphism === */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Custom Cursor === */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #7c3aed;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(124, 58, 237, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* === Reveal Animation === */
.reveal-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

.cv-auto {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* === Text Utilities === */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(to right, #4c1d95, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* === Animation Delays === */
.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* === Blob Animation === */
.animate-blob {
    animation: blob 7s infinite;
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

/* === Glass Morphing Header === */
#main-header {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
    overflow: hidden;
}

/* Universal Capsule Style (Desktop & Mobile) */
#main-header.is-shrunk {
    top: 1.5rem;
    width: 92%;
    left: 4%;
    height: 64px;
    border-radius: 100px;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(42, 89, 79, 0.1);
    box-shadow: 0 20px 40px rgba(42, 89, 79, 0.1);
    padding: 0 2rem;
    align-items: center;
    justify-content: center;
    display: flex;
}

/* Header Open State (Expandable Capsule) */
#main-header.menu-open {
    height: auto !important;
    min-height: 380px;
    border-radius: 2rem !important;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    top: 1.5rem !important;
    width: 92% !important;
    left: 4% !important;
    padding-bottom: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Mobile Menu Container Transition */
.mobile-links-enter {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-links-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease-out 0.1s;
}

/* === Marquee Animations === */
.animate-marquee {
    animation: marquee 60s linear infinite;
}

.animate-marquee-reverse {
    animation: marqueeReverse 60s linear infinite;
}

.animate-marquee-infinite {
    animation: marquee-infinite 40s linear infinite;
}

.animate-marquee-infinite-reverse {
    animation: marquee-infinite-reverse 100s linear infinite;
}

.animate-marquee-infinite-reverse:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0%);
    }
}

@keyframes marquee-infinite {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marquee-infinite-reverse {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0%);
    }
}

/* Vertical Marquee */
@keyframes marquee-vertical {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.animate-marquee-vertical {
    animation: marquee-vertical 40s linear infinite;
}

.animate-marquee-vertical:hover {
    animation-play-state: paused;
}

/* === Client Logo Styles === */
.client-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    opacity: 0.7;
    flex-shrink: 0;
    margin: 0 20px;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .client-row {
        align-items: center;
        min-height: 56px;
    }

    .client-logo {
        height: 44px;
        max-height: 44px;
        max-width: 120px;
        margin: 0 12px;
    }
}

/* === Scrollbar Utilities === */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Desktop Scroll Visible */
@media (min-width: 1024px) {
    .desktop-scroll-visible::-webkit-scrollbar {
        display: block;
        width: 8px;
    }

    .desktop-scroll-visible::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }

    .desktop-scroll-visible::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .desktop-scroll-visible::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.3);
    }

    .desktop-scroll-visible {
        -ms-overflow-style: auto;
        scrollbar-width: thin;
        overscroll-behavior: auto;
    }
}

/* === Tilt Card Effect === */
.tilt-card {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

/* === Hover Pause === */
.hover\:pause:hover {
    animation-play-state: paused;
}
