/*
Theme Name:   PaullStudio Theme
Theme URI:    https://paullstudio.com
Author:       Maulana Zakaria
Description:  Custom standalone theme untuk PaullStudio. Dark/light mode, bilingual, full Elementor support.
Version:      1.2.0
License:      GPL v2 or later
Text Domain:  paullstudio
*/

/* ════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES — DARK & LIGHT TOKENS
   Refreshed palette: blue accent (#2563eb) + Manrope,
   rounded-card system (matches new brand design system)
   ════════════════════════════════════════════════ */

:root {
    /* ── DARK MODE (default) ── */
    --ps-bg:           #0f172a;
    --ps-bg-card:      #162238;
    --ps-bg-card-hover:#1c2b45;
    --ps-text:         #ffffff;
    --ps-muted:        #94a3b8;
    --ps-muted-safe:   #cbd5e1;
    --ps-border:       #1e293b;
    --ps-border-hover: #334155;
    --ps-accent:       #2563eb;
    --ps-accent-inv:   #ffffff;
    --ps-accent-hover: #3b76f6;
    --ps-dim:          #475569;
    --ps-label-color:  #64748b;
    --ps-ticker-color: #fff;
    --ps-ticker-muted: #1e293b;
    --ps-icon-color:   #94a3b8;
    --ps-sep:          #334155;
    --ps-spotlight:    rgba(37,99,235,0.10);
    --ps-grid-line:    rgba(148,163,184,0.06);
    --ps-noise-opacity:0.02;

    /* ── RADIUS SCALE ── */
    --ps-radius-sm:  0.5rem;   /* 8px  */
    --ps-radius-md:  0.625rem;/* 10px */
    --ps-radius-lg:  0.75rem; /* 12px */
    --ps-radius-xl:  1rem;    /* 16px */

    /* ── SHADOWS ── */
    --ps-shadow-sm: 0 1px 2px rgba(0,0,0,.24);
    --ps-shadow-md: 0 4px 16px rgba(0,0,0,.28);

    /* ── TRANSITIONS ── */
    --ps-curve:     cubic-bezier(0.16, 1, 0.3, 1);
    --ps-header-h:  80px;
}

/* ── LIGHT MODE ── */
[data-theme="light"] {
    --ps-bg:           #ffffff;
    --ps-bg-card:      #ffffff;
    --ps-bg-card-hover:#f8fafc;
    --ps-text:         #171923;
    --ps-muted:        #6b7280;
    --ps-muted-safe:   #4b5563;
    --ps-border:       #e5e7eb;
    --ps-border-hover: #d1d5db;
    --ps-accent:       #2563eb;
    --ps-accent-inv:   #ffffff;
    --ps-accent-hover: #1d4fd1;
    --ps-dim:          #9ca3af;
    --ps-label-color:  #9ca3af;
    --ps-ticker-color: #171923;
    --ps-ticker-muted: #e5e7eb;
    --ps-icon-color:   #9ca3af;
    --ps-sep:          #d1d5db;
    --ps-spotlight:    rgba(37,99,235,0.06);
    --ps-grid-line:    rgba(0,0,0,0.04);
    --ps-noise-opacity:0.015;

    --ps-shadow-sm: 0 1px 2px rgba(15,23,42,.06);
    --ps-shadow-md: 0 4px 16px rgba(15,23,42,.08);
}

/* ════════════════════════════════════════════════
   BASE RESET
   ════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ps-bg);
    color: var(--ps-text);
    transition: background .4s ease, color .4s ease;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; }

/* Body padding for fixed header */
body.has-ps-header { padding-top: var(--ps-header-h); }

/* ════════════════════════════════════════════════
   ELEMENTOR INTEGRATION
   ════════════════════════════════════════════════ */

/* Remove Elementor default padding on page */
.elementor-section.elementor-top-section { margin-bottom: 0 !important; }

/* ════════════════════════════════════════════════
   THEME TOGGLE BUTTON
   ════════════════════════════════════════════════ */

.ps-theme-toggle {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ps-bg-card);
    border: 1px solid var(--ps-border);
    color: var(--ps-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    transition: all .3s var(--ps-curve);
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.ps-theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--ps-border-hover);
}

.ps-theme-toggle svg { width: 18px; height: 18px; }

/* ════════════════════════════════════════════════
   BACKGROUND UTILITY (shared across sections)
   ════════════════════════════════════════════════ */

.ps-bg-layers  { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.ps-spotlight-static {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--ps-spotlight) 0%, transparent 70%);
}

.ps-grid-subtle {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--ps-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--ps-grid-line) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 90%);
}

/* ════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
   ════════════════════════════════════════════════ */

.ps-shimmer {
    background: linear-gradient(90deg, var(--ps-dim), var(--ps-text), var(--ps-dim));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: ps-shimmer 5s linear infinite;
}

@keyframes ps-shimmer { to { background-position: 200% center; } }

.ps-label {
    color: var(--ps-label-color);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .25em;
    text-transform: uppercase;
    display: block;
}

/* ════════════════════════════════════════════════
   TICKER
   ════════════════════════════════════════════════ */

.ps-ticker-wrapper { overflow: hidden; }

.ps-ticker {
    width: 100%;
    display: flex;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ps-ticker-track {
    display: flex;
    gap: 80px;
    animation: ticker-scroll 40s linear infinite;
    will-change: transform;
}

.ps-ticker:hover .ps-ticker-track { animation-play-state: paused; }

.ps-ticker-track span {
    color: var(--ps-ticker-color);
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    transition: .3s;
    cursor: default;
}

.ps-ticker-track span:hover { opacity: .6; transform: scale(1.05); }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════
   PULSE DOT
   ════════════════════════════════════════════════ */

.ps-dot-pulse {
    width: 8px; height: 8px;
    background: #34c759;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.ps-dot-pulse::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: #34c759;
    animation: ps-pulse 2s infinite;
}

@keyframes ps-pulse {
    0%   { transform: scale(1); opacity: .8; }
    100% { transform: scale(3); opacity: 0; }
}

/* ════════════════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════════════════ */

.ps-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.1s var(--ps-curve), transform 1.1s var(--ps-curve);
}

.is-visible .ps-reveal { opacity: 1; transform: translateY(0); }
.is-visible .ps-reveal:nth-child(2) { transition-delay: .15s; }
.is-visible .ps-reveal:nth-child(3) { transition-delay: .3s;  }
.is-visible .ps-reveal:nth-child(4) { transition-delay: .45s; }

/* ════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════ */

@media print {
    .ps-header, .ps-theme-toggle, .ps-ticker-wrapper { display: none !important; }
}
