/* ============================================= */
/* ZHAN GROUP - CUSTOM STYLES                    */
/* Version: 3.1 (SEO + Mobile + Glitch Enhanced) */
/* ============================================= */

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #030712; }
::-webkit-scrollbar-thumb { background: linear-gradient(to bottom, #06b6d4, #8b5cf6); border-radius: 10px; }

/* Base */
html { scroll-behavior: smooth; }
body {
    background-color: #030712;
    overflow-x: hidden;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* ============================================= */
/* GLASS EFFECT                                  */
/* ============================================= */

.glass-premium {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* ============================================= */
/* GLITCH TEXT ANIMATION - ENHANCED              */
/* H1 tetap visible untuk SEO (opacity: 1 selalu)*/
/* Efek glitch diperkuat dengan shimmer + glow   */
/* ============================================= */

.glitch-text {
    position: relative;
    color: #ffffff;
    display: block;
    text-align: center;
    width: 100%;
    /* Glitch shadow effect */
    animation: glitch 800ms infinite, glowPulse 3s ease-in-out infinite alternate;
    text-shadow:
        0.05em 0 0 rgba(6, 182, 212, 0.85),
        -0.03em -0.04em 0 rgba(251, 191, 36, 0.85),
        0.025em 0.04em 0 rgba(139, 92, 246, 0.85);
}

/* Shimmer sweep overlay via pseudo-element */
.glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(6, 182, 212, 0.3) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2.5s infinite linear;
    pointer-events: none;
}

/* Clip/offset layer untuk glitch split */
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    color: transparent;
    text-shadow: none;
    -webkit-text-stroke: 2px rgba(6, 182, 212, 0.15);
    animation: glitchClip 1.2s infinite steps(1);
    pointer-events: none;
    clip-path: inset(40% 0 60% 0);
}

@keyframes glitch {
    0%, 92%, 100% {
        text-shadow:
            0.05em 0 0 rgba(6, 182, 212, 0.85),
            -0.03em -0.04em 0 rgba(251, 191, 36, 0.85),
            0.025em 0.04em 0 rgba(139, 92, 246, 0.85);
    }
    10% {
        text-shadow:
            -0.06em -0.025em 0 rgba(6, 182, 212, 0.9),
            0.03em 0.04em 0 rgba(251, 191, 36, 0.9),
            -0.05em -0.05em 0 rgba(139, 92, 246, 0.9);
        transform: translateX(-2px);
    }
    20% {
        text-shadow:
            0.06em 0.025em 0 rgba(6, 182, 212, 0.85),
            -0.04em -0.03em 0 rgba(251, 191, 36, 0.85),
            0.05em 0.05em 0 rgba(139, 92, 246, 0.85);
        transform: translateX(2px);
    }
    93% {
        text-shadow:
            0.025em 0.05em 0 rgba(6, 182, 212, 1),
            0.05em 0 0 rgba(251, 191, 36, 1),
            0 -0.05em 0 rgba(139, 92, 246, 1);
        transform: translateX(3px) skewX(-2deg);
    }
    95% {
        transform: translateX(-3px) skewX(2deg);
    }
}

@keyframes glowPulse {
    0% { filter: brightness(1) drop-shadow(0 0 8px rgba(6, 182, 212, 0.3)); }
    100% { filter: brightness(1.15) drop-shadow(0 0 20px rgba(139, 92, 246, 0.5)); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes glitchClip {
    0%, 100% { clip-path: inset(80% 0 0 0); transform: translateX(-4px); }
    20% { clip-path: inset(40% 0 40% 0); transform: translateX(4px); }
    40% { clip-path: inset(60% 0 20% 0); transform: translateX(-2px); }
    60% { clip-path: inset(10% 0 70% 0); transform: translateX(3px); }
    80% { clip-path: inset(90% 0 5% 0); transform: translateX(-4px); }
}

/* Disable motion untuk aksesibilitas */
@media (prefers-reduced-motion: reduce) {
    .glitch-text {
        animation: none;
        text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
        filter: none;
    }
    .glitch-text::before,
    .glitch-text::after {
        animation: none;
        display: none;
    }
}

/* ============================================= */
/* NEON BORDER EFFECT                            */
/* ============================================= */

.neon-border {
    position: relative;
    border-radius: 1.5rem;
    padding: 2px;
    overflow: visible;
}
.neon-border::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(transparent, rgba(6, 182, 212, 0.8), transparent 30%);
    animation: rotate 4s linear infinite;
    z-index: -2;
}
.neon-border::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(17, 24, 39, 0.9);
    border-radius: inherit;
    z-index: -1;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

@keyframes rotate { 100% { transform: rotate(1turn); } }

/* ============================================= */
/* BACKGROUND GRID                               */
/* ============================================= */

.bg-grid-premium {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* ============================================= */
/* HERO SECTION                                  */
/* ============================================= */

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

/* ============================================= */
/* ALL SECTIONS - ALWAYS VISIBLE (SEO)           */
/* ============================================= */

section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* ============================================= */
/* FOUNDER IMAGE & BADGE - RESPONSIVE            */
/* ============================================= */

.founder-img-wrapper {
    padding-bottom: 2.5rem;
}

.founder-photo {
    height: auto;
    max-height: 380px;
    object-fit: cover;
    object-position: top;
    width: 100%;
}

.founder-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    z-index: 10;
}

@media (min-width: 640px) {
    .founder-photo { max-height: 480px; }
    .founder-badge {
        padding: 1rem 1.5rem;
        bottom: 0.5rem;
        right: 0.5rem;
        border-radius: 1rem;
    }
}

@media (min-width: 768px) {
    .founder-photo { max-height: 550px; }
    .founder-img-wrapper { padding-bottom: 0; }
    .founder-badge {
        bottom: -1.25rem;
        right: -1.25rem;
        border-radius: 1rem;
    }
}

/* ============================================= */
/* ANIMATIONS                                    */
/* ============================================= */

.fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animation-delay-2000 { animation-delay: 2s; }

/* ============================================= */
/* TESTIMONIAL                                   */
/* ============================================= */

.avatar-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ============================================= */
/* FORM STYLING                                  */
/* ============================================= */

input:focus, textarea:focus { outline: none; }

/* Prevent iOS auto-zoom */
@media (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================= */
/* PARTICLES                                     */
/* ============================================= */

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -10;
}

/* Matikan particles di mobile untuk performa */
@media (max-width: 640px) {
    #particles-js { display: none; }
}

/* ============================================= */
/* LOADING ANIMATION                             */
/* ============================================= */

@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ============================================= */
/* GRADIENT TEXT                                 */
/* ============================================= */

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================= */
/* SCREEN READER ONLY                            */
/* ============================================= */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================= */
/* HOVER — Disable di touch device               */
/* ============================================= */

@media (hover: none) {
    .hover\:-translate-y-2:hover,
    .hover\:-translate-y-1:hover { transform: none; }
}

/* ============================================= */
/* RESPONSIVE MOBILE (<640px)                    */
/* ============================================= */

@media (max-width: 640px) {
    .glitch-text {
        font-size: 2.8rem !important;
        line-height: 1.15;
    }
    #hero h1 { font-size: 2.8rem !important; }

    section {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .neon-border { border-radius: 1rem; }

    #zartha .glass-premium { border-radius: 1.75rem !important; }

    #pagination button { padding: 0.4rem 0.75rem; font-size: 0.8rem; }

    #modalOverlay > div { max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 480px) {
    .glitch-text { font-size: 2.2rem !important; }
    #hero h1 { font-size: 2.2rem !important; }
}

/* ============================================= */
/* PRINT                                         */
/* ============================================= */

@media print {
    .glass-premium { background: white !important; border: 1px solid #ddd !important; }
    #mobileMenu, #menuBtn, #modalOverlay, #imageModal, #particles-js { display: none !important; }
}

/* ============================================= */
/* HAPUS: neon-border spinning box               */
/* GANTI: founder-card-glow yang elegan          */
/* ============================================= */

/* Hapus neon-border sepenuhnya dari rendering */
.neon-border {
    position: relative;
    border-radius: 2rem;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.08);
}
.neon-border::before,
.neon-border::after {
    display: none !important;
    content: none !important;
}

/* Founder card - corner glow elegan, tidak muter */
.founder-card-glow {
    position: relative;
    border-radius: 2rem;
    border: 1px solid rgba(6, 182, 212, 0.15);
    overflow: visible;
    /* Subtle glow shadow aja */
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.1),
        0 0 40px -10px rgba(6, 182, 212, 0.2),
        0 0 80px -20px rgba(139, 92, 246, 0.15),
        0 25px 60px -15px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.5s ease;
}
.founder-card-glow:hover {
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.2),
        0 0 60px -10px rgba(6, 182, 212, 0.35),
        0 0 100px -20px rgba(139, 92, 246, 0.25),
        0 25px 60px -15px rgba(0, 0, 0, 0.6);
}

/* Corner accent — 4 sudut dengan glow kecil */
.founder-card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 2rem;
    background: linear-gradient(
        135deg,
        rgba(6, 182, 212, 0.4) 0%,
        transparent 30%,
        transparent 70%,
        rgba(139, 92, 246, 0.3) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* ============================================= */
/* HERO REDESIGN - Tags + Counter + Scroll line  */
/* ============================================= */

/* Service tags yang float di bawah H1 */
.hero-tags {
    opacity: 0;
    animation: tagsReveal 0.6s ease forwards 0.4s;
}

@keyframes tagsReveal {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: tagFloat 3s ease-in-out infinite;
    border: 1px solid transparent;
    transition: transform 0.2s ease;
}
.hero-tag:hover { transform: translateY(-3px) scale(1.05); }

/* Each tag floats at different timing */
.hero-tag:nth-child(1) { animation-delay: 0s; }
.hero-tag:nth-child(2) { animation-delay: 0.4s; }
.hero-tag:nth-child(3) { animation-delay: 0.8s; }
.hero-tag:nth-child(4) { animation-delay: 1.2s; }
.hero-tag:nth-child(5) { animation-delay: 1.6s; }
.hero-tag:nth-child(6) { animation-delay: 2.0s; }

@keyframes tagFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-4px); }
}

.tag-cyan   { background: rgba(6,182,212,0.12); color: #06b6d4; border-color: rgba(6,182,212,0.3); }
.tag-purple { background: rgba(139,92,246,0.12); color: #a78bfa; border-color: rgba(139,92,246,0.3); }
.tag-gold   { background: rgba(251,191,36,0.12); color: #fbbf24; border-color: rgba(251,191,36,0.3); }
.tag-pink   { background: rgba(236,72,153,0.12); color: #f472b6; border-color: rgba(236,72,153,0.3); }
.tag-green  { background: rgba(34,197,94,0.12); color: #4ade80; border-color: rgba(34,197,94,0.3); }

/* Scroll line animated */
.scroll-line {
    animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop {
    0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    30% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    70% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* Counter number animation */
.hero-count {
    transition: all 0.1s;
    font-variant-numeric: tabular-nums;
}
