/*
Theme Name: fndslc
Theme URI: https://fndslc.my.id
Author: ChatGPT & DeepSeek
Author URI: https://chatgpt.com/ & https://chat.deepseek.com 
Description: A refined, particle-enhanced personal landing theme with a dynamic typewriter, custom cursor, and smooth popups. Built for a clean presence.
Version: 3.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fndslc
Tags: minimal, responsive, customizer, particle-network
*/

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-black: #000000;
    --pale-white: #eceff4;        /* soft, nordic pale */
    --muted: #d8dee9;
    --accent: #1da1f2;
    --overlay: rgba(0, 0, 0, 0.55);
    --popup-bg: rgba(0, 0, 0, 0.94);
    --transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    --bg-gif: url('https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExeTFiM2h4OHAzb2c0cXM0NW9wOXhrd2d0MjQ0Mjh3c3M5ZWYxd3I3cCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3o7ZeQwtdN5zqqSOSQ/giphy.gif');
}

html, body {
    height: 100%;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-black);
    overflow: hidden;
    color: var(--pale-white);
}

/* ---- BACKGROUND GIF (z-index 0) ---- */
.bg-gif-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-gif) center/cover no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* ---- PARTICLE CANVAS (z-index 1) refined ---- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
    pointer-events: none;
    background: transparent;
}

/* ---- MAIN LANDING (z-index 2) ---- */
.landing {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
    background: transparent;
}

.landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(3px);
    pointer-events: none;
    z-index: -1;
}

/* Typewriter heading – refined spacing & weight */
.landing h1 {
    font-size: 3.8rem;
    margin-bottom: 2.2rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 14px 36px;
    border-radius: 90px;
    backdrop-filter: blur(12px);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--pale-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.2;
    transition: transform 0.2s ease;
}

#typed-output::after {
    content: '|';
    animation: blink 0.9s infinite;
    font-weight: 350;
    margin-left: 4px;
    color: var(--pale-white);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === MENU BUTTONS === */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    z-index: 3;
    position: relative;
}

.nav-buttons button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(236, 239, 244, 0.35);
    color: var(--pale-white);
    padding: 12px 34px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    letter-spacing: -0.2px;
}

.nav-buttons button:hover {
    background: var(--pale-white);
    color: #0a0a0a;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 12px 22px -12px rgba(0,0,0,0.6);
}

.nav-buttons button:active {
    transform: translateY(1px);
}

/* ===== POPUPS (about + extra) ===== */
.popup {
    position: fixed;
    inset: 0;
    background: var(--popup-bg);
    backdrop-filter: blur(24px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 2000;
    padding: 28px;
    animation: fadeInScale 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup.active {
    display: flex;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(6px);
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        backdrop-filter: blur(24px);
    }
}

.popup h2 {
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(125deg, #ffffff, #b0b6c2);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.about-popup p {
    max-width: 600px;
    margin-bottom: 34px;
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--pale-white);
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    justify-content: center;
}

.social-icons a {
    color: var(--pale-white);
    font-size: 2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent);
    transform: translateY(-5px);
}

/* EXTRA POPUP */
.extra-popup .dynamic-content {
    max-width: 550px;
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--pale-white);
    font-family: 'Inter', sans-serif;
}

.back-btn {
    background: transparent;
    border: 1.5px solid var(--pale-white);
    color: var(--pale-white);
    padding: 10px 32px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.back-btn:hover {
    background: var(--pale-white);
    color: #0f0f0f;
    transform: scale(1.02);
}

/* Custom cursor – smoother tracking */
.cursor-follower {
    width: 28px;
    height: 28px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: width 0.25s ease, height 0.25s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    backdrop-filter: invert(1);
    mix-blend-mode: difference;
    will-change: left, top;
}

.cursor-follower.hover {
    width: 46px;
    height: 46px;
    background: rgba(29, 161, 242, 0.2);
    border-color: var(--pale-white);
}

/* Help toast */
.help-toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(12px);
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    color: #e2e8f0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    font-family: 'Inter', monospace;
    letter-spacing: 0.2px;
}

.help-toast.show {
    opacity: 1;
}

/* Footer */
footer {
    position: fixed;
    bottom: 14px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    opacity: 0.55;
    z-index: 100;
    pointer-events: none;
    font-family: 'Inter', monospace;
    font-weight: 400;
    color: var(--pale-white);
}

/* Responsive – maintain menu integrity */
@media (max-width: 600px) {
    .landing h1 {
        font-size: 2.2rem;
        padding: 10px 22px;
        margin-bottom: 1.8rem;
    }
    .nav-buttons {
        flex-direction: column;
        gap: 14px;
        width: 80%;
    }
    .nav-buttons button {
        padding: 10px 20px;
        width: 100%;
        font-size: 0.95rem;
    }
    .about-popup p {
        font-size: 0.95rem;
        padding: 0 12px;
    }
    .social-icons a {
        font-size: 1.7rem;
    }
    .cursor-follower {
        display: none;
    }
}