/* ============================================
   JASA AI COMPONENT LIBRARY
   Extracted from components.php / privacy.php
   ============================================
   Colors:
   - Primary Gradient: #00D9C0 → #00A86B
   - Glass Background: rgba(255,255,255,0.7) / rgba(15,23,42,0.6)
   - Text Primary: #0F172A / #F8FAFC (dark mode)
   ============================================ */

/* ============================================
   BASE VARIABLES
   ============================================ */
:root {
    --gradient-primary: linear-gradient(135deg, #00D9C0 0%, #00A86B 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 217, 192, 0.4) 0%, rgba(0, 168, 107, 0.4) 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 168, 107, 0.1);
    --font-main: 'Montserrat', sans-serif;
}

.dark {
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

* {
    font-family: var(--font-main);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    letter-spacing: -0.02em;
    font-weight: 800;
}

p, span, a, li {
    font-family: var(--font-main);
}

/* ============================================
   COMPONENT: Glass Card
   ============================================ */
.jasa-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ============================================
   COMPONENT: Gradient Text
   ============================================ */
.jasa-gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* ============================================
   COMPONENT: Primary Button
   ============================================ */
.jasa-btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 217, 192, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.jasa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 217, 192, 0.4);
}

.jasa-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.jasa-btn-primary:hover::after {
    left: 100%;
}

.jasa-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   COMPONENT: Ghost Button
   ============================================ */
.jasa-btn-ghost {
    background: transparent;
    border: 1.5px solid rgba(0, 168, 107, 0.3);
    color: #00A86B;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.jasa-btn-ghost:hover {
    background: rgba(0, 168, 107, 0.1);
    border-color: #00A86B;
}

.dark .jasa-btn-ghost {
    color: #00D9C0;
    border-color: rgba(0, 217, 192, 0.3);
}

.dark .jasa-btn-ghost:hover {
    background: rgba(0, 217, 192, 0.1);
    border-color: #00D9C0;
}

/* ============================================
   COMPONENT: Feature Card
   ============================================ */
.jasa-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 253, 249, 0.6) 100%);
    border: 1px solid rgba(0, 217, 192, 0.2);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.jasa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 24px 24px 0 0;
}

.jasa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(0, 217, 192, 0.2);
    border-color: rgba(0, 217, 192, 0.5);
}

.jasa-card:hover::before {
    opacity: 1;
}

.dark .jasa-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.6) 100%);
    border-color: rgba(0, 217, 192, 0.1);
}

/* ============================================
   COMPONENT: Input Field
   ============================================ */
.jasa-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: 100px;
    background: white;
    border: 2px solid rgba(0, 168, 107, 0.2);
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    outline: none;
}

.jasa-input:focus {
    border-color: #00D9C0;
    box-shadow: 0 0 0 4px rgba(0, 217, 192, 0.1);
}

.jasa-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.dark .jasa-input {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark .jasa-input:focus {
    border-color: #00D9C0;
    box-shadow: 0 0 0 3px rgba(0, 217, 192, 0.2);
}

/* ============================================
   COMPONENT: Badge/Pill
   ============================================ */
.jasa-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(0, 217, 192, 0.1);
    border: 1px solid rgba(0, 217, 192, 0.2);
    color: #00A86B;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .jasa-badge {
    background: rgba(0, 217, 192, 0.2);
    color: #00D9C0;
}

.jasa-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00D9C0;
    animation: pulse 2s infinite;
}

/* ============================================
   COMPONENT: Integration Orb (Static)
   ============================================ */
.jasa-orb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0, 217, 192, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.jasa-orb:hover {
    transform: scale(1.1) translateY(-5px);
    border-color: #00D9C0;
    box-shadow: 0 20px 40px rgba(0, 217, 192, 0.2);
}

.jasa-orb img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* ============================================
   COMPONENT: Integration Marquee (Scrolling)
   ============================================ */

.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.integration-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.integration-chip:hover {
    color: #0f172a;
}

.integration-chip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.dark .integration-chip {
    color: #94a3b8;
}

.dark .integration-chip:hover {
    color: #f8fafc;
}

/* ============================================
   COMPONENT: Stats Counter
   ============================================ */
.jasa-counter {
    background: linear-gradient(135deg, rgba(0, 217, 192, 0.1) 0%, rgba(0, 168, 107, 0.1) 100%);
    border: 1px solid rgba(0, 217, 192, 0.2);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.jasa-counter-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -0.03em;
}

.jasa-counter-label {
    font-size: 0.875rem;
    color: #64748B;
    margin-top: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .jasa-counter-label {
    color: #94A3B8;
}

/* ============================================
   COMPONENT: Navigation Link
   ============================================ */
.jasa-navlink {
    position: relative;
    color: #64748B;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.jasa-navlink:hover {
    color: #00A86B;
}

.dark .jasa-navlink {
    color: #94A3B8;
}

.dark .jasa-navlink:hover {
    color: #00D9C0;
}

.jasa-navlink::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.jasa-navlink:hover::after {
    width: 100%;
}

/* ============================================
   COMPONENT: Section Title
   ============================================ */
.jasa-section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* ============================================
   COMPONENT: Floating Label Input
   ============================================ */
.jasa-input-group {
    position: relative;
    margin-bottom: 24px;
}

.jasa-input-group input {
    width: 100%;
    padding: 16px 20px;
    padding-top: 24px;
    border: 1px solid rgba(0, 168, 107, 0.2);
    border-radius: 12px;
    background: white;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.jasa-input-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    transition: all 0.3s;
    pointer-events: none;
}

.jasa-input-group input:focus + label,
.jasa-input-group input:not(:placeholder-shown) + label {
    top: 12px;
    transform: translateY(0);
    font-size: 0.75rem;
    color: #00A86B;
}

.jasa-input-group input:focus {
    border-color: #00D9C0;
    box-shadow: 0 0 0 4px rgba(0, 217, 192, 0.1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .jasa-section-title {
        font-size: 2rem;
    }

    .jasa-card {
        padding: 24px;
    }

    .jasa-btn-primary,
    .jasa-btn-ghost {
        padding: 12px 24px;
        font-size: 0.8rem;
    }

    .jasa-counter-number {
        font-size: 2rem;
    }

    .marquee-track {
        animation-duration: 20s;
    }
}
