/* === VARIABLES & THEMES === */
:root {
    /* Light Theme (Default) */
    --bg-color: #f0f2f5;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --surface-color: rgba(255, 255, 255, 0.75);
    --surface-hover: rgba(255, 255, 255, 0.95);
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --border-color: rgba(255, 255, 255, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --accent-glow: rgba(0, 123, 255, 0.3);
    
    /* Animation Gradient */
    --anim-gradient: linear-gradient(90deg, #ff9a9e, #fad0c4, #fad0c4, #a18cd1, #fbc2eb);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #0f172a;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --surface-color: rgba(30, 41, 59, 0.6);
    --surface-hover: rgba(51, 65, 85, 0.8);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --accent-glow: rgba(56, 189, 248, 0.2);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    transition: color 0.3s ease;
}

/* === BACKGROUND SHAPES (Blur Accents) === */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
}
.shape-1 { width: 300px; height: 300px; background: #6366f1; top: -50px; left: -100px; }
.shape-2 { width: 250px; height: 250px; background: #ec4899; bottom: -50px; right: -80px; }

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 550px; /* Mobile First Constraints */
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* === TOP BAR === */
.top-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.control-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%; /* Circle */
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.control-btn:hover {
    transform: scale(1.1);
    background: var(--surface-hover);
}

/* === PROFILE HEADER === */
.profile-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

.avatar-container {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1.5rem;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface-color);
    box-shadow: 0 8px 25px var(--shadow-color);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.avatar:hover {
    transform: scale(1.05) rotate(3deg);
}

.title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* === LINKS LIST === */
.links-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin: 1.5rem 0 0.5rem 0.5rem;
    font-weight: 600;
    opacity: 0.7;
}

/* === BUTTON CARD === */
.card-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.1rem 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 18px; /* Large rounded */
    text-decoration: none;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.card-link:hover {
    transform: translateY(-3px);
    background: var(--surface-hover);
    box-shadow: 0 10px 20px var(--shadow-color);
    border-color: rgba(255,255,255,0.3);
}

/* Icon Styling */
.card-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

.card-link:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

.card-text {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    z-index: 2;
}

/* Arrow indicator */
.card-arrow {
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.card-link:hover .card-arrow {
    transform: translateX(5px);
    opacity: 1;
}

/* === CLICK ANIMATION (Flowing Gradient) === */
.card-link.active-click {
    animation: pulse 0.4s ease-out;
    border-color: transparent;
}

.card-link.active-click::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--anim-gradient);
    background-size: 300% 300%;
    animation: flowGradient 2s ease infinite;
    z-index: 0;
    opacity: 1;
}

.card-link.active-click .card-text,
.card-link.active-click .card-icon,
.card-link.active-click .card-arrow {
    color: white; /* Text jadi putih saat diklik */
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0% { transform: scale(0.98); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* === FOOTER === */
.footer {
    margin-top: 4rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}