/*
Theme Name: My Portfolio
Theme URI: https://fndslc.my.id
Author: ChatGPT & DeepSeek
Author URI: https://chatgpt.com/ & https://chat.deepseek.com 
Description: A minimal one-page portfolio created by ChatGPT & DeepSeek.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-portfolio
Tags: portfolio, minimal, responsive, ChatGPT, DeepSeek
*/

/* ===== Google Fonts & Base ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --primary-bg: #000;
    --primary-text: #fff;
    --accent-color: #1da1f2;
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --popup-bg: rgba(0, 0, 0, 0.95);
    --transition-default: all 0.3s ease;
}

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

html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    color: var(--primary-text);
    background: var(--primary-bg);
    overflow: hidden;
}

/* ===== Landing Section ===== */
.landing {
    position: relative;
    height: 100vh;
    width: 100%;
    background: url('https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExeTFiM2h4OHAzb2c0cXM0NW9wOXhrd2d0MjQ0Mjh3c3M5ZWYxd3I3cCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3o7ZeQwtdN5zqqSOSQ/giphy.gif') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.landing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    pointer-events: none;
}

.landing h1 {
    font-size: 3.5rem;
    margin-bottom: 40px;
    background: var(--overlay-bg);
    padding: 12px 28px;
    border-radius: 60px;
    backdrop-filter: blur(8px);
    font-weight: 600;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 2;
}

/* Typewriter cursor */
#typed-output::after {
    content: '|';
    animation: blink 0.8s infinite;
    font-weight: 300;
    margin-left: 2px;
}

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

/* ===== Button Group ===== */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.nav-buttons button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--primary-text);
    padding: 12px 32px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
    backdrop-filter: blur(4px);
}

.nav-buttons button:hover {
    background: var(--primary-text);
    color: var(--primary-bg);
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 10px 20px -8px rgba(0,0,0,0.5);
}

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

/* ===== Popup Base ===== */
.popup {
    position: fixed;
    inset: 0;
    background: var(--popup-bg);
    backdrop-filter: blur(12px);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}

.popup.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; backdrop-filter: blur(0); }
    to { opacity: 1; backdrop-filter: blur(12px); }
}

/* About Popup */
.about-popup p {
    max-width: 600px;
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 1.1rem;
    color: #eee;
}

.about-popup h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

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

.social-icons a {
    color: var(--primary-text);
    font-size: 2rem;
    transition: var(--transition-default);
}

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

/* Extra Popup */
.extra-popup h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.extra-popup p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 32px;
}

/* Back Button */
.back-btn {
    background: transparent;
    border: 1.5px solid var(--primary-text);
    color: var(--primary-text);
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-default);
}

.back-btn:hover {
    background: var(--primary-text);
    color: var(--primary-bg);
    transform: scale(1.02);
}

/* ===== Custom Cursor (Surprise Feature) ===== */
.cursor-follower {
    width: 28px;
    height: 28px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.08s linear, width 0.2s, height 0.2s, background 0.2s;
    transform: translate(-50%, -50%);
    backdrop-filter: invert(1);
    mix-blend-mode: difference;
}

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

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .landing h1 {
        font-size: 2rem;
        padding: 8px 20px;
        margin-bottom: 32px;
    }
    .nav-buttons {
        flex-direction: column;
        gap: 16px;
        width: 80%;
    }
    .nav-buttons button {
        padding: 10px 20px;
        width: 100%;
    }
    .about-popup p {
        font-size: 0.95rem;
        padding: 0 16px;
    }
    .social-icons a {
        font-size: 1.6rem;
    }
    .cursor-follower {
        display: none; /* hide on touch devices */
    }
}