/**
 * Jasa AI - Unified Design System Styles
 * Shared styles for all public-facing pages
 * Updated: 2026
 */

/* ==========================================
   BASE & TYPOGRAPHY
   ========================================== */

:root {
    /* Primary Brand Colors */
    --jasa-teal: #00D9C0;
    --jasa-teal-dark: #0D9488;
    --jasa-green: #008055;
    --jasa-forest: #064E3B;
    
    /* Background Colors */
    --bg-light: #fcfbfa;
    --bg-dark: #000000;
    --bg-warm: #fdf8f6;
    
    /* Semantic Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-light: #e2e8f0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D9C0 0%, #0D9488 100%);
    --gradient-hero: linear-gradient(135deg, rgba(0, 217, 192, 0.1) 0%, rgba(13, 148, 136, 0.1) 100%);
    --gradient-card: linear-gradient(135deg, rgba(204, 251, 241, 0.5) 0%, rgba(153, 246, 228, 0.3) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(0, 217, 192, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(0, 217, 192, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 200ms ease-in-out;
    --transition-slow: 300ms ease-in-out;
}

/* ==========================================
   GLASS MORPHISM COMPONENTS
   ========================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.dark .glass-card {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.dark .glass-nav {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background: white;
    border-color: var(--jasa-teal);
    box-shadow: var(--shadow-sm);
}

.dark .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--jasa-teal);
}

.btn-dark {
    background: #0a0a0a;
    color: white;
    padding: 12px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-dark:hover {
    transform: scale(1.02);
    background: #1a1a1a;
}

/* ==========================================
   CARDS
   ========================================== */

.feature-card {
    background: rgba(204, 251, 241, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 217, 192, 0.2);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 217, 192, 0.1);
    border-color: rgba(0, 217, 192, 0.4);
}

.dark .feature-card {
    background: rgba(0, 217, 192, 0.05);
    border-color: rgba(0, 217, 192, 0.15);
}

.dark .feature-card:hover {
    background: rgba(0, 217, 192, 0.08);
    border-color: rgba(0, 217, 192, 0.3);
}

.pricing-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: all var(--transition-slow);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--jasa-teal);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--jasa-teal);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 40px rgba(0, 217, 192, 0.15);
}

.dark .pricing-card {
    background: rgba(10, 10, 10, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .pricing-card.popular {
    border-color: var(--jasa-teal);
    background: rgba(0, 217, 192, 0.1);
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.form-input:focus {
    outline: none;
    border-color: var(--jasa-teal);
    box-shadow: 0 0 0 3px rgba(0, 217, 192, 0.15);
}

.dark .form-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.dark .form-input:focus {
    border-color: var(--jasa-teal);
    box-shadow: 0 0 0 3px rgba(0, 217, 192, 0.2);
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* ==========================================
   GRADIENT TEXT
   ========================================== */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   AMBIENT BACKGROUNDS
   ========================================== */

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.ambient-orb-primary {
    background: rgba(0, 217, 192, 0.3);
}

.ambient-orb-secondary {
    background: rgba(13, 148, 136, 0.2);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 217, 192, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 217, 192, 0.5); }
}

.animate-fade-up {
    animation: fadeSlideUp 0.6s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Stagger animations */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ==========================================
   NAVIGATION
   ========================================== */

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--jasa-teal-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.dark .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.dark .nav-link:hover {
    color: var(--jasa-teal);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container-tight {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-tight {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-tight {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 192, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 192, 0.5);
}

/* ==========================================
   DARK MODE OVERRIDES
   ========================================== */

.dark {
    color-scheme: dark;
}

.dark body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
}

.dark ::selection {
    background: rgba(0, 217, 192, 0.3);
    color: white;
}

/* ==========================================
   FOCUS STYLES (ACCESSIBILITY)
   ========================================== */

:focus-visible {
    outline: 2px solid var(--jasa-teal);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--jasa-teal);
    outline-offset: 2px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */

.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}

.lang-switcher:hover {
    background: rgba(0, 217, 192, 0.1);
    color: #0D9488;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 140px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lang-option:hover {
    background: rgba(0, 217, 192, 0.1);
    color: #0D9488;
}

.lang-option.active {
    background: rgba(0, 217, 192, 0.15);
    color: #0D9488;
    font-weight: 600;
}

.dark .lang-switcher {
    color: #94a3b8;
}

.dark .lang-switcher:hover {
    background: rgba(0, 217, 192, 0.15);
    color: #00D9C0;
}

.dark .lang-dropdown {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .lang-option {
    color: #cbd5e1;
}

.dark .lang-option:hover {
    background: rgba(0, 217, 192, 0.15);
    color: #00D9C0;
}

.dark .lang-option.active {
    background: rgba(0, 217, 192, 0.2);
    color: #00D9C0;
}

/* ==========================================
   HAMBURGER MENU
   ========================================== */

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   MOBILE MENU
   ========================================== */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 6rem 1.5rem 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-link {
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-menu-link:hover {
    color: #00D9C0;
}

.dark .mobile-menu {
    background: rgba(0, 0, 0, 0.98);
}

.dark .mobile-menu-link {
    color: #f8fafc;
}

.dark .mobile-menu-link:hover {
    color: #00D9C0;
}

/* ==========================================
   AMBIENT ORBS
   ========================================== */

.ambient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(0, 217, 192, 0.3) 0%, rgba(13, 148, 136, 0.2) 100%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 217, 192, 0.2) 0%, rgba(13, 148, 136, 0.15) 100%);
    bottom: -100px;
    left: -100px;
}

/* Grid Background Pattern */
.grid-bg {
    background-image: 
        linear-gradient(rgba(0, 217, 192, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 192, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.dark .grid-bg {
    background-image: 
        linear-gradient(rgba(0, 217, 192, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 192, 0.05) 1px, transparent 1px);
}

/* ==========================================
   REVEAL ANIMATIONS
   ========================================== */

.reveal-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: revealFade 0.6s ease forwards;
}

@keyframes revealFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    animation: revealText 0.8s ease forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delays */
[style*="animation-delay: 100ms"] { animation-delay: 100ms; }
[style*="animation-delay: 200ms"] { animation-delay: 200ms; }
[style*="animation-delay: 300ms"] { animation-delay: 300ms; }
[style*="animation-delay: 400ms"] { animation-delay: 400ms; }
